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

@wixc3/patterns

Package Overview
Dependencies
Maintainers
84
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/patterns - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

7

dist/cjs/event-emitter.d.ts

@@ -0,7 +1,8 @@

import { Signal } from './signal';
/**
* A simple event emitter
*/
export declare class EventEmitter<Events extends Record<string, unknown>, EventId extends keyof Events = keyof Events> {
private events;
private emitOnce;
export declare class EventEmitter<Events extends object, EventId extends keyof Events = keyof Events> {
protected events: Map<EventId, Signal<any>>;
protected emitOnce: Map<EventId, Signal<any>>;
/**

@@ -8,0 +9,0 @@ * Check if an event has subscribers

@@ -0,7 +1,8 @@

import { Signal } from './signal';
/**
* A simple event emitter
*/
export declare class EventEmitter<Events extends Record<string, unknown>, EventId extends keyof Events = keyof Events> {
private events;
private emitOnce;
export declare class EventEmitter<Events extends object, EventId extends keyof Events = keyof Events> {
protected events: Map<EventId, Signal<any>>;
protected emitOnce: Map<EventId, Signal<any>>;
/**

@@ -8,0 +9,0 @@ * Check if an event has subscribers

{
"name": "@wixc3/patterns",
"version": "3.0.4",
"version": "3.0.5",
"description": "A utility for saving objects to be disposed",

@@ -21,5 +21,5 @@ "main": "dist/cjs/index.js",

"dependencies": {
"@wixc3/common": "^3.0.4",
"@wixc3/common": "^3.0.5",
"promise-assist": "^1.3.0"
}
}

@@ -6,5 +6,5 @@ import { Signal } from './signal';

*/
export class EventEmitter<Events extends Record<string, unknown>, EventId extends keyof Events = keyof Events> {
private events = new Map<EventId, Signal<any>>();
private emitOnce = new Map<EventId, Signal<any>>();
export class EventEmitter<Events extends object, EventId extends keyof Events = keyof Events> {
protected events = new Map<EventId, Signal<any>>();
protected emitOnce = new Map<EventId, Signal<any>>();

@@ -11,0 +11,0 @@ /**

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

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