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

cypress

Package Overview
Dependencies
Maintainers
2
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

types/moment.d.ts

9

lib/exec/spawn.js
'use strict';
var _ = require('lodash');
var os = require('os');
var cp = require('child_process');

@@ -21,12 +20,8 @@ var path = require('path');

function isPlatform(platform) {
return os.platform() === platform;
}
function needsStderrPiped(needsXvfb) {
return isPlatform('darwin') || needsXvfb && isPlatform('linux');
return util.isPlatform('darwin') || needsXvfb && util.isPlatform('linux');
}
function needsEverythingPipedDirectly() {
return isPlatform('win32');
return util.isPlatform('win32');
}

@@ -33,0 +28,0 @@

@@ -22,2 +22,3 @@ 'use strict';

var debug = require('debug')('cypress:cli');
var compareVersions = require('compare-versions');

@@ -74,3 +75,4 @@ var getosAsync = Promise.promisify(getos);

return value ? '1' : '0';
}).value();
}).extend(util.getNode11WindowsFix()) // the value has to be falsy, '0' as a string not good enoughs
.value();
},

@@ -84,2 +86,9 @@ getForceTty: function getForceTty() {

},
getNode11WindowsFix: function getNode11WindowsFix() {
if (compareVersions(util.getNodeVersion(), 'v11') >= 0 && util.isPlatform('win32')) {
return {
windowsHide: false
};
}
},
getEnvColors: function getEnvColors() {

@@ -94,2 +103,8 @@ var sc = util.supportsColor();

},
getNodeVersion: function getNodeVersion() {
return process.version;
},
isPlatform: function isPlatform(platform) {
return os.platform() === platform;
},
isTty: function isTty(fd) {

@@ -96,0 +111,0 @@ return tty.isatty(fd);

{
"name": "cypress",
"version": "3.1.1",
"version": "3.1.2",
"main": "index.js",

@@ -41,2 +41,3 @@ "bin": {

"common-tags": "1.4.0",
"compare-versions": "3.4.0",
"debug": "3.1.0",

@@ -56,3 +57,3 @@ "execa": "0.10.0",

"minimist": "1.2.0",
"progress": "1.1.8",
"moment": "2.22.2",
"ramda": "0.24.1",

@@ -59,0 +60,0 @@ "request": "2.87.0",

Sorry, the diff of this file is too big to display

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