one 1.1.311 → 1.1.312

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. package/dist/cjs/cleanUrl.cjs +3 -8
  2. package/dist/cjs/cleanUrl.cjs.map +2 -2
  3. package/dist/cjs/cleanUrl.native.js +5 -8
  4. package/dist/cjs/cleanUrl.native.js.map +2 -2
  5. package/dist/cjs/cli.cjs +0 -2
  6. package/dist/cjs/cli.cjs.map +1 -1
  7. package/dist/cjs/cli.native.js +1 -2
  8. package/dist/cjs/cli.native.js.map +2 -2
  9. package/dist/cjs/config.cjs +1 -1
  10. package/dist/cjs/config.native.js +1 -1
  11. package/dist/cjs/config.native.js.map +1 -1
  12. package/dist/cjs/constants.cjs +9 -1
  13. package/dist/cjs/constants.cjs.map +1 -1
  14. package/dist/cjs/constants.native.js +9 -1
  15. package/dist/cjs/constants.native.js.map +2 -2
  16. package/dist/cjs/createApp.native.cjs +1 -1
  17. package/dist/cjs/createApp.native.js +1 -1
  18. package/dist/cjs/createApp.native.js.map +1 -1
  19. package/dist/cjs/createHandleRequest.cjs +2 -1
  20. package/dist/cjs/createHandleRequest.cjs.map +1 -1
  21. package/dist/cjs/createHandleRequest.native.js +2 -2
  22. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  23. package/dist/cjs/matchers.cjs +1 -1
  24. package/dist/cjs/matchers.cjs.map +1 -1
  25. package/dist/cjs/matchers.native.js +1 -1
  26. package/dist/cjs/matchers.native.js.map +1 -1
  27. package/dist/cjs/serve.cjs +3 -3
  28. package/dist/cjs/serve.cjs.map +1 -1
  29. package/dist/cjs/serve.native.js +2 -2
  30. package/dist/cjs/serve.native.js.map +2 -2
  31. package/dist/cjs/useLoader.cjs +1 -1
  32. package/dist/cjs/useLoader.native.js +1 -1
  33. package/dist/cjs/vite/build.cjs +2 -2
  34. package/dist/cjs/vite/build.cjs.map +1 -1
  35. package/dist/cjs/vite/build.native.js +1 -1
  36. package/dist/cjs/vite/build.native.js.map +1 -1
  37. package/dist/cjs/vite/clientTreeShakePlugin.cjs +1 -1
  38. package/dist/cjs/vite/clientTreeShakePlugin.native.js +1 -1
  39. package/dist/cjs/vite/createFileSystemRouter.cjs +1 -1
  40. package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
  41. package/dist/cjs/vite/one.cjs +43 -14
  42. package/dist/cjs/vite/one.cjs.map +1 -1
  43. package/dist/cjs/vite/one.native.js +39 -12
  44. package/dist/cjs/vite/one.native.js.map +2 -2
  45. package/dist/cjs/vite/virtualEntryPlugin.cjs +5 -5
  46. package/dist/cjs/vite/virtualEntryPlugin.native.js +5 -5
  47. package/dist/cjs/vite/virtualEntryPlugin.native.js.map +1 -1
  48. package/dist/cjs/vite/vitePluginSsrCss.cjs +1 -1
  49. package/dist/cjs/vite/vitePluginSsrCss.native.js +1 -1
  50. package/dist/esm/cleanUrl.js +10 -9
  51. package/dist/esm/cleanUrl.js.map +1 -1
  52. package/dist/esm/cleanUrl.mjs +4 -9
  53. package/dist/esm/cleanUrl.mjs.map +1 -1
  54. package/dist/esm/cleanUrl.native.js +5 -9
  55. package/dist/esm/cleanUrl.native.js.map +2 -2
  56. package/dist/esm/cli.js +0 -2
  57. package/dist/esm/cli.js.map +1 -1
  58. package/dist/esm/cli.mjs +0 -2
  59. package/dist/esm/cli.mjs.map +1 -1
  60. package/dist/esm/cli.native.js +0 -2
  61. package/dist/esm/cli.native.js.map +2 -2
  62. package/dist/esm/config.js +1 -1
  63. package/dist/esm/config.mjs +1 -1
  64. package/dist/esm/config.mjs.map +1 -1
  65. package/dist/esm/config.native.js +1 -1
  66. package/dist/esm/config.native.js.map +1 -1
  67. package/dist/esm/constants.js +5 -1
  68. package/dist/esm/constants.js.map +1 -1
  69. package/dist/esm/constants.mjs +6 -2
  70. package/dist/esm/constants.mjs.map +1 -1
  71. package/dist/esm/constants.native.js +5 -1
  72. package/dist/esm/constants.native.js.map +2 -2
  73. package/dist/esm/createApp.native.js +1 -1
  74. package/dist/esm/createApp.native.js.map +1 -1
  75. package/dist/esm/createHandleRequest.js +2 -1
  76. package/dist/esm/createHandleRequest.js.map +1 -1
  77. package/dist/esm/createHandleRequest.mjs +2 -1
  78. package/dist/esm/createHandleRequest.mjs.map +1 -1
  79. package/dist/esm/createHandleRequest.native.js +2 -1
  80. package/dist/esm/createHandleRequest.native.js.map +2 -2
  81. package/dist/esm/matchers.js +1 -1
  82. package/dist/esm/matchers.js.map +1 -1
  83. package/dist/esm/matchers.mjs +1 -1
  84. package/dist/esm/matchers.mjs.map +1 -1
  85. package/dist/esm/matchers.native.js +1 -1
  86. package/dist/esm/matchers.native.js.map +1 -1
  87. package/dist/esm/serve.js +4 -4
  88. package/dist/esm/serve.js.map +1 -1
  89. package/dist/esm/serve.mjs +4 -4
  90. package/dist/esm/serve.mjs.map +1 -1
  91. package/dist/esm/serve.native.js +4 -4
  92. package/dist/esm/serve.native.js.map +2 -2
  93. package/dist/esm/useLoader.js +1 -1
  94. package/dist/esm/useLoader.mjs +1 -1
  95. package/dist/esm/useLoader.native.js +1 -1
  96. package/dist/esm/vite/build.js +1 -1
  97. package/dist/esm/vite/build.js.map +1 -1
  98. package/dist/esm/vite/build.mjs +1 -1
  99. package/dist/esm/vite/build.mjs.map +1 -1
  100. package/dist/esm/vite/build.native.js +1 -1
  101. package/dist/esm/vite/build.native.js.map +2 -2
  102. package/dist/esm/vite/clientTreeShakePlugin.js +1 -1
  103. package/dist/esm/vite/clientTreeShakePlugin.mjs +1 -1
  104. package/dist/esm/vite/clientTreeShakePlugin.native.js +1 -1
  105. package/dist/esm/vite/createFileSystemRouter.js +1 -1
  106. package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
  107. package/dist/esm/vite/createFileSystemRouter.native.js +1 -1
  108. package/dist/esm/vite/one.js +43 -14
  109. package/dist/esm/vite/one.js.map +1 -1
  110. package/dist/esm/vite/one.mjs +43 -14
  111. package/dist/esm/vite/one.mjs.map +1 -1
  112. package/dist/esm/vite/one.native.js +41 -14
  113. package/dist/esm/vite/one.native.js.map +2 -2
  114. package/dist/esm/vite/virtualEntryPlugin.js +5 -5
  115. package/dist/esm/vite/virtualEntryPlugin.mjs +5 -5
  116. package/dist/esm/vite/virtualEntryPlugin.mjs.map +1 -1
  117. package/dist/esm/vite/virtualEntryPlugin.native.js +5 -5
  118. package/dist/esm/vite/virtualEntryPlugin.native.js.map +1 -1
  119. package/dist/esm/vite/vitePluginSsrCss.js +1 -1
  120. package/dist/esm/vite/vitePluginSsrCss.mjs +1 -1
  121. package/dist/esm/vite/vitePluginSsrCss.native.js +1 -1
  122. package/package.json +8 -8
  123. package/src/cleanUrl.ts +10 -14
  124. package/src/cli.ts +0 -3
  125. package/src/config.ts +1 -1
  126. package/src/constants.ts +6 -0
  127. package/src/createApp.native.tsx +2 -2
  128. package/src/createHandleRequest.ts +2 -1
  129. package/src/matchers.ts +1 -1
  130. package/src/serve.ts +5 -3
  131. package/src/useLoader.ts +1 -1
  132. package/src/vite/build.ts +2 -1
  133. package/src/vite/clientTreeShakePlugin.ts +1 -1
  134. package/src/vite/createFileSystemRouter.tsx +1 -1
  135. package/src/vite/one.ts +44 -11
  136. package/src/vite/virtualEntryPlugin.ts +5 -5
  137. package/src/vite/vitePluginSsrCss.ts +1 -1
  138. package/types/cleanUrl.d.ts.map +1 -1
  139. package/types/constants.d.ts +4 -0
  140. package/types/constants.d.ts.map +1 -1
  141. package/types/createHandleRequest.d.ts.map +1 -1
  142. package/types/serve.d.ts.map +1 -1
  143. package/types/vite/build.d.ts.map +1 -1
  144. package/types/vite/one.d.ts.map +1 -1
  145. package/dist/cjs/router/constants.cjs +0 -26
  146. package/dist/cjs/router/constants.cjs.map +0 -6
  147. package/dist/cjs/router/constants.native.js +0 -26
  148. package/dist/cjs/router/constants.native.js.map +0 -6
  149. package/dist/cjs/vite/loadEnv.cjs +0 -47
  150. package/dist/cjs/vite/loadEnv.cjs.map +0 -6
  151. package/dist/cjs/vite/loadEnv.native.js +0 -44
  152. package/dist/cjs/vite/loadEnv.native.js.map +0 -6
  153. package/dist/esm/router/constants.js +0 -5
  154. package/dist/esm/router/constants.js.map +0 -6
  155. package/dist/esm/router/constants.mjs +0 -3
  156. package/dist/esm/router/constants.mjs.map +0 -1
  157. package/dist/esm/router/constants.native.js +0 -5
  158. package/dist/esm/router/constants.native.js.map +0 -6
  159. package/dist/esm/vite/loadEnv.js +0 -13
  160. package/dist/esm/vite/loadEnv.js.map +0 -6
  161. package/dist/esm/vite/loadEnv.mjs +0 -13
  162. package/dist/esm/vite/loadEnv.mjs.map +0 -1
  163. package/dist/esm/vite/loadEnv.native.js +0 -16
  164. package/dist/esm/vite/loadEnv.native.js.map +0 -6
  165. package/src/router/constants.ts +0 -4
  166. package/src/vite/loadEnv.ts +0 -11
  167. package/types/router/constants.d.ts +0 -2
  168. package/types/router/constants.d.ts.map +0 -1
  169. package/types/vite/loadEnv.d.ts +0 -2
  170. package/types/vite/loadEnv.d.ts.map +0 -1
@@ -1,13 +1,17 @@
1
- import { isNative } from "./constants";
1
+ import {
2
+ isNative,
3
+ LOADER_JS_POSTFIX,
4
+ LOADER_JS_POSTFIX_UNCACHED,
5
+ PRELOAD_JS_POSTFIX
6
+ } from "./constants";
2
7
  import { getURL } from "./getURL";
3
- import { CACHE_KEY } from "./router/constants";
4
8
  import { removeSearch } from "./utils/removeSearch";
5
9
  function cleanUrl(path) {
6
10
  return removeSearch(path).replaceAll("/", "_").replace(/_$/, "");
7
11
  }
8
- const isClient = typeof window < "u", clientSideSearch = isClient ? `?cache=${CACHE_KEY}` : "", clientSideURL = isClient ? getURL() : "";
12
+ const isClient = typeof window < "u", clientSideURL = isClient ? getURL() : "";
9
13
  function getPreloadPath(currentPath) {
10
- return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`;
14
+ return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}${PRELOAD_JS_POSTFIX}`;
11
15
  }
12
16
  function getLoaderPath(currentPath, includeUrl = isNative) {
13
17
  const baseURL = includeUrl ? getURL() : "", devPath = process.env.NODE_ENV === "development" ? "/_one" : "", currentPathUrl = new URL(
@@ -15,13 +19,10 @@ function getLoaderPath(currentPath, includeUrl = isNative) {
15
19
  "http://example.com"
16
20
  /* not important, just for `new URL()` to work */
17
21
  );
18
- return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
22
+ return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${LOADER_JS_POSTFIX}`;
19
23
  }
20
24
  function getPathFromLoaderPath(loaderPath) {
21
- return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
22
- }
23
- function getSearchParams(searchParams) {
24
- return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
25
+ return loaderPath.replace(LOADER_JS_POSTFIX_UNCACHED, "").replace(/_\d+/, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
25
26
  }
26
27
  export {
27
28
  getLoaderPath,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/cleanUrl.ts"],
4
- "mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAE7B,SAAS,SAAS,MAAc;AAC9B,SACE,aAAa,IAAI,EACd,WAAW,KAAK,GAAG,EAEnB,QAAQ,MAAM,EAAE;AAEvB;AAEA,MAAM,WAAW,OAAO,SAAW,KAC7B,mBAAmB,WAAW,UAAU,SAAS,KAAK,IACtD,gBAAgB,WAAW,OAAO,IAAI;AAErC,SAAS,eAAe,aAAqB;AAClD,SAAO,GAAG,aAAa,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,cAAc,gBAAgB;AAChG;AAEO,SAAS,cACd,aAEA,aAAa,UACb;AACA,QAAM,UAAU,aAAa,OAAO,IAAI,IAClC,UAAU,QAAQ,IAAI,aAAa,gBA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AW,MAAM,GAAG;AACzB;",
5
5
  "names": []
6
6
  }
@@ -1,28 +1,23 @@
1
- import { isNative } from "./constants.mjs";
1
+ import { isNative, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_UNCACHED, PRELOAD_JS_POSTFIX } from "./constants.mjs";
2
2
  import { getURL } from "./getURL.mjs";
3
- import { CACHE_KEY } from "./router/constants.mjs";
4
3
  import { removeSearch } from "./utils/removeSearch.mjs";
5
4
  function cleanUrl(path) {
6
5
  return removeSearch(path).replaceAll("/", "_").replace(/_$/, "");
7
6
  }
8
7
  const isClient = typeof window < "u",
9
- clientSideSearch = isClient ? `?cache=${CACHE_KEY}` : "",
10
8
  clientSideURL = isClient ? getURL() : "";
11
9
  function getPreloadPath(currentPath) {
12
- return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`;
10
+ return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}${PRELOAD_JS_POSTFIX}`;
13
11
  }
14
12
  function getLoaderPath(currentPath, includeUrl = isNative) {
15
13
  const baseURL = includeUrl ? getURL() : "",
16
14
  devPath = process.env.NODE_ENV === "development" ? "/_one" : "",
17
15
  currentPathUrl = new URL(currentPath, "http://example.com"
18
16
  /* not important, just for `new URL()` to work */);
19
- return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
17
+ return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${LOADER_JS_POSTFIX}`;
20
18
  }
21
19
  function getPathFromLoaderPath(loaderPath) {
22
- return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
23
- }
24
- function getSearchParams(searchParams) {
25
- return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
20
+ return loaderPath.replace(LOADER_JS_POSTFIX_UNCACHED, "").replace(/_\d+/, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
26
21
  }
27
22
  export { getLoaderPath, getPathFromLoaderPath, getPreloadPath };
28
23
  //# sourceMappingURL=cleanUrl.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["isNative","getURL","CACHE_KEY","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideSearch","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","currentPathUrl","URL","pathname","getSearchParams","search","getPathFromLoaderPath","loaderPath","searchParams"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,QAAgB;AACzB,SAASC,MAAA,QAAc;AACvB,SAASC,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAE7B,SAASC,SAASC,IAAA,EAAc;EAC9B,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,MAAMC,QAAA,GAAW,OAAOC,MAAA,GAAW;EAC7BC,gBAAA,GAAmBF,QAAA,GAAW,UAAUN,SAAS,KAAK;EACtDS,aAAA,GAAgBH,QAAA,GAAWP,MAAA,CAAO,IAAI;AAErC,SAASW,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWP,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,cAAcJ,gBAAgB;AAChG;AAEO,SAASK,cACdF,WAAA,EAEAG,UAAA,GAAahB,QAAA,EACb;EACA,MAAMiB,OAAA,GAAUD,UAAA,GAAaf,MAAA,CAAO,IAAI;IAClCiB,OAAA,GAAUC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,gBAAgB,UAAU;IAE7DC,cAAA,GAAiB,IAAIC,GAAA,CACzBV,WAAA,EACA;IAAA,iDACF;EAEA,OAAO,GAAGI,OAAO,GAAGC,OAAO,WAAWd,QAAA,CAASkB,cAAA,CAAeE,QAAA,CAASV,KAAA,CAAM,CAAC,CAAC,CAAC,kBAAkBW,eAAA,CAAgBH,cAAA,CAAeI,MAAM,CAAC;AAC1I;AAEO,SAASC,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJrB,OAAA,CAAQ,mBAAmB,EAAE,EAC7BA,OAAA,CAAQ,sBAAsB,EAAE,EAChCD,UAAA,CAAW,MAAM,GAAG;AACzB;AAEA,SAASmB,gBAAgBI,YAAA,EAAc;EACrC,OAAKA,YAAA,GAIE,GAAGA,YAAY,IAAInB,gBAAA,CAAiBI,KAAA,CAAM,CAAC,CAA8B,KAHvEJ,gBAAA;AAIX","ignoreList":[]}
1
+ {"version":3,"names":["isNative","LOADER_JS_POSTFIX","LOADER_JS_POSTFIX_UNCACHED","PRELOAD_JS_POSTFIX","getURL","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","currentPathUrl","URL","pathname","getPathFromLoaderPath","loaderPath"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SACEA,QAAA,EACAC,iBAAA,EACAC,0BAAA,EACAC,kBAAA,QACK;AACP,SAASC,MAAA,QAAc;AACvB,SAASC,YAAA,QAAoB;AAE7B,SAASC,SAASC,IAAA,EAAc;EAC9B,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,MAAMC,QAAA,GAAW,OAAOC,MAAA,GAAW;EAC7BC,aAAA,GAAgBF,QAAA,GAAWN,MAAA,CAAO,IAAI;AAErC,SAASS,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWN,QAAA,CAASQ,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,GAAGZ,kBAAkB;AACvF;AAEO,SAASa,cACdF,WAAA,EAEAG,UAAA,GAAajB,QAAA,EACb;EACA,MAAMkB,OAAA,GAAUD,UAAA,GAAab,MAAA,CAAO,IAAI;IAClCe,OAAA,GAAUC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,gBAAgB,UAAU;IAE7DC,cAAA,GAAiB,IAAIC,GAAA,CACzBV,WAAA,EACA;IAAA,iDACF;EAEA,OAAO,GAAGI,OAAO,GAAGC,OAAO,WAAWb,QAAA,CAASiB,cAAA,CAAeE,QAAA,CAASV,KAAA,CAAM,CAAC,CAAC,CAAC,GAAGd,iBAAiB;AACtG;AAEO,SAASyB,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJlB,OAAA,CAAQP,0BAAA,EAA4B,EAAE,EACtCO,OAAA,CAAQ,QAAQ,EAAE,EAClBA,OAAA,CAAQ,sBAAsB,EAAE,EAChCD,UAAA,CAAW,MAAM,GAAG;AACzB","ignoreList":[]}
@@ -1,23 +1,19 @@
1
- import { isNative } from "./constants";
1
+ import { isNative, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_UNCACHED, PRELOAD_JS_POSTFIX } from "./constants";
2
2
  import { getURL } from "./getURL";
3
- import { CACHE_KEY } from "./router/constants";
4
3
  import { removeSearch } from "./utils/removeSearch";
5
4
  function cleanUrl(path) {
6
5
  return removeSearch(path).replaceAll("/", "_").replace(/_$/, "");
7
6
  }
8
- var isClient = typeof window < "u", clientSideSearch = isClient ? `?cache=${CACHE_KEY}` : "", clientSideURL = isClient ? getURL() : "";
7
+ var isClient = typeof window < "u", clientSideURL = isClient ? getURL() : "";
9
8
  function getPreloadPath(currentPath) {
10
- return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`;
9
+ return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}${PRELOAD_JS_POSTFIX}`;
11
10
  }
12
11
  function getLoaderPath(currentPath) {
13
12
  var includeUrl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : isNative, baseURL = includeUrl ? getURL() : "", devPath = process.env.NODE_ENV === "development" ? "/_one" : "", currentPathUrl = new URL(currentPath, "http://example.com");
14
- return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
13
+ return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${LOADER_JS_POSTFIX}`;
15
14
  }
16
15
  function getPathFromLoaderPath(loaderPath) {
17
- return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
18
- }
19
- function getSearchParams(searchParams) {
20
- return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
16
+ return loaderPath.replace(LOADER_JS_POSTFIX_UNCACHED, "").replace(/_\d+/, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
21
17
  }
22
18
  export {
23
19
  getLoaderPath,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/cleanUrl.ts"],
4
- "mappings": "AAAA,SAASA,gBAAgB;AACzB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,oBAAoB;AAE7B,SAASC,SAASC,MAAY;AAC5B,SACEF,aAAaE,IAAAA,EACVC,WAAW,KAAK,GAAA,EAEhBC,QAAQ,MAAM,EAAA;AAErB;AAEA,IAAMC,WAAW,OAAOC,SAAW,KAC7BC,mBAAmBF,WAAW,UAAUN,SAAAA,KAAc,IACtDS,gBAAgBH,WAAWP,OAAAA,IAAW;AAErC,SAASW,eAAeC,aAAmB;AAChD,SAAO,GAAGF,aAAAA,WAAwBP,SAASS,YAAYC,MAAM,CAAA,CAAA,CAAA,cAAiBJ,gBAAAA;AAChF;AAEO,SAASK,cACdF,aAAmB;MAEnBG,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAahB,UAEPiB,UAAUD,aAAaf,OAAAA,IAAW,IAClCiB,UAAUC,QAAQC,IAAIC,aAAa,gBAAgB,UAAU,IAE7DC,iBAAiB,IAAIC,IACzBV,aACA,oBAAA;AAGF,SAAO,GAAGI,OAAAA,GAAUC,OAAAA,WAAkBd,SAASkB,eAAeE,SAASV,MAAM,CAAA,CAAA,CAAA,kBAAqBW,gBAAgBH,eAAeI,MAAM,CAAA;AACzI;AAEO,SAASC,sBAAsBC,YAAkB;AACtD,SAAOA,WACJrB,QAAQ,mBAAmB,EAAA,EAC3BA,QAAQ,sBAAsB,EAAA,EAC9BD,WAAW,MAAM,GAAA;AACtB;AAEA,SAASmB,gBAAgBI,cAAY;AACnC,SAAKA,eAIE,GAAGA,YAAAA,IAAgBnB,iBAAiBI,MAAM,CAAA,CAAA,KAHxCJ;AAIX;",
5
- "names": ["isNative", "getURL", "CACHE_KEY", "removeSearch", "cleanUrl", "path", "replaceAll", "replace", "isClient", "window", "clientSideSearch", "clientSideURL", "getPreloadPath", "currentPath", "slice", "getLoaderPath", "includeUrl", "baseURL", "devPath", "process", "env", "NODE_ENV", "currentPathUrl", "URL", "pathname", "getSearchParams", "search", "getPathFromLoaderPath", "loaderPath", "searchParams"]
4
+ "mappings": "AAAA,SACEA,UACAC,mBACAC,4BACAC,0BACK;AACP,SAASC,cAAc;AACvB,SAASC,oBAAoB;AAE7B,SAASC,SAASC,MAAY;AAC5B,SACEF,aAAaE,IAAAA,EACVC,WAAW,KAAK,GAAA,EAEhBC,QAAQ,MAAM,EAAA;AAErB;AAEA,IAAMC,WAAW,OAAOC,SAAW,KAC7BC,gBAAgBF,WAAWN,OAAAA,IAAW;AAErC,SAASS,eAAeC,aAAmB;AAChD,SAAO,GAAGF,aAAAA,WAAwBN,SAASQ,YAAYC,MAAM,CAAA,CAAA,CAAA,GAAMZ,kBAAAA;AACrE;AAEO,SAASa,cACdF,aAAmB;MAEnBG,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAajB,UAEPkB,UAAUD,aAAab,OAAAA,IAAW,IAClCe,UAAUC,QAAQC,IAAIC,aAAa,gBAAgB,UAAU,IAE7DC,iBAAiB,IAAIC,IACzBV,aACA,oBAAA;AAGF,SAAO,GAAGI,OAAAA,GAAUC,OAAAA,WAAkBb,SAASiB,eAAeE,SAASV,MAAM,CAAA,CAAA,CAAA,GAAMd,iBAAAA;AACrF;AAEO,SAASyB,sBAAsBC,YAAkB;AACtD,SAAOA,WACJlB,QAAQP,4BAA4B,EAAA,EACpCO,QAAQ,QAAQ,EAAA,EAChBA,QAAQ,sBAAsB,EAAA,EAC9BD,WAAW,MAAM,GAAA;AACtB;",
5
+ "names": ["isNative", "LOADER_JS_POSTFIX", "LOADER_JS_POSTFIX_UNCACHED", "PRELOAD_JS_POSTFIX", "getURL", "removeSearch", "cleanUrl", "path", "replaceAll", "replace", "isClient", "window", "clientSideURL", "getPreloadPath", "currentPath", "slice", "getLoaderPath", "includeUrl", "baseURL", "devPath", "process", "env", "NODE_ENV", "currentPathUrl", "URL", "pathname", "getPathFromLoaderPath", "loaderPath"]
6
6
  }
package/dist/esm/cli.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineCommand, runMain } from "citty";
2
2
  import colors from "picocolors";
3
- import { loadEnv } from "./vite/loadEnv";
4
3
  import { readFileSync } from "node:fs";
5
4
  import path from "node:path";
6
5
  import { fileURLToPath } from "node:url";
@@ -11,7 +10,6 @@ function getPackageVersion() {
11
10
  return JSON.parse(readFileSync(packagePath, "utf-8")).version;
12
11
  }
13
12
  const version = getPackageVersion();
14
- loadEnv(process.cwd());
15
13
  path.sep !== "/" && console.warn(
16
14
  colors.bgYellow("WARNING: UNSUPPORTED OS") + colors.yellow(
17
15
  " - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/cli.ts"],
4
- "mappings": "AAAA,SAAS,eAAe,eAAe;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AAAA,EACf,OAAO;AACT,GAGM,UAAU,cAAc;AAAA,EAC5B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA;AACF,CAAC,GAEK,OAAO,cAAc;AAAA,EACzB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aAAa;AAAA,MACb,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,MAAM,IAAI,EAAE,KAAK,GAAG;AAClB,QAAI,YAAY,KAAK,IAAI,GAAG;AAE1B,cAAQ,OAAO;AACf;AAAA,IACF;AAEA,UAAM,EAAE,QAAQ,IAAI,MAAM,OAAO,YAAY;AAC7C,UAAM,QAAQ,IAAI;AAAA,EACpB;AACF,CAAC;AAED,QAAQ,IAAI;",
5
5
  "names": ["clean"]
6
6
  }
package/dist/esm/cli.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineCommand, runMain } from "citty";
2
2
  import colors from "picocolors";
3
- import { loadEnv } from "./vite/loadEnv.mjs";
4
3
  import { readFileSync } from "node:fs";
5
4
  import path from "node:path";
6
5
  import { fileURLToPath } from "node:url";
@@ -11,7 +10,6 @@ function getPackageVersion() {
11
10
  return JSON.parse(readFileSync(packagePath, "utf-8")).version;
12
11
  }
13
12
  const version = getPackageVersion();
14
- loadEnv(process.cwd());
15
13
  path.sep !== "/" && console.warn(colors.bgYellow("WARNING: UNSUPPORTED OS") + colors.yellow(" - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."));
16
14
  const modes = {
17
15
  development: "development",
@@ -1 +1 @@
1
- {"version":3,"names":["defineCommand","runMain","colors","loadEnv","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","process","cwd","sep","console","warn","bgYellow","yellow","modes","development","production","dev","name","description","args","clean","type","host","port","https","mode","run","clean2","buildCommand","step","required","only","build","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","runIos","runAndroid","vxrnClean","root","subCommands","subMain","main","cliMain"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,OAAA,QAAe;AACvC,OAAOC,MAAA,MAAY;AACnB,SAASC,OAAA,QAAe;AACxB,SAASC,YAAA,QAAoB;AAC7B,OAAOC,IAAA,MAAU;AACjB,SAASC,aAAA,QAAqB;AAE9B,SAASC,kBAAA,EAAoB;EAC3B,IAAIC,OAAA;EACA,OAAOC,SAAA,GAAc,MAEvBD,OAAA,GAAUC,SAAA,GAGVD,OAAA,GAAUH,IAAA,CAAKG,OAAA,CAAQF,aAAA,CAAcI,MAAA,CAAAC,IAAA,CAAYC,GAAG,CAAC;EAEvD,MAAMC,WAAA,GAAcR,IAAA,CAAKS,IAAA,CAAKN,OAAA,EAAS,MAAM,MAAM,cAAc;EAEjE,OADoBO,IAAA,CAAKC,KAAA,CAAMZ,YAAA,CAAaS,WAAA,EAAa,OAAO,CAAC,EAC9CI,OAAA;AACrB;AAEA,MAAMA,OAAA,GAAUV,iBAAA,CAAkB;AAE7BJ,OAAA,CAAQe,OAAA,CAAQC,GAAA,CAAI,CAAC;AAEtBd,IAAA,CAAKe,GAAA,KAAQ,OACfC,OAAA,CAAQC,IAAA,CACNpB,MAAA,CAAOqB,QAAA,CAAS,yBAAyB,IACvCrB,MAAA,CAAOsB,MAAA,CACL,kHACF,CACJ;AAGF,MAAMC,KAAA,GAAQ;IACZC,WAAA,EAAa;IACbC,UAAA,EAAY;EACd;EAEMC,GAAA,GAAM5B,aAAA,CAAc;IACxBW,IAAA,EAAM;MACJkB,IAAA,EAAM;MACNZ,OAAA;MACAa,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJC,KAAA,EAAO;QACLC,IAAA,EAAM;MACR;MACAC,IAAA,EAAM;QACJD,IAAA,EAAM;MACR;MACAE,IAAA,EAAM;QACJ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1BW,IAAA,EAAM;MACJkB,IAAA,EAAM;MACNZ,OAAA,EAAS;MACTa,WAAA,EAAa;IACf;IACAC,IAAA,EAAM,CAAC;IACP,MAAMO,IAAA,EAAM;MACV,MAAM;QAAEN,KAAA,EAAOsB;MAAU,IAAI,MAAM,OAAO,MAAM;MAChD,MAAMA,SAAA,CAAU;QACdC,IAAA,EAAMrC,OAAA,CAAQC,GAAA,CAAI;MACpB,CAAC;IACH;EACF,CAAC;EAEKqC,WAAA,GAAc;IAClB5B,GAAA;IACAI,KAAA;IACAY,KAAA,EAAOJ,YAAA;IACPW,QAAA;IACA,WAAWC,MAAA;IACX,eAAeC,UAAA;IACfH,KAAA,EAAOJ;EACT;EAGMW,OAAA,GAAUzD,aAAA,CAAc;IAC5BW,IAAA,EAAM;MACJkB,IAAA,EAAM;MACNZ,OAAA;MACAa,WAAA,EAAa;IACf;IACA0B;EACF,CAAC;EAEKE,IAAA,GAAO1D,aAAA,CAAc;IACzBW,IAAA,EAAM;MACJkB,IAAA,EAAM;MACNZ,OAAA;MACAa,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJF,IAAA,EAAM;QACJI,IAAA,EAAM;QACNH,WAAA,EAAa;QACbY,QAAA,EAAU;MACZ;IACF;IACA,MAAMJ,IAAI;MAAEP;IAAK,GAAG;MAClB,IAAIyB,WAAA,CAAYzB,IAAA,CAAKF,IAAI,GAAG;QAE1B5B,OAAA,CAAQwD,OAAO;QACf;MACF;MAEA,MAAM;QAAEE;MAAQ,IAAI,MAAM,OAAO,gBAAY;MAC7C,MAAMA,OAAA,CAAQ5B,IAAI;IACpB;EACF,CAAC;AAED9B,OAAA,CAAQyD,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["defineCommand","runMain","colors","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","sep","console","warn","bgYellow","yellow","modes","development","production","dev","name","description","args","clean","type","host","port","https","mode","run","clean2","buildCommand","step","required","only","build","process","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","runIos","runAndroid","vxrnClean","root","cwd","subCommands","subMain","main","cliMain"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,OAAA,QAAe;AACvC,OAAOC,MAAA,MAAY;AACnB,SAASC,YAAA,QAAoB;AAC7B,OAAOC,IAAA,MAAU;AACjB,SAASC,aAAA,QAAqB;AAE9B,SAASC,kBAAA,EAAoB;EAC3B,IAAIC,OAAA;EACA,OAAOC,SAAA,GAAc,MAEvBD,OAAA,GAAUC,SAAA,GAGVD,OAAA,GAAUH,IAAA,CAAKG,OAAA,CAAQF,aAAA,CAAcI,MAAA,CAAAC,IAAA,CAAYC,GAAG,CAAC;EAEvD,MAAMC,WAAA,GAAcR,IAAA,CAAKS,IAAA,CAAKN,OAAA,EAAS,MAAM,MAAM,cAAc;EAEjE,OADoBO,IAAA,CAAKC,KAAA,CAAMZ,YAAA,CAAaS,WAAA,EAAa,OAAO,CAAC,EAC9CI,OAAA;AACrB;AAEA,MAAMA,OAAA,GAAUV,iBAAA,CAAkB;AAE9BF,IAAA,CAAKa,GAAA,KAAQ,OACfC,OAAA,CAAQC,IAAA,CACNjB,MAAA,CAAOkB,QAAA,CAAS,yBAAyB,IACvClB,MAAA,CAAOmB,MAAA,CACL,kHACF,CACJ;AAGF,MAAMC,KAAA,GAAQ;IACZC,WAAA,EAAa;IACbC,UAAA,EAAY;EACd;EAEMC,GAAA,GAAMzB,aAAA,CAAc;IACxBU,IAAA,EAAM;MACJgB,IAAA,EAAM;MACNV,OAAA;MACAW,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJC,KAAA,EAAO;QACLC,IAAA,EAAM;MACR;MACAC,IAAA,EAAM;QACJD,IAAA,EAAM;MACR;MACAE,IAAA,EAAM;QACJF,IAAA,EAAM;MACR;MACAG,KAAA,EAAO;QACLH,IAAA,EAAM;MACR;MACAI,IAAA,EAAM;QACJJ,IAAA,EAAM;QACN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ACP,MAAMO,IAAA,EAAM;MACV,MAAM;QAAEN,KAAA,EAAOuB;MAAU,IAAI,MAAM,OAAO,MAAM;MAChD,MAAMA,SAAA,CAAU;QACdC,IAAA,EAAMX,OAAA,CAAQY,GAAA,CAAI;MACpB,CAAC;IACH;EACF,CAAC;EAEKC,WAAA,GAAc;IAClB9B,GAAA;IACAI,KAAA;IACAY,KAAA,EAAOJ,YAAA;IACPY,QAAA;IACA,WAAWC,MAAA;IACX,eAAeC,UAAA;IACfH,KAAA,EAAOJ;EACT;EAGMY,OAAA,GAAUxD,aAAA,CAAc;IAC5BU,IAAA,EAAM;MACJgB,IAAA,EAAM;MACNV,OAAA;MACAW,WAAA,EAAa;IACf;IACA4B;EACF,CAAC;EAEKE,IAAA,GAAOzD,aAAA,CAAc;IACzBU,IAAA,EAAM;MACJgB,IAAA,EAAM;MACNV,OAAA;MACAW,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJF,IAAA,EAAM;QACJI,IAAA,EAAM;QACNH,WAAA,EAAa;QACbY,QAAA,EAAU;MACZ;IACF;IACA,MAAMJ,IAAI;MAAEP;IAAK,GAAG;MAClB,IAAI2B,WAAA,CAAY3B,IAAA,CAAKF,IAAI,GAAG;QAE1BzB,OAAA,CAAQuD,OAAO;QACf;MACF;MAEA,MAAM;QAAEE;MAAQ,IAAI,MAAM,OAAO,gBAAY;MAC7C,MAAMA,OAAA,CAAQ9B,IAAI;IACpB;EACF,CAAC;AAED3B,OAAA,CAAQwD,IAAI","ignoreList":[]}
@@ -1,6 +1,5 @@
1
1
  import { defineCommand, runMain } from "citty";
2
2
  import colors from "picocolors";
3
- import { loadEnv } from "./vite/loadEnv";
4
3
  import { readFileSync } from "node:fs";
5
4
  import path from "node:path";
6
5
  import { fileURLToPath } from "node:url";
@@ -11,7 +10,6 @@ function getPackageVersion() {
11
10
  return packageJson.version;
12
11
  }
13
12
  var version = getPackageVersion();
14
- loadEnv(process.cwd());
15
13
  path.sep !== "/" && console.warn(colors.bgYellow("WARNING: UNSUPPORTED OS") + colors.yellow(" - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."));
16
14
  var modes = {
17
15
  development: "development",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/cli.ts"],
4
- "mappings": "AAAA,SAASA,eAAeC,eAAe;AACvC,OAAOC,YAAY;AACnB,SAASC,eAAe;AACxB,SAASC,oBAAoB;AAC7B,OAAOC,UAAU;AACjB,SAASC,qBAAqB;AAE9B,SAASC,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUH,KAAKG,QAAQF,cAAc,YAAYI,GAAG,CAAA;AAEtD,MAAMC,cAAcN,KAAKO,KAAKJ,SAAS,MAAM,MAAM,cAAA,GAC7CK,cAAcC,KAAKC,MAAMX,aAAaO,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAYG;AACrB;AAEA,IAAMA,UAAUT,kBAAAA;AAEXJ,QAAQc,QAAQC,IAAG,CAAA;AAEpBb,KAAKc,QAAQ,OACfC,QAAQC,KACNnB,OAAOoB,SAAS,yBAAA,IACdpB,OAAOqB,OACL,kHAAA,CAAA;AAKR,IAAMC,QAAQ;EACZC,aAAa;EACbC,YAAY;AACd,GAEMC,MAAM3B,cAAc;EACxB4B,MAAM;IACJC,MAAM;IACNb;IACAc,aAAa;EACf;EACAC,MAAM;IACJC,OAAO;MACLC,MAAM;IACR;IACAC,MAAM;MACJD,MAAM;IACR;IACAE,MAAM;MACJF,MAAM;IACR;IACAG,OAAO;MACLH,MAAM;IACR;IACAI,MAAM;MACJJ,MAAM;MACNH,aACE;IACJ;EACF;EACA,MAAMQ,IAAI,OAA4C;QAA5C,EAAEP,MAAM,EAAEC,OAAAA,QAAOE,MAAME,OAAOC,MAAMF,KAAI,EAAE,IAA1C,OACF,EAAEG,IAAG,IAAK,MAAM,OAAO,WAAA;AAC7B,UAAMA,IAAI;MACRN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;",
5
- "names": ["defineCommand", "runMain", "colors", "loadEnv", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "process", "cwd", "sep", "console", "warn", "bgYellow", "yellow", "modes", "development", "production", "dev", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "mode", "run", "buildCommand", "step", "required", "only", "build", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "subCommands", "subMain", "main", "cliMain"]
4
+ "mappings": "AAAA,SAASA,eAAeC,eAAe;AACvC,OAAOC,YAAY;AACnB,SAASC,oBAAoB;AAC7B,OAAOC,UAAU;AACjB,SAASC,qBAAqB;AAE9B,SAASC,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUH,KAAKG,QAAQF,cAAc,YAAYI,GAAG,CAAA;AAEtD,MAAMC,cAAcN,KAAKO,KAAKJ,SAAS,MAAM,MAAM,cAAA,GAC7CK,cAAcC,KAAKC,MAAMX,aAAaO,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAYG;AACrB;AAEA,IAAMA,UAAUT,kBAAAA;AAEZF,KAAKY,QAAQ,OACfC,QAAQC,KACNhB,OAAOiB,SAAS,yBAAA,IACdjB,OAAOkB,OACL,kHAAA,CAAA;AAKR,IAAMC,QAAQ;EACZC,aAAa;EACbC,YAAY;AACd,GAEMC,MAAMxB,cAAc;EACxByB,MAAM;IACJC,MAAM;IACNX;IACAY,aAAa;EACf;EACAC,MAAM;IACJC,OAAO;MACLC,MAAM;IACR;IACAC,MAAM;MACJD,MAAM;IACR;IACAE,MAAM;MACJF,MAAM;IACR;IACAG,OAAO;MACLH,MAAM;IACR;IACAI,MAAM;MACJJ,MAAM;MACNH,aACE;IACJ;EACF;EACA,MAAMQ,IAAI,OAA4C;QAA5C,EAAEP,MAAM,EAAEC,OAAAA,QAAOE,MAAME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EE,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,UAAMA,QAAQ9B,IAAAA;EAChB;AACF,CAAA;AAEA3B,QAAQwD,IAAAA;",
5
+ "names": ["defineCommand", "runMain", "colors", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "sep", "console", "warn", "bgYellow", "yellow", "modes", "development", "production", "dev", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "mode", "run", "buildCommand", "step", "required", "only", "build", "process", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "cwd", "subCommands", "subMain", "main", "cliMain"]
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import { isWebServer } from "./constants";
2
- const CLIENT_RENDER_MODE = process.env.One_DEFAULT_RENDER_MODE, getDefaultRenderMode = () => {
2
+ const CLIENT_RENDER_MODE = process.env.ONE_DEFAULT_RENDER_MODE, getDefaultRenderMode = () => {
3
3
  const serverConfig = globalThis.__vxrnPluginConfig__;
4
4
  if (isWebServer && !serverConfig)
5
5
  throw new Error("Internal one error: should call setServerConfig before createManifest");
@@ -1,5 +1,5 @@
1
1
  import { isWebServer } from "./constants.mjs";
2
- const CLIENT_RENDER_MODE = process.env.One_DEFAULT_RENDER_MODE,
2
+ const CLIENT_RENDER_MODE = process.env.ONE_DEFAULT_RENDER_MODE,
3
3
  getDefaultRenderMode = () => {
4
4
  const serverConfig = globalThis.__vxrnPluginConfig__;
5
5
  if (isWebServer && !serverConfig) throw new Error("Internal one error: should call setServerConfig before createManifest");
@@ -1 +1 @@
1
- {"version":3,"names":["isWebServer","CLIENT_RENDER_MODE","process","env","One_DEFAULT_RENDER_MODE","getDefaultRenderMode","serverConfig","globalThis","__vxrnPluginConfig__","Error","web","defaultRenderMode"],"sources":["../../src/config.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAG5B,MAAMC,kBAAA,GAAqBC,OAAA,CAAQC,GAAA,CAAIC,uBAAA;EAG1BC,oBAAA,GAAuBA,CAAA,KAAM;IACxC,MAAMC,YAAA,GAAeC,UAAA,CAAWC,oBAAA;IAEhC,IAAIR,WAAA,IAAe,CAACM,YAAA,EAClB,MAAM,IAAIG,KAAA,CAAM,uEAAuE;IAGzF,OAAOR,kBAAA,IAAsBK,YAAA,EAAcI,GAAA,EAAKC,iBAAA,IAAqB;EACvE","ignoreList":[]}
1
+ {"version":3,"names":["isWebServer","CLIENT_RENDER_MODE","process","env","ONE_DEFAULT_RENDER_MODE","getDefaultRenderMode","serverConfig","globalThis","__vxrnPluginConfig__","Error","web","defaultRenderMode"],"sources":["../../src/config.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAG5B,MAAMC,kBAAA,GAAqBC,OAAA,CAAQC,GAAA,CAAIC,uBAAA;EAG1BC,oBAAA,GAAuBA,CAAA,KAAM;IACxC,MAAMC,YAAA,GAAeC,UAAA,CAAWC,oBAAA;IAEhC,IAAIR,WAAA,IAAe,CAACM,YAAA,EAClB,MAAM,IAAIG,KAAA,CAAM,uEAAuE;IAGzF,OAAOR,kBAAA,IAAsBK,YAAA,EAAcI,GAAA,EAAKC,iBAAA,IAAqB;EACvE","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import { isWebServer } from "./constants";
2
- var CLIENT_RENDER_MODE = process.env.One_DEFAULT_RENDER_MODE, getDefaultRenderMode = function() {
2
+ var CLIENT_RENDER_MODE = process.env.ONE_DEFAULT_RENDER_MODE, getDefaultRenderMode = function() {
3
3
  var _serverConfig_web, serverConfig = globalThis.__vxrnPluginConfig__;
4
4
  if (isWebServer && !serverConfig)
5
5
  throw new Error("Internal one error: should call setServerConfig before createManifest");
@@ -2,5 +2,5 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/config.ts"],
4
4
  "mappings": "AAAA,SAASA,mBAAmB;AAG5B,IAAMC,qBAAqBC,QAAQC,IAAIC,yBAG1BC,uBAAuB,WAAA;MAOLC,mBANvBA,eAAeC,WAAW;AAEhC,MAAIP,eAAe,CAACM;AAClB,UAAM,IAAIE,MAAM,uEAAuE;MAGlFP;AAAP,UAAOA,OAAAA,uBAAsBK,gBAAAA,SAAAA,oBAAAA,aAAcG,SAAG,QAAjBH,sBAAAA,SAAAA,SAAAA,kBAAmBI,wBAAiB,QAA1DT,SAAAA,SAAAA,OAA8D;AACvE;",
5
- "names": ["isWebServer", "CLIENT_RENDER_MODE", "process", "env", "One_DEFAULT_RENDER_MODE", "getDefaultRenderMode", "serverConfig", "globalThis", "Error", "web", "defaultRenderMode"]
5
+ "names": ["isWebServer", "CLIENT_RENDER_MODE", "process", "env", "ONE_DEFAULT_RENDER_MODE", "getDefaultRenderMode", "serverConfig", "globalThis", "Error", "web", "defaultRenderMode"]
6
6
  }
@@ -1,5 +1,9 @@
1
- const isWebClient = typeof window < "u", isWebServer = typeof window > "u", isNative = !1;
1
+ const isWebClient = typeof window < "u", isWebServer = typeof window > "u", isNative = !1, CACHE_KEY = `${process.env.ONE_CACHE_KEY ?? Math.round(Math.random() * 1e8)}`, LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js", LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`, PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
2
2
  export {
3
+ CACHE_KEY,
4
+ LOADER_JS_POSTFIX,
5
+ LOADER_JS_POSTFIX_UNCACHED,
6
+ PRELOAD_JS_POSTFIX,
3
7
  isNative,
4
8
  isWebClient,
5
9
  isWebServer
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/constants.ts"],
4
- "mappings": "AAAO,MAAM,cAAyD,OAAO,SAAW,KAC3E,cAAyD,OAAO,SAAW,KAC3E,WAAW;",
4
+ "mappings": "AAAO,MAAM,cAAyD,OAAO,SAAW,KAC3E,cAAyD,OAAO,SAAW,KAC3E,WAAW,IAEX,YAAY,GAAG,QAAQ,IAAI,iBAAiB,KAAK,MAAM,KAAK,OAAO,IAAI,GAAW,CAAC,IAEnF,6BAA6B,mBAC7B,oBAAoB,IAAI,SAAS,GAAG,0BAA0B,IAC9D,qBAAqB,IAAI,SAAS;",
5
5
  "names": []
6
6
  }
@@ -1,5 +1,9 @@
1
1
  const isWebClient = typeof window < "u",
2
2
  isWebServer = typeof window > "u",
3
- isNative = !1;
4
- export { isNative, isWebClient, isWebServer };
3
+ isNative = !1,
4
+ CACHE_KEY = `${process.env.ONE_CACHE_KEY ?? Math.round(Math.random() * 1e8)}`,
5
+ LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js",
6
+ LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`,
7
+ PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
8
+ export { CACHE_KEY, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_UNCACHED, PRELOAD_JS_POSTFIX, isNative, isWebClient, isWebServer };
5
9
  //# sourceMappingURL=constants.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["isWebClient","window","isWebServer","isNative"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,WAAA,GAAyD,OAAOC,MAAA,GAAW;EAC3EC,WAAA,GAAyD,OAAOD,MAAA,GAAW;EAC3EE,QAAA,GAAW","ignoreList":[]}
1
+ {"version":3,"names":["isWebClient","window","isWebServer","isNative","CACHE_KEY","process","env","ONE_CACHE_KEY","Math","round","random","LOADER_JS_POSTFIX_UNCACHED","LOADER_JS_POSTFIX","PRELOAD_JS_POSTFIX"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,WAAA,GAAyD,OAAOC,MAAA,GAAW;EAC3EC,WAAA,GAAyD,OAAOD,MAAA,GAAW;EAC3EE,QAAA,GAAW;EAEXC,SAAA,GAAY,GAAGC,OAAA,CAAQC,GAAA,CAAIC,aAAA,IAAiBC,IAAA,CAAKC,KAAA,CAAMD,IAAA,CAAKE,MAAA,CAAO,IAAI,GAAW,CAAC;EAEnFC,0BAAA,GAA6B;EAC7BC,iBAAA,GAAoB,IAAIR,SAAS,GAAGO,0BAA0B;EAC9DE,kBAAA,GAAqB,IAAIT,SAAS","ignoreList":[]}
@@ -1,5 +1,9 @@
1
- var isWebClient = !1, isWebServer = !1, isNative = !0;
1
+ var isWebClient = !1, isWebServer = !1, isNative = !0, _process_env_ONE_CACHE_KEY, CACHE_KEY = `${(_process_env_ONE_CACHE_KEY = process.env.ONE_CACHE_KEY) !== null && _process_env_ONE_CACHE_KEY !== void 0 ? _process_env_ONE_CACHE_KEY : Math.round(Math.random() * 1e8)}`, LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js", LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`, PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
2
2
  export {
3
+ CACHE_KEY,
4
+ LOADER_JS_POSTFIX,
5
+ LOADER_JS_POSTFIX_UNCACHED,
6
+ PRELOAD_JS_POSTFIX,
3
7
  isNative,
4
8
  isWebClient,
5
9
  isWebServer
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/constants.ts"],
4
- "mappings": "AAAO,IAAMA,cAAcC,IACdC,cAAcD,IACdE,WAAWF;",
5
- "names": ["isWebClient", "process", "isWebServer", "isNative"]
4
+ "mappings": "AAAO,IAAMA,cAAcC,IACdC,cAAcD,IACdE,WAAWF,IAEIA,4BAAfG,YAAY,IAAGH,6BAAAA,QAAQI,IAAIC,mBAAa,QAAzBL,+BAAAA,SAAAA,6BAA6BM,KAAKC,MAAMD,KAAKE,OAAM,IAAK,GAAA,CAAA,IAEvEC,6BAA6B,mBAC7BC,oBAAoB,IAAIP,SAAAA,GAAYM,0BAAAA,IACpCE,qBAAqB,IAAIR,SAAAA;",
5
+ "names": ["isWebClient", "process", "isWebServer", "isNative", "CACHE_KEY", "env", "ONE_CACHE_KEY", "Math", "round", "random", "LOADER_JS_POSTFIX_UNCACHED", "LOADER_JS_POSTFIX", "PRELOAD_JS_POSTFIX"]
6
6
  }
@@ -17,7 +17,7 @@ function createApp(options) {
17
17
  return App;
18
18
  }), AppRegistry.registerComponent("tamaguikitchensink", function() {
19
19
  return App;
20
- }), process.env.One_APP_NAME && AppRegistry.registerComponent(process.env.One_APP_NAME, function() {
20
+ }), process.env.ONE_APP_NAME && AppRegistry.registerComponent(process.env.ONE_APP_NAME, function() {
21
21
  return App;
22
22
  });
23
23
  }
@@ -2,5 +2,5 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/createApp.native.tsx"],
4
4
  "mappings": ";AAAA,OAAO;AACP,SAASA,YAAY;AACrB,SAASC,aAAaC,cAAc;AAKpCA,OAAOC,WAAW;EAAC;CAA0C;AAEtD,SAASC,UAAUC,SAAuB;AAC/C,MAAMC,MAAM,WAAA;WAAM,qBAACN,MAAAA;MAAKO,UAAQ;MAACC,QAAQH,QAAQG;MAAQC,MAAK;;;AAE9DR,cAAYS,kBAAkB,QAAQ,WAAA;WAAMJ;MAG5CL,YAAYS,kBAAkB,sBAAsB,WAAA;WAAMJ;MAEtDK,QAAQC,IAAIC,gBACdZ,YAAYS,kBAAkBC,QAAQC,IAAIC,cAAc,WAAA;WAAMP;;AAElE;",
5
- "names": ["Root", "AppRegistry", "LogBox", "ignoreLogs", "createApp", "options", "App", "isClient", "routes", "path", "registerComponent", "process", "env", "One_APP_NAME"]
5
+ "names": ["Root", "AppRegistry", "LogBox", "ignoreLogs", "createApp", "options", "App", "isClient", "routes", "path", "registerComponent", "process", "env", "ONE_APP_NAME"]
6
6
  }
@@ -1,4 +1,5 @@
1
1
  import { getPathFromLoaderPath } from "./cleanUrl";
2
+ import { LOADER_JS_POSTFIX_UNCACHED } from "./constants";
2
3
  import { isResponse } from "./utils/isResponse";
3
4
  import { promiseWithResolvers } from "./utils/promiseWithResolvers";
4
5
  import { getManifest } from "./vite/getManifest";
@@ -44,7 +45,7 @@ function createHandleRequest(options, handlers) {
44
45
  }
45
46
  if (request.method !== "GET")
46
47
  return null;
47
- if (handlers.handleLoader && pathname.endsWith("_vxrn_loader.js")) {
48
+ if (handlers.handleLoader && pathname.endsWith(LOADER_JS_POSTFIX_UNCACHED)) {
48
49
  const originalUrl = getPathFromLoaderPath(pathname), finalUrl = new URL(originalUrl, url.origin);
49
50
  for (const route of pageRoutes) {
50
51
  if (route.file === "" || !route.workingRegex.test(finalUrl.pathname))
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/createHandleRequest.ts"],
4
- "mappings": "AAAA,SAAS,6BAA6B;AAEtC,SAAS,kBAAkB;AAC3B,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAYrB,SAAS,oBACd,SACA,UAKA;AACA,QAAM,WAAW,YAAY;AAC7B,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,oBAAoB;AAGtC,QAAM,eACJ,SAAS,UAAU,OAAO,CAAC,KAAK,SAC9B,IAAI,IAAI,IAAI,IAAI,EAAE,GAAG,KAAK,eAAe,IAAI,OAAO,IAAI,UAAU,EAAE,GAC7D,MACN,CAAC,CAAC,GAED,gBAAgB,OAAO,OAAO,YAAY,GAK1C,iBAAiB,CAAC,GAGlB,aAAa,SAAS,WAAW,IAAI,CAAC,WAAW;AAAA,IACrD,GAAG;AAAA,IACH,cAAc,IAAI,OAAO,MAAM,UAAU;AAAA,EAC3C,EAAE;AAEF,SAAO;AAAA,IACL;AAAA,IACA,SAAS,eAA6B,SAAmD;AACvF,YAAM,YAAY,QAAQ,OAAO,IAC3B,MAAM,IAAI;AAAA,QACd,aAAa;AAAA,QACb,QAAQ,QAAQ,IAAI,MAAM,IAAI,UAAU,QAAQ,QAAQ,IAAI,MAAM,CAAC,KAAK;AAAA,MAC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@
1
1
  import { getPathFromLoaderPath } from "./cleanUrl.mjs";
2
+ import { LOADER_JS_POSTFIX_UNCACHED } from "./constants.mjs";
2
3
  import { isResponse } from "./utils/isResponse.mjs";
3
4
  import { promiseWithResolvers } from "./utils/promiseWithResolvers.mjs";
4
5
  import { getManifest } from "./vite/getManifest.mjs";
@@ -47,7 +48,7 @@ function createHandleRequest(options, handlers) {
47
48
  }
48
49
  }
49
50
  if (request.method !== "GET") return null;
50
- if (handlers.handleLoader && pathname.endsWith("_vxrn_loader.js")) {
51
+ if (handlers.handleLoader && pathname.endsWith(LOADER_JS_POSTFIX_UNCACHED)) {
51
52
  const originalUrl = getPathFromLoaderPath(pathname),
52
53
  finalUrl = new URL(originalUrl, url.origin);
53
54
  for (const route of pageRoutes) {
@@ -1 +1 @@
1
- {"version":3,"names":["getPathFromLoaderPath","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","manifest","Error","apiRoutesMap","apiRoutes","reduce","acc","cur","page","compiledRegex","RegExp","namedRegex","apiRoutesList","Object","values","activeRequests","pageRoutes","map","route","workingRegex","handler","request","urlString","url","URL","headers","get","pathname","search","process","env","NODE_ENV","startsWith","handleAPI","apiRoute","find","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","file","console","info","Headers","set","loaderResponse","getLoaderParams","Response","error","routes","handleSSR","promise","reject","resolve","ssrResponse","config","match","exec","groups","key","value","entries","namedKey","routeKeys","fromEntries"],"sources":["../../src/createHandleRequest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAA,QAA6B;AAEtC,SAASC,UAAA,QAAkB;AAC3B,SAASC,oBAAA,QAA4B;AACrC,SAASC,WAAA,QAAmB;AAYrB,SAASC,oBACdC,OAAA,EACAC,QAAA,EAKA;EACA,MAAMC,QAAA,GAAWJ,WAAA,CAAY;EAC7B,IAAI,CAACI,QAAA,EACH,MAAM,IAAIC,KAAA,CAAM,oBAAoB;EAGtC,MAAMC,YAAA,GAC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,IAAItD,MAAA,CAAOqD,MAAA,CAAO5C,YAAY,EAAE8C,IAAA,CAAK1C,GAAA,CAAII,QAAQ;EAC/D,IAAIqC,KAAA,EAAOE,MAAA,EACT,WAAW,CAACC,GAAA,EAAKC,KAAK,KAAKvD,MAAA,CAAOwD,OAAA,CAAQL,KAAA,CAAME,MAAM,GAAG;IACvD,MAAMI,QAAA,GAAWP,MAAA,CAAOQ,SAAA,CAAUJ,GAAG;IACrC9B,MAAA,CAAOiC,QAAQ,IAAIF,KAAA;EACrB;EAEF,OAAO/B,MAAA;AACT;AAGA,SAASC,eAAeX,QAAA,EAAkBT,KAAA,EAA0B;EAElE,MAAM8C,KAAA,GADQ,IAAItD,MAAA,CAAOQ,KAAA,CAAMP,UAAU,EACrBsD,IAAA,CAAKtC,QAAQ;EACjC,OAAKqC,KAAA,GACEnD,MAAA,CAAO2D,WAAA,CACZ3D,MAAA,CAAOwD,OAAA,CAAQnD,KAAA,CAAMqD,SAAS,EAAEtD,GAAA,CAAI,CAAC,CAACkD,GAAA,EAAKC,KAAK,MAAM,CAACA,KAAA,EAAOJ,KAAA,CAAME,MAAA,GAASC,GAAG,CAAC,CAAC,CACpF,IAHmB,CAAC;AAItB","ignoreList":[]}
1
+ {"version":3,"names":["getPathFromLoaderPath","LOADER_JS_POSTFIX_UNCACHED","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","manifest","Error","apiRoutesMap","apiRoutes","reduce","acc","cur","page","compiledRegex","RegExp","namedRegex","apiRoutesList","Object","values","activeRequests","pageRoutes","map","route","workingRegex","handler","request","urlString","url","URL","headers","get","pathname","search","process","env","NODE_ENV","startsWith","handleAPI","apiRoute","find","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","file","console","info","Headers","set","loaderResponse","getLoaderParams","Response","error","routes","handleSSR","promise","reject","resolve","ssrResponse","config","match","exec","groups","key","value","entries","namedKey","routeKeys","fromEntries"],"sources":["../../src/createHandleRequest.ts"],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KL,KAAK;cACpC;YACF,CAAC;YAED,OAAA2C,OAAA,CAAQC,WAAW,GACZA,WAAA;UACT;QACF,SAASrB,GAAA,EAAK;UACZ,MAAAmB,MAAA,CAAOnB,GAAG,GACJA,GAAA;QACR,UAAE;UACA,OAAO1B,cAAA,CAAeY,QAAQ;QAChC;MACF;MAEA,OAAO;IACT;EACF;AACF;AAEA,SAAS2B,gBACP/B,GAAA,EACAwC,MAAA,EACA;EACA,MAAM1B,MAAA,GAAiC,CAAC;IAClC2B,KAAA,GAAQ,IAAItD,MAAA,CAAOqD,MAAA,CAAO5C,YAAY,EAAE8C,IAAA,CAAK1C,GAAA,CAAII,QAAQ;EAC/D,IAAIqC,KAAA,EAAOE,MAAA,EACT,WAAW,CAACC,GAAA,EAAKC,KAAK,KAAKvD,MAAA,CAAOwD,OAAA,CAAQL,KAAA,CAAME,MAAM,GAAG;IACvD,MAAMI,QAAA,GAAWP,MAAA,CAAOQ,SAAA,CAAUJ,GAAG;IACrC9B,MAAA,CAAOiC,QAAQ,IAAIF,KAAA;EACrB;EAEF,OAAO/B,MAAA;AACT;AAGA,SAASC,eAAeX,QAAA,EAAkBT,KAAA,EAA0B;EAElE,MAAM8C,KAAA,GADQ,IAAItD,MAAA,CAAOQ,KAAA,CAAMP,UAAU,EACrBsD,IAAA,CAAKtC,QAAQ;EACjC,OAAKqC,KAAA,GACEnD,MAAA,CAAO2D,WAAA,CACZ3D,MAAA,CAAOwD,OAAA,CAAQnD,KAAA,CAAMqD,SAAS,EAAEtD,GAAA,CAAI,CAAC,CAACkD,GAAA,EAAKC,KAAK,MAAM,CAACA,KAAA,EAAOJ,KAAA,CAAME,MAAA,GAASC,GAAG,CAAC,CAAC,CACpF,IAHmB,CAAC;AAItB","ignoreList":[]}
@@ -1,4 +1,5 @@
1
1
  import { getPathFromLoaderPath } from "./cleanUrl";
2
+ import { LOADER_JS_POSTFIX_UNCACHED } from "./constants";
2
3
  import { isResponse } from "./utils/isResponse";
3
4
  import { promiseWithResolvers } from "./utils/promiseWithResolvers";
4
5
  import { getManifest } from "./vite/getManifest";
@@ -52,7 +53,7 @@ function createHandleRequest(options, handlers) {
52
53
  if (request.method !== "GET")
53
54
  return null;
54
55
  if (handlers.handleLoader) {
55
- var isClientRequestingNewRoute = pathname.endsWith("_vxrn_loader.js");
56
+ var isClientRequestingNewRoute = pathname.endsWith(LOADER_JS_POSTFIX_UNCACHED);
56
57
  if (isClientRequestingNewRoute) {
57
58
  var originalUrl = getPathFromLoaderPath(pathname), finalUrl = new URL(originalUrl, url.origin), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
58
59
  try {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/createHandleRequest.ts"],
4
- "mappings": "AAAA,SAASA,6BAA6B;AAEtC,SAASC,kBAAkB;AAC3B,SAASC,4BAA4B;AACrC,SAASC,mBAAmB;AAYrB,SAASC,oBACdC,SACAC,UAIC;AAED,MAAMC,WAAWJ,YAAAA;AACjB,MAAI,CAACI;AACH,UAAM,IAAIC,MAAM,oBAAoB;AAGtC,MAAMC,eACJF,SAASG,UAAUC,OAAO,SAACC,KAAKC,KAAAA;AAC9BD,eAAIC,IAAIC,IAAI,IAAI;MAAE,GAAGD;MAAKE,eAAe,IAAIC,OAAOH,IAAII,UAAU;IAAE,GAC7DL;EACT,GAAG,CAAC,CAAA,GAEAM,gBAAgBC,OAAOC,OAAOX,YAAAA,GAK9BY,iBAAiB,CAAC,GAGlBC,aAAaf,SAASe,WAAWC,IAAI,SAACC,OAAAA;WAAW;MACrD,GAAGA;MACHC,cAAc,IAAIT,OAAOQ,MAAMP,UAAU;IAC3C;;AAEA,SAAO;IACLV;IACAmB,SAAS,eAA6BC,SAAgB;AACpD,UAAMC,YAAYD,QAAQE,OAAO,IAC3BA,MAAM,IAAIC,IACdF,aAAa,IACbD,QAAQI,QAAQC,IAAI,MAAA,IAAU,UAAUL,QAAQI,QAAQC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Response", "promiseWithResolvers", "getManifest", "createHandleRequest", "options", "handlers", "manifest", "Error", "apiRoutesMap", "apiRoutes", "reduce", "acc", "cur", "page", "compiledRegex", "RegExp", "namedRegex", "apiRoutesList", "Object", "values", "activeRequests", "pageRoutes", "map", "route", "workingRegex", "handler", "request", "urlString", "url", "URL", "headers", "get", "pathname", "search", "process", "env", "NODE_ENV", "startsWith", "handleAPI", "apiRoute", "find", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "file", "console", "info", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "error", "routes", "handleSSR", "promise", "reject", "resolve", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
4
+ "mappings": "AAAA,SAASA,6BAA6B;AACtC,SAA4BC,kCAAkC;AAE9D,SAASC,kBAAkB;AAC3B,SAASC,4BAA4B;AACrC,SAASC,mBAAmB;AAYrB,SAASC,oBACdC,SACAC,UAIC;AAED,MAAMC,WAAWJ,YAAAA;AACjB,MAAI,CAACI;AACH,UAAM,IAAIC,MAAM,oBAAoB;AAGtC,MAAMC,eACJF,SAASG,UAAUC,OAAO,SAACC,KAAKC,KAAAA;AAC9BD,eAAIC,IAAIC,IAAI,IAAI;MAAE,GAAGD;MAAKE,eAAe,IAAIC,OAAOH,IAAII,UAAU;IAAE,GAC7DL;EACT,GAAG,CAAC,CAAA,GAEAM,gBAAgBC,OAAOC,OAAOX,YAAAA,GAK9BY,iBAAiB,CAAC,GAGlBC,aAAaf,SAASe,WAAWC,IAAI,SAACC,OAAAA;WAAW;MACrD,GAAGA;MACHC,cAAc,IAAIT,OAAOQ,MAAMP,UAAU;IAC3C;;AAEA,SAAO;IACLV;IACAmB,SAAS,eAA6BC,SAAgB;AACpD,UAAMC,YAAYD,QAAQE,OAAO,IAC3BA,MAAM,IAAIC,IACdF,aAAa,IACbD,QAAQI,QAAQC,IAA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;AAItB;",
5
+ "names": ["getPathFromLoaderPath", "LOADER_JS_POSTFIX_UNCACHED", "isResponse", "promiseWithResolvers", "getManifest", "createHandleRequest", "options", "handlers", "manifest", "Error", "apiRoutesMap", "apiRoutes", "reduce", "acc", "cur", "page", "compiledRegex", "RegExp", "namedRegex", "apiRoutesList", "Object", "values", "activeRequests", "pageRoutes", "map", "route", "workingRegex", "handler", "request", "urlString", "url", "URL", "headers", "get", "pathname", "search", "process", "env", "NODE_ENV", "startsWith", "handleAPI", "apiRoute", "find", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "file", "console", "info", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "error", "routes", "handleSSR", "promise", "reject", "resolve", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
6
6
  }
@@ -11,7 +11,7 @@ function matchGroupName(name) {
11
11
  return name.match(/^(?:[^\\(\\)])*?\(([^\\/]+)\).*?$/)?.[1];
12
12
  }
13
13
  function matchArrayGroupName(name) {
14
- return name.match(/(?:[^\\(\\)])*?\(([^\\/]+,[^\\/]+)\).*?$/)?.[1];
14
+ return name.match(/(?:[^\\(\\)])*?\(?([^\\/\(\)]+,[^\\/\(\)]+)\)?.*?$/)?.[1];
15
15
  }
16
16
  function getNameFromFilePath(name) {
17
17
  return removeSupportedExtensions(removeFileSystemDots(name));
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/matchers.ts"],
4
- "mappings": "AACO,SAAS,iBAAiB,MAAkC;AAGjE,SAAO,KAAK,MAAM,4BAA4B,IAAI,CAAC;AACrD;AAGO,SAAS,0BAA0B,MAAkC;AAC1E,SAAO,KAAK,MAAM,sBAAsB,IAAI,CAAC;AAC/C;AAGO,SAAS,aAAa,MAAuB;AAClD,SAAO,eAAe,KAAK,IAAI;AACjC;AAGO,SAAS,eAAe,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AoD,IAAI,CAAC;AAC7E;AAEO,SAAS,oBAAoB,MAAsB;AACxD,SAAO,0BAA0B,qBAAqB,IAAI,CAAC;AAC7D;AAEO,SAAS,cAAc,MAAsB;AAGlD,QAAM,SAAS,MAAM,oBAAoB,IAAI;AAC7C,SAAK,OAAO,SAAS,SAAS,IAGvB,OAAO,QAAQ,eAAe,EAAE,IAF9B;AAGX;AAGO,SAAS,0BAA0B,MAAsB;AAC9D,SAAO,KAAK,QAAQ,qCAAqC,EAAE;AAC7D;AAGO,SAAS,qBAAqB,UAA0B;AAC7D,SAAO,SAAS,QAAQ,kBAAkB,EAAE;AAC9C;AAEO,SAAS,2BAA2B,MAAsB;AAC/D,SAAO,KACJ,MAAM,GAAG,EACT,OAAO,CAAC,KAAK,OACR,eAAe,CAAC,KAAK,QACvB,IAAI,KAAK,CAAC,GAEL,MACN,CAAC,CAAa,EAChB,KAAK,GAAG;AACb;AAEO,SAAS,+BAA+B,MAAsB;AACnE,SAAO,2BAA2B,IAAI,EAAE,QAAQ,aAAa,EAAE;AACjE;AAOO,SAAS,aAAa,MAAc;AACzC,SAAO,CAAC,KAAK,WAAW,GAAG,KAAK,KAAK,MAAM,oCAAoC,MAAM;AACvF;",
5
5
  "names": []
6
6
  }
@@ -11,7 +11,7 @@ function matchGroupName(name) {
11
11
  return name.match(/^(?:[^\\(\\)])*?\(([^\\/]+)\).*?$/)?.[1];
12
12
  }
13
13
  function matchArrayGroupName(name) {
14
- return name.match(/(?:[^\\(\\)])*?\(([^\\/]+,[^\\/]+)\).*?$/)?.[1];
14
+ return name.match(/(?:[^\\(\\)])*?\(?([^\\/\(\)]+,[^\\/\(\)]+)\)?.*?$/)?.[1];
15
15
  }
16
16
  function getNameFromFilePath(name) {
17
17
  return removeSupportedExtensions(removeFileSystemDots(name));
@@ -1 +1 @@
1
- {"version":3,"names":["matchDynamicName","name","match","matchDeepDynamicRouteName","testNotFound","test","matchGroupName","matchArrayGroupName","getNameFromFilePath","removeSupportedExtensions","removeFileSystemDots","getContextKey","normal","endsWith","replace","filePath","stripGroupSegmentsFromPath","path","split","reduce","acc","v","push","join","stripInvisibleSegmentsFromPath","isTypedRoute","startsWith"],"sources":["../../src/matchers.ts"],"sourcesContent":[null],"mappings":"AACO,SAASA,iBAAiBC,IAAA,EAAkC;EAGjE,OAAOA,IAAA,CAAKC,KAAA,CAAM,4BAA4B,IAAI,CAAC;AACrD;AAGO,SAASC,0BAA0BF,IAAA,EAAkC;EAC1E,OAAOA,IAAA,CAAKC,KAAA,CAAM,sBAAsB,IAAI,CAAC;AAC/C;AAGO,SAASE,aAAaH,IAAA,EAAuB;EAClD,OAAO,eAAeI,IAAA,CAAKJ,IAAI;AACjC;AAGO,SAASK,eAAeL,IAAA,EAAkC;EAC/D,OAAOA,IAAA,CAAKC,KAAA,CAAM,mCAAmC,IAAI,CAAC;AAC5D;AAGO,SAASK,oBAAoBN,IAAA,EAAc;EAChD,OAAOA,IAAA,CAAKC,KAAA,CAAM,0CAA0C,IAAI,CAAC;AACnE;AAEO,SAASM,oBAAoBP,IAAA,EAAsB;EACxD,OAAOQ,yBAAA,CAA0BC,oBAAA,CAAqBT,IAAI,CAAC;AAC7D;AAEO,SAASU,cAAcV,IAAA,EAAsB;EAGlD,MAAMW,MAAA,GAAS,MAAMJ,mBAAA,CAAoBP,IAAI;EAC7C,OAAKW,MAAA,CAAOC,QAAA,CAAS,SAAS,IAGvBD,MAAA,CAAOE,OAAA,CAAQ,eAAe,EAAE,IAF9BF,MAAA;AAGX;AAGO,SAASH,0BAA0BR,IAAA,EAAsB;EAC9D,OAAOA,IAAA,CAAKa,OAAA,CAAQ,qCAAqC,EAAE;AAC7D;AAGO,SAASJ,qBAAqBK,QAAA,EAA0B;EAC7D,OAAOA,QAAA,CAASD,OAAA,CAAQ,kBAAkB,EAAE;AAC9C;AAEO,SAASE,2BAA2BC,IAAA,EAAsB;EAC/D,OAAOA,IAAA,CACJC,KAAA,CAAM,GAAG,EACTC,MAAA,CAAO,CAACC,GAAA,EAAKC,CAAA,MACRf,cAAA,CAAee,CAAC,KAAK,QACvBD,GAAA,CAAIE,IAAA,CAAKD,CAAC,GAELD,GAAA,GACN,EAAc,EAChBG,IAAA,CAAK,GAAG;AACb;AAEO,SAASC,+BAA+BP,IAAA,EAAsB;EACnE,OAAOD,0BAAA,CAA2BC,IAAI,EAAEH,OAAA,CAAQ,aAAa,EAAE;AACjE;AAOO,SAASW,aAAaxB,IAAA,EAAc;EACzC,OAAO,CAACA,IAAA,CAAKyB,UAAA,CAAW,GAAG,KAAKzB,IAAA,CAAKC,KAAA,CAAM,oCAAoC,MAAM;AACvF","ignoreList":[]}
1
+ {"version":3,"names":["matchDynamicName","name","match","matchDeepDynamicRouteName","testNotFound","test","matchGroupName","matchArrayGroupName","getNameFromFilePath","removeSupportedExtensions","removeFileSystemDots","getContextKey","normal","endsWith","replace","filePath","stripGroupSegmentsFromPath","path","split","reduce","acc","v","push","join","stripInvisibleSegmentsFromPath","isTypedRoute","startsWith"],"sources":["../../src/matchers.ts"],"sourcesContent":[null],"mappings":"AACO,SAASA,iBAAiBC,IAAA,EAAkC;EAGjE,OAAOA,IAAA,CAAKC,KAAA,CAAM,4BAA4B,IAAI,CAAC;AACrD;AAGO,SAASC,0BAA0BF,IAAA,EAAkC;EAC1E,OAAOA,IAAA,CAAKC,KAAA,CAAM,sBAAsB,IAAI,CAAC;AAC/C;AAGO,SAASE,aAAaH,IAAA,EAAuB;EAClD,OAAO,eAAeI,IAAA,CAAKJ,IAAI;AACjC;AAGO,SAASK,eAAeL,IAAA,EAAkC;EAC/D,OAAOA,IAAA,CAAKC,KAAA,CAAM,mCAAmC,IAAI,CAAC;AAC5D;AAGO,SAASK,oBAAoBN,IAAA,EAAc;EAChD,OAAOA,IAAA,CAAKC,KAAA,CAAM,oDAAoD,IAAI,CAAC;AAC7E;AAEO,SAASM,oBAAoBP,IAAA,EAAsB;EACxD,OAAOQ,yBAAA,CAA0BC,oBAAA,CAAqBT,IAAI,CAAC;AAC7D;AAEO,SAASU,cAAcV,IAAA,EAAsB;EAGlD,MAAMW,MAAA,GAAS,MAAMJ,mBAAA,CAAoBP,IAAI;EAC7C,OAAKW,MAAA,CAAOC,QAAA,CAAS,SAAS,IAGvBD,MAAA,CAAOE,OAAA,CAAQ,eAAe,EAAE,IAF9BF,MAAA;AAGX;AAGO,SAASH,0BAA0BR,IAAA,EAAsB;EAC9D,OAAOA,IAAA,CAAKa,OAAA,CAAQ,qCAAqC,EAAE;AAC7D;AAGO,SAASJ,qBAAqBK,QAAA,EAA0B;EAC7D,OAAOA,QAAA,CAASD,OAAA,CAAQ,kBAAkB,EAAE;AAC9C;AAEO,SAASE,2BAA2BC,IAAA,EAAsB;EAC/D,OAAOA,IAAA,CACJC,KAAA,CAAM,GAAG,EACTC,MAAA,CAAO,CAACC,GAAA,EAAKC,CAAA,MACRf,cAAA,CAAee,CAAC,KAAK,QACvBD,GAAA,CAAIE,IAAA,CAAKD,CAAC,GAELD,GAAA,GACN,EAAc,EAChBG,IAAA,CAAK,GAAG;AACb;AAEO,SAASC,+BAA+BP,IAAA,EAAsB;EACnE,OAAOD,0BAAA,CAA2BC,IAAI,EAAEH,OAAA,CAAQ,aAAa,EAAE;AACjE;AAOO,SAASW,aAAaxB,IAAA,EAAc;EACzC,OAAO,CAACA,IAAA,CAAKyB,UAAA,CAAW,GAAG,KAAKzB,IAAA,CAAKC,KAAA,CAAM,oCAAoC,MAAM;AACvF","ignoreList":[]}
@@ -15,7 +15,7 @@ function matchGroupName(name) {
15
15
  }
16
16
  function matchArrayGroupName(name) {
17
17
  var _name_match;
18
- return (_name_match = name.match(/(?:[^\\(\\)])*?\(([^\\/]+,[^\\/]+)\).*?$/)) === null || _name_match === void 0 ? void 0 : _name_match[1];
18
+ return (_name_match = name.match(/(?:[^\\(\\)])*?\(?([^\\/\(\)]+,[^\\/\(\)]+)\)?.*?$/)) === null || _name_match === void 0 ? void 0 : _name_match[1];
19
19
  }
20
20
  function getNameFromFilePath(name) {
21
21
  return removeSupportedExtensions(removeFileSystemDots(name));