waitasecond
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -41,10 +41,12 @@ "use strict"; | ||
var _this = this; | ||
if (waiter === void 0) { waiter = function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, forAnimationFrame_1.forAnimationFrame()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/]; | ||
} | ||
}); }); }; } | ||
if (waiter === void 0) { waiter = function () { return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, forAnimationFrame_1.forAnimationFrame()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); }; } | ||
if (limit === void 0) { limit = 1000; } | ||
@@ -51,0 +53,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "waitasecond", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Simple tool library for the waiting using Promises.", | ||
@@ -20,7 +20,9 @@ "main": "dist/index.js", | ||
"prettier-watch": "onchange \"{src,test,.vscode}/**/*.{ts,json}\" -- prettier --config .prettierrc --write {{changed}}", | ||
"documentation": "git diff --exit-code && typedoc --excludePrivate --hideGenerator --mode file --theme minimal --out docs --name \"Wait second\" ./src && git add docs && git commit -m \"Documentation\"", | ||
"prettier-commit": "git diff --exit-code && npm run prettier && git add src && git commit --allow-empty -m \"Prettier\"", | ||
"documentation": "typedoc --excludePrivate --hideGenerator --mode file --theme minimal --out docs --name \"Wait second\" ./src", | ||
"documentation-commit": "git diff --exit-code && npm run documentation && git add docs && git commit --allow-empty -m \"Documentation\"", | ||
"test": "jest --config jestconfig.json", | ||
"test-watch": "jest --config jestconfig.json --watchAll", | ||
"lint": "tslint -p tsconfig.json", | ||
"preversion": "npm test && npm run lint && npm run build && npm run documentation", | ||
"preversion": "npm test && npm run lint && npm run build && npm run prettier-commit && npm run documentation-commit", | ||
"postversion": "git push && git push --tags && npm publish" | ||
@@ -27,0 +29,0 @@ }, |
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
13561
187