New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nestjs-any-config

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-any-config - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

9

dist/config.constants.d.ts
export declare const CONFIGURATION_SERVICE_TOKEN: unique symbol;
export declare const CONFIGURATION_TOKEN = "CONFIGURATION_TOKEN";
export declare const CONFIGURATION_KEY = "CONFIGURATION_KEY";
export declare const CONFIGURATION_CONTENT_INITIALIZATION = "CONFIGURATION_CONTENT_INITIALIZATION";
export declare const CONFIGURATION_LOADER = "CONFIGURATION_LOADER";
export declare const CONFIGURATION_TOKEN: unique symbol;
export declare const VALIDATED_CONFIGURATION_KEY = "CONFIGURATION_KEY";
export declare const VALIDATED_CONFIGURATION_TOKEN: unique symbol;
export declare const CONFIGURATION_CONTENT_INITIALIZATION: unique symbol;
export declare const CONFIGURATION_LOADER: unique symbol;
export declare const PARTIAL_CONFIGURATION_KEY = "PARTIAL_CONFIGURATION_KEY";
export declare const PARTIAL_CONFIGURATION_PROPNAME = "KEY";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PARTIAL_CONFIGURATION_PROPNAME = exports.PARTIAL_CONFIGURATION_KEY = exports.CONFIGURATION_LOADER = exports.CONFIGURATION_CONTENT_INITIALIZATION = exports.CONFIGURATION_KEY = exports.CONFIGURATION_TOKEN = exports.CONFIGURATION_SERVICE_TOKEN = void 0;
exports.PARTIAL_CONFIGURATION_PROPNAME = exports.PARTIAL_CONFIGURATION_KEY = exports.CONFIGURATION_LOADER = exports.CONFIGURATION_CONTENT_INITIALIZATION = exports.VALIDATED_CONFIGURATION_TOKEN = exports.VALIDATED_CONFIGURATION_KEY = exports.CONFIGURATION_TOKEN = exports.CONFIGURATION_SERVICE_TOKEN = void 0;
exports.CONFIGURATION_SERVICE_TOKEN = Symbol('CONFIG_SERVICE');
exports.CONFIGURATION_TOKEN = 'CONFIGURATION_TOKEN';
exports.CONFIGURATION_KEY = 'CONFIGURATION_KEY';
exports.CONFIGURATION_CONTENT_INITIALIZATION = 'CONFIGURATION_CONTENT_INITIALIZATION';
exports.CONFIGURATION_LOADER = 'CONFIGURATION_LOADER';
exports.CONFIGURATION_TOKEN = Symbol('CONFIGURATION_TOKEN');
exports.VALIDATED_CONFIGURATION_KEY = 'CONFIGURATION_KEY';
exports.VALIDATED_CONFIGURATION_TOKEN = Symbol('VALIDATED_CONFIGURATION_TOKEN');
exports.CONFIGURATION_CONTENT_INITIALIZATION = Symbol('CONFIGURATION_CONTENT_INITIALIZATION');
exports.CONFIGURATION_LOADER = Symbol('CONFIGURATION_LOADER');
exports.PARTIAL_CONFIGURATION_KEY = 'PARTIAL_CONFIGURATION_KEY';
exports.PARTIAL_CONFIGURATION_PROPNAME = 'KEY';

@@ -49,6 +49,13 @@ "use strict";

useFactory: (configHost) => {
configHost[config_constants_1.CONFIGURATION_KEY] = config;
configHost[config_constants_1.VALIDATED_CONFIGURATION_KEY] = config;
},
inject: [config_constants_1.CONFIGURATION_TOKEN],
},
{
provide: config_constants_1.VALIDATED_CONFIGURATION_TOKEN,
useFactory: (configHost) => {
return configHost[config_constants_1.VALIDATED_CONFIGURATION_KEY];
},
inject: [config_constants_1.CONFIGURATION_TOKEN, config_constants_1.CONFIGURATION_CONTENT_INITIALIZATION],
},
];

@@ -55,0 +62,0 @@ return {

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

get(propertyPath, defaultValue) {
const configValue = lodash_get_1.default(this.internalConfig[config_constants_1.CONFIGURATION_KEY], propertyPath);
const configValue = lodash_get_1.default(this.internalConfig[config_constants_1.VALIDATED_CONFIGURATION_KEY], propertyPath);
if (!util_1.isUndefined(configValue)) {

@@ -31,0 +31,0 @@ return configValue;

@@ -5,2 +5,2 @@ export * from './config.module';

export * from './utils';
export { CONFIGURATION_TOKEN } from './config.constants';
export { VALIDATED_CONFIGURATION_TOKEN } from './config.constants';

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.CONFIGURATION_TOKEN = void 0;
exports.VALIDATED_CONFIGURATION_TOKEN = void 0;
__exportStar(require("./config.module"), exports);

@@ -20,2 +20,2 @@ __exportStar(require("./config.service"), exports);

var config_constants_1 = require("./config.constants");
Object.defineProperty(exports, "CONFIGURATION_TOKEN", { enumerable: true, get: function () { return config_constants_1.CONFIGURATION_TOKEN; } });
Object.defineProperty(exports, "VALIDATED_CONFIGURATION_TOKEN", { enumerable: true, get: function () { return config_constants_1.VALIDATED_CONFIGURATION_TOKEN; } });
{
"name": "nestjs-any-config",
"version": "0.7.0",
"version": "0.8.0",
"description": "A module for NestJS that support JSON and dotenv (maybe more?) config files.",

@@ -5,0 +5,0 @@ "author": "Aaron Jan",

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