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.0.9 to 0.1.0

10

dist/config.module.js

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

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConfigModule_1;

@@ -20,2 +23,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

const dotenv = __importStar(require("dotenv"));
const dotenv_expand_1 = __importDefault(require("dotenv-expand"));
const fs = __importStar(require("fs"));

@@ -106,2 +110,8 @@ const path_1 = require("path");

const config = dotenv.parse(fs.readFileSync(envFilePath));
if (options.expandVariables) {
const configExpandedVars = {
parsed: config,
};
return dotenv_expand_1.default(configExpandedVars).parsed || {};
}
return config;

@@ -108,0 +118,0 @@ }

1

dist/interfaces/config-module-options.interface.d.ts

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

load?: Array<ConfigFactory>;
expandVariables?: boolean;
}

16

package.json
{
"name": "@nestjs/config",
"version": "0.0.9",
"version": "0.1.0",
"description": "Nest - modern, fast, powerful node.js web framework (@config)",

@@ -18,8 +18,9 @@ "author": "Kamil Mysliwiec",

"dotenv": "8.2.0",
"dotenv-expand": "5.1.0",
"lodash.get": "4.4.2",
"lodash.set": "4.3.2",
"uuid": "3.3.3"
"uuid": "3.4.0"
},
"devDependencies": {
"@hapi/joi": "17.0.0",
"@hapi/joi": "17.1.0",
"@nestjs/common": "6.10.14",

@@ -29,5 +30,4 @@ "@nestjs/core": "6.10.14",

"@nestjs/testing": "6.10.14",
"@types/dotenv": "8.2.0",
"@types/hapi__joi": "16.0.6",
"@types/jest": "24.0.25",
"@types/jest": "24.9.0",
"@types/lodash.get": "4.4.6",

@@ -37,5 +37,5 @@ "@types/lodash.set": "4.3.6",

"@types/uuid": "3.4.6",
"husky": "4.0.0",
"husky": "4.0.10",
"jest": "24.9.0",
"lint-staged": "9.5.0",
"lint-staged": "10.0.0",
"prettier": "1.19.1",

@@ -46,3 +46,3 @@ "reflect-metadata": "0.1.13",

"ts-jest": "24.3.0",
"typescript": "3.7.4"
"typescript": "3.7.5"
},

@@ -49,0 +49,0 @@ "peerDependencies": {

@@ -29,3 +29,3 @@ <p align="center">

Configuration module for [Nest](https://github.com/nestjs/nest) based on [dotenv](https://github.com/motdotla/dotenv) (to load process environment variables).
Configuration module for [Nest](https://github.com/nestjs/nest) based on the [dotenv](https://github.com/motdotla/dotenv) (to load process environment variables) package.

@@ -48,3 +48,3 @@ ## Installation

- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)

@@ -51,0 +51,0 @@ - Twitter - [@nestframework](https://twitter.com/nestframework)

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