@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.cjs
CHANGED
|
@@ -1365,9 +1365,9 @@ class Router {
|
|
|
1365
1365
|
};
|
|
1366
1366
|
this.injectedHtml.push(cb);
|
|
1367
1367
|
};
|
|
1368
|
-
this.injectScript = (script) => {
|
|
1368
|
+
this.injectScript = (script, opts) => {
|
|
1369
1369
|
this.injectHtml(
|
|
1370
|
-
`<script class='tsr-once'>${script}${process.env.NODE_ENV === "development" ? `; console.info(\`Injected From Server:
|
|
1370
|
+
`<script class='tsr-once'>${script}${process.env.NODE_ENV === "development" && ((opts == null ? void 0 : opts.logScript) ?? true) ? `; console.info(\`Injected From Server:
|
|
1371
1371
|
${script}\`)` : ""}; __TSR__.cleanScripts()<\/script>`
|
|
1372
1372
|
);
|
|
1373
1373
|
};
|