UNPKG

autotel

Version:
17 lines (14 loc) 503 B
'use strict'; var async_hooks = require('async_hooks'); // src/operation-context.ts var operationStorage = new async_hooks.AsyncLocalStorage(); function getOperationContext() { return operationStorage.getStore(); } function runInOperationContext(name, fn) { return operationStorage.run({ name }, fn); } exports.getOperationContext = getOperationContext; exports.runInOperationContext = runInOperationContext; //# sourceMappingURL=chunk-VQTCQKHQ.cjs.map //# sourceMappingURL=chunk-VQTCQKHQ.cjs.map