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.0.0 to 2.0.1

10

dist/types/path-value.type.d.ts

@@ -1,4 +0,10 @@

export declare type PathImpl<T, Key extends keyof T> = Key extends string ? T[Key] extends Record<string, any> ? `${Key}.${PathImpl<T[Key], Exclude<keyof T[Key], keyof any[]>> & string}` | `${Key}.${Exclude<keyof T[Key], keyof any[]> & string}` : never : never;
/**
* Evaluates to `true` if `T` is `any`. `false` otherwise.
* (c) https://stackoverflow.com/a/68633327/5290447
*/
declare type IsAny<T> = unknown extends T ? [keyof T] extends [never] ? false : true : false;
export declare type PathImpl<T, Key extends keyof T> = Key extends string ? IsAny<T[Key]> extends true ? never : T[Key] extends Record<string, any> ? `${Key}.${PathImpl<T[Key], Exclude<keyof T[Key], keyof any[]>> & string}` | `${Key}.${Exclude<keyof T[Key], keyof any[]> & string}` : never : never;
export declare type PathImpl2<T> = PathImpl<T, keyof T> | keyof T;
export declare type Path<T> = keyof T extends string ? PathImpl2<T> extends string | keyof T ? PathImpl2<T> : keyof T : never;
export declare type Path<T> = keyof T extends string ? PathImpl2<T> extends infer P ? P extends string | keyof T ? P : keyof T : keyof T : never;
export declare type PathValue<T, P extends Path<T>> = P extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? Rest extends Path<T[Key]> ? PathValue<T[Key], Rest> : never : never : P extends keyof T ? T[P] : never;
export {};

3

dist/utils/create-config-factory.util.js

@@ -7,5 +7,4 @@ "use strict";

function createConfigProvider(factory) {
const uniqId = (0, uuid_1.v4)();
return {
provide: factory.KEY || (0, get_config_token_util_1.getConfigToken)(uniqId),
provide: factory.KEY || (0, get_config_token_util_1.getConfigToken)((0, uuid_1.v4)()),
useFactory: factory,

@@ -12,0 +11,0 @@ inject: [],

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

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

"dependencies": {
"dotenv": "16.0.0",
"dotenv-expand": "8.0.2",
"dotenv": "16.0.1",
"dotenv-expand": "8.0.3",
"lodash": "4.17.21",

@@ -28,28 +28,28 @@ "uuid": "8.3.2"

"devDependencies": {
"@commitlint/cli": "16.2.3",
"@commitlint/config-angular": "16.2.3",
"@nestjs/common": "8.4.1",
"@nestjs/core": "8.4.1",
"@nestjs/platform-express": "8.4.1",
"@nestjs/testing": "8.4.1",
"@types/jest": "27.4.1",
"@types/lodash": "4.14.180",
"@types/node": "16.11.26",
"@commitlint/cli": "17.0.0",
"@commitlint/config-angular": "17.0.0",
"@nestjs/common": "8.4.4",
"@nestjs/core": "8.4.5",
"@nestjs/platform-express": "8.4.5",
"@nestjs/testing": "8.4.5",
"@types/jest": "27.5.1",
"@types/lodash": "4.14.182",
"@types/node": "17.0.34",
"@types/uuid": "8.3.4",
"@typescript-eslint/eslint-plugin": "5.15.0",
"@typescript-eslint/parser": "5.15.0",
"eslint": "8.11.0",
"@typescript-eslint/eslint-plugin": "5.25.0",
"@typescript-eslint/parser": "5.25.0",
"eslint": "8.15.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.25.4",
"husky": "7.0.4",
"jest": "27.5.1",
"eslint-plugin-import": "2.26.0",
"husky": "8.0.1",
"jest": "28.1.0",
"joi": "17.6.0",
"lint-staged": "12.3.6",
"prettier": "2.6.0",
"lint-staged": "12.4.1",
"prettier": "2.6.2",
"reflect-metadata": "0.1.13",
"release-it": "14.12.5",
"release-it": "15.0.0",
"rimraf": "3.0.2",
"rxjs": "7.5.5",
"ts-jest": "27.1.3",
"typescript": "4.6.2"
"ts-jest": "28.0.2",
"typescript": "4.6.4"
},

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