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

8 lines (5 loc) 218 B
const { CONTEXT_MUST_BE_AN_OBJECT } = require("../errors"); function verifyContextIsObject(context) { if (typeof context !== "object") throw CONTEXT_MUST_BE_AN_OBJECT; } module.exports = { verifyContextIsObject };