@bleedingdev/modern-js-runtime-utils 3.5.0-ultramodern.35 → 3.5.0-ultramodern.37
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/cjs/node/sanitize.js +0 -3
- package/dist/esm/node/sanitize.mjs +1 -1
- package/dist/esm/universal/async_storage.server.mjs +2 -2
- package/dist/esm-node/node/sanitize.mjs +1 -1
- package/dist/esm-node/universal/async_storage.server.mjs +2 -2
- package/dist/types/node/sanitize.d.ts +0 -1
- package/package.json +9 -9
|
@@ -93,13 +93,10 @@ const sanitizeSSRPayload = (payload, options = {})=>{
|
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
__webpack_require__.d(__webpack_exports__, {}, {
|
|
96
|
-
DEFAULT_UNSAFE_SSR_HEADERS: DEFAULT_UNSAFE_SSR_HEADERS,
|
|
97
96
|
sanitizeSSRPayload: sanitizeSSRPayload
|
|
98
97
|
});
|
|
99
|
-
exports.DEFAULT_UNSAFE_SSR_HEADERS = __webpack_exports__.DEFAULT_UNSAFE_SSR_HEADERS;
|
|
100
98
|
exports.sanitizeSSRPayload = __webpack_exports__.sanitizeSSRPayload;
|
|
101
99
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
102
|
-
"DEFAULT_UNSAFE_SSR_HEADERS",
|
|
103
100
|
"sanitizeSSRPayload"
|
|
104
101
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
105
102
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as __rspack_external_node_async_hooks_4d8b1b4a 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_4d8b1b4a.AsyncLocalStorage) storage = new __rspack_external_node_async_hooks_4d8b1b4a.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_4d8b1b4a 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_4d8b1b4a.AsyncLocalStorage) storage = new __rspack_external_node_async_hooks_4d8b1b4a.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
|
`);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const DEFAULT_UNSAFE_SSR_HEADERS: readonly ['authorization', 'proxy-authorization', 'cookie', 'set-cookie', 'x-api-key', 'x-auth-token', 'x-csrf-token', 'x-xsrf-token', 'x-forwarded-client-cert', 'cf-access-jwt-assertion'];
|
|
2
1
|
type SanitizeSSRPayloadOptions = {
|
|
3
2
|
unsafeHeaders?: string[];
|
|
4
3
|
treatRootAsHeaders?: boolean;
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.5.0-ultramodern.
|
|
20
|
+
"version": "3.5.0-ultramodern.37",
|
|
21
21
|
"_comment": "Provide ESM and CJS exports, ESM is used by runtime package, for treeshaking",
|
|
22
22
|
"exports": {
|
|
23
23
|
"./router": {
|
|
@@ -158,11 +158,11 @@
|
|
|
158
158
|
},
|
|
159
159
|
"dependencies": {
|
|
160
160
|
"@swc/helpers": "^0.5.23",
|
|
161
|
-
"lru-cache": "^11.5.
|
|
161
|
+
"lru-cache": "^11.5.2",
|
|
162
162
|
"react-router": "8.1.0",
|
|
163
|
-
"serialize-javascript": "^7.0.
|
|
164
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.5.0-ultramodern.
|
|
165
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.
|
|
163
|
+
"serialize-javascript": "^7.0.7",
|
|
164
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.5.0-ultramodern.37",
|
|
165
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.37"
|
|
166
166
|
},
|
|
167
167
|
"peerDependencies": {
|
|
168
168
|
"react": "^19.2.7",
|
|
@@ -177,17 +177,17 @@
|
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
179
|
"devDependencies": {
|
|
180
|
-
"@rslib/core": "0.23.
|
|
180
|
+
"@rslib/core": "0.23.2",
|
|
181
181
|
"@types/ioredis-mock": "^8.2.7",
|
|
182
|
-
"@types/node": "^26.
|
|
182
|
+
"@types/node": "^26.1.1",
|
|
183
183
|
"@types/serialize-javascript": "^5.0.4",
|
|
184
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
184
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
185
185
|
"happy-dom": "^20.10.6",
|
|
186
186
|
"ioredis": "^5.11.1",
|
|
187
187
|
"ioredis-mock": "^8.13.1",
|
|
188
188
|
"react": "^19.2.7",
|
|
189
189
|
"react-dom": "^19.2.7",
|
|
190
|
-
"typescript": "^
|
|
190
|
+
"typescript": "^7.0.2",
|
|
191
191
|
"@scripts/rstest-config": "2.66.0"
|
|
192
192
|
},
|
|
193
193
|
"sideEffects": false,
|