Comparing version 1.3.1 to 1.3.2
@@ -20,3 +20,3 @@ /** | ||
return require(path).version; | ||
} catch (err) { | ||
} catch (_err) { | ||
return null; | ||
@@ -23,0 +23,0 @@ } |
@@ -9,11 +9,13 @@ /** | ||
var Buffer = require("buffer").Buffer; | ||
var _require = require("safe-buffer"); | ||
var _require = require("fs"); | ||
var Buffer = _require.Buffer; | ||
var openSync = _require.openSync; | ||
var closeSync = _require.closeSync; | ||
var readSync = _require.readSync; | ||
var writeSync = _require.writeSync; | ||
var _require2 = require("fs"); | ||
var openSync = _require2.openSync; | ||
var closeSync = _require2.closeSync; | ||
var readSync = _require2.readSync; | ||
var writeSync = _require2.writeSync; | ||
var MAX_BUFFER = 2048; | ||
@@ -28,3 +30,3 @@ | ||
module.exports = function copySync(src, dst) { | ||
var buffer = new Buffer(MAX_BUFFER); | ||
var buffer = Buffer.allocUnsafe(MAX_BUFFER); | ||
var bytesRead = MAX_BUFFER; | ||
@@ -31,0 +33,0 @@ var pos = 0; |
@@ -37,3 +37,5 @@ /** | ||
s.removeListener("error", done); | ||
s.destroy(); | ||
if (typeof s.destroy === "function") { | ||
s.destroy(); | ||
} | ||
}); | ||
@@ -40,0 +42,0 @@ writer.removeListener("error", done); |
@@ -179,3 +179,2 @@ /** | ||
*/ | ||
function Cpx(source, outDir, options) { | ||
@@ -182,0 +181,0 @@ (0, _classCallCheck3.default)(this, Cpx); |
@@ -55,2 +55,5 @@ /** | ||
module.exports = function () { | ||
/** | ||
* Constructor. | ||
*/ | ||
function Queue() { | ||
@@ -57,0 +60,0 @@ (0, _classCallCheck3.default)(this, Queue); |
{ | ||
"name": "cpx", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Copy file globs, watching for changes.", | ||
@@ -14,9 +14,9 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"preversion": "npm-run-all test build", | ||
"preversion": "run-s test build", | ||
"postversion": "git push && git push --tags", | ||
"clean": "rimraf bin lib test-ws", | ||
"lint": "eslint src", | ||
"build": "npm-run-all clean build:lib", | ||
"lint": "if-node-version \">=4\" eslint src", | ||
"build": "run-s clean build:lib", | ||
"build:lib": "cross-env NODE_ENV=production babel src --out-dir .", | ||
"test": "npm-run-all lint test:mocha", | ||
"test": "run-s lint test:mocha", | ||
"test:mocha": "cross-env NODE_ENV=development mocha test/*.js --compilers js:babel-register --timeout 60000", | ||
@@ -26,28 +26,30 @@ "watch": "cross-env NODE_ENV=development mocha test/*.js --compilers js:babel-register --timeout 60000 --watch --growl" | ||
"dependencies": { | ||
"babel-runtime": "^6.6.1", | ||
"chokidar": "^1.4.3", | ||
"babel-runtime": "^6.9.2", | ||
"chokidar": "^1.6.0", | ||
"duplexer": "^0.1.1", | ||
"glob": "^7.0.3", | ||
"glob2base": "0.0.12", | ||
"minimatch": "^3.0.0", | ||
"glob": "^7.0.5", | ||
"glob2base": "^0.0.12", | ||
"minimatch": "^3.0.2", | ||
"mkdirp": "^0.5.1", | ||
"resolve": "^1.1.7", | ||
"shell-quote": "^1.4.3", | ||
"safe-buffer": "^5.0.1", | ||
"shell-quote": "^1.6.1", | ||
"subarg": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.6.5", | ||
"babel-plugin-espower": "^2.1.2", | ||
"babel-plugin-transform-runtime": "^6.6.0", | ||
"babel-plugin-unassert": "^2.0.1", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-register": "^6.6.5", | ||
"cross-env": "^1.0.7", | ||
"eslint": "^2.3.0", | ||
"eslint-config-mysticatea": "^2.0.0", | ||
"mocha": "^2.4.5", | ||
"npm-run-all": "^1.5.1", | ||
"power-assert": "^1.2.0", | ||
"rimraf": "^2.5.2", | ||
"shelljs": "^0.6.0", | ||
"babel-cli": "^6.11.4", | ||
"babel-plugin-espower": "^2.3.1", | ||
"babel-plugin-transform-runtime": "^6.9.0", | ||
"babel-plugin-unassert": "^2.1.1", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-register": "^6.9.0", | ||
"cross-env": "^2.0.0", | ||
"eslint": "^3.1.1", | ||
"eslint-config-mysticatea": "^5.0.0", | ||
"if-node-version": "^1.0.0", | ||
"mocha": "^2.5.3", | ||
"npm-run-all": "^2.3.0", | ||
"power-assert": "^1.4.1", | ||
"rimraf": "^2.5.3", | ||
"shelljs": "^0.7.0", | ||
"through": "^2.3.8" | ||
@@ -54,0 +56,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
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
41689
959
11
16
+ Addedsafe-buffer@^5.0.1
+ Addedsafe-buffer@5.2.1(transitive)
Updatedbabel-runtime@^6.9.2
Updatedchokidar@^1.6.0
Updatedglob@^7.0.5
Updatedglob2base@^0.0.12
Updatedminimatch@^3.0.2
Updatedshell-quote@^1.6.1