ag-utilities
Advanced tools
Comparing version 1.1.195 to 1.1.196
@@ -67,3 +67,2 @@ "use strict"; | ||
function watch() { | ||
var _this = this; | ||
var args = []; | ||
@@ -79,19 +78,8 @@ for (var _i = 0; _i < arguments.length; _i++) { | ||
} | ||
return __awaiter(_this, void 0, void 0, function () { | ||
var start, end, i; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
start = new Date(); | ||
return [4 /*yield*/, cb.apply(void 0, v)]; | ||
case 1: | ||
_a.sent(); | ||
end = new Date(); | ||
for (i = 0; i < end.getTime() - start.getTime(); i++) { | ||
AgCounter_1.AgCounter.inc('totalwatch'); | ||
} | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
var start = new Date(); | ||
cb.apply(void 0, v); | ||
var end = new Date(); | ||
for (var i = 0; i < end.getTime() - start.getTime(); i++) { | ||
AgCounter_1.AgCounter.inc('totalwatch'); | ||
} | ||
}; | ||
@@ -98,0 +86,0 @@ args[1] = wrap; |
{ | ||
"name": "ag-utilities", | ||
"version": "1.1.195", | ||
"version": "1.1.196", | ||
"author": "fangxq", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
142347
3235