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

strict-event-emitter

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strict-event-emitter - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

5

lib/index.js

@@ -57,3 +57,3 @@ var __defProp = Object.defineProperty;

_getListeners(eventName) {
return this.events.get(eventName) || [];
return Array.prototype.concat.apply([], this.events.get(eventName)) || [];
}

@@ -70,4 +70,5 @@ _removeListener(listeners, listener) {

this.removeListener(eventName, onceListener);
listener.apply(this, data);
return listener.apply(this, data);
};
Object.defineProperty(onceListener, "name", { value: listener.name });
return onceListener;

@@ -74,0 +75,0 @@ }

4

package.json
{
"name": "strict-event-emitter",
"version": "0.5.0",
"version": "0.5.1",
"description": "Type-safe implementation of EventEmitter for browser and Node.js",

@@ -22,3 +22,3 @@ "main": "lib/index.js",

"devDependencies": {
"@ossjs/release": "^0.4.0",
"@ossjs/release": "^0.8.0",
"@types/events": "^3.0.0",

@@ -25,0 +25,0 @@ "@types/jest": "^29.2.4",

Sorry, the diff of this file is not supported yet

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