Comparing version 0.0.4 to 0.0.5
@@ -196,2 +196,5 @@ var _ = require('underscore'); | ||
Asynk.prototype.add = function(fct) { | ||
if ( _.isUndefined(fct) || !_.isFunction(fct) ) { | ||
throw new Error('Asynk add require a function as argument'); | ||
} | ||
var newId = this.tasks.length; | ||
@@ -204,2 +207,5 @@ this.tasks[newId] = new Task(this, newId, fct); | ||
Asynk.prototype.each = function(datas, fct) { | ||
if ( _.isUndefined(fct) || !_.isFunction(fct) ) { | ||
throw new Error('Asynk each require a function as second argument'); | ||
} | ||
var self = this; | ||
@@ -206,0 +212,0 @@ self.currentTasks = []; |
{ | ||
"name": "asynk", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "flow control library for javascript", | ||
@@ -5,0 +5,0 @@ "main": "asynk.js", |
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
26487
509