Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inflight

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inflight - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

inflight.js

@@ -1,6 +0,7 @@

module.exports = inflight
var wrappy = require('wrappy')
var reqs = Object.create(null)
var once = require('once')
module.exports = wrappy(inflight)
function inflight (key, cb) {

@@ -17,4 +18,3 @@ if (reqs[key]) {

function makeres(key) {
return once(res)
function res(error, data) {
return once(function(error, data) {
var cbs = reqs[key]

@@ -25,3 +25,3 @@ delete reqs[key]

})
}
})
}
{
"name": "inflight",
"version": "1.0.1",
"version": "1.0.2",
"description": "Add callbacks to requests in flight to avoid async duplication",
"main": "inflight.js",
"dependencies": {
"once": "^1.3.0"
"once": "^1.3.0",
"wrappy": "1"
},

@@ -9,0 +10,0 @@ "devDependencies": {

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