Socket
Socket
Sign inDemoInstall

confit

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confit - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

6

dist/lib/provider.js

@@ -107,3 +107,7 @@ "use strict";

result[env] = process.env[env];
//env:env is decided by process.env.NODE_ENV.
//Not allowing process.env.env to override the env:env value.
if (env !== "env") {
result[env] = process.env[env];
}
}

@@ -110,0 +114,0 @@ } catch (err) {

7

lib/provider.js

@@ -50,3 +50,7 @@ /*───────────────────────────────────────────────────────────────────────────*\

for (let env of Object.keys(process.env)) {
result[env] = process.env[env];
//env:env is decided by process.env.NODE_ENV.
//Not allowing process.env.env to override the env:env value.
if (env !== 'env') {
result[env] = process.env[env];
}
}

@@ -83,2 +87,1 @@

}
{
"name": "confit",
"version": "2.0.3",
"version": "2.0.4",
"description": "Environment-aware configuration.",

@@ -49,4 +49,4 @@ "main": "dist/index.js",

"shortstop-handlers": "^1.0.0",
"shush": "~0.0.1"
"shush": "^1.0.0"
}
}

@@ -6,3 +6,3 @@ confit

[![Build Status](https://travis-ci.org/krakenjs/confit.svg?branch=master)](https://travis-ci.org/krakenjs/confit)
[![Build Status](https://travis-ci.org/krakenjs/confit.svg?branch=2.x)](https://travis-ci.org/krakenjs/confit)

@@ -12,6 +12,7 @@ Simple, environment-based configuration. `confit` loads a default JSON

It will also process the loaded files using any configured
[shortstop](https://github.com/paypal/shortstop) protocol handlers.
(See **Options** below.)
[shortstop](https://github.com/paypal/shortstop) protocol handlers—see **Options** below.
`confit` adds support for adding JavaScript-style comments in your json files as each file is processed by [shush](https://github.com/totherik/shush) before being merged into your config.
## Usage

@@ -18,0 +19,0 @@ ```javascript

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