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.1.0 to 0.2.0

.commitlintrc.json

3

dist/config.constants.d.ts
export declare const CONFIGURATION_SERVICE_TOKEN: unique symbol;
export declare const CONFIGURATION_TOKEN = "CONFIGURATION_TOKEN";
export declare const CONFIGURATION_LOADER = "CONFIGURATION_LOADER";
export declare const PARTIAL_CONFIGURATION_KEY = "PARTIAL_CONFIGURATION";
export declare const PARTIAL_CONFIGURATION_KEY = "PARTIAL_CONFIGURATION_KEY";
export declare const PARTIAL_CONFIGURATION_PROPNAME = "KEY";

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

exports.CONFIGURATION_LOADER = 'CONFIGURATION_LOADER';
exports.PARTIAL_CONFIGURATION_KEY = 'PARTIAL_CONFIGURATION';
exports.PARTIAL_CONFIGURATION_KEY = 'PARTIAL_CONFIGURATION_KEY';
exports.PARTIAL_CONFIGURATION_PROPNAME = 'KEY';

@@ -14,3 +14,3 @@ import { DynamicModule } from '@nestjs/common';

})[];
exports: (typeof ConfigService)[];
exports: (string | symbol | Function)[];
};

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

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

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

@@ -102,3 +102,3 @@ }

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

@@ -105,0 +105,0 @@ }

export * from './config.module';
export * from './config.service';
export * from './types';
export * from './utils';
declare type ConfigFactoryReturnValue = Record<string, any> | Promise<Record<string, any>>;
export declare type ConfigFactory = () => ConfigFactoryReturnValue;
export declare type ConfigFactory<T extends ConfigFactoryReturnValue = ConfigFactoryReturnValue> = () => T;
export {};
import { FactoryProvider } from '@nestjs/common/interfaces';
import { ConfigFactory } from '../interfaces';
export declare function createConfigProvider(factory: ConfigFactory): FactoryProvider;
import { ConfigFactoryKeyHost } from './register-as.util';
export declare function createConfigProvider(factory: ConfigFactory & ConfigFactoryKeyHost): FactoryProvider;
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const v4_1 = __importDefault(require("uuid/v4"));
const get_config_token_util_1 = require("./get-config-token.util");
function createConfigProvider(factory) {
const uniqId = v4_1.default();
return {
provide: get_config_token_util_1.getConfigToken(uniqId),
provide: factory.KEY,
useFactory: factory,

@@ -13,0 +7,0 @@ inject: [],

import { ConfigFactory } from '../interfaces';
export declare function registerAs(token: string, configFactory: ConfigFactory): ConfigFactory;
export declare type ConfigFactoryKeyHost = {
KEY: string;
};
export declare function registerAs<T extends ConfigFactory = ConfigFactory>(token: string, configFactory: T): T & ConfigFactoryKeyHost;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const config_constants_1 = require("../config.constants");
const get_config_token_util_1 = require("./get-config-token.util");
function registerAs(token, configFactory) {

@@ -11,4 +12,10 @@ Object.defineProperty(configFactory, config_constants_1.PARTIAL_CONFIGURATION_KEY, {

});
Object.defineProperty(configFactory, config_constants_1.PARTIAL_CONFIGURATION_PROPNAME, {
configurable: false,
enumerable: false,
value: get_config_token_util_1.getConfigToken(token),
writable: false,
});
return configFactory;
}
exports.registerAs = registerAs;
{
"name": "@nestjs/config",
"version": "0.1.0",
"version": "0.2.0",
"description": "Nest - modern, fast, powerful node.js web framework (@config)",

@@ -10,2 +10,3 @@ "author": "Kamil Mysliwiec",

"build": "rimraf -rf dist && tsc -p tsconfig.json",
"lint": "eslint 'lib/**/*.ts' --fix",
"prepublish:npm": "npm run build",

@@ -15,3 +16,5 @@ "publish:npm": "npm publish --access public",

"publish:next": "npm publish --access public --tag next",
"test:integration": "jest --config ./tests/jest-e2e.json --runInBand"
"test:integration": "jest --config ./tests/jest-e2e.json --runInBand",
"prerelease": "npm run build",
"release": "release-it"
},

@@ -26,21 +29,29 @@ "dependencies": {

"devDependencies": {
"@commitlint/cli": "8.3.5",
"@commitlint/config-angular": "8.3.4",
"@hapi/joi": "17.1.0",
"@nestjs/common": "6.10.14",
"@nestjs/core": "6.10.14",
"@nestjs/platform-express": "6.10.14",
"@nestjs/testing": "6.10.14",
"@types/hapi__joi": "16.0.6",
"@types/jest": "24.9.0",
"@nestjs/common": "6.11.5",
"@nestjs/core": "6.11.5",
"@nestjs/platform-express": "6.11.5",
"@nestjs/testing": "6.11.5",
"@types/hapi__joi": "16.0.9",
"@types/jest": "25.1.1",
"@types/lodash.get": "4.4.6",
"@types/lodash.set": "4.3.6",
"@types/node": "7.10.8",
"@types/uuid": "3.4.6",
"husky": "4.0.10",
"jest": "24.9.0",
"lint-staged": "10.0.0",
"@typescript-eslint/eslint-plugin": "2.19.0",
"@typescript-eslint/parser": "2.19.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.0",
"eslint-plugin-import": "2.20.1",
"release-it": "12.4.3",
"@types/uuid": "3.4.7",
"husky": "4.2.1",
"jest": "25.1.0",
"lint-staged": "10.0.7",
"prettier": "1.19.1",
"reflect-metadata": "0.1.13",
"rimraf": "3.0.0",
"rimraf": "3.0.1",
"rxjs": "6.5.4",
"ts-jest": "24.3.0",
"ts-jest": "25.2.0",
"typescript": "3.7.5"

@@ -55,4 +66,3 @@ },

"*.ts": [
"prettier --write",
"git add"
"prettier --write"
]

@@ -62,2 +72,3 @@ },

"hooks": {
"commit-msg": "commitlint -c .commitlintrc.json -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"

@@ -64,0 +75,0 @@ }

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