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

@stoplight/lifecycle

Package Overview
Dependencies
Maintainers
11
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/lifecycle - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

emitter/emitter.d.ts

@@ -0,3 +1,4 @@

import StrictEventEmitter from 'strict-event-emitter-types';
import { IDisposable } from '../disposable';
import { IEventEmitter } from './types';
import { IEventEmitter, IEventEmitterInstance } from './types';
export declare class EventEmitter<E extends object> implements IEventEmitter<E> {

@@ -10,1 +11,2 @@ private _emitter;

}
export declare function createEventEmitter<T extends object>(): new () => StrictEventEmitter<IEventEmitterInstance, T, T, "addListener" | "addEventListener" | "removeListener" | "removeEventListener" | "once", "on" | "emit">;

@@ -35,2 +35,7 @@ "use strict";

exports.EventEmitter = EventEmitter;
function createEventEmitter() {
const TypedEmitter = EventEmitter;
return TypedEmitter;
}
exports.createEventEmitter = createEventEmitter;
//# sourceMappingURL=emitter.js.map
{
"name": "@stoplight/lifecycle",
"version": "2.0.0",
"version": "2.0.1",
"description": "Event and disposable helpers.",

@@ -5,0 +5,0 @@ "keywords": [],

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