@bleedingdev/modern-js-runtime-utils 3.2.0-ultramodern.0 → 3.2.0-ultramodern.10
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.
|
@@ -9,7 +9,7 @@ export declare class FileReader {
|
|
|
9
9
|
readFile(path: string, encoding?: 'buffer'): Promise<Buffer | null>;
|
|
10
10
|
readFileFromSystem(path: string, encoding?: 'utf-8'): Promise<string | null>;
|
|
11
11
|
readFileFromSystem(path: string, encoding?: 'buffer'): Promise<Buffer | null>;
|
|
12
|
-
_readFileFactory(fs: typeof Fs): (path: string, encoding?:
|
|
12
|
+
_readFileFactory(fs: typeof Fs): (path: string, encoding?: 'utf-8' | 'buffer') => Promise<string | Buffer | null>;
|
|
13
13
|
/**
|
|
14
14
|
* Clear the fileCache entriely.
|
|
15
15
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const DEFAULT_UNSAFE_SSR_HEADERS: readonly [
|
|
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
2
|
type SanitizeSSRPayloadOptions = {
|
|
3
3
|
unsafeHeaders?: string[];
|
|
4
4
|
treatRootAsHeaders?: boolean;
|
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.10",
|
|
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.3.6",
|
|
162
162
|
"react-router": "7.15.1",
|
|
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.10",
|
|
165
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.10"
|
|
166
166
|
},
|
|
167
167
|
"peerDependencies": {
|
|
168
168
|
"react": "^19.2.6",
|
|
@@ -192,6 +192,5 @@
|
|
|
192
192
|
"dev": "rslib build --watch",
|
|
193
193
|
"build": "rslib build",
|
|
194
194
|
"test": "rstest --passWithNoTests"
|
|
195
|
-
}
|
|
196
|
-
"types": "./dist/types/index.d.ts"
|
|
195
|
+
}
|
|
197
196
|
}
|