{"_id":"@dangzhuotong/cordis-plugin-timer","name":"@dangzhuotong/cordis-plugin-timer","dist-tags":{"latest":"1.1.3"},"versions":{"1.1.3":{"name":"@dangzhuotong/cordis-plugin-timer","description":"Timer service for cordis","version":"1.1.3","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/deepseek-ai/deepseek-harness.git","directory":"vendor/timer"},"type":"module","main":"lib/index.js","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./src/*":"./src/*","./package.json":"./package.json"},"author":{"name":"Shigma","email":"shigma10826@gmail.com"},"license":"MIT","peerDependencies":{"@dangzhuotong/cordis":"^4.0.1"},"dependencies":{"@dangzhuotong/cosmokit":"^1.8.2"},"_id":"@dangzhuotong/cordis-plugin-timer@1.1.3","gitHead":"53baf21dfae3d134fa248f36dafb4ab1fe28e55c","bugs":{"url":"https://github.com/deepseek-ai/deepseek-harness/issues"},"homepage":"https://github.com/deepseek-ai/deepseek-harness#readme","_integrity":"sha512-mdFXJB7Dl5PkgQEoVxkEnR2K9LY0jx256ZojFRrDgL+F30CHTA9BNeSkPcdnFDTeKu/6BCfmf6NYzlA+zrZEzA==","_resolved":"D:\\Coding\\deepseek-harness-master\\dist\\npm\\vendor\\dangzhuotong-cordis-plugin-timer-1.1.3.tgz","_from":"file:D:/Coding/deepseek-harness-master/dist/npm/vendor/dangzhuotong-cordis-plugin-timer-1.1.3.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-mdFXJB7Dl5PkgQEoVxkEnR2K9LY0jx256ZojFRrDgL+F30CHTA9BNeSkPcdnFDTeKu/6BCfmf6NYzlA+zrZEzA==","shasum":"fbf8447071a6bfb8aa6fc62b3242198b41b5a164","tarball":"https://registry.npmjs.org/@dangzhuotong/cordis-plugin-timer/-/cordis-plugin-timer-1.1.3.tgz","fileCount":7,"unpackedSize":15098,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCTH3p72kQ+a+glv/JSFhLqWrH0csJ6yciJODFWBwk6GwIgQ2dnkc3bKcaNup52+RJ8xaqmz43WsyFMMBurSwUjpyU="}]},"_npmUser":{"name":"dangzhuotong","email":"353199054@qq.com"},"directories":{},"maintainers":[{"name":"dangzhuotong","email":"353199054@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cordis-plugin-timer_1.1.3_1787281271352_0.011234191246371372"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-21T03:01:11.126Z","1.1.3":"2026-08-21T03:01:11.515Z","modified":"2026-08-21T03:01:11.766Z"},"maintainers":[{"name":"dangzhuotong","email":"353199054@qq.com"}],"description":"Timer service for cordis","homepage":"https://github.com/deepseek-ai/deepseek-harness#readme","repository":{"type":"git","url":"git+https://github.com/deepseek-ai/deepseek-harness.git","directory":"vendor/timer"},"author":{"name":"Shigma","email":"shigma10826@gmail.com"},"bugs":{"url":"https://github.com/deepseek-ai/deepseek-harness/issues"},"license":"MIT","readme":"# @cordisjs/plugin-timer\n\nDisposal-aware timer service for Cordis.\n\n## Usage\n\n```ts\nimport { Context } from 'cordis'\nimport Timer from '@cordisjs/plugin-timer'\n\nconst root = new Context()\nawait root.plugin(Timer)\n\nconst dispose = root.timeout(() => {\n  root.logger.info('done')\n}, 1000)\n\ndispose()\n```\n\nTimer handles are registered on the current fiber, so they are cleared\nautomatically when the plugin that created them is disposed.\n\n## API\n\n| API | Description |\n| --- | --- |\n| `ctx.timeout(callback, delay)` | Run once and return a disposer. |\n| `ctx.timeout(delay)` | Return a promise that resolves after `delay`. |\n| `ctx.interval(callback, delay)` | Run repeatedly and return a disposer. |\n| `ctx.interval(delay)` | Return an async iterator that yields on each interval. |\n| `ctx.throttle(callback, delay, noTrailing?)` | Return a throttled function with `.dispose()`. |\n| `ctx.debounce(callback, delay)` | Return a debounced function with `.dispose()`. |\n\n`ctx.setTimeout()` and `ctx.setInterval()` are kept as deprecated aliases for\n`ctx.timeout()` and `ctx.interval()`.\n","readmeFilename":"README.md","_rev":"1-9797d1ba57b9b0a048ed524221e258ef"}