@ankhorage/studio 0.10.7 → 0.10.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redirect.d.ts","sourceRoot":"","sources":["../../../../src/host/layout/templates/redirect.ts"],"names":[],"mappings":"AAEA,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"redirect.d.ts","sourceRoot":"","sources":["../../../../src/host/layout/templates/redirect.ts"],"names":[],"mappings":"AAEA,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAS7D"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { escapeStringLiteral } from '../utils/escapeStringLiteral';
|
|
2
2
|
export function getIndexRedirectRouteTsx(href) {
|
|
3
|
-
return
|
|
4
|
-
|
|
3
|
+
return `/**
|
|
4
|
+
* The root layout owns auth bootstrap and canonicalizes / to '${escapeStringLiteral(href)}'.
|
|
5
|
+
* This route only keeps / matchable without creating synthetic navigation history.
|
|
6
|
+
*/
|
|
5
7
|
export default function IndexRoute() {
|
|
6
|
-
return
|
|
8
|
+
return null;
|
|
7
9
|
}
|
|
8
10
|
`;
|
|
9
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redirect.js","sourceRoot":"","sources":["../../../../src/host/layout/templates/redirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,MAAM,UAAU,wBAAwB,CAAC,IAAY;IACnD,OAAO
|
|
1
|
+
{"version":3,"file":"redirect.js","sourceRoot":"","sources":["../../../../src/host/layout/templates/redirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,MAAM,UAAU,wBAAwB,CAAC,IAAY;IACnD,OAAO;iEACwD,mBAAmB,CAAC,IAAI,CAAC;;;;;;CAMzF,CAAC;AACF,CAAC"}
|