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

@nestjs/config

Package Overview
Dependencies
Maintainers
2
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 2.3.4 to 3.0.0

7

dist/config.module.js

@@ -64,3 +64,6 @@ "use strict";

if (!options.ignoreEnvVars) {
config = Object.assign(Object.assign({}, config), process.env);
config = {
...config,
...process.env,
};
}

@@ -169,3 +172,3 @@ if (options.validate) {

config =
(0, dotenv_expand_1.expand)(Object.assign(Object.assign({}, expandOptions), { parsed: config })).parsed || config;
(0, dotenv_expand_1.expand)({ ...expandOptions, parsed: config }).parsed || config;
}

@@ -172,0 +175,0 @@ }

@@ -105,3 +105,3 @@ "use strict";

isGetOptionsObject(options) {
return options && (options === null || options === void 0 ? void 0 : options.infer) && Object.keys(options).length === 1;
return options && options?.infer && Object.keys(options).length === 1;
}

@@ -108,0 +108,0 @@ };

@@ -28,6 +28,2 @@ import { ConfigFactory } from './config-factory.interface';

/**
* Environment file encoding.
*/
encoding?: string;
/**
* Custom function to validate environment variables. It takes an object containing environment

@@ -34,0 +30,0 @@ * variables as input and outputs validated environment variables.

{
"name": "@nestjs/config",
"version": "2.3.4",
"version": "3.0.0",
"description": "Nest - modern, fast, powerful node.js web framework (@config)",

@@ -29,6 +29,6 @@ "author": "Kamil Mysliwiec",

"@commitlint/config-angular": "17.6.5",
"@nestjs/common": "9.4.3",
"@nestjs/core": "9.4.3",
"@nestjs/platform-express": "9.4.3",
"@nestjs/testing": "9.4.3",
"@nestjs/common": "10.0.0",
"@nestjs/core": "10.0.0",
"@nestjs/platform-express": "10.0.0",
"@nestjs/testing": "10.0.0",
"@types/jest": "29.5.2",

@@ -51,3 +51,2 @@ "@types/lodash": "4.14.195",

"rimraf": "5.0.1",
"rxjs": "7.8.1",
"ts-jest": "29.1.0",

@@ -57,5 +56,4 @@ "typescript": "5.1.3"

"peerDependencies": {
"@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^6.0.0 || ^7.2.0"
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0",
"reflect-metadata": "^0.1.13"
},

@@ -62,0 +60,0 @@ "lint-staged": {

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