@adobe/plugin-hooks

0.3.2 • Public • Published

Hooks Plugin

Hooks allow you to invoke a composable local or remote function on a targeted node.

  • Some use cases for the Hooks include:

  • Authenticating a user before all operations

Checking for an authorization token before making a request

Hooks increase processing time. Use them sparingly if processing time is important. Hooks are executed in the order you provide them. However, any blocking hooks execute before non-blocking hooks.

Hook arguments

Hooks are plugins that accept the following arguments:

Syntax:

"hooks": {
    "beforeAll": {
        "composer": "<Local or Remote file>",
        "blocking": true|false
    }
}
  • composer (string) - The local or remote file location of the function you want to execute.

  • blocking (boolean) - (false by default) Determines if the query waits for a successful return message before continuing the query.

Readme

Keywords

none

Package Sidebar

Install

npm i @adobe/plugin-hooks

Weekly Downloads

260

Version

0.3.2

License

Apache-2.0

Unpacked Size

41.9 kB

Total Files

21

Last publish

Collaborators

  • mhaack
  • amol-anand
  • doten
  • stopp-adobe
  • dylandepass
  • djaeggi
  • adobehalls
  • fullcolorcoder
  • marbec
  • tripod
  • garthdb
  • lazd
  • adobe-admin
  • patrickfulton
  • trieloff
  • shazron
  • krisnye
  • dcpfsdk
  • natebaldwin
  • devongovett
  • aspro83
  • symanovi
  • dpfister
  • stefan-guggisberg
  • korra
  • rofe
  • kptdobe