@bleedingdev/modern-js-runtime-utils 3.2.0-ultramodern.123 → 3.2.0-ultramodern.125
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.
|
@@ -31,10 +31,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
31
31
|
getAsyncLocalStorage: ()=>getAsyncLocalStorage,
|
|
32
32
|
storage: ()=>async_storage_server_storage
|
|
33
33
|
});
|
|
34
|
-
const
|
|
34
|
+
const external_node_async_hooks_namespaceObject = require("node:async_hooks");
|
|
35
35
|
const createStorage = ()=>{
|
|
36
36
|
let storage;
|
|
37
|
-
if (void 0 !==
|
|
37
|
+
if (void 0 !== external_node_async_hooks_namespaceObject.AsyncLocalStorage) storage = new external_node_async_hooks_namespaceObject.AsyncLocalStorage();
|
|
38
38
|
const run = (context, cb)=>{
|
|
39
39
|
if (!storage) throw new Error(`Unable to use async_hook, please confirm the node version >= 12.17
|
|
40
40
|
`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as __rspack_external_node_async_hooks_e65a2d6c from "node:async_hooks";
|
|
2
2
|
const createStorage = ()=>{
|
|
3
3
|
let storage;
|
|
4
|
-
if (void 0 !==
|
|
4
|
+
if (void 0 !== __rspack_external_node_async_hooks_e65a2d6c.AsyncLocalStorage) storage = new __rspack_external_node_async_hooks_e65a2d6c.AsyncLocalStorage();
|
|
5
5
|
const run = (context, cb)=>{
|
|
6
6
|
if (!storage) throw new Error(`Unable to use async_hook, please confirm the node version >= 12.17
|
|
7
7
|
`);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __rspack_external_node_async_hooks_e65a2d6c from "node:async_hooks";
|
|
3
3
|
const createStorage = ()=>{
|
|
4
4
|
let storage;
|
|
5
|
-
if (void 0 !==
|
|
5
|
+
if (void 0 !== __rspack_external_node_async_hooks_e65a2d6c.AsyncLocalStorage) storage = new __rspack_external_node_async_hooks_e65a2d6c.AsyncLocalStorage();
|
|
6
6
|
const run = (context, cb)=>{
|
|
7
7
|
if (!storage) throw new Error(`Unable to use async_hook, please confirm the node version >= 12.17
|
|
8
8
|
`);
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.2.0-ultramodern.
|
|
20
|
+
"version": "3.2.0-ultramodern.125",
|
|
21
21
|
"_comment": "Provide ESM and CJS exports, ESM is used by runtime package, for treeshaking",
|
|
22
22
|
"exports": {
|
|
23
23
|
"./router": {
|
|
@@ -161,8 +161,8 @@
|
|
|
161
161
|
"lru-cache": "^11.5.1",
|
|
162
162
|
"react-router": "7.17.0",
|
|
163
163
|
"serialize-javascript": "^7.0.5",
|
|
164
|
-
"@modern-js/
|
|
165
|
-
"@modern-js/
|
|
164
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.125",
|
|
165
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.125"
|
|
166
166
|
},
|
|
167
167
|
"peerDependencies": {
|
|
168
168
|
"react": "^19.2.7",
|
package/rslib.config.mts
CHANGED
|
@@ -19,7 +19,8 @@ export default defineConfig({
|
|
|
19
19
|
output: {
|
|
20
20
|
...libConfig.output,
|
|
21
21
|
externals: {
|
|
22
|
-
async_hooks: 'async_hooks',
|
|
22
|
+
async_hooks: 'node:async_hooks',
|
|
23
|
+
'node:async_hooks': 'node:async_hooks',
|
|
23
24
|
'./async_storage.server': './async_storage.server',
|
|
24
25
|
},
|
|
25
26
|
},
|