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

hookit

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hookit - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

foo.js

26

index.js

@@ -19,3 +19,3 @@ /**

if (alreadyRequired) return console.debug && console.debug('hookit can only be called once')
if (alreadyRequired) return console.warn('hookit can only be called once')
alreadyRequired = true

@@ -88,31 +88,19 @@

case 0:
fn.call(that)
return fn.call(that)
break
case 1:
fn.call(that, args[0])
return fn.call(that, args[0])
break
case 2:
fn.call(that, args[0], args[1])
return fn.call(that, args[0], args[1])
break
case 3:
fn.call(that, args[0], args[1], args[2])
return fn.call(that, args[0], args[1], args[2])
break
case 4:
fn.call(that, args[0], args[1], args[2], args[3])
return fn.call(that, args[0], args[1], args[2], args[3])
break
case 5:
fn.call(that, args[0], args[1], args[2], args[3], args[4])
return fn.call(that, args[0], args[1], args[2], args[3], args[4])
break
case 6:
fn.call(that, args[0], args[1], args[2], args[3], args[4], args[5])
break
case 7:
fn.call(that, args[0], args[1], args[2], args[3], args[4], args[5], args[6])
break
case 8:
fn.call(that, args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7])
break
case 9:
fn.call(that, args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8])
break
default:

@@ -119,0 +107,0 @@ fn.apply(that, args)

{
"name": "hookit",
"version": "1.1.1",
"version": "1.1.2",
"description": "A function for shimming all node.js core IO calls allowing callback wraping.",

@@ -5,0 +5,0 @@ "main": "index.js",

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