Socket
Socket
Sign inDemoInstall

before-after-hook

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

6

index.d.ts

@@ -10,3 +10,3 @@ declare module "before-after-hook" {

*/
(name: string | string[], options: any, method: (options: any) => Promise<any> | any): Promise<any>
(name: string | string[], method: (options: any) => Promise<any> | any, options: any): Promise<any>
/**

@@ -46,7 +46,7 @@ * Add before hook for given name. Returns `hook` instance for chaining.

*/
(options: T, method: (options: T) => T | null | void): Promise<T>
(method: (options: T) => T | null | void, options: T): Promise<T>
/**
* Invoke before and after hooks with options
*/
(options: T, method: (options: T) => Promise<T | null | void>): Promise<T>
(method: (options: T) => Promise<T | null | void>, options: T): Promise<T>

@@ -53,0 +53,0 @@ /**

{
"name": "before-after-hook",
"version": "2.0.0",
"version": "2.0.1",
"description": "asynchronous before/error/after hooks for internal functionality",

@@ -5,0 +5,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc