Comparing version 1.0.3 to 1.1.0
{ | ||
"name": "cross-var", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "", | ||
@@ -17,2 +17,12 @@ "main": "index.js", | ||
}, | ||
"keywords": [ | ||
"npm-scripts" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/elijahmanor/cross-var" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/elijahmanor/cross-var/issues" | ||
}, | ||
"dependencies": { | ||
@@ -19,0 +29,0 @@ "babel-preset-es2015": "^6.18.0", |
@@ -10,6 +10,8 @@ #!/usr/bin/env node --harmony | ||
return args.map( arg => { | ||
Object.keys( process.env ).forEach( key => { | ||
const regex = new RegExp( `\\$${ key }|%${ key }%`, "i" ); | ||
arg = arg.replace( regex, process.env[ key ] ); | ||
} ); | ||
Object.keys( process.env ) | ||
.sort( ( x, y ) => x.length < y.length ) // sort by descending length to prevent partial replacement | ||
.forEach( key => { | ||
const regex = new RegExp( `\\$${ key }|%${ key }%`, "ig" ); | ||
arg = arg.replace( regex, process.env[ key ] ); | ||
} ); | ||
return arg; | ||
@@ -16,0 +18,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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
8853
41
1
2