New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cross-conf-env

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-conf-env - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

17

CHANGELOG.md
# 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 @@

9

lib/cross-conf-env.js

@@ -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",

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