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

wtfnode

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wtfnode - npm Package Compare versions

Comparing version 0.7.2 to 0.7.3

9

index.js

@@ -238,7 +238,8 @@ 'use strict';

var before = emitter.listeners(type);
origMethod.call(emitter, type, cb);
var ret = origMethod.call(emitter, type, cb);
var after = emitter.listeners(type);
return after.filter(function(handler) {
var newListeners = after.filter(function(handler) {
return before.indexOf(handler) === -1;
});
return [ret, newListeners];
}

@@ -260,3 +261,4 @@

var newListeners = addListener(this, origMethod, type, fn);
var res = addListener(this, origMethod, type, fn);
var ret = res[0], newListeners = res[1];
newListeners.forEach(function (listener) {

@@ -282,2 +284,3 @@ // I've tried to avoid mutating anything that's not mine, however

});
return ret;
};

@@ -284,0 +287,0 @@ });

{
"name": "wtfnode",
"version": "0.7.2",
"version": "0.7.3",
"description": "Utility to help find out why Node isn't exiting",

@@ -5,0 +5,0 @@ "repository": {

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