Socket
Socket
Sign inDemoInstall

waitasecond

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waitasecond - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

18

dist/functions/forValueDefined.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc