cross-conf-env
Advanced tools
Comparing version 1.0.3 to 1.0.4
# ChangeLog | ||
## 1.0.4 | ||
* Change | ||
* [Supporting replacement of parameters including multiple variables](https://github.com/akabekobeko/npm-cross-conf-env/issues/9) | ||
## 1.0.3 | ||
* Fix | ||
* ["config" in the description of package.json is in the "conf"](https://github.com/akabekobeko/npm-cross-conf-env/issues/6) | ||
* [Change the cross-conf-env of samples from the dependencies in devDependencies](https://github.com/akabekobeko/npm-cross-conf-env/issues/7) | ||
* [Files remain from a xlsx-extractor to examples](https://github.com/akabekobeko/npm-cross-conf-env/issues/8) | ||
## 1.0.2 | ||
* Fix | ||
* ["config" is "conf" in package.json sample of README](https://github.com/akabekobeko/npm-cross-conf-env/issues/5) | ||
## 1.0.1 | ||
@@ -4,0 +21,0 @@ |
@@ -104,11 +104,8 @@ 'use strict'; | ||
var newArg = arg; | ||
_this._keys.some(function (key) { | ||
_this._keys.forEach(function (key) { | ||
var pettern = '%' + key + '%|\\$' + key + '|' + key; | ||
var regexp = new RegExp(pettern); | ||
if (regexp.test(arg)) { | ||
newArg = arg.replace(regexp, String(process.env[key])); | ||
return true; | ||
if (regexp.test(newArg)) { | ||
newArg = newArg.replace(regexp, String(process.env[key])); | ||
} | ||
return false; | ||
}); | ||
@@ -115,0 +112,0 @@ |
{ | ||
"name": "cross-conf-env", | ||
"description": "To cross-platform the config & root variable reference of package.json in npm-scripts.", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"author": "akabeko", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
8193
126