loose-envify
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "loose-envify", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST", | ||
@@ -17,2 +17,5 @@ "keywords": [ | ||
"author": "Andres Suarez <zertosh@gmail.com>", | ||
"bin": { | ||
"loose-envify": "cli.js" | ||
}, | ||
"repository": { | ||
@@ -19,0 +22,0 @@ "type": "git", |
@@ -23,3 +23,3 @@ # loose-envify | ||
loose-envify has the exact same interface as [envify](https://github.com/hughsk/envify). | ||
loose-envify has the exact same interface as [envify](https://github.com/hughsk/envify), including the CLI. | ||
@@ -26,0 +26,0 @@ ## Benchmark |
@@ -13,3 +13,3 @@ 'use strict'; | ||
var out = ''; | ||
var out = []; | ||
var purge = envs.some(function(env) { | ||
@@ -34,3 +34,3 @@ return env._ && env._.indexOf('purge') !== -1; | ||
typeof replacement === 'string') { | ||
out += replacement; | ||
out.push(replacement); | ||
i += 4; | ||
@@ -40,6 +40,6 @@ continue; | ||
} | ||
out += parts[i]; | ||
out.push(parts[i]); | ||
} | ||
return out; | ||
return out.join(''); | ||
} | ||
@@ -46,0 +46,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4655
8
101
3