@edirect/audit-domain
Advanced tools
Comparing version 1.5.13 to 1.5.14
@@ -5,2 +5,4 @@ # Changelog | ||
## [1.5.14](https://bitbucket.org/gofrank/audit-service-nodejs/compare/v1.5.13...v1.5.14) (2023-09-19) | ||
## [1.5.13](https://bitbucket.org/gofrank/audit-service-nodejs/compare/v1.5.12...v1.5.13) (2023-09-19) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@edirect/audit-domain", | ||
"version": "1.5.13", | ||
"version": "1.5.14", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -8,4 +8,4 @@ import { AuditRequest } from './model'; | ||
abstract execute(data: AuditRequest): Promise<AuditRequest>; | ||
protected setContext<T>(key: string, value: T): void; | ||
protected getContext<T>(key: string): T; | ||
protected static setContext<T>(key: string, value: T): void; | ||
protected static getContext<T>(key: string): T; | ||
} |
@@ -6,6 +6,6 @@ "use strict"; | ||
class Middleware { | ||
setContext(key, value) { | ||
static setContext(key, value) { | ||
context_1.Context.set(`audit-data.${key}`, value); | ||
} | ||
getContext(key) { | ||
static getContext(key) { | ||
return context_1.Context.get(`audit-data.${key}`); | ||
@@ -12,0 +12,0 @@ } |
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
17314