Skip to content

Commit

Permalink
fix: revert dotenv-expand
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzixxx committed Mar 14, 2022
1 parent 36ed617 commit 983bc27
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/config.module.ts
Expand Up @@ -2,7 +2,7 @@ import { DynamicModule, Module } from '@nestjs/common';
import { FactoryProvider } from '@nestjs/common/interfaces';
import { isObject } from '@nestjs/common/utils/shared.utils';
import * as dotenv from 'dotenv';
import { expand } from 'dotenv-expand';
import dotenvExpand from 'dotenv-expand';
import * as fs from 'fs';
import { resolve } from 'path';
import { ConfigHostModule } from './config-host.module';
Expand Down Expand Up @@ -184,7 +184,7 @@ export class ConfigModule {
config,
);
if (options.expandVariables) {
config = expand({ parsed: config }).parsed || config;
config = dotenvExpand({ parsed: config }).parsed || config;
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"dotenv": "16.0.0",
"dotenv-expand": "8.0.1",
"dotenv-expand": "5.1.0",
"lodash": "4.17.21",
"uuid": "8.3.2"
},
Expand Down

0 comments on commit 983bc27

Please sign in to comment.