Comparing version 1.0.36 to 1.0.37
{ | ||
"name": "yow", | ||
"version": "1.0.36", | ||
"version": "1.0.37", | ||
"description": "You Only Wish module", | ||
@@ -5,0 +5,0 @@ "main": "yow.js", |
14
queue.js
@@ -70,3 +70,2 @@ var isArray = require('./yow.js').isArray; | ||
this.prequeue = function(promise) { | ||
@@ -76,10 +75,11 @@ | ||
console.log('Queue too big! Truncating.'); | ||
_queue = [promise]; | ||
} | ||
else { | ||
_queue.unshift(promise); | ||
_this.clear(); | ||
} | ||
_queue.unshift(promise); | ||
} | ||
this.enqueue = function(promise) { | ||
@@ -89,9 +89,11 @@ | ||
console.log('Queue too big! Truncating.'); | ||
_queue = [promise]; | ||
} | ||
else { | ||
_queue.push(promise); | ||
_this.clear(); | ||
} | ||
_queue.push(promise); | ||
} | ||
}; |
@@ -18,2 +18,5 @@ | ||
//queue.enqueue(print, [this, 'Hej']); | ||
//queue.enqueue(print, [this, 'Då!']); | ||
queue.dequeue().then(function() { | ||
@@ -23,3 +26,3 @@ console.log('Klar!'); | ||
.catch(function(error) { | ||
console.log(error); | ||
console.log(error.stack); | ||
}); |
43
yow.js
@@ -1,27 +0,24 @@ | ||
module.exports.sprintf = require('sprintf-js').sprintf; | ||
module.exports.extend = require('extend'); | ||
module.exports.sprintf = require('./sprintf.js'); | ||
module.exports.extend = require('./extend.js'); | ||
module.exports.isType = require('./src/is.js').isType; | ||
module.exports.isArray = require('./src/is.js').isArray; | ||
module.exports.isNumber = require('./src/is.js').isNumber; | ||
module.exports.isString = require('./src/is.js').isString; | ||
module.exports.isDate = require('./src/is.js').isDate; | ||
module.exports.isObject = require('./src/is.js').isObject; | ||
module.exports.isFunction = require('./src/is.js').isFunction; | ||
module.exports.isInteger = require('./src/is.js').isInteger; | ||
module.exports.isFloat = require('./src/is.js').isFloat; | ||
module.exports.isType = require('./is.js').isType; | ||
module.exports.isArray = require('./is.js').isArray; | ||
module.exports.isNumber = require('./is.js').isNumber; | ||
module.exports.isString = require('./is.js').isString; | ||
module.exports.isDate = require('./is.js').isDate; | ||
module.exports.isObject = require('./is.js').isObject; | ||
module.exports.isFunction = require('./is.js').isFunction; | ||
module.exports.isInteger = require('./is.js').isInteger; | ||
module.exports.isFloat = require('./is.js').isFloat; | ||
module.exports.random = require('./src/random.js').random; | ||
module.exports.range = require('./src/range.js').range; | ||
module.exports.random = require('./random.js').random; | ||
module.exports.range = require('./range.js').range; | ||
module.exports.mkdir = require('./src/fs.js').mkdir; | ||
module.exports.mkpath = require('./src/fs.js').mkpath; | ||
module.exports.fileExists = require('./src/fs.js').fileExists; | ||
module.exports.readJSON = require('./src/fs.js').readJSON; | ||
module.exports.writeJSON = require('./src/fs.js').writeJSON; | ||
module.exports.mkdir = require('./fs.js').mkdir; | ||
module.exports.mkpath = require('./fs.js').mkpath; | ||
module.exports.fileExists = require('./fs.js').fileExists; | ||
module.exports.readJSON = require('./fs.js').readJSON; | ||
module.exports.writeJSON = require('./fs.js').writeJSON; | ||
module.exports.prefixLogs = require('./src/logs.js').prefixLogs; | ||
module.exports.redirectLogs = require('./src/logs.js').redirectLogs; | ||
//module.exports.Events = require('./src/events.js'); | ||
//module.exports.Queue = require('./src/queue.js'); | ||
module.exports.prefixLogs = require('./logs.js').prefix; | ||
module.exports.redirectLogs = require('./logs.js').redirect; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
11809
286
1