standard
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -6,2 +6,6 @@ # Change Log | ||
## 7.1.1 - 2016-05-26 | ||
- Add back full node 0.10, 0.12 support | ||
## 7.1.0 - 2016-05-16 | ||
@@ -8,0 +12,0 @@ |
{ | ||
"name": "standard", | ||
"description": "JavaScript Standard Style", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"author": { | ||
@@ -25,3 +25,3 @@ "email": "feross@feross.org", | ||
"babel-eslint": "^6.0.0", | ||
"cross-spawn-async": "^2.1.8", | ||
"cross-spawn": "^3.0.1", | ||
"minimist": "^1.2.0", | ||
@@ -28,0 +28,0 @@ "mkdirp": "^0.5.1", |
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
var crossSpawnAsync = require('cross-spawn-async') | ||
var crossSpawn = require('cross-spawn') | ||
var fs = require('fs') | ||
@@ -72,3 +72,3 @@ var minimist = require('minimist') | ||
return function (cb) { | ||
fs.access(path.join(TMP, name), fs.R_OK | fs.W_OK, function (err) { | ||
access(path.join(TMP, name), fs.R_OK | fs.W_OK, function (err) { | ||
if (argv.offline) { | ||
@@ -127,3 +127,3 @@ if (err) { | ||
var child = crossSpawnAsync(command, args, opts) | ||
var child = crossSpawn(command, args, opts) | ||
child.on('error', cb) | ||
@@ -136,1 +136,14 @@ child.on('close', function (code) { | ||
} | ||
function access (path, mode, callback) { | ||
if (typeof mode === 'function') { | ||
return access(path, null, callback) | ||
} | ||
// Node v0.10 lacks `fs.access`, which is faster, so fallback to `fs.stat` | ||
if (typeof fs.access === 'function') { | ||
fs.access(path, mode, callback) | ||
} else { | ||
fs.stat(path, callback) | ||
} | ||
} |
var path = require('path') | ||
var test = require('tape') | ||
var crossSpawnAsync = require('cross-spawn-async') | ||
var crossSpawn = require('cross-spawn') | ||
@@ -10,3 +10,3 @@ var CMD_PATH = path.join(__dirname, '..', 'bin', 'cmd.js') | ||
var child = crossSpawnAsync(CMD_PATH, ['--help']) | ||
var child = crossSpawn(CMD_PATH, ['--help']) | ||
child.on('error', function (err) { | ||
@@ -13,0 +13,0 @@ t.fail(err) |
Sorry, the diff of this file is not supported yet
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
57484
184