File size: 1,229 Bytes
f316cce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AsyncLocalContext = void 0;
const async_context_1 = require("civkit/async-context");
const tsyringe_1 = require("tsyringe");
let AsyncLocalContext = class AsyncLocalContext extends async_context_1.GlobalAsyncContext {
};
exports.AsyncLocalContext = AsyncLocalContext;
exports.AsyncLocalContext = AsyncLocalContext = __decorate([
    (0, tsyringe_1.singleton)()
], AsyncLocalContext);
const instance = tsyringe_1.container.resolve(AsyncLocalContext);
Reflect.set(process, 'asyncLocalContext', instance);
exports.default = instance;
//# sourceMappingURL=async-context.js.map