UNPKG

nestjs-cls

Version:

A continuation-local storage module compatible with NestJS's dependency injection.

8 lines (7 loc) 319 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.globalClsService = void 0; const async_hooks_1 = require("async_hooks"); const cls_service_1 = require("./cls.service"); const als = new async_hooks_1.AsyncLocalStorage(); exports.globalClsService = new cls_service_1.ClsService(als);