New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@matrixai/async-init

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matrixai/async-init - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

6

dist/CreateDestroy.d.ts
interface CreateDestroy {
get destroyed(): boolean;
destroy(...args: Array<any>): Promise<void>;
destroy(...args: Array<any>): Promise<any>;
}
declare function CreateDestroy(): <T extends new (...args: any[]) => {
destroy?(...args: Array<any>): Promise<void>;
destroy?(...args: Array<any>): Promise<any>;
}>(constructor: T) => {

@@ -11,3 +11,3 @@ new (...args: any[]): {

readonly destroyed: boolean;
destroy(...args: Array<any>): Promise<void>;
destroy(...args: Array<any>): Promise<any>;
};

@@ -14,0 +14,0 @@ } & T;

@@ -23,3 +23,3 @@ "use strict";

if (typeof super['destroy'] === 'function') {
await super.destroy(...args);
return await super.destroy(...args);
}

@@ -26,0 +26,0 @@ }

interface CreateDestroyStartStop {
get running(): boolean;
get destroyed(): boolean;
start(...args: Array<any>): Promise<void>;
stop(...args: Array<any>): Promise<void>;
destroy(...args: Array<any>): Promise<void>;
start(...args: Array<any>): Promise<any>;
stop(...args: Array<any>): Promise<any>;
destroy(...args: Array<any>): Promise<any>;
}
declare function CreateDestroyStartStop(errorRunning?: Error, errorDestroyed?: Error): <T extends new (...args: any[]) => {
start?(...args: Array<any>): Promise<void>;
stop?(...args: Array<any>): Promise<void>;
destroy?(...args: Array<any>): Promise<void>;
start?(...args: Array<any>): Promise<any>;
stop?(...args: Array<any>): Promise<any>;
destroy?(...args: Array<any>): Promise<any>;
}>(constructor: T) => {

@@ -18,5 +18,5 @@ new (...args: any[]): {

readonly destroyed: boolean;
destroy(...args: Array<any>): Promise<void>;
start(...args: Array<any>): Promise<void>;
stop(...args: Array<any>): Promise<void>;
destroy(...args: Array<any>): Promise<any>;
start(...args: Array<any>): Promise<any>;
stop(...args: Array<any>): Promise<any>;
};

@@ -23,0 +23,0 @@ } & T;

@@ -30,3 +30,3 @@ "use strict";

if (typeof super['destroy'] === 'function') {
await super.destroy(...args);
return await super.destroy(...args);
}

@@ -49,3 +49,3 @@ }

if (typeof super['start'] === 'function') {
await super.start(...args);
return await super.start(...args);
}

@@ -70,3 +70,3 @@ }

if (typeof super['stop'] === 'function') {
await super.stop(...args);
return await super.stop(...args);
}

@@ -73,0 +73,0 @@ }

interface StartStop {
get running(): boolean;
start(...args: Array<any>): Promise<void>;
stop(...args: Array<any>): Promise<void>;
start(...args: Array<any>): Promise<any>;
stop(...args: Array<any>): Promise<any>;
}
declare function StartStop(): <T extends new (...args: any[]) => {
start?(...args: Array<any>): Promise<void>;
stop?(...args: Array<any>): Promise<void>;
start?(...args: Array<any>): Promise<any>;
stop?(...args: Array<any>): Promise<any>;
}>(constructor: T) => {

@@ -13,4 +13,4 @@ new (...args: any[]): {

readonly running: boolean;
start(...args: Array<any>): Promise<void>;
stop(...args: Array<any>): Promise<void>;
start(...args: Array<any>): Promise<any>;
stop(...args: Array<any>): Promise<any>;
};

@@ -17,0 +17,0 @@ } & T;

@@ -23,3 +23,3 @@ "use strict";

if (typeof super['start'] === 'function') {
await super.start(...args);
return await super.start(...args);
}

@@ -39,3 +39,3 @@ }

if (typeof super['stop'] === 'function') {
await super.stop(...args);
return await super.stop(...args);
}

@@ -42,0 +42,0 @@ }

{
"name": "@matrixai/async-init",
"version": "1.1.0",
"version": "1.2.0",
"author": "Roger Qiu",

@@ -5,0 +5,0 @@ "description": "Asynchronous Initialisation and Deinitialisation Decorators",

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