@tanstack/react-router 1.81.13 → 1.81.14
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/router.cjs +2 -2
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +3 -1
- package/dist/esm/router.d.ts +3 -1
- package/dist/esm/router.js +2 -2
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +4 -3
package/dist/cjs/router.d.cts
CHANGED
|
@@ -554,7 +554,9 @@ export declare class Router<in out TRouteTree extends AnyRoute, in out TTrailing
|
|
|
554
554
|
hydrate: () => void;
|
|
555
555
|
injectedHtml: Array<() => string>;
|
|
556
556
|
injectHtml: (html: string) => void;
|
|
557
|
-
injectScript: (script: string
|
|
557
|
+
injectScript: (script: string, opts?: {
|
|
558
|
+
logScript?: boolean;
|
|
559
|
+
}) => void;
|
|
558
560
|
streamedKeys: Set<string>;
|
|
559
561
|
getStreamedValue: <T>(key: string) => T | undefined;
|
|
560
562
|
streamValue: (key: string, value: any) => void;
|
package/dist/esm/router.d.ts
CHANGED
|
@@ -554,7 +554,9 @@ export declare class Router<in out TRouteTree extends AnyRoute, in out TTrailing
|
|
|
554
554
|
hydrate: () => void;
|
|
555
555
|
injectedHtml: Array<() => string>;
|
|
556
556
|
injectHtml: (html: string) => void;
|
|
557
|
-
injectScript: (script: string
|
|
557
|
+
injectScript: (script: string, opts?: {
|
|
558
|
+
logScript?: boolean;
|
|
559
|
+
}) => void;
|
|
558
560
|
streamedKeys: Set<string>;
|
|
559
561
|
getStreamedValue: <T>(key: string) => T | undefined;
|
|
560
562
|
streamValue: (key: string, value: any) => void;
|
package/dist/esm/router.js
CHANGED
|
@@ -1363,9 +1363,9 @@ class Router {
|
|
|
1363
1363
|
};
|
|
1364
1364
|
this.injectedHtml.push(cb);
|
|
1365
1365
|
};
|
|
1366
|
-
this.injectScript = (script) => {
|
|
1366
|
+
this.injectScript = (script, opts) => {
|
|
1367
1367
|
this.injectHtml(
|
|
1368
|
-
`<script class='tsr-once'>${script}${process.env.NODE_ENV === "development" ? `; console.info(\`Injected From Server:
|
|
1368
|
+
`<script class='tsr-once'>${script}${process.env.NODE_ENV === "development" && ((opts == null ? void 0 : opts.logScript) ?? true) ? `; console.info(\`Injected From Server:
|
|
1369
1369
|
${script}\`)` : ""}; __TSR__.cleanScripts()<\/script>`
|
|
1370
1370
|
);
|
|
1371
1371
|
};
|