@edirect/audit-domain
Advanced tools
Comparing version 1.5.14 to 1.5.15
@@ -5,2 +5,4 @@ # Changelog | ||
## [1.5.15](https://bitbucket.org/gofrank/audit-service-nodejs/compare/v1.5.14...v1.5.15) (2023-09-19) | ||
## [1.5.14](https://bitbucket.org/gofrank/audit-service-nodejs/compare/v1.5.13...v1.5.14) (2023-09-19) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@edirect/audit-domain", | ||
"version": "1.5.14", | ||
"version": "1.5.15", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (namespace && namespace.active) { | ||
return namespace.get(key); | ||
return namespace.get(`audit-data.${key}`); | ||
} | ||
@@ -28,3 +28,3 @@ } | ||
if (namespace && namespace.active) { | ||
return namespace.set(key, value); | ||
return namespace.set(`auditdata.${key}`, value); | ||
} | ||
@@ -31,0 +31,0 @@ } |
@@ -8,4 +8,2 @@ import { AuditRequest } from './model'; | ||
abstract execute(data: AuditRequest): Promise<AuditRequest>; | ||
protected static setContext<T>(key: string, value: T): void; | ||
protected static getContext<T>(key: string): T; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Middleware = void 0; | ||
const context_1 = require("./context"); | ||
class Middleware { | ||
static setContext(key, value) { | ||
context_1.Context.set(`audit-data.${key}`, value); | ||
} | ||
static getContext(key) { | ||
return context_1.Context.get(`audit-data.${key}`); | ||
} | ||
} | ||
exports.Middleware = Middleware; | ||
//# sourceMappingURL=middleware.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16891
341