{"_id":"@24hr/wait-until-idle","_rev":"16-e0768842b40ff7549d490beb82340c35","name":"@24hr/wait-until-idle","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@24hr/wait-until-idle","version":"1.0.0","keywords":[],"author":{"name":"thjo"},"license":"ISC","_id":"@24hr/wait-until-idle@1.0.0","maintainers":[{"name":"richardsweeney","email":"theorboman@gmail.com"},{"name":"alexander-nilsson","email":"alexander.nilsson83@gmail.com"},{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},{"name":"24hr-machine-user","email":"services@24hr.se"},{"name":"insidenpm","email":"peterlarssonsmail@gmail.com"},{"name":"bextex","email":"r.sarvegard@gmail.com"}],"dist":{"shasum":"dd75810560e6bc0c45133c9c7ad30ebe5128e28a","tarball":"https://registry.npmjs.org/@24hr/wait-until-idle/-/wait-until-idle-1.0.0.tgz","fileCount":15,"integrity":"sha512-kHLYnAGN++srzNDvQwwWnLcRZaXgaJe2ZF8JhS4UAop/YWSHrErHEOClI3bjPE/80ZXhYMomp91y+EMUxRohuQ==","signatures":[{"sig":"MEUCICxELsMrQscxmu7RVhqdFUlaOhOxURm0+JE/SQGOWe1XAiEAmAf65uFMvh9wnar2rGmUNHfJ9JatVZRwW/Hate5Ym3Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkagnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmruag/5ABpTEJHUQHjGSemx8C/Yn8yt/mz3bUdJr/j7W+thBRsMnL+i\r\nPeVolY4hnfpmlIL27+32oSEg6MVNy13BOkejbZroZm+uBR4213tSqII9ocsM\r\nR3hm7y6o71KJeqBC6E6DkS1iWLH9GAgaLxGhJ+OVrbCaOIO2RxM8OL6a+a/i\r\nJy+9Cpc/UeGPvl8foCxg1eNfJmwHaYkmlgwDhiotMQVUydyGn/QmQuSnmbC7\r\noLOVKTWRnORKKQDm4Z5atSqIsHCYaDTJLE313WOgc7hvuuB1U/vxaMef1zoT\r\n0At/GVYW3durApieTjsKBa8QHcvgrZg0amuphSlt/9Z74EPoY4U4mhg79JNR\r\nbnNpb+C6bjZpqv2HwypUzLBqq7fi8+vLNZb8j1owzU+6MuLl2r7usqQ7SRML\r\nrPxJskbUTFyEfazkWuxPGEHqQ+/+IsRcM8aQSa7is5U0msffsuTA3KanzR8Q\r\nLpiSn/KEsCfuaCSCHg8BVDRpf022RFcvQIy9EVKC4xw3hcLC/utDwDHI2BqE\r\nm5QlOCJgPNUEN38qs5+N/dCRXD/Q/iOs+YcIj7DG6zTy/h/WALlx/w2AMKz1\r\n0cuYA+WwpDY2X4Fp/twgB6HY9QOWsLnaphNNIFTAvp7YVzHOKUmLA1muA0Dv\r\n/SXPSinoscFA/yti24ffihsTG3vahyYwyWM=\r\n=XwAD\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"ts-jest","testEnvironment":"node","setupFilesAfterEnv":["./src/test/setup.ts"],"modulePathIgnorePatterns":["build/"]},"main":"./build/index.js","types":"./build/index.d.ts","gitHead":"ceb9b475f17e238305c2c42e22ec62ac518429e1","scripts":{"lint":"eslint . --ext .ts","test":"jest --watchAll --no-cache","build":"npm run clean && tsc","check":"npm run build && npm run lint && npm run test:ci","clean":"rm -rf build","test:ci":"jest","lint-fix":"eslint . --ext .ts --fix"},"_npmUser":{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},"_npmVersion":"8.3.1","description":"A class that creates a way to postpone calling a function until no more calls are made for a specified amount of time.","directories":{},"_nodeVersion":"16.14.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","eslint":"^8.29.0","sqlite3":"^5.1.2","ts-jest":"^29.0.3","sequelize":"^6.26.0","typescript":"^4.9.3","@types/jest":"^29.2.4","@types/sequelize":"^4.28.14","@typescript-eslint/parser":"^5.45.1","@typescript-eslint/eslint-plugin":"^5.45.1"},"_npmOperationalInternal":{"tmp":"tmp/wait-until-idle_1.0.0_1670490151126_0.1886191549294387","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@24hr/wait-until-idle","version":"1.0.1","keywords":[],"author":{"name":"thjo"},"license":"ISC","_id":"@24hr/wait-until-idle@1.0.1","maintainers":[{"name":"richardsweeney","email":"theorboman@gmail.com"},{"name":"alexander-nilsson","email":"alexander.nilsson83@gmail.com"},{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},{"name":"24hr-machine-user","email":"services@24hr.se"},{"name":"insidenpm","email":"peterlarssonsmail@gmail.com"},{"name":"bextex","email":"r.sarvegard@gmail.com"}],"dist":{"shasum":"a1e90a92628c03e6ab23177ead590148e8dceffe","tarball":"https://registry.npmjs.org/@24hr/wait-until-idle/-/wait-until-idle-1.0.1.tgz","fileCount":8,"integrity":"sha512-RogQGJYiZ12Z0pd/2RHZqBWErZL6VJTTCM+skhpQCJSdupD12XWDulb3iRVsTLJSekCK8OkG5mXit+rY8PLeog==","signatures":[{"sig":"MEUCIQCkALsExZSR6cOE359wAyFtX+x6TUSyRTMnqGOcK1avLgIgPbxsrMNLRcm+ketY5J5CCtEg5FE+An5IgLT8WQCZUoE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13511,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkbDlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOKRAAigy3WQTl3P27WoaEg5Bj59kuPbIqoWhyGUI+FysfYfu96StB\r\njXaQKFLCa6M0vYrvUPZqSYWbRmz66TKU/1FnzZ7pNmpWdJxSHvn3pZPWzDSF\r\nSKr09F6NmpcyGQPkkhb3+0lxw/NdtUmpQJQHeMe3IhdIv1qD72VLpAMQMWFg\r\nBemLcw7w9ht6kS0b+kw4l6KTYVCn4zbEnqZ/2BL8nhhVWaYMwB3K1M2y0cKi\r\n7+RkIp6wRYTR+6Zy0lutzEjEMmW0H3dXDAN2CuYiMVxNSq7g+TBUM4ZY4WdT\r\nwZwJBwQeon1bRbe6/FXbc/6gjgC94l1oHpDoLL+wp11aDotC5ZFOpfFNudfG\r\nsfnH6+H6P1zWqd+AjBLCA26XM2H+9MKUFHjwsx/B5BEGizwm7PknVR2kFU3W\r\n2iWaC+TFOB6r1M/vvxTKsVwxTrDSpoBZTvZWfSjz2c/UWWnbczHyTyL6GNlf\r\nWF2sxlSvgceJSJgGrueuReSjeDWIKVQ3eQMyLRjas9WI6ppoGX2mz5XWZ52u\r\nj41pAqdcnqflrRFGlhAazQwhcCF462QQhyCIaQEXXpvGMqhIo1qimwKDbwSF\r\nTdKeyz0j7KmtRmAFhk3L2Y9arAWYGSMPbB90pkUGFmlvbvhTv7ztiXX5paKy\r\n++T4IUdgkhwewedvLq70gMVKM40CPMLUQOA=\r\n=cEzQ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"ts-jest","testEnvironment":"node","setupFilesAfterEnv":["./src/test/setup.ts"],"modulePathIgnorePatterns":["build/"]},"main":"./build/index.js","types":"./build/index.d.ts","gitHead":"c84b8ec2f35bee07a7fe0c65afd63c21931fe368","scripts":{"lint":"eslint . --ext .ts","test":"jest --watchAll --no-cache","build":"npm run clean && tsc","check":"npm run build && npm run lint && npm run test:ci","clean":"rm -rf build","test:ci":"jest","lint-fix":"eslint . --ext .ts --fix"},"_npmUser":{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},"_npmVersion":"8.3.1","description":"A class that creates a way to postpone calling a function until no more calls are made for a specified amount of time.","directories":{},"_nodeVersion":"16.14.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","eslint":"^8.29.0","sqlite3":"^5.1.2","ts-jest":"^29.0.3","sequelize":"^6.26.0","typescript":"^4.9.3","@types/jest":"^29.2.4","@types/sequelize":"^4.28.14","@typescript-eslint/parser":"^5.45.1","@typescript-eslint/eslint-plugin":"^5.45.1"},"_npmOperationalInternal":{"tmp":"tmp/wait-until-idle_1.0.1_1670492388910_0.47510407864198756","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@24hr/wait-until-idle","version":"1.1.0","keywords":[],"author":{"name":"thjo"},"license":"ISC","_id":"@24hr/wait-until-idle@1.1.0","maintainers":[{"name":"richardsweeney","email":"theorboman@gmail.com"},{"name":"alexander-nilsson","email":"alexander.nilsson83@gmail.com"},{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},{"name":"24hr-machine-user","email":"services@24hr.se"},{"name":"insidenpm","email":"peterlarssonsmail@gmail.com"},{"name":"bextex","email":"r.sarvegard@gmail.com"}],"dist":{"shasum":"414a6613efef11d5ff29844cf46ac9e295b97988","tarball":"https://registry.npmjs.org/@24hr/wait-until-idle/-/wait-until-idle-1.1.0.tgz","fileCount":8,"integrity":"sha512-jEv9Sn8Eiis6mNfGh53X5OTmmRk5kboMcuCfU+RfnVP6eFXFFaoMm4/DMtLWCYNmbUlsZs++b2ou71CXLoU/cg==","signatures":[{"sig":"MEQCID9rgilOB7QgSaBZQnOtDLMnvTUDO/yyF/dQcJDavMxbAiBaA15eXo9EAwOzazKnup3UE11xTmRNRHOebXDATQINRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14234},"jest":{"preset":"ts-jest","testEnvironment":"node","setupFilesAfterEnv":["./src/test/setup.ts"],"modulePathIgnorePatterns":["build/"]},"main":"./build/index.js","types":"./build/index.d.ts","gitHead":"0ed3b6edf1a553a78ed2b9b5114354c959dfee76","scripts":{"lint":"eslint . --ext .ts","test":"jest --watchAll --no-cache","build":"npm run clean && tsc","check":"npm run build && npm run lint && npm run test:ci","clean":"rm -rf build","test:ci":"jest","lint-fix":"eslint . --ext .ts --fix"},"_npmUser":{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},"_npmVersion":"8.19.4","description":"A class that creates a way to postpone calling a function until no more calls are made for a specified amount of time.","directories":{},"_nodeVersion":"16.20.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","eslint":"^8.29.0","sqlite3":"^5.1.2","ts-jest":"^29.0.3","sequelize":"^6.26.0","typescript":"^4.9.3","@types/jest":"^29.2.4","@types/sequelize":"^4.28.14","@typescript-eslint/parser":"^5.45.1","@typescript-eslint/eslint-plugin":"^5.45.1"},"_npmOperationalInternal":{"tmp":"tmp/wait-until-idle_1.1.0_1686255441788_0.5458566323414689","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-12-08T09:02:31.125Z","modified":"2026-08-18T09:13:02.234Z","1.0.0":"2022-12-08T09:02:31.329Z","1.0.1":"2022-12-08T09:39:49.108Z","1.1.0":"2023-06-08T20:17:21.957Z"},"author":{"name":"thjo"},"license":"ISC","keywords":[],"description":"A class that creates a way to postpone calling a function until no more calls are made for a specified amount of time.","maintainers":[{"email":"alexander.nilsson83@gmail.com","name":"alexander-nilsson"},{"email":"camilo.tapia@gmail.com","name":"camilo.tapia"},{"email":"services@24hr.se","name":"24hr-machine-user"},{"email":"peterlarssonsmail@gmail.com","name":"insidenpm"},{"email":"me@fearswe.net","name":"thjo"},{"email":"r.sarvegard@gmail.com","name":"bextex"},{"email":"mikaela.ruden@24hr.se","name":"mikaela.ruden"},{"email":"simon.sporrong@24hr.se","name":"simon.sporrong"},{"email":"oscar.lillheden@twofour.se","name":"oscartwofour"},{"email":"christofer.haglund@outlook.com","name":"haglund"},{"email":"freddy.persson@twofour.se","name":"freddy.persson"}],"readme":"# Wait Until Idle\n\nA class that creates a way to postpone calling a function until no more calls are made for a specified amount of time.\n\nAs well as a class to easier manage multiple instances of the waiter objects.\n\n## Examples\n\n### WaitUntilIdle\n    \n```ts\nimport { WaitUntilIdle } from 'wait-until-idle';\n\nconst waitUntilIdle = new WaitUntilIdle();\n\nwaitUntilIdle.createStartOrReset('insert-id-here', () => {\n    console.log('This will only be called once after 1 second if no one calls reset again.');\n}, 1000);\n\nwaitUntilIdle.createStartOrReset('a-self-destructing-waiter-object', () => {\n    console.log('This will only be called once after 1 second if no one calls reset again.');\n}, 1000, true);\n\nwaitUntilIdle.startOrReset('some-id-for-the-wait');\n```\n\n### WaiterObject\n    \n```ts\nimport { WaiterObject } from 'wait-until-idle';\n\nconst waiterObject = new WaiterObject(() => {\n    console.log('This will only be called once after 1 second if no one calls reset again.');\n}, 1000);\n\nwaiterObject.startOrReset();\n```\n\n","readmeFilename":"README.md"}