Comparing version 1.8.3 to 1.8.4
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.1 | ||
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var balUtil, balUtilCompare, balUtilEvents, balUtilFlow, balUtilModules, balUtilPaths, balUtilTypes, key, subpackage, subpackages, value, _i, _len, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.1 | ||
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var balUtilCompare, balUtilPaths; |
@@ -1,6 +0,6 @@ | ||
// Generated by CoffeeScript 1.3.1 | ||
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
var Event, EventEmitter, EventSystem, balUtilFlow, debug, | ||
__hasProp = {}.hasOwnProperty, | ||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; }, | ||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | ||
__slice = [].slice; | ||
@@ -16,4 +16,2 @@ | ||
Event.name = 'Event'; | ||
Event.prototype.name = null; | ||
@@ -37,4 +35,2 @@ | ||
EventSystem.name = 'EventSystem'; | ||
function EventSystem() { | ||
@@ -41,0 +37,0 @@ return EventSystem.__super__.constructor.apply(this, arguments); |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.1 | ||
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
@@ -6,3 +6,3 @@ var balUtilFlow, | ||
__slice = [].slice, | ||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; }; | ||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | ||
@@ -215,2 +215,5 @@ balUtilFlow = { | ||
errors = this.errors.length !== 0 ? this.errors : null; | ||
if (this.errors.length === 1) { | ||
errors = errors[0]; | ||
} | ||
results = this.results; | ||
@@ -427,3 +430,4 @@ if (this.autoClear) { | ||
function _Class() { | ||
if (this.runnerBlock == null) { | ||
var _ref; | ||
if ((_ref = this.runnerBlock) == null) { | ||
this.runnerBlock = new balUtilFlow.Block(); | ||
@@ -430,0 +434,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.1 | ||
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
@@ -21,9 +21,12 @@ var balUtilFlow, balUtilModules, | ||
return function() { | ||
var err, errors, pid, result; | ||
var err, pid, stderr, stdout; | ||
pid = null; | ||
err = null; | ||
result = ''; | ||
errors = ''; | ||
stdout = ''; | ||
stderr = ''; | ||
if (typeof command === 'string') { | ||
pid = spawn(command, [], options); | ||
command = command.split(' '); | ||
} | ||
if (command instanceof Array) { | ||
pid = spawn(command[0], command.slice(1), options); | ||
} else { | ||
@@ -36,5 +39,5 @@ pid = spawn(command.command, command.args || [], command.options || options); | ||
if (options.output) { | ||
console.log(dataStr); | ||
process.stdout.write(dataStr); | ||
} | ||
return result += dataStr; | ||
return stdout += dataStr; | ||
}); | ||
@@ -45,12 +48,12 @@ pid.stderr.on('data', function(data) { | ||
if (options.output) { | ||
console.log(dataStr); | ||
process.stderr.write(dataStr); | ||
} | ||
return errors += dataStr; | ||
return stderr += dataStr; | ||
}); | ||
return pid.on('exit', function(code, signal) { | ||
err = null; | ||
if (errors && code === 1) { | ||
err = new Error(errors); | ||
if (code === 1) { | ||
err = new Error(stderr || 'exited with failure code'); | ||
} | ||
results.push([errors, result, code, signal]); | ||
results.push([err, stdout, stderr, code, signal]); | ||
return tasks.complete(err); | ||
@@ -57,0 +60,0 @@ }); |
@@ -1,4 +0,4 @@ | ||
// Generated by CoffeeScript 1.3.1 | ||
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
var balUtilFlow, balUtilPaths, fsUtil, pathUtil, | ||
var balUtilFlow, balUtilPaths, fsUtil, pathUtil, _ref, _ref1, _ref2, | ||
__slice = [].slice, | ||
@@ -15,11 +15,11 @@ __hasProp = {}.hasOwnProperty; | ||
if (global.numberOfOpenFiles == null) { | ||
if ((_ref = global.numberOfOpenFiles) == null) { | ||
global.numberOfOpenFiles = 0; | ||
} | ||
if (global.maxNumberOfOpenFiles == null) { | ||
if ((_ref1 = global.maxNumberOfOpenFiles) == null) { | ||
global.maxNumberOfOpenFiles = 100; | ||
} | ||
if (global.waitingToOpenFileDelay == null) { | ||
if ((_ref2 = global.waitingToOpenFileDelay) == null) { | ||
global.waitingToOpenFileDelay = 100; | ||
@@ -134,3 +134,3 @@ } | ||
var exists; | ||
exists = pathUtil.exists || fsUtil.exists; | ||
exists = fsUtil.exists || pathUtil.exists; | ||
balUtilPaths.openFile(function() { | ||
@@ -146,3 +146,3 @@ return exists(path, function(exists) { | ||
var existsSync, result; | ||
existsSync = pathUtil.existsSync || fsUtil.existsSync; | ||
existsSync = fsUtil.existsSync || pathUtil.existsSync; | ||
result = existsSync(path); | ||
@@ -235,3 +235,3 @@ return result; | ||
scandir: function() { | ||
var args, err, list, options, tasks, tree; | ||
var args, err, list, options, tasks, tree, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
@@ -257,19 +257,19 @@ list = {}; | ||
} | ||
if (options.recurse == null) { | ||
if ((_ref3 = options.recurse) == null) { | ||
options.recurse = true; | ||
} | ||
if (options.readFiles == null) { | ||
if ((_ref4 = options.readFiles) == null) { | ||
options.readFiles = false; | ||
} | ||
if (options.ignoreHiddenFiles == null) { | ||
if ((_ref5 = options.ignoreHiddenFiles) == null) { | ||
options.ignoreHiddenFiles = false; | ||
} | ||
if (options.ignorePatterns == null) { | ||
if ((_ref6 = options.ignorePatterns) == null) { | ||
options.ignorePatterns = false; | ||
} | ||
if (options.action != null) { | ||
if (options.fileAction == null) { | ||
if ((_ref7 = options.fileAction) == null) { | ||
options.fileAction = options.action; | ||
} | ||
if (options.dirAction == null) { | ||
if ((_ref8 = options.dirAction) == null) { | ||
options.dirAction = options.action; | ||
@@ -420,6 +420,6 @@ } | ||
cpdir: function() { | ||
var args, err, ignoreHiddenFiles, ignorePatterns, next, outPath, scandirOptions, srcPath, _ref; | ||
var args, err, ignoreHiddenFiles, ignorePatterns, next, outPath, scandirOptions, srcPath, _ref3; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
if (args.length === 1) { | ||
_ref = args[0], srcPath = _ref.srcPath, outPath = _ref.outPath, next = _ref.next, ignoreHiddenFiles = _ref.ignoreHiddenFiles, ignorePatterns = _ref.ignorePatterns; | ||
_ref3 = args[0], srcPath = _ref3.srcPath, outPath = _ref3.outPath, next = _ref3.next, ignoreHiddenFiles = _ref3.ignoreHiddenFiles, ignorePatterns = _ref3.ignorePatterns; | ||
} else if (args.length >= 3) { | ||
@@ -465,6 +465,6 @@ srcPath = args[0], outPath = args[1], next = args[2]; | ||
rpdir: function() { | ||
var args, err, ignoreHiddenFiles, ignorePatterns, next, outPath, scandirOptions, srcPath, _ref; | ||
var args, err, ignoreHiddenFiles, ignorePatterns, next, outPath, scandirOptions, srcPath, _ref3; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
if (args.length === 1) { | ||
_ref = args[0], srcPath = _ref.srcPath, outPath = _ref.outPath, next = _ref.next, ignoreHiddenFiles = _ref.ignoreHiddenFiles, ignorePatterns = _ref.ignorePatterns; | ||
_ref3 = args[0], srcPath = _ref3.srcPath, outPath = _ref3.outPath, next = _ref3.next, ignoreHiddenFiles = _ref3.ignoreHiddenFiles, ignorePatterns = _ref3.ignorePatterns; | ||
} else if (args.length >= 3) { | ||
@@ -471,0 +471,0 @@ srcPath = args[0], outPath = args[1], next = args[2]; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.1 | ||
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var balUtilTypes; |
{ | ||
"name": "bal-util", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"description": "Common utility functions for Node.js used and maintained by Benjamin Lupton", | ||
@@ -40,3 +40,3 @@ "homepage": "https://github.com/balupton/bal-util", | ||
"coffee-script": "1.3.x", | ||
"joe": "0.3.x" | ||
"joe": "1.0.x" | ||
}, | ||
@@ -47,5 +47,5 @@ "directories": { | ||
"scripts": { | ||
"test": "node ./out/test/everything.test.js" | ||
"test": "node ./out/test/everything.test.js --joe-reporter=list" | ||
}, | ||
"main": "./out/lib/balutil" | ||
} |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
11
59518
10
1704