Comparing version 1.0.1 to 1.0.2
@@ -17,3 +17,6 @@ "use strict"; | ||
function sleep(ms) { | ||
var nodeSetTimeout; | ||
var nodeSetTimeout, | ||
$__2, | ||
$__3, | ||
$__4; | ||
return $traceurRuntime.asyncWrap(function($ctx) { | ||
@@ -24,9 +27,25 @@ while (true) | ||
nodeSetTimeout = function(ms, cb) { | ||
setTimeout(cb, ms); | ||
return setTimeout(cb, ms); | ||
}; | ||
$ctx.state = 10; | ||
break; | ||
case 10: | ||
$__2 = Q.nfcall; | ||
$__3 = $__2.call(Q, nodeSetTimeout, ms); | ||
$ctx.state = 5; | ||
break; | ||
case 5: | ||
Promise.resolve(Q.nfcall(nodeSetTimeout, ms)).then($ctx.createCallback(-2), $ctx.errback); | ||
Promise.resolve($__3).then($ctx.createCallback(2), $ctx.errback); | ||
return; | ||
case 2: | ||
$__4 = $ctx.value; | ||
$ctx.state = 3; | ||
break; | ||
case 3: | ||
$ctx.returnValue = $__4; | ||
$ctx.state = 7; | ||
break; | ||
case 7: | ||
$ctx.state = -2; | ||
break; | ||
default: | ||
@@ -107,7 +126,3 @@ return $ctx.end(); | ||
promisey.then((function(res) { | ||
if (res instanceof Array) { | ||
cb.apply(null, $traceurRuntime.spread([null], res)); | ||
} else { | ||
cb(null, res); | ||
} | ||
cb(null, res); | ||
}), cb); | ||
@@ -117,2 +132,2 @@ } | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4uanMiLCJAdHJhY2V1ci9nZW5lcmF0ZWQvVGVtcGxhdGVQYXJzZXIvNyIsIkB0cmFjZXVyL2dlbmVyYXRlZC9UZW1wbGF0ZVBhcnNlci81IiwiQHRyYWNldXIvZ2VuZXJhdGVkL1RlbXBsYXRlUGFyc2VyLzIiLCJAdHJhY2V1ci9nZW5lcmF0ZWQvVGVtcGxhdGVQYXJzZXIvMyIsIkB0cmFjZXVyL2dlbmVyYXRlZC9UZW1wbGF0ZVBhcnNlci82Iiwi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IiwiXG4gICAgICAgICAgICAgICRjdHgucG9wVHJ5KCk7XG4gICAgICAgICAgICAgICRfX3BsYWNlaG9sZGVyX18wID0gJGN0eC5zdG9yZWRFeGNlcHRpb247Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9 |
@@ -29,11 +29,5 @@ import Q from 'q'; | ||
function nodeify (promisey, cb) { | ||
promisey.then(res => { | ||
if (res instanceof Array) { | ||
cb(null, ...res); | ||
} else { | ||
cb(null, res); | ||
} | ||
}, cb); | ||
promisey.then(res => { cb(null, res); }, cb); | ||
} | ||
export { sleep, retry, nodeify }; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "jlipps@gmail.com", | ||
@@ -12,0 +12,0 @@ "licenses": [ |
@@ -307,6 +307,5 @@ "use strict"; | ||
var start = Date.now(); | ||
nodeify(asyncFn2('foo'), (function(err, val, val2) { | ||
nodeify(asyncFn2('foo'), (function(err, val) { | ||
should.not.exist(err); | ||
val.should.equal('foo'); | ||
val2.should.equal('foofoo'); | ||
val.should.eql(['foo', 'foofoo']); | ||
(Date.now() - start).should.be.above(14); | ||
@@ -327,2 +326,2 @@ done(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNwZWNzLmpzIiwiQHRyYWNldXIvZ2VuZXJhdGVkL1RlbXBsYXRlUGFyc2VyLzEiLCJAdHJhY2V1ci9nZW5lcmF0ZWQvVGVtcGxhdGVQYXJzZXIvMTQiLCJAdHJhY2V1ci9nZW5lcmF0ZWQvVGVtcGxhdGVQYXJzZXIvMTAiLCJAdHJhY2V1ci9nZW5lcmF0ZWQvVGVtcGxhdGVQYXJzZXIvMTMiLCJAdHJhY2V1ci9nZW5lcmF0ZWQvVGVtcGxhdGVQYXJzZXIvMTEiLCJAdHJhY2V1ci9nZW5lcmF0ZWQvVGVtcGxhdGVQYXJzZXIvMTIiLCJAdHJhY2V1ci9nZW5lcmF0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In0= |
@@ -106,6 +106,5 @@ /* global describe:true, it:true */ | ||
let start = Date.now(); | ||
nodeify(asyncFn2('foo'), (err, val, val2) => { | ||
nodeify(asyncFn2('foo'), (err, val) => { | ||
should.not.exist(err); | ||
val.should.equal('foo'); | ||
val2.should.equal('foofoo'); | ||
val.should.eql(['foo', 'foofoo']); | ||
(Date.now() - start).should.be.above(14); | ||
@@ -112,0 +111,0 @@ done(); |
Sorry, the diff of this file is not supported yet
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
174849
627