Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cross-env

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-env - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

src/command.js

8

dist/index.js

@@ -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();

4

package.json
{
"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 @@ );

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