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

@artus/core

Package Overview
Dependencies
Maintainers
8
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artus/core - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

lib/configuration/decorator.d.ts

3

lib/application.js

@@ -67,3 +67,4 @@ "use strict";

try {
await this.lifecycleManager.emitHook('beforeClose');
// reverse emitHook to avoid plugin closed before app hook
await this.lifecycleManager.emitHook('beforeClose', null, true);
}

@@ -70,0 +71,0 @@ catch (e) {

@@ -19,3 +19,3 @@ import { Constructable } from '@artus/injection';

registerHookUnit(extClazz: Constructable<any>): void;
emitHook<T = unknown>(hookName: string, payload?: T): Promise<void>;
emitHook<T = unknown>(hookName: string, payload?: T, reverse?: boolean): Promise<void>;
}

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

}
async emitHook(hookName, payload) {
async emitHook(hookName, payload, reverse = false) {
if (!this.enable) {

@@ -69,2 +69,5 @@ return;

this.hookFnMap.delete(hookName);
if (reverse) {
fnList.reverse();
}
for (const hookFn of fnList) {

@@ -71,0 +74,0 @@ await hookFn({

{
"name": "@artus/core",
"version": "2.1.0",
"version": "2.1.1",
"description": "Core package of Artus",

@@ -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