@antv/async-hook
Advanced tools
Comparing version 2.2.5 to 2.2.6
@@ -1660,3 +1660,3 @@ /****************************************************************************** | ||
value = _a.sent(); | ||
callback(null, value); | ||
callback(value ? null : false, value); | ||
return [2]; | ||
@@ -1669,8 +1669,9 @@ } | ||
this.tasks.push(function (arg, callback) { return __awaiter(_this, void 0, void 0, function () { | ||
var value; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4, cb(arg)]; | ||
case 0: return [4, cb()]; | ||
case 1: | ||
_a.sent(); | ||
callback(null, arg); | ||
value = _a.sent(); | ||
callback(value ? null : false, name); | ||
return [2]; | ||
@@ -1677,0 +1678,0 @@ } |
@@ -1664,3 +1664,3 @@ 'use strict'; | ||
value = _a.sent(); | ||
callback(null, value); | ||
callback(value ? null : false, value); | ||
return [2]; | ||
@@ -1673,8 +1673,9 @@ } | ||
this.tasks.push(function (arg, callback) { return __awaiter(_this, void 0, void 0, function () { | ||
var value; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4, cb(arg)]; | ||
case 0: return [4, cb()]; | ||
case 1: | ||
_a.sent(); | ||
callback(null, arg); | ||
value = _a.sent(); | ||
callback(value ? null : false, name); | ||
return [2]; | ||
@@ -1681,0 +1682,0 @@ } |
{ | ||
"name": "@antv/async-hook", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "the control flow for l7", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
293901
2986
1