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 3.0.0 to 3.0.1

19

dist/config.service.js

@@ -14,2 +14,5 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -19,3 +22,5 @@ exports.ConfigService = void 0;

const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
const lodash_1 = require("lodash");
const get_1 = __importDefault(require("lodash/get"));
const has_1 = __importDefault(require("lodash/has"));
const set_1 = __importDefault(require("lodash/set"));
const config_constants_1 = require("./config.constants");

@@ -77,3 +82,3 @@ let ConfigService = exports.ConfigService = class ConfigService {

getFromCache(propertyPath, defaultValue) {
const cachedValue = (0, lodash_1.get)(this.cache, propertyPath);
const cachedValue = (0, get_1.default)(this.cache, propertyPath);
return (0, shared_utils_1.isUndefined)(cachedValue)

@@ -84,3 +89,3 @@ ? defaultValue

getFromValidatedEnv(propertyPath) {
const validatedEnvValue = (0, lodash_1.get)(this.internalConfig[config_constants_1.VALIDATED_ENV_PROPNAME], propertyPath);
const validatedEnvValue = (0, get_1.default)(this.internalConfig[config_constants_1.VALIDATED_ENV_PROPNAME], propertyPath);
return validatedEnvValue;

@@ -90,7 +95,7 @@ }

if (this.isCacheEnabled &&
(0, lodash_1.has)(this.cache, propertyPath)) {
(0, has_1.default)(this.cache, propertyPath)) {
const cachedValue = this.getFromCache(propertyPath, defaultValue);
return !(0, shared_utils_1.isUndefined)(cachedValue) ? cachedValue : defaultValue;
}
const processValue = (0, lodash_1.get)(process.env, propertyPath);
const processValue = (0, get_1.default)(process.env, propertyPath);
this.setInCacheIfDefined(propertyPath, processValue);

@@ -100,3 +105,3 @@ return processValue;

getFromInternalConfig(propertyPath) {
const internalValue = (0, lodash_1.get)(this.internalConfig, propertyPath);
const internalValue = (0, get_1.default)(this.internalConfig, propertyPath);
return internalValue;

@@ -108,3 +113,3 @@ }

}
(0, lodash_1.set)(this.cache, propertyPath, value);
(0, set_1.default)(this.cache, propertyPath, value);
}

@@ -111,0 +116,0 @@ isGetOptionsObject(options) {

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.mergeConfigObject = void 0;
const lodash_1 = require("lodash");
const set_1 = __importDefault(require("lodash/set"));
function mergeConfigObject(host, partial, token) {
if (token) {
(0, lodash_1.set)(host, token, partial);
(0, set_1.default)(host, token, partial);
return partial;

@@ -9,0 +12,0 @@ }

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

@@ -21,3 +21,3 @@ "author": "Kamil Mysliwiec",

"dependencies": {
"dotenv": "16.1.4",
"dotenv": "16.3.1",
"dotenv-expand": "10.0.0",

@@ -28,27 +28,27 @@ "lodash": "4.17.21",

"devDependencies": {
"@commitlint/cli": "17.6.5",
"@commitlint/config-angular": "17.6.5",
"@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",
"@types/lodash": "4.14.195",
"@types/node": "18.16.18",
"@types/uuid": "9.0.2",
"@typescript-eslint/eslint-plugin": "5.59.11",
"@typescript-eslint/parser": "5.59.11",
"eslint": "8.42.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.27.5",
"@commitlint/cli": "17.7.1",
"@commitlint/config-angular": "17.7.0",
"@nestjs/common": "10.2.3",
"@nestjs/core": "10.2.3",
"@nestjs/platform-express": "10.2.3",
"@nestjs/testing": "10.2.3",
"@types/jest": "29.5.4",
"@types/lodash": "4.14.197",
"@types/node": "18.17.12",
"@types/uuid": "9.0.3",
"@typescript-eslint/eslint-plugin": "6.5.0",
"@typescript-eslint/parser": "6.5.0",
"eslint": "8.48.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.28.1",
"husky": "8.0.3",
"jest": "29.5.0",
"joi": "17.9.2",
"lint-staged": "13.2.2",
"prettier": "2.8.8",
"jest": "29.6.4",
"joi": "17.10.0",
"lint-staged": "14.0.1",
"prettier": "3.0.3",
"reflect-metadata": "0.1.13",
"release-it": "15.11.0",
"release-it": "16.1.5",
"rimraf": "5.0.1",
"ts-jest": "29.1.0",
"typescript": "5.1.3"
"ts-jest": "29.1.1",
"typescript": "5.2.2"
},

@@ -55,0 +55,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