{"_id":"inflight-stable","_rev":"3-0695764aa4d7f9911ef672c0707dd40d","name":"inflight-stable","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"inflight-stable","version":"1.0.0","keywords":["inflight"],"author":{"name":"XSFJ"},"license":"MIT","_id":"inflight-stable@1.0.0","maintainers":[{"name":"xsfj","email":"oagde5@gmail.com"}],"homepage":"https://github.com/xsfj/inflight-stable#readme","bugs":{"url":"https://github.com/xsfj/inflight-stable/issues"},"dist":{"shasum":"9b47df3a5c402efe83b2c124fb461121ab639804","tarball":"https://registry.npmjs.org/inflight-stable/-/inflight-stable-1.0.0.tgz","fileCount":4,"integrity":"sha512-1lEoGIyzUtd/Yb39AXRbn1Nor6oT8xNjYh6wP0CQ3iubodg+VG1iETnL+sC8IJhADTcZsQQHAFK8hMFcwlx+sg==","signatures":[{"sig":"MEUCIQDuRb8QjwIIBiHIHXZVVsN7HQh8tI8vo9KHwN+lB/71xwIgfpcr24OkehKfymsm5Bf69gv9xHTxlFmHDL+SwCTEjto=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8580},"main":"inflight.js","type":"commonjs","gitHead":"e96d4dc4b4edb31d7491313bf59af967e5cd616f","scripts":{"test":"mocha"},"_npmUser":{"name":"xsfj","email":"oagde5@gmail.com"},"repository":{"url":"git+https://github.com/xsfj/inflight-stable.git","type":"git"},"_npmVersion":"11.7.0","description":"inflight, but not deprecated, and actively maintained.","directories":{},"_nodeVersion":"24.12.0","dependencies":{"once":"^1.4.0","wrappy":"^1.0.2","blank-object":"^1.0.2","uncurried-intrinsics":"^1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^11.7.5"},"_npmOperationalInternal":{"tmp":"tmp/inflight-stable_1.0.0_1769455761372_0.2738597172297643","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"inflight-stable","version":"1.0.1","keywords":["inflight"],"author":{"name":"XSFJ"},"license":"MIT","_id":"inflight-stable@1.0.1","maintainers":[{"name":"xsfj","email":"oagde5@gmail.com"}],"homepage":"https://github.com/xsfj/inflight-stable#readme","bugs":{"url":"https://github.com/xsfj/inflight-stable/issues"},"dist":{"shasum":"706ce882e80131b39913aaae8616361b960b0db0","tarball":"https://registry.npmjs.org/inflight-stable/-/inflight-stable-1.0.1.tgz","fileCount":4,"integrity":"sha512-ShimjBv7KbdxA1FtrFRsBFdmLACs/B4W7/zMM4G/8lOcjTHdAWhZF9e7STZ0b5i1003cdbjzkDLCsMwmMOcT7w==","signatures":[{"sig":"MEUCIFbYldJQYH+u7EgrUz2i0ZJyv8kw0QMIiFkaULNbZT+LAiEAy+u0quNDqSDVRy1VGngUBKCGbEI8LRUH2Al8sch3LZY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8214},"main":"inflight.js","type":"commonjs","gitHead":"4e7f1d04746be6fba061a87ae0df00d3db8de09f","scripts":{"test":"mocha"},"_npmUser":{"name":"xsfj","email":"oagde5@gmail.com"},"repository":{"url":"git+https://github.com/xsfj/inflight-stable.git","type":"git"},"_npmVersion":"11.7.0","description":"inflight, but not deprecated, and actively maintained.","directories":{},"_nodeVersion":"24.12.0","dependencies":{"once":"^1.4.0","wrappy":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^11.7.5"},"_npmOperationalInternal":{"tmp":"tmp/inflight-stable_1.0.1_1772744861176_0.07465964124200708","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"inflight-stable","version":"1.0.2","description":"inflight, but not deprecated, and actively maintained.","keywords":["inflight"],"homepage":"https://github.com/legacy-semvers/inflight-stable#readme","bugs":{"url":"https://github.com/legacy-semvers/inflight-stable/issues"},"repository":{"type":"git","url":"git+https://github.com/legacy-semvers/inflight-stable.git"},"license":"MIT","author":{"name":"legacy-semvers"},"type":"commonjs","main":"inflight.js","scripts":{"test":"mocha"},"devDependencies":{"mocha":"^11.7.5"},"dependencies":{"once":"^1.4.0","wrappy":"^1.0.2"},"gitHead":"f94fd519a5ca1767b87335aad79a62e0b18a60a0","_id":"inflight-stable@1.0.2","_nodeVersion":"24.12.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-nAtwcXFFPNZeaL1O0f3XzDammW6HH88UtUGTV5BJhLZtjh0BrbPDoNPIAGzh/IaMJCF3nbVLxBqh6pntxMuQVg==","shasum":"c361dd37507e7b4f2d12d20f379e48a0ab862b7f","tarball":"https://registry.npmjs.org/inflight-stable/-/inflight-stable-1.0.2.tgz","fileCount":4,"unpackedSize":8170,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDm2NAmb2Mrekm0ADVs1QviFCDCu61P1TXKxCPejvYw3wIhAKsW/WcvBfh1USTb+3vEZSNN1gWuJJJS6oIcFmqf+/Y4"}]},"_npmUser":{"name":"xsfj","email":"oagde5@gmail.com"},"directories":{},"maintainers":[{"name":"xsfj","email":"oagde5@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/inflight-stable_1.0.2_1772745019448_0.4567762504099193"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-26T19:29:21.372Z","modified":"2026-03-05T21:10:19.693Z","1.0.0":"2026-01-26T19:29:21.532Z","1.0.1":"2026-03-05T21:07:41.322Z","1.0.2":"2026-03-05T21:10:19.578Z"},"bugs":{"url":"https://github.com/legacy-semvers/inflight-stable/issues"},"author":{"name":"legacy-semvers"},"license":"MIT","homepage":"https://github.com/legacy-semvers/inflight-stable#readme","keywords":["inflight"],"repository":{"type":"git","url":"git+https://github.com/legacy-semvers/inflight-stable.git"},"description":"inflight, but not deprecated, and actively maintained.","maintainers":[{"name":"xsfj","email":"oagde5@gmail.com"}],"readme":"# inflight-stable\n\nA maintained version of the `inflight` module.\n\n## Installation\n\n```bash\nnpm install inflight-stable\n```\n\n## Usage\n\n```javascript\nvar inflight = require('inflight-stable')\n\nfunction fetchData(key, callback) {\n  var makeRequest = inflight(key, callback)\n  \n  if (makeRequest) {\n    // First call - make the actual request\n    doAsyncOperation(function(err, data) {\n      makeRequest(err, data)\n    })\n  }\n  // Subsequent calls return null and queue the callback\n}\n```\n\n## What it does\n\nEnsures multiple calls with the same key will queue up and all receive the same result, rather than executing the same operation multiple times.\n\n## API\n\n**`inflight(key, callback)`**\n\nReturns a callback function on first call, `null` on subsequent calls. Call the returned function to trigger all queued callbacks.\n\n## Migration\n\n```javascript\n// Before\nvar inflight = require('inflight')\n\n// After\nvar inflight = require('inflight-stable')\n```\n\n## Why?\nisaacs deprecated `inflight` because of an apparent memory leak, though it's only really a memory leak if the user never calls the callback, so there's no bug in the code. He suggests using `lru-cache`, but that module isn't as backwards-compatible. So this is a maintained version of `inflight` that isn't completely deprecated.\n\n## License\n\nMIT","readmeFilename":"README.md"}