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

@stoplight/lifecycle

Package Overview
Dependencies
Maintainers
18
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.1.1 to 2.1.2

12

activatable/activatable.d.ts

@@ -1,6 +0,8 @@

export interface IActivatable {
readonly state: 'deactivated' | 'isActivating' | 'activated' | 'isDeactivating';
export interface IMinimalActivatable {
activate: () => Promise<void>;
deactivate: () => Promise<void>;
}
export interface IActivatable extends IMinimalActivatable {
readonly state: 'deactivated' | 'isActivating' | 'activated' | 'isDeactivating';
}
export declare abstract class Activatable implements IActivatable {

@@ -16,7 +18,7 @@ private _state;

}
export declare class ActivatableCollection extends Activatable implements IActivatableCollection {
readonly activatables: IActivatable[];
export declare class ActivatableCollection<T extends IMinimalActivatable> extends Activatable implements IActivatableCollection {
readonly activatables: T[];
protected doActivate(): Promise<void>;
protected doDeactivate(): Promise<void>;
push(activatables: IActivatable): void;
push(activatables: T): void;
}
{
"name": "@stoplight/lifecycle",
"version": "2.1.1",
"version": "2.1.2",
"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