Socket
Socket
Sign inDemoInstall

eventemitter3

Package Overview
Dependencies
0
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

26

index.js

@@ -45,18 +45,18 @@ 'use strict';

case 1:
fn.call(fn.context || this);
fn.call(fn.__EE3_context || this);
break;
case 2:
fn.call(fn.context || this, a1);
fn.call(fn.__EE3_context || this, a1);
break;
case 3:
fn.call(fn.context || this, a1, a2);
fn.call(fn.__EE3_context || this, a1, a2);
break;
case 4:
fn.call(fn.context || this, a1, a2, a3);
fn.call(fn.__EE3_context || this, a1, a2, a3);
break;
case 5:
fn.call(fn.context || this, a1, a2, a3, a4);
fn.call(fn.__EE3_context || this, a1, a2, a3, a4);
break;
case 6:
fn.call(fn.context || this, a1, a2, a3, a4, a5);
fn.call(fn.__EE3_context || this, a1, a2, a3, a4, a5);
break;

@@ -69,6 +69,6 @@

fn.apply(fn.context || this, args);
fn.apply(fn.__EE3_context || this, args);
}
if (fn.once) this.removeListener(event, fn);
if (fn.__EE3_once) this.removeListener(event, fn);
} else {

@@ -80,4 +80,4 @@ for (i = 1, args = new Array(len -1); i < len; i++) {

for (i = 0; i < length; fn = listeners[++i]) {
fn.apply(fn.context || this, args);
if (fn.once) this.removeListener(event, fn);
fn.apply(fn.__EE3_context || this, args);
if (fn.__EE3_once) this.removeListener(event, fn);
}

@@ -101,3 +101,3 @@ }

fn.context = context;
fn.__EE3_context = context;
this._events[event].push(fn);

@@ -117,3 +117,3 @@

EventEmitter.prototype.once = function once(event, fn, context) {
fn.once = true;
fn.__EE3_once = true;
return this.on(event, fn, context);

@@ -136,3 +136,3 @@ };

for (var i = 0, length = listeners.length; i < length; i++) {
if (fn && listeners[i] !== fn && listeners[i].fn !== fn) {
if (fn && listeners[i] !== fn) {
events.push(listeners[i]);

@@ -139,0 +139,0 @@ }

{
"name": "eventemitter3",
"version": "0.1.0",
"version": "0.1.1",
"description": "EventEmitter3 focuses on performance while maintaining a Node.js AND browser compatible interface. This the source of the same EventEmitter that is used in Primus.",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc