nestjs-cls
Version:
A continuation-local storage module compatible with NestJS's dependency injection.
17 lines (16 loc) • 513 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClsServiceManager = void 0;
const cls_service_globals_1 = require("./cls-service.globals");
class ClsServiceManager {
/**
* Retrieve a ClsService outside of Nest's DI.
* @returns the ClsService
*/
static getClsService() {
const cls = this.clsService;
return cls;
}
}
exports.ClsServiceManager = ClsServiceManager;
ClsServiceManager.clsService = cls_service_globals_1.globalClsService;