1.3.2 • Published 15 days ago

@contrast/dep-hooks v1.3.2

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
15 days ago

@contrast/dep-hooks

Register hooks for module loads.

This provides a factory wrapper around @contrast/require-hook.

RequireHook class exposes the following methods:

resolve(descriptor, ...handlers) - Registers handlers to run after the described module is required.

  • descriptor:String - descriptor that describes the module to hook
  • handlers:Function - functions that are executed after the require

reset(request) - Resets the seen handlers for a given module - they will be re-run on next require.

  • request:String - request the string passed to require()

https://github.com/Contrast-Security-Inc/node-require-hook

1.3.2

15 days ago

1.3.1

3 months ago

1.2.0

9 months ago

1.1.1

10 months ago

1.3.0

7 months ago

1.1.2

9 months ago

1.1.0

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago