Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nestjs/config

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/config - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

8

dist/config.module.d.ts
import { DynamicModule } from '@nestjs/common';
import { FactoryProvider } from '@nestjs/common/interfaces';
import { ConfigService } from './config.service';
import { ConfigFactory, ConfigModuleOptions } from './interfaces';

@@ -8,3 +9,8 @@ export declare class ConfigModule {

module: typeof ConfigModule;
providers: FactoryProvider<any>[];
providers: (FactoryProvider<any> | {
provide: typeof ConfigService;
useFactory: (configService: ConfigService) => ConfigService;
inject: (string | symbol | Function)[];
})[];
exports: (typeof ConfigService)[];
};

@@ -11,0 +17,0 @@ private static loadEnvFile;

19

dist/config.module.js

@@ -50,2 +50,8 @@ "use strict";

const configProviderTokens = providers.map(item => item.provide);
const configServiceProvider = {
provide: config_service_1.ConfigService,
useFactory: (configService) => configService,
inject: [config_constants_1.CONFIGURATION_SERVICE_TOKEN, ...configProviderTokens],
};
providers.push(configServiceProvider);
return {

@@ -66,2 +72,3 @@ module: ConfigModule_1,

: providers,
exports: [config_service_1.ConfigService],
};

@@ -71,2 +78,7 @@ }

const configProvider = create_config_factory_util_1.createConfigProvider(config);
const serviceProvider = {
provide: config_service_1.ConfigService,
useFactory: (configService) => configService,
inject: [config_constants_1.CONFIGURATION_SERVICE_TOKEN, configProvider.provide],
};
return {

@@ -76,2 +88,3 @@ module: ConfigModule_1,

configProvider,
serviceProvider,
{

@@ -85,2 +98,3 @@ provide: config_constants_1.CONFIGURATION_LOADER,

],
exports: [config_service_1.ConfigService],
};

@@ -123,8 +137,5 @@ }

imports: [config_host_module_1.ConfigHostModule],
providers: [
{ provide: config_service_1.ConfigService, useExisting: config_constants_1.CONFIGURATION_SERVICE_TOKEN },
],
exports: [config_host_module_1.ConfigHostModule, config_service_1.ConfigService],
exports: [config_host_module_1.ConfigHostModule],
})
], ConfigModule);
exports.ConfigModule = ConfigModule;
{
"name": "@nestjs/config",
"version": "0.0.7",
"version": "0.0.8",
"description": "Nest - modern, fast, powerful node.js web framework (@config)",

@@ -19,16 +19,16 @@ "author": "Kamil Mysliwiec",

"lodash.get": "4.4.2",
"uuid": "^3.3.3"
"uuid": "3.3.3"
},
"devDependencies": {
"@hapi/joi": "16.1.8",
"@nestjs/common": "6.10.10",
"@nestjs/core": "6.10.10",
"@nestjs/platform-express": "6.10.10",
"@nestjs/testing": "6.10.10",
"@nestjs/common": "6.10.13",
"@nestjs/core": "6.10.13",
"@nestjs/platform-express": "6.10.13",
"@nestjs/testing": "6.10.13",
"@types/dotenv": "8.2.0",
"@types/hapi__joi": "16.0.4",
"@types/jest": "24.0.23",
"@types/hapi__joi": "16.0.6",
"@types/jest": "24.0.25",
"@types/lodash.get": "4.4.6",
"@types/node": "7.10.8",
"@types/uuid": "^3.4.6",
"@types/uuid": "3.4.6",
"husky": "3.1.0",

@@ -40,5 +40,5 @@ "jest": "24.9.0",

"rimraf": "3.0.0",
"rxjs": "6.5.3",
"rxjs": "6.5.4",
"ts-jest": "24.2.0",
"typescript": "3.7.3"
"typescript": "3.7.4"
},

@@ -45,0 +45,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc