@dnax/core 0.16.7 → 0.16.8

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/index.ts CHANGED
@@ -11,6 +11,7 @@ import { dataCache } from "./lib/bento";
11
11
  import { ai } from "./lib/ai";
12
12
  import { crypt } from "./lib/crypto";
13
13
  import { Document as document } from "./lib/docs";
14
+ import { contextStorage } from "./lib/asyncLocalStorage";
14
15
 
15
16
  /**
16
17
  * v is internal data validation and based of Joi validation.
@@ -19,4 +20,16 @@ import { Document as document } from "./lib/docs";
19
20
  */
20
21
  const v = Joi;
21
22
 
22
- export { runApp, define, utils, useRest, v, dataCache, ai, crypt, document, $ };
23
+ export {
24
+ runApp,
25
+ define,
26
+ utils,
27
+ useRest,
28
+ v,
29
+ dataCache,
30
+ ai,
31
+ crypt,
32
+ document,
33
+ $,
34
+ contextStorage,
35
+ };
@@ -98,4 +98,6 @@ const requestStorage = () => ({
98
98
  },
99
99
  });
100
100
 
101
- export { sessionStorage, asyncLocalStorage, requestStorage };
101
+ const contextStorage = asyncLocalStorage.getStore() as InstanceType<typeof Map>;
102
+
103
+ export { sessionStorage, asyncLocalStorage, requestStorage, contextStorage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.16.7",
3
+ "version": "0.16.8",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {
@@ -59,7 +59,6 @@
59
59
  "rfc6902": "^5.1.2",
60
60
  "sharp": "^0.33.5",
61
61
  "signaldb": "^0.24.0",
62
- "socket.io": "^4.8.1",
63
62
  "ufo": "^1.5.3",
64
63
  "urlencode": "^2.0.0",
65
64
  "uuid": "^10.0.0"