Socket
Socket
Sign inDemoInstall

hookified

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hookified - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

2

dist/index.d.ts

@@ -8,3 +8,3 @@ import Emittery from 'emittery';

removeHook(event: string, handler: Hook): void;
hook(event: string, ...data: any[]): Promise<void>;
hook<T>(event: string, ...arguments_: T[]): Promise<void>;
get hooks(): Map<string, Hook[]>;

@@ -11,0 +11,0 @@ getHooks(event: string): Hook[] | undefined;

@@ -29,3 +29,3 @@ import Emittery from 'emittery';

// Triggers all handlers for a specific event with provided data
async hook(event, ...data) {
async hook(event, ...arguments_) {
const eventHandlers = this._hooks.get(event);

@@ -35,4 +35,4 @@ if (eventHandlers) {

try {
// eslint-disable-next-line no-await-in-loop, @typescript-eslint/no-unsafe-argument
await handler(...data);
// eslint-disable-next-line no-await-in-loop
await handler(...arguments_);
}

@@ -39,0 +39,0 @@ catch (error) {

{
"name": "hookified",
"version": "0.7.0",
"version": "0.7.1",
"description": "Event and Middleware Hooks",

@@ -5,0 +5,0 @@ "type": "module",

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