Comparing version 3.0.0 to 3.1.0
@@ -9,4 +9,10 @@ 'use strict'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _crossSpawn = require('cross-spawn'); | ||
var _command = require('./command'); | ||
var _command2 = _interopRequireDefault(_command); | ||
exports['default'] = crossEnv; | ||
@@ -45,3 +51,3 @@ | ||
var envVars = Object.assign({}, process.env); | ||
var commandArgs = args.slice(); | ||
var commandArgs = args.slice().map(_command2['default']); | ||
while (commandArgs.length) { | ||
@@ -48,0 +54,0 @@ var shifted = commandArgs.shift(); |
{ | ||
"name": "cross-env", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Run commands that set environment variables across platforms", | ||
@@ -18,3 +18,3 @@ "main": "src/index.js", | ||
"test:watch": "mocha src/*.test.js -w --compilers js:babel/register", | ||
"test": "istanbul cover -x *.test.js node_modules/mocha/bin/_mocha -- -R spec src/index.test.js --compilers js:babel/register", | ||
"test": "istanbul cover -x *.test.js node_modules/mocha/bin/_mocha -- -R spec src/*.test.js --compilers js:babel/register", | ||
"prepublish": "npm run build", | ||
@@ -21,0 +21,0 @@ "semantic-release": "semantic-release pre && npm publish && semantic-release post" |
import {spawn} from 'cross-spawn'; | ||
import commandConvert from './command'; | ||
export default crossEnv; | ||
@@ -19,3 +20,3 @@ | ||
const envVars = Object.assign({}, process.env); | ||
const commandArgs = args.slice(); | ||
const commandArgs = args.slice().map(commandConvert); | ||
while (commandArgs.length) { | ||
@@ -22,0 +23,0 @@ const shifted = commandArgs.shift(); |
@@ -5,3 +5,2 @@ import chai from 'chai'; | ||
import proxyquire from 'proxyquire'; | ||
import assign from 'lodash.assign'; | ||
chai.use(sinonChai); | ||
@@ -97,3 +96,3 @@ | ||
} | ||
assign(env, expected); | ||
Object.assign(env, expected); | ||
expect(ret, 'returns what spawn returns').to.equal(spawned); | ||
@@ -104,3 +103,3 @@ expect(proxied['cross-spawn'].spawn).to.have.been.calledOnce; | ||
stdio: 'inherit', | ||
env: assign({}, process.env, env) | ||
env: Object.assign({}, process.env, env) | ||
} | ||
@@ -107,0 +106,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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
16192
14
235
1