UNPKG

agentcrumbs

Version:
14 lines 493 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.debugStorage = void 0; exports.getContext = getContext; exports.runWithContext = runWithContext; const node_async_hooks_1 = require("node:async_hooks"); exports.debugStorage = new node_async_hooks_1.AsyncLocalStorage(); function getContext() { return exports.debugStorage.getStore(); } function runWithContext(ctx, fn) { return exports.debugStorage.run(ctx, fn); } //# sourceMappingURL=context.js.map