Comparing version 3.1.1 to 3.1.2
'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
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
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
248592
27
5632
41
+ Addedcompare-versions@3.4.0
+ Addedmoment@2.22.2
+ Addedcompare-versions@3.4.0(transitive)
+ Addedmoment@2.22.2(transitive)
- Removedprogress@1.1.8
- Removedprogress@1.1.8(transitive)