test-entity-library-asm 3.9.12 → 3.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -101,6 +101,8 @@ function timezoneMiddleware(req, res, next) {
|
|
|
101
101
|
exports.timezoneMiddleware = timezoneMiddleware;
|
|
102
102
|
function getTimeZone() {
|
|
103
103
|
const store = asyncLocalStorage.getStore();
|
|
104
|
+
console.log(store, "store");
|
|
105
|
+
console.log(store?.get("timezone"), "y");
|
|
104
106
|
return store?.get("timezone") ?? "UTC";
|
|
105
107
|
}
|
|
106
108
|
exports.getTimeZone = getTimeZone;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -103,6 +103,9 @@ export function timezoneMiddleware(
|
|
|
103
103
|
|
|
104
104
|
export function getTimeZone(): string {
|
|
105
105
|
const store = asyncLocalStorage.getStore();
|
|
106
|
+
console.log(store, "store");
|
|
107
|
+
console.log(store?.get("timezone"), "y");
|
|
108
|
+
|
|
106
109
|
return store?.get("timezone") ?? "UTC";
|
|
107
110
|
}
|
|
108
111
|
|