New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hook-emitter

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hook-emitter - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

19

dist/index.js

@@ -136,11 +136,14 @@ 'use strict';

for (let i = 0, l = listeners.length; i < l; i++) {
const len = listeners.length;
if (len === 1 && listeners[0] === listener) {
// there was only one event and this was it, so
// nuke the entire event from the map
this._events.delete(evt);
continue;
}
for (let i = 0; i < len; i++) {
if (listeners[i] === listener) {
if (l === 1) {
// there was only one event and this was it, so
// nuke the entire event from the map
this._events.delete(evt);
} else {
listeners.splice(i, 1);
}
listeners.splice(i, 1);
break;

@@ -147,0 +150,0 @@ }

{
"name": "hook-emitter",
"version": "0.1.7",
"version": "0.1.8",
"description": "Event emitter with support for asynchronous handlers and a sweet function hook mechanism.",

@@ -31,2 +31,3 @@ "main": "./dist/index.js",

"esdoc-es7-plugin": "0.0.3",
"eslint": "2.2.0",
"gulp": "^3.9.1",

@@ -33,0 +34,0 @@ "gulp-babel": "^6.1.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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