UNPKG

@mondaydotcomorg/node-execution-context

Version:

Persistent execution context allowing you to get/set the context anywhere implemented using async hooks. Can be used to create request level execution context, a stack trace that persists through async resources, or anything else you need to survive the e

12 lines (10 loc) 284 B
const CONTEXT_ALREADY_DECLARED = new Error( "Execution context has already been created for this async resource" ); const CONTEXT_MUST_BE_AN_OBJECT = new Error( "Execution context must be a object" ); module.exports = { CONTEXT_ALREADY_DECLARED, CONTEXT_MUST_BE_AN_OBJECT };