{"_id":"@calvinnl/await-timeout","_rev":"6-bda84e7e3277b5fb3c9295c2ab3b9f99","name":"@calvinnl/await-timeout","dist-tags":{"latest":"1.1.9"},"versions":{"1.1.1":{"name":"@calvinnl/await-timeout","version":"1.1.1","type":"module","description":"A Promise-based API for setTimeout / clearTimeout","author":{"name":"Vitaliy Potapov","email":"noginsk@rambler.ru"},"repository":{"type":"git","url":"git+https://gitlab.com/heren01-public/await-timeout.git"},"engines":{"node":" >=14.13.1 || >=16.0.0"},"exports":"./src/index.js","scripts":{"lint":"eslint src test scripts","test":"mocha test/setup test/specs","test:installed":"node scripts/install-local && LIB_PATH=../.installed/node_modules/await-timeout npm t","build:es5":"babel src -d es5 --presets=@babel/preset-env","ci":"npm run lint && npm test","prerelease":"run-s lint test test:installed build:es5","release":"npm version $VER && npm publish","postrelease":"git push --follow-tags --no-verify","release-patch":"VER=patch npm run release","release-minor":"VER=minor npm run release"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test","pre-push":"npm run lint && npm test"}},"lint-staged":{"**/*.js":"eslint"},"devDependencies":{"@babel/cli":"^7.12.10","@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","assert-rejects":"^1.0.0","eslint":"^7.18.0","husky":"^4.3.8","install-local":"^3.0.1","lint-staged":"^10.5.3","mocha":"^8.2.1","npm-run-all":"^4.1.5","sinon":"^9.2.4"},"keywords":["timeout","promise","promise-api","promises","settimeout","cleartimeout"],"license":"MIT","gitHead":"12cd41e19cb5792ac2a994398f681e0deeec57c0","bugs":{"url":"https://gitlab.com/heren01-public/await-timeout/issues"},"homepage":"https://gitlab.com/heren01-public/await-timeout#readme","_id":"@calvinnl/await-timeout@1.1.1","_nodeVersion":"18.13.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-+bcL7AIVzET5HUXrOlF3eYXcKJAo58rVXssCGWf+9+bp2vIp5MFhL0h7Qy6obWcFnOMK5+176s3I2XASZGXCwA==","shasum":"93acfe6e550695cfec7972b10296723fee129c0a","tarball":"https://registry.npmjs.org/@calvinnl/await-timeout/-/await-timeout-1.1.1.tgz","fileCount":4,"unpackedSize":9426,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHpr3N6XdYo7WMXmqUcmCQi+5E0uVd9fYYPIkNG6xH4QIhAJNVoyoQztVz3f5G9FRwszc1JqTDaTwyQxa4thIuvvRv"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2SHBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPFBAAnHHmqx/6UeIhX3bErk8c9mylcX7hBHJ2xad+3gQ2LnDOwGz8\r\nU4Ia6rKJrE5kuBQxELxb+04qmronBJs2/SLQVLOfZg2mCbdP1MIVucpDWa1n\r\nO/uRSzflyauGsy0qvCW7U//MOK0bU91lfglt74qSNdmAGvY3lJ7hdBnJ3Dpt\r\nrCwHGHr0lmdUjI+Cd9HAkkwTYeUH60yxXfvdzSvKAdGKAsNIqoH4lPjdY/Hc\r\n0RKii4dBkRSZ6EVSu5f+b854lLLmPqQw49YqdIhpOFwSwbHEd2gaC94YfZCj\r\n7UipIYJx/Drfgn/iW/5tHCi2UDyU+bv6tT5cXoLCid6pfPETU+BRuC+88vrC\r\n/uQp8pa9xEv/jQ2TVzoK/Cc+IRnEhJJPWwwC2UXaQGsh2iPj0h42mCMAu+qA\r\n+Yts6f/lRx4PduVNX5kyTXIsI/a3NBCB4SpsQuN8Ux6R33oaxt/h2wTJ9zAr\r\nPht/s5hTUzkRmRjsqR77tUntPf8i3QcCLz8lH3w3ku52f+M8QbYtbziELQiC\r\nfsMoAy0KmCBSUI9i0DA0zIXb8Sf4Z5pW0/IfvBO5HAM+zXgXedcqC2miiRU3\r\n6SOc86Se1SJrI41VJt2wmSt6mj0182RQTBGs5okro2dHuSluNy9oWtRZuzJe\r\nLLzkZXOriFTEF52yE9Skzp/OzdKjRCzcc3o=\r\n=67kl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"calvinnl","email":"calvin@heren01.nl"},"directories":{},"maintainers":[{"name":"calvinnl","email":"calvin@heren01.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-timeout_1.1.1_1675174337398_0.5306706502678196"},"_hasShrinkwrap":false},"1.1.2":{"name":"@calvinnl/await-timeout","version":"1.1.2","type":"module","description":"A Promise-based API for setTimeout / clearTimeout","author":{"name":"Vitaliy Potapov","email":"noginsk@rambler.ru"},"repository":{"type":"git","url":"git+https://gitlab.com/heren01-public/await-timeout.git"},"engines":{"node":" >=14.13.1 || >=16.0.0"},"exports":"./src/index.js","scripts":{"lint":"eslint src test scripts","test":"","test:installed":"node scripts/install-local && LIB_PATH=../.installed/node_modules/await-timeout npm t","build:es5":"babel src -d es5 --presets=@babel/preset-env","ci":"npm run lint && npm test","release":"npm version $VER && npm publish","postrelease":"git push --follow-tags --no-verify","release-patch":"VER=patch npm run release","release-minor":"VER=minor npm run release"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test","pre-push":"npm run lint && npm test"}},"lint-staged":{"**/*.js":"eslint"},"devDependencies":{"@babel/cli":"^7.12.10","@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","assert-rejects":"^1.0.0","eslint":"^7.18.0","husky":"^4.3.8","install-local":"^3.0.1","lint-staged":"^10.5.3","mocha":"^8.2.1","npm-run-all":"^4.1.5","sinon":"^9.2.4"},"keywords":["timeout","promise","promise-api","promises","settimeout","cleartimeout"],"license":"MIT","gitHead":"a5fe6bb221cd9970db1f75c58fd7b1e7c5105e16","bugs":{"url":"https://gitlab.com/heren01-public/await-timeout/issues"},"homepage":"https://gitlab.com/heren01-public/await-timeout#readme","_id":"@calvinnl/await-timeout@1.1.2","_nodeVersion":"18.13.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-hgHzvE+p3UWtYTraQWB2r0qYgQllVyx7sQvkbXzfLiPB5FHWT+WJ5wVXD+f2I37UugaQyUwHWJ5FCgVpFFvVbw==","shasum":"d2bd43ed4435a2a2812b56cd11a716d33c46edc5","tarball":"https://registry.npmjs.org/@calvinnl/await-timeout/-/await-timeout-1.1.2.tgz","fileCount":4,"unpackedSize":9409,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEhLrn0xQJ3vb5mHOWjPtXqxuyyrUnd02cgflkW69qSLAiEAlhUUcrTXXkY/JqMEwG0jzgSDKXfLgU1k6CnScYi2+Xc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2SSdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVXg//WXtiwGvO1zpuOr9c03CNMb76l3lQjSCng346f24eVhqdqPu6\r\nUDSnZevVQRUzFNCDM3+iTV/IpQd09Mcaz47Iz2i1qJ2pL3tHgj91ZNkOwYfm\r\nDEvGN95oCCjD/MDfflElEq880OwpcwYzrEoID00MeiEOumwqRXOru6lQ7rsn\r\nX3pJd/3PmJlegkI3DQMbOII/ARoYk/1njdXMtj2DDqhcW9/5Np3sfhcEZ76Z\r\nujjbxD7QM/fBvfvZqz/dt5+H+L0DPKqFC0pOxL8/+eyEvwwfJJh1zIEsg/C3\r\n4dVzlUtprq33TbvVWPqq9m8fHe1/5Dj8v7CnOxZcMwPJa9hnCBDQGLOg5I3c\r\nPsEZWFtK6RihGRY0ZEkY8kJvkoSOLP0hTLV8YeASLn+bBv8hrO5GHoWkjphW\r\nbKRuwRKMS1oIJaV1MfeQZP1d4ONpP7gNfWDPp8mVqEKmFkPwqc7xwpEBmzZt\r\ntB4IQTGrhMqmx4auGATb7bMfbb1iAKHdyWYwA4+4ZP6H7b5qyNmIBD7D2tms\r\n+stC4ku670Mm2OMvJXw1i6nZJ/L3nkA+5Y0IL2vkNYzxTm/CRY6LYC7NE8tz\r\n1gLuO9LszmUiK9d8Tzcj6uy8Gg42iLXdKXWzBXHMBnI8NLFHuBgHIabC4P/3\r\nH/Wxfvfvz5wXc1vi5QEwvXzOOEVIPrP0g8I=\r\n=/jmx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"calvinnl","email":"calvin@heren01.nl"},"directories":{},"maintainers":[{"name":"calvinnl","email":"calvin@heren01.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-timeout_1.1.2_1675175069425_0.877743673637279"},"_hasShrinkwrap":false},"1.1.3":{"name":"@calvinnl/await-timeout","version":"1.1.3","type":"module","description":"A Promise-based API for setTimeout / clearTimeout","author":{"name":"Vitaliy Potapov","email":"noginsk@rambler.ru"},"repository":{"type":"git","url":"git+https://gitlab.com/heren01-public/await-timeout.git"},"engines":{"node":" >=14.13.1 || >=16.0.0"},"exports":"./src/index.js","scripts":{"lint":"eslint src test scripts","test":"","test:installed":"node scripts/install-local && LIB_PATH=../.installed/node_modules/await-timeout npm t","build:es5":"babel src -d es5 --presets=@babel/preset-env","ci":"npm run lint && npm test","prerelease":"run-s lint build:es6","release":"npm version $VER && npm publish","postrelease":"git push --follow-tags --no-verify","release-patch":"VER=patch npm run release","release-minor":"VER=minor npm run release"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test","pre-push":"npm run lint && npm test"}},"lint-staged":{"**/*.js":"eslint"},"devDependencies":{"@babel/cli":"^7.12.10","@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","assert-rejects":"^1.0.0","eslint":"^7.18.0","husky":"^4.3.8","install-local":"^3.0.1","lint-staged":"^10.5.3","mocha":"^8.2.1","npm-run-all":"^4.1.5","sinon":"^9.2.4"},"keywords":["timeout","promise","promise-api","promises","settimeout","cleartimeout"],"license":"MIT","gitHead":"f9a52b9afd190b6316deeb8b5fe2b04b920660d4","bugs":{"url":"https://gitlab.com/heren01-public/await-timeout/issues"},"homepage":"https://gitlab.com/heren01-public/await-timeout#readme","_id":"@calvinnl/await-timeout@1.1.3","_nodeVersion":"18.13.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-gX5HvQGNnL72x913fPrBZ42dY1d5brBboEXK32GPsXu8H2awBbXfY5MIovk08KaT5wgD/XDHbREyEnSqrgsq1Q==","shasum":"bba9055721e1ea2cdfce95cfff5451fec6b9aeba","tarball":"https://registry.npmjs.org/@calvinnl/await-timeout/-/await-timeout-1.1.3.tgz","fileCount":4,"unpackedSize":9451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAD1O6ZSqtbDylVpe5PLCdoqT4c1vUT4cMltzRUyWqUAIgW6azbe693EeOBwZ7s3hIJdBkYZUllg3U2d1S6ZHGN8s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2SagACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp59A/+JHzh4kJXGwQcQ5WqIxl9dPLAmSvfRVhbuTYacWJZ+m/OyRO7\r\nJVJU1hGRNkBrOte5Z11cifXWzX5BguYLt/P5SGR8END+XUG0ecspGFapoYH+\r\nMuivo7r10gLhGLiiRGQYvj5wjx2LSKRQjv1Tyz2hEennHa4rlE3K6RrdnEbT\r\nYNARQd18czQzeTq5B1bsSXydrmkEKOPzBzcn9dmZcJePyTQ1tcDSEMIALbLx\r\nt66fBIlIac0BRabNSYs4FaslDc2Roxp09a2lEfDIOe4FYtoPjE+tcgPUrI9b\r\n4RLcBdyUJv/2PRQu7FRXq/mCW9M5icipf1uQTsz5vxj5sdFwO/iqHy8JehJU\r\nA45bzghoB3zYSWcYg+wsQo3pIG+JLrNb5MBZs3HJOuOyyhRa1sSUh2stBi+9\r\nMwd8uzy7f5+uiIII7J7Wk1+A5MovNTW5sTfK1aLLB25gmiNNX2NlSpZ0BPp6\r\njMNHouXIwweQIRFPrAR89Yg+tcCiucq+9Dx51omrzvDZBmQDKDn6Klum711W\r\nUNgujNkD66G8+cELfR91pcY/uwVzdiqkfaruVkyxRijRuSEqABh7luU1zR0e\r\nnoavDTFjylAfvBKi/0tCEiehkv8MJAU6jdL1iU95jM7cydlkLg8pgKkE93g7\r\nKhKbKj9AavQfIY5caDH4lXO/h3W+Y1iu85I=\r\n=qu2h\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"calvinnl","email":"calvin@heren01.nl"},"directories":{},"maintainers":[{"name":"calvinnl","email":"calvin@heren01.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-timeout_1.1.3_1675175584202_0.4585617312251715"},"_hasShrinkwrap":false},"1.1.4":{"name":"@calvinnl/await-timeout","version":"1.1.4","type":"module","description":"A Promise-based API for setTimeout / clearTimeout","author":{"name":"Vitaliy Potapov","email":"noginsk@rambler.ru"},"repository":{"type":"git","url":"git+https://gitlab.com/heren01-public/await-timeout.git"},"engines":{"node":" >=14.13.1 || >=16.0.0"},"exports":"./src/index.js","scripts":{"lint":"eslint src test scripts","test":"","test:installed":"node scripts/install-local && LIB_PATH=../.installed/node_modules/await-timeout npm t","build:es6":"babel src -d es6 --presets=@babel/preset-env","ci":"npm run lint && npm test","prerelease":"run-s lint build:es6","release":"npm version $VER && npm publish","postrelease":"git push --follow-tags --no-verify","release-patch":"VER=patch npm run release","release-minor":"VER=minor npm run release"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test","pre-push":"npm run lint && npm test"}},"lint-staged":{"**/*.js":"eslint"},"devDependencies":{"@babel/cli":"^7.12.10","@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","assert-rejects":"^1.0.0","eslint":"^7.18.0","husky":"^4.3.8","install-local":"^3.0.1","lint-staged":"^10.5.3","mocha":"^8.2.1","npm-run-all":"^4.1.5","sinon":"^9.2.4"},"keywords":["timeout","promise","promise-api","promises","settimeout","cleartimeout"],"license":"MIT","gitHead":"bb1bc27dfad9e2e37767d45be5068017a8ff12ca","bugs":{"url":"https://gitlab.com/heren01-public/await-timeout/issues"},"homepage":"https://gitlab.com/heren01-public/await-timeout#readme","_id":"@calvinnl/await-timeout@1.1.4","_nodeVersion":"18.13.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-6CqiW+6n2VLcz5Mxw0fMfqiVUPn8ZqNzMkotZmaQZlhN2Hucc/Gx3oVRlPGofxYLaj4zV7hJHpKEXHlcP/Hrlg==","shasum":"caff08f522c906448ffcc22dde46bde9c6b87c63","tarball":"https://registry.npmjs.org/@calvinnl/await-timeout/-/await-timeout-1.1.4.tgz","fileCount":4,"unpackedSize":9451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzQdmaYeXfWPqIkfvbAW73hNYYzOWB3byri0KB3b/WggIhAI+RpqpjsI2Q45UQ/wkstHt6bxm1Pc3SXTkLmsC9pytm"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2SccACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOqw//YBPzoEqRzoqFl0kh7nSOTbJH1qf2Qd80cx5CBrEPKDgvI+qa\r\nYEqXW1RZPLLWqFusrZdUr//RW9TkpUKnHM8sejg7W2I24fi7fLoY1zb11gEO\r\nWenrVwkvG0cryYPMe6gUObWditXZcxWzfpPjJdr5hPfNcxAsFx+0FzAqcyTz\r\nGJDJ3kx0+BxbaMZUtXxZTffhbd6lyBlkrI2B5vDYEa4pY6GLVvOa+ax/iEp8\r\n4X45NOv9EpnwK5NkdPJ0mJmRsxKt5hm5EQ4XAjYwEOaRtp/8auHpudtZF9CX\r\nE3MNFuZpOQIpVSgC8j3e/GfY6Yvb1dy0lIn8HjLABEs1jx0UYIkDNTqFqAO4\r\n862YBhhY/zgZIpgzAtuF1PYNARSUrLqRSnm78EQtz04NDLbov5IwSVVjjigK\r\nBcqR6FRrInUUWWfYsA1caIfrbDxxA4IYiXPqm9pTeICxXrwBFlk7I01gG93P\r\n+yQSdmQkHQ4lgqABXFLArcaJt16s2FcXc3qKIA/IK7NHnUlIVSq2EXNlNZpQ\r\nhr1IHO5O//UXIEWzr523Sg/sEyuFhQp6sONE2w7epF64UFQ10mc9mYQQlR7F\r\nBz5zqMSf3NB0OHfj2lK6VH5D+Hn00E7viyE5xqMoD/LzPmv2etITljjicfm/\r\nPq8lwjsZdWJat3eaE5akCkmOTdCwm7XmnqY=\r\n=aDlH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"calvinnl","email":"calvin@heren01.nl"},"directories":{},"maintainers":[{"name":"calvinnl","email":"calvin@heren01.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-timeout_1.1.4_1675175708266_0.00937888024290734"},"_hasShrinkwrap":false},"1.1.5":{"name":"@calvinnl/await-timeout","version":"1.1.5","type":"module","description":"A Promise-based API for setTimeout / clearTimeout","author":{"name":"Vitaliy Potapov","email":"noginsk@rambler.ru"},"repository":{"type":"git","url":"git+https://gitlab.com/heren01-public/await-timeout.git"},"engines":{"node":" >=14.13.1 || >=16.0.0"},"exports":"./src/index.js","scripts":{"lint":"eslint src test scripts","test":"","test:installed":"node scripts/install-local && LIB_PATH=../.installed/node_modules/await-timeout npm t","build:es6":"babel src -d es6 --presets=@babel/preset-env","ci":"npm run lint && npm test","prerelease":"run-s lint build:es6","release":"npm version $VER && npm publish","postrelease":"git push --follow-tags --no-verify","release-patch":"VER=patch npm run release","release-minor":"VER=minor npm run release"},"husky":{"hooks":{"pre-commit":"lint-staged && npm test","pre-push":"npm run lint && npm test"}},"lint-staged":{"**/*.js":"eslint"},"devDependencies":{"@babel/cli":"^7.12.10","@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","assert-rejects":"^1.0.0","eslint":"^7.18.0","husky":"^4.3.8","install-local":"^3.0.1","lint-staged":"^10.5.3","mocha":"^8.2.1","npm-run-all":"^4.1.5","sinon":"^9.2.4"},"keywords":["timeout","promise","promise-api","promises","settimeout","cleartimeout"],"license":"MIT","gitHead":"fb9168c68ad07260634894da066bb61bfb2ce130","bugs":{"url":"https://gitlab.com/heren01-public/await-timeout/issues"},"homepage":"https://gitlab.com/heren01-public/await-timeout#readme","_id":"@calvinnl/await-timeout@1.1.5","_nodeVersion":"18.13.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-5M84ZdYJYbbHL5fIkcH05MBBOvi8oOZJjXNpDzBAY42y+DUYxmi9IW37s414GnKDZ3tv4NeOEfFm2p5305Pv1A==","shasum":"7cac5e3851f1927c8e965b5014f247c4f4f8cfcf","tarball":"https://registry.npmjs.org/@calvinnl/await-timeout/-/await-timeout-1.1.5.tgz","fileCount":6,"unpackedSize":12635,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFeTcm2MituVpsucSbKiVIiwR70CHbZIt1eH4pSfTGvAiBpcHagqWcndibhD3eyMfBRg3wf30c2Ijv3lU58Pe3vBw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2Sf1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxAg/9EQh4HtWlpGrFNyjMeIDCrHz/AahsmFpVZQf8ewJCDbzDkeY/\r\nXk8r6C/VtRF+TN/xC5zwLIfOzFj+M02wpX1xzPpkJJGASylYZtM0jKrXZRyo\r\nbwJiYr0ZZWQoC5/PSOnS/BjFPHT+Z4HW5opTAYtfLDVSRM+m1XRMGEyR+6uQ\r\nMo4j+eye8ARwPk/dkKs/qJg07/e1V8NAFszTWKavGA8Gzj7OsZ36kwn48e1P\r\nlQh1k84f74Ipm7Cdxl2Ua9XI1qc4mRSURkdqmGPSQs6f+2H4x+W/0MXEr/67\r\nZFCM//DzzwmOS10Nsvh+wjMZcwz95JlbiX1GhnKBqo7W5PLt9epQaq3cKqDR\r\nsA5HpWM/rk7Ax+jn90LzmazMAP7f9WxCiCwFFg1hT5nfcKbUOYiMdhQFZGf3\r\nPJlTrfRgq7ncZxYucBCf+rPeecSX2sKhC86Bqq2Yv8Idcy27CxZPNyTfWgsC\r\nMHnvUpqb18XBbKH4vIZG1RndGSrIpgis3204wXDi23QBJcKynwn7WPa5mqaF\r\nlh5IcO6/lKouqZ/+fkWY15VLIHWQcnFE2UVMAuoO/LkHE874jr0dObodaCxs\r\ns12mW5TuSZ3NaWS2DWKqhsns558KUmOlXhvRPsLL9iJ32bmhx2nZ9AvNjEnn\r\n+6AG+UT1bYdqNzRojVSIggg1PVpikjhYAYw=\r\n=6DC3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"calvinnl","email":"calvin@heren01.nl"},"directories":{},"maintainers":[{"name":"calvinnl","email":"calvin@heren01.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-timeout_1.1.5_1675175925518_0.24605419442355303"},"_hasShrinkwrap":false},"1.1.8":{"name":"@calvinnl/await-timeout","version":"1.1.8","type":"module","description":"A Promise-based API for setTimeout / clearTimeout","author":{"name":"Vitaliy Potapov","email":"noginsk@rambler.ru"},"repository":{"type":"git","url":"git+https://gitlab.com/heren01-public/await-timeout.git"},"engines":{"node":" >=14.13.1 || >=16.0.0"},"exports":"./src/index.js","scripts":{"test":"jest --config jestconfig.json --passWithNoTests","build":"tsc","format":"prettier --write \"src/**/*.ts\"","lint":"tslint --project tsconfig.json","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"lint-staged":{"**/*.js":"eslint"},"devDependencies":{"@babel/cli":"^7.12.10","@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","assert-rejects":"^1.0.0","eslint":"^7.18.0","husky":"^4.3.8","install-local":"^3.0.1","lint-staged":"^10.5.3","mocha":"^8.2.1","npm-run-all":"^4.1.5","sinon":"^9.2.4","@types/node":"^13.13.5","jest":"^26.0.1","prettier":"^2.0.5","ts-jest":"^26.0.0","ts-node":"2.0.0","tslib":"^2.4.0","tslint":"^4.5.0","tslint-config-prettier":"^1.18.0","typescript":"3.9.10"},"keywords":["timeout","promise","promise-api","promises","settimeout","cleartimeout"],"license":"MIT","gitHead":"03f8424f5fd2994d187834290b87008635d6803a","bugs":{"url":"https://gitlab.com/heren01-public/await-timeout/issues"},"homepage":"https://gitlab.com/heren01-public/await-timeout#readme","_id":"@calvinnl/await-timeout@1.1.8","_nodeVersion":"18.13.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-1wno4j8/cPvQZn1uZ1ZcwFB3+RTm39WHcab1q8MgV14DUGramZmGHXB1hRdZlgoyMpNm30Pi5chDeKuR/G3ZGA==","shasum":"ec2acef7da0cf5c29fb60e3df0012b489b274de7","tarball":"https://registry.npmjs.org/@calvinnl/await-timeout/-/await-timeout-1.1.8.tgz","fileCount":6,"unpackedSize":12587,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIlQ9tF6zWKt3qsRQnw/sRjzVRFkDu5e+XbRb1ElUjpAiAl0SbyyWWAetHT2oD7B6Xy0cnPyIq0SJLoGhJ62R6i+g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2Sw1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosjQ//eu+vQOytGs/PHTXdOqgpEXwKcYOcQCPJHd6CpPNEE9Ropggk\r\nfePeDYtQ1GfGvEhwXnWQ7HjbxShX9VDlRFthJzjICo6oVdwFTQc8gzuNN3qb\r\n+Dca9UwwYuG2WDcXrkHq5Zag6bS9BPzeU6JKoRCNVhJloAcd/eQxrZljNeXA\r\nlvlnTnqwBeXNhhm7YSZzi+hAuZsYeUL8+aXttA8dU9nXKY4p4p/YORgqy+ta\r\nqpsjDl0UvW7yxSeeCbRB6F4ilaeESjTCelR9goHWJZo+Gu0h7PD5aSDkpgNH\r\ni82vrYetGzqHJ9GrfUBL7HJOC8KHv14Uw09XoNO8MnMeN6AUYMOFwdEZee6r\r\nye4iZEPli+n0HDOA6WWbFazld43lmgT0OPdcrt4ny8y9jQPpnUIULavWXCX9\r\nSBRehXpRAHqDEOaFkIeaq00SI4UKj03U79LzYlj/Ke501KIMY+jHy6Bzb5ke\r\nYlMn4E9gO3DwTIR6K4aatY5nUHH6q77F76IkGZS0jmhMC0cLq+4N8tHks5QA\r\nwqVPIxyWO7acj8xfcmTw0hVwj6Af83qPZXsTVaxoibXN59AgMkhYjA7OMh1q\r\n54TGwY+pBtK3se3ZxGdrAzZvjdtXh5LzKqW6TfhDvW6/cMYltCFGGsQLMuJZ\r\nk1OjVV2RhIBW3t2chYPaPCde8XtMO4AF51E=\r\n=d68t\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"calvinnl","email":"calvin@heren01.nl"},"directories":{},"maintainers":[{"name":"calvinnl","email":"calvin@heren01.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-timeout_1.1.8_1675177013250_0.4641684190307802"},"_hasShrinkwrap":false},"1.1.9":{"name":"@calvinnl/await-timeout","version":"1.1.9","type":"module","description":"A Promise-based API for setTimeout / clearTimeout","author":{"name":"Vitaliy Potapov","email":"noginsk@rambler.ru"},"repository":{"type":"git","url":"git+https://gitlab.com/heren01-public/await-timeout.git"},"engines":{"node":" >=14.13.1 || >=16.0.0"},"exports":"./lib/index.js","types":"lib/index.d.ts","scripts":{"test":"jest --config jestconfig.json --passWithNoTests","build":"tsc","format":"prettier --write \"src/**/*.ts\"","lint":"tslint --project tsconfig.json","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"lint-staged":{"**/*.js":"eslint"},"devDependencies":{"@babel/cli":"^7.12.10","@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","assert-rejects":"^1.0.0","eslint":"^7.18.0","husky":"^4.3.8","install-local":"^3.0.1","lint-staged":"^10.5.3","mocha":"^8.2.1","npm-run-all":"^4.1.5","sinon":"^9.2.4","@types/node":"^13.13.5","jest":"^26.0.1","prettier":"^2.0.5","ts-jest":"^26.0.0","ts-node":"2.0.0","tslib":"^2.4.0","tslint":"^4.5.0","tslint-config-prettier":"^1.18.0","typescript":"3.9.10"},"keywords":["timeout","promise","promise-api","promises","settimeout","cleartimeout"],"license":"MIT","gitHead":"0868fd2e0d8f331cbca87b3cf286760fd60407d1","bugs":{"url":"https://gitlab.com/heren01-public/await-timeout/issues"},"homepage":"https://gitlab.com/heren01-public/await-timeout#readme","_id":"@calvinnl/await-timeout@1.1.9","_nodeVersion":"18.13.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-vyu77lCk0QWL7d3xNV/dNd7Kd/kcCCDSNhK45Cv5hw9g3MKqtNoTqwRgBNrBGNRQwGt9Byk2dqxJ9OSW19sa4Q==","shasum":"b43c0260630acf2ff9d153d1f6c4ce37f01b2675","tarball":"https://registry.npmjs.org/@calvinnl/await-timeout/-/await-timeout-1.1.9.tgz","fileCount":8,"unpackedSize":12413,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFvtnW+Ln4q8e7mU5wmrx5gci57zLMqvVoxhdgOtlatHAiEAzyR4gSWdkQP64b3eW3FG20DaHNdWn5bf7RefMPJaHyo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2S0cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTyA//fVbfhVz/dbkYdztrVLUcMNosncnD/byLprwWYuIw0M3uaXjx\r\n4x+IQ3pNzVzZc1zIbI2cRTywDt4yPmGtYHQcEALxfJYno2MrIpi0lFw6XN7H\r\nnVxIgIzv387RoQCpUDGOoXCOEZAJGt7wlp2dJRA00a8kBLH22oKAa2Bc4u/z\r\nGiiRXeqrJcB45gYbZWFIul0I7fC+v6TXDme7Yp87MxLIHWrInTwkSzM16195\r\nTQXJ/VCeMK5rC+mnhiN1H4Wj4t828+rU3TaNGfLPcdzAKtCRtF8BpzAd0JBg\r\nhlS2OMPdmAjWU42X0c9jeuY1PXOphdNX3tuGwVlxq2Oz/FowUFGTMmepkU3w\r\nvNiD6IVG/PZe5sT5bgKtYtPSccllsXVi9hv9+DB7bM3rgWkDMQM/LeVDjAS7\r\nA8Ih2ZEsB7UBZQoq9StiiWnnr7/IjD4i57gpFmvKW0LhznulFlbbjXSbNJaA\r\nELfMydU/5aZ4t2df/Ohj1lUGQi3ofnqcmtLB5Nn8dZNIBr32dCxrSuKCxSdR\r\nJFSy5Eu0rsmeVlepCjHNKunsBFl0akJ1Rd3oUULzNN/FW36GxEPAtnDmdoZk\r\n20aTY3/G43sHgBXbOp5mAlTUGqUqyFO7VO//jxzuI5IGuRKiS/kKdWr2G54I\r\nUMlsCE/hDb1eu/D+VKtOKTsVpUPgIt7PZPk=\r\n=bwlz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"calvinnl","email":"calvin@heren01.nl"},"directories":{},"maintainers":[{"name":"calvinnl","email":"calvin@heren01.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/await-timeout_1.1.9_1675177244285_0.5611021833899823"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-31T14:12:17.397Z","1.1.1":"2023-01-31T14:12:17.599Z","modified":"2023-01-31T15:00:44.533Z","1.1.2":"2023-01-31T14:24:29.586Z","1.1.3":"2023-01-31T14:33:04.377Z","1.1.4":"2023-01-31T14:35:08.424Z","1.1.5":"2023-01-31T14:38:45.732Z","1.1.8":"2023-01-31T14:56:53.389Z","1.1.9":"2023-01-31T15:00:44.420Z"},"maintainers":[{"name":"calvinnl","email":"calvin@heren01.nl"}],"description":"A Promise-based API for setTimeout / clearTimeout","homepage":"https://gitlab.com/heren01-public/await-timeout#readme","keywords":["timeout","promise","promise-api","promises","settimeout","cleartimeout"],"repository":{"type":"git","url":"git+https://gitlab.com/heren01-public/await-timeout.git"},"author":{"name":"Vitaliy Potapov","email":"noginsk@rambler.ru"},"bugs":{"url":"https://gitlab.com/heren01-public/await-timeout/issues"},"license":"MIT","readme":"<div align=\"center\">\r\n  <img src=\"https://user-images.githubusercontent.com/1473072/32229482-f90f07d2-be61-11e7-86f1-f9f555182292.png\">\r\n</div>\r\n<h1 align=\"center\">await-timeout</h1>\r\n<h5 align=\"center\">A <a href=\"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise\">Promise</a>-based API for setTimeout / clearTimeout</h5>\r\n<div align=\"center\">\r\n  <a href=\"https://github.com/vitalets/await-timeout/actions\"><img src=\"https://github.com/vitalets/await-timeout/workflows/autotests/badge.svg\" alt=\"Build Status\" /></a>\r\n  <a href=\"https://www.npmjs.com/package/await-timeout\"><img src=\"https://img.shields.io/npm/v/await-timeout.svg\" alt=\"Npm version\" /></a>\r\n  <a href=\"https://www.npmjs.com/package/await-timeout\"><img src=\"https://img.shields.io/npm/l/await-timeout.svg\" alt=\"License\" /></a>\r\n</div>\r\n\r\n## Contents\r\n* [Installation](#installation)\r\n* [Usage](#usage)\r\n* [API](#api)\r\n  * [new Timeout()](#new-timeout)\r\n  * [.set()](#setms-message--promise)\r\n  * [.wrap()](#wrappromise-ms-message--promise)\r\n  * [.clear()](#clear)\r\n  * [.id](#id--numbertimeout)\r\n  * [.delay](#delay--number)\r\n* [Motivation](#motivation)\r\n* [Related resources](#related-resources)\r\n* [License](#license)\r\n\r\n## Installation\r\n```bash\r\nnpm install await-timeout --save\r\n```\r\n\r\n## Usage\r\n1. Just wait some time:\r\n    ```js\r\n    import Timeout from 'await-timeout';\r\n\r\n    // wait 1000 ms and resolve\r\n    await Timeout.set(1000);\r\n    \r\n    // wait 1000 ms and reject with 'Timeout!'\r\n    await Timeout.set(1000, 'Timeout!');\r\n    ```\r\n\r\n2. Use `Timeout` instance inside `try...finally` block to make proper cleanup:\r\n    ```js\r\n    import Timeout from 'await-timeout';\r\n\r\n    const timer = new Timeout();\r\n    try {\r\n      await Promise.race([\r\n        fetch('https://example.com'),\r\n        timer.set(1000, 'Timeout!')\r\n      ]);\r\n    } finally {\r\n      timer.clear();\r\n    }\r\n    ```\r\n   > Without a timer cleanup you may get unexpected effects in you code - as all promises in `Promise.race` \r\n   > are get fulfilled.\r\n\r\n## API\r\n### new Timeout()\r\nConstructs new timeout instance. It does not start timer but creates variable for timer manipulation.\r\n```js\r\nconst timer = new Timeout();\r\n```\r\n> Note: having separate `timer` variable is useful for clearing timeout in `finally` block \r\n\r\n### .set(delay, [rejectReason]) ⇒ `Promise`\r\nStarts new timer like `setTimeout()` and returns promise. The promise will be resolved after `delay` milliseconds:\r\n```js\r\nconst timer = new Timeout();\r\ntimer.set(1000)\r\n  .then(() => console.log('1000 ms passed.'));\r\n```\r\n\r\nIf you provide `rejectReason` - a timer promise will be rejected with specified reason:\r\n```js\r\n// rejects with Error: Timeout after 1000 ms:\r\ntimer.set(1000, 'Timeout after 1000 ms');\r\n  \r\n// above is actually shortcut for:\r\ntimer.set(1000).then(() => Promise.reject(new Error('Timeout after 1000 ms')));  \r\n```\r\n\r\nIf you need to just wait some time - use static version of `.set()`:\r\n```js\r\nawait Timeout.set(1000);\r\n```\r\n\r\n### .wrap(promise, delay, [rejectReason]) ⇒ `Promise`\r\nWraps existing promise with timeout:\r\n * returned promise automatically rejected after timeout \r\n * timeout automatically cleared if main promise resolves first\r\n```js\r\nasync function fetchWithTimeout() {\r\n  const promise = fetch('https://example.com');\r\n  return Timeout.wrap(promise, 1000, 'Timeout');\r\n}\r\n```\r\nActually it is a shortcut for:\r\n```js\r\nasync function fetchWithTimeout() {\r\n    const timer = new Timeout();\r\n    try {\r\n      const promise = fetch('https://example.com');\r\n      return await Promise.race([\r\n        promise,\r\n        timer.set(1000, 'Timeout')\r\n      ]);\r\n    } finally {\r\n      timer.clear();\r\n    }\r\n}\r\n```\r\n\r\n### .clear()\r\nClears existing timeout like `clearTimeout()`.\r\n```js\r\nconst timer = new Timeout();\r\ntimer.set(1000)\r\n  .then(() => console.log('This will never be called, because timeout is cleared on the next line'));\r\ntimer.clear();\r\n```\r\n\r\nWith [ES7 async / await] `.clear()` can be used in `finally` block:\r\n```js\r\nasync function foo() {\r\n  const timer = new Timeout();\r\n  try {\r\n    // some async stuff\r\n  } finally {\r\n    timer.clear();\r\n  }\r\n}\r\n```\r\n\r\n### .id ⇒ `?Number|?Timeout`\r\nReturns result of `setTimeout` call. That is `Number` timeout id in browser \r\nand [Timeout](https://nodejs.org/api/timers.html#timers_class_timeout) instance in Node.js.\r\n\r\n### .delay ⇒ `?Number`\r\nReturns last delay value used. Delay is useful for generating reject reason:\r\n```js\r\nconst timer = new Timeout();\r\ntimer.set(1000, () => new Error(`Timeout: ${timer.delay}`));\r\n```\r\n\r\n## Motivation\r\nBefore making this library I've researched [several similar packages on Npm](https://www.npmjs.com/search?q=promise%20timeout).\r\nBut no one satisfied all my needs together:\r\n\r\n1. Convenient way to cancel timeout. I typically use it with [Promise.race()] and don't want timer to trigger\r\n   if main promise is resolved first.\r\n2. API similar to `setTimeout` / `clearTimeout`. I get used to these functions and would like to have mirror syntax.\r\n3. Easy rejection of timeout promise. Passing error message should be enough.\r\n4. No monkey-patching of Promise object.\r\n5. Zero dependencies.\r\n\r\n## Related resources\r\n* [The right way to clear timeout in Promise.race()](https://jslive.com/p/3x2x9h-the-right-way-to-clear-timeout-in-promiserace)\r\n* [Applying a timeout to your promises](https://italonascimento.github.io/applying-a-timeout-to-your-promises/)\r\n* [How to make a promise from setTimeout](https://stackoverflow.com/questions/22707475/how-to-make-a-promise-from-settimeout)\r\n* [Is there a version of setTimeout that returns an ES6 promise?](https://stackoverflow.com/questions/34255351/is-there-a-version-of-settimeout-that-returns-an-es6-promise)\r\n\r\n## License\r\nMIT @ [Vitaliy Potapov](https://github.com/vitalets)\r\n\r\n[Promise]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise\r\n[Promise.race()]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race\r\n[ES7 async / await]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function\r\n","readmeFilename":"README.md"}