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.2.2 to 0.2.3

2

lib/StrictEventEmitter.d.ts

@@ -10,2 +10,4 @@ /// <reference types="node" />

addListener<K extends keyof EventMap>(event: K, listener: EventMap[K]): this;
prependListener<K extends keyof EventMap>(event: K, listener: EventMap[K]): this;
prependOnceListener<K extends keyof EventMap>(event: K, listener: EventMap[K]): this;
removeListener<K extends keyof EventMap>(event: K, listener: EventMap[K]): this;

@@ -12,0 +14,0 @@ eventNames(): Array<keyof EventMap>;

@@ -49,2 +49,8 @@ "use strict";

};
StrictEventEmitter.prototype.prependListener = function (event, listener) {
return _super.prototype.prependListener.call(this, event.toString(), listener);
};
StrictEventEmitter.prototype.prependOnceListener = function (event, listener) {
return _super.prototype.prependOnceListener.call(this, event.toString(), listener);
};
StrictEventEmitter.prototype.removeListener = function (event, listener) {

@@ -51,0 +57,0 @@ return _super.prototype.removeListener.call(this, event.toString(), listener);

2

package.json
{
"name": "strict-event-emitter",
"version": "0.2.2",
"version": "0.2.3",
"description": "Type-safe \"EventEmitter\" for everyday use",

@@ -5,0 +5,0 @@ "main": "lib/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