one 1.1.310 → 1.1.312

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. package/dist/cjs/Root.cjs +2 -1
  2. package/dist/cjs/Root.cjs.map +1 -1
  3. package/dist/cjs/Root.native.js +2 -2
  4. package/dist/cjs/Root.native.js.map +2 -2
  5. package/dist/cjs/cleanUrl.cjs +3 -8
  6. package/dist/cjs/cleanUrl.cjs.map +2 -2
  7. package/dist/cjs/cleanUrl.native.js +5 -8
  8. package/dist/cjs/cleanUrl.native.js.map +2 -2
  9. package/dist/cjs/cli.cjs +0 -2
  10. package/dist/cjs/cli.cjs.map +1 -1
  11. package/dist/cjs/cli.native.js +1 -2
  12. package/dist/cjs/cli.native.js.map +2 -2
  13. package/dist/cjs/config.cjs +1 -1
  14. package/dist/cjs/config.native.js +1 -1
  15. package/dist/cjs/config.native.js.map +1 -1
  16. package/dist/cjs/constants.cjs +9 -1
  17. package/dist/cjs/constants.cjs.map +1 -1
  18. package/dist/cjs/constants.native.js +9 -1
  19. package/dist/cjs/constants.native.js.map +2 -2
  20. package/dist/cjs/createApp.native.cjs +1 -1
  21. package/dist/cjs/createApp.native.js +1 -1
  22. package/dist/cjs/createApp.native.js.map +1 -1
  23. package/dist/cjs/createHandleRequest.cjs +3 -1
  24. package/dist/cjs/createHandleRequest.cjs.map +1 -1
  25. package/dist/cjs/createHandleRequest.native.js +3 -2
  26. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  27. package/dist/cjs/getURL.cjs +1 -1
  28. package/dist/cjs/matchers.cjs +1 -1
  29. package/dist/cjs/matchers.cjs.map +1 -1
  30. package/dist/cjs/matchers.native.js +1 -1
  31. package/dist/cjs/matchers.native.js.map +1 -1
  32. package/dist/cjs/serve.cjs +3 -3
  33. package/dist/cjs/serve.cjs.map +1 -1
  34. package/dist/cjs/serve.native.js +2 -2
  35. package/dist/cjs/serve.native.js.map +2 -2
  36. package/dist/cjs/useLoader.cjs +1 -1
  37. package/dist/cjs/useLoader.native.js +1 -1
  38. package/dist/cjs/vite/build.cjs +2 -2
  39. package/dist/cjs/vite/build.cjs.map +1 -1
  40. package/dist/cjs/vite/build.native.js +1 -1
  41. package/dist/cjs/vite/build.native.js.map +1 -1
  42. package/dist/cjs/vite/clientTreeShakePlugin.cjs +1 -1
  43. package/dist/cjs/vite/clientTreeShakePlugin.native.js +1 -1
  44. package/dist/cjs/vite/createFileSystemRouter.cjs +1 -1
  45. package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
  46. package/dist/cjs/vite/one.cjs +43 -14
  47. package/dist/cjs/vite/one.cjs.map +1 -1
  48. package/dist/cjs/vite/one.native.js +39 -12
  49. package/dist/cjs/vite/one.native.js.map +2 -2
  50. package/dist/cjs/vite/virtualEntryPlugin.cjs +5 -5
  51. package/dist/cjs/vite/virtualEntryPlugin.native.js +5 -5
  52. package/dist/cjs/vite/virtualEntryPlugin.native.js.map +1 -1
  53. package/dist/cjs/vite/vitePluginSsrCss.cjs +1 -1
  54. package/dist/cjs/vite/vitePluginSsrCss.native.js +1 -1
  55. package/dist/esm/Root.js +2 -1
  56. package/dist/esm/Root.js.map +1 -1
  57. package/dist/esm/Root.mjs +2 -1
  58. package/dist/esm/Root.mjs.map +1 -1
  59. package/dist/esm/Root.native.js +2 -1
  60. package/dist/esm/Root.native.js.map +2 -2
  61. package/dist/esm/cleanUrl.js +10 -9
  62. package/dist/esm/cleanUrl.js.map +1 -1
  63. package/dist/esm/cleanUrl.mjs +4 -9
  64. package/dist/esm/cleanUrl.mjs.map +1 -1
  65. package/dist/esm/cleanUrl.native.js +5 -9
  66. package/dist/esm/cleanUrl.native.js.map +2 -2
  67. package/dist/esm/cli.js +0 -2
  68. package/dist/esm/cli.js.map +1 -1
  69. package/dist/esm/cli.mjs +0 -2
  70. package/dist/esm/cli.mjs.map +1 -1
  71. package/dist/esm/cli.native.js +0 -2
  72. package/dist/esm/cli.native.js.map +2 -2
  73. package/dist/esm/config.js +1 -1
  74. package/dist/esm/config.mjs +1 -1
  75. package/dist/esm/config.mjs.map +1 -1
  76. package/dist/esm/config.native.js +1 -1
  77. package/dist/esm/config.native.js.map +1 -1
  78. package/dist/esm/constants.js +5 -1
  79. package/dist/esm/constants.js.map +1 -1
  80. package/dist/esm/constants.mjs +6 -2
  81. package/dist/esm/constants.mjs.map +1 -1
  82. package/dist/esm/constants.native.js +5 -1
  83. package/dist/esm/constants.native.js.map +2 -2
  84. package/dist/esm/createApp.native.js +1 -1
  85. package/dist/esm/createApp.native.js.map +1 -1
  86. package/dist/esm/createHandleRequest.js +3 -1
  87. package/dist/esm/createHandleRequest.js.map +1 -1
  88. package/dist/esm/createHandleRequest.mjs +3 -1
  89. package/dist/esm/createHandleRequest.mjs.map +1 -1
  90. package/dist/esm/createHandleRequest.native.js +3 -1
  91. package/dist/esm/createHandleRequest.native.js.map +2 -2
  92. package/dist/esm/getURL.js +1 -1
  93. package/dist/esm/getURL.mjs +1 -1
  94. package/dist/esm/matchers.js +1 -1
  95. package/dist/esm/matchers.js.map +1 -1
  96. package/dist/esm/matchers.mjs +1 -1
  97. package/dist/esm/matchers.mjs.map +1 -1
  98. package/dist/esm/matchers.native.js +1 -1
  99. package/dist/esm/matchers.native.js.map +1 -1
  100. package/dist/esm/serve.js +4 -4
  101. package/dist/esm/serve.js.map +1 -1
  102. package/dist/esm/serve.mjs +4 -4
  103. package/dist/esm/serve.mjs.map +1 -1
  104. package/dist/esm/serve.native.js +4 -4
  105. package/dist/esm/serve.native.js.map +2 -2
  106. package/dist/esm/useLoader.js +1 -1
  107. package/dist/esm/useLoader.mjs +1 -1
  108. package/dist/esm/useLoader.native.js +1 -1
  109. package/dist/esm/vite/build.js +1 -1
  110. package/dist/esm/vite/build.js.map +1 -1
  111. package/dist/esm/vite/build.mjs +1 -1
  112. package/dist/esm/vite/build.mjs.map +1 -1
  113. package/dist/esm/vite/build.native.js +1 -1
  114. package/dist/esm/vite/build.native.js.map +2 -2
  115. package/dist/esm/vite/clientTreeShakePlugin.js +1 -1
  116. package/dist/esm/vite/clientTreeShakePlugin.mjs +1 -1
  117. package/dist/esm/vite/clientTreeShakePlugin.native.js +1 -1
  118. package/dist/esm/vite/createFileSystemRouter.js +1 -1
  119. package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
  120. package/dist/esm/vite/createFileSystemRouter.native.js +1 -1
  121. package/dist/esm/vite/one.js +43 -14
  122. package/dist/esm/vite/one.js.map +1 -1
  123. package/dist/esm/vite/one.mjs +43 -14
  124. package/dist/esm/vite/one.mjs.map +1 -1
  125. package/dist/esm/vite/one.native.js +41 -14
  126. package/dist/esm/vite/one.native.js.map +2 -2
  127. package/dist/esm/vite/virtualEntryPlugin.js +5 -5
  128. package/dist/esm/vite/virtualEntryPlugin.mjs +5 -5
  129. package/dist/esm/vite/virtualEntryPlugin.mjs.map +1 -1
  130. package/dist/esm/vite/virtualEntryPlugin.native.js +5 -5
  131. package/dist/esm/vite/virtualEntryPlugin.native.js.map +1 -1
  132. package/dist/esm/vite/vitePluginSsrCss.js +1 -1
  133. package/dist/esm/vite/vitePluginSsrCss.mjs +1 -1
  134. package/dist/esm/vite/vitePluginSsrCss.native.js +1 -1
  135. package/package.json +8 -8
  136. package/src/Root.tsx +2 -1
  137. package/src/cleanUrl.ts +10 -14
  138. package/src/cli.ts +0 -3
  139. package/src/config.ts +1 -1
  140. package/src/constants.ts +6 -0
  141. package/src/createApp.native.tsx +2 -2
  142. package/src/createHandleRequest.ts +7 -1
  143. package/src/getURL.ts +1 -1
  144. package/src/matchers.ts +1 -1
  145. package/src/serve.ts +5 -3
  146. package/src/useLoader.ts +1 -1
  147. package/src/vite/build.ts +2 -1
  148. package/src/vite/clientTreeShakePlugin.ts +1 -1
  149. package/src/vite/createFileSystemRouter.tsx +1 -1
  150. package/src/vite/one.ts +44 -11
  151. package/src/vite/virtualEntryPlugin.ts +5 -5
  152. package/src/vite/vitePluginSsrCss.ts +1 -1
  153. package/types/Root.d.ts.map +1 -1
  154. package/types/cleanUrl.d.ts.map +1 -1
  155. package/types/constants.d.ts +4 -0
  156. package/types/constants.d.ts.map +1 -1
  157. package/types/createHandleRequest.d.ts.map +1 -1
  158. package/types/serve.d.ts.map +1 -1
  159. package/types/vite/build.d.ts.map +1 -1
  160. package/types/vite/one.d.ts.map +1 -1
  161. package/dist/cjs/router/constants.cjs +0 -26
  162. package/dist/cjs/router/constants.cjs.map +0 -6
  163. package/dist/cjs/router/constants.native.js +0 -26
  164. package/dist/cjs/router/constants.native.js.map +0 -6
  165. package/dist/cjs/vite/loadEnv.cjs +0 -47
  166. package/dist/cjs/vite/loadEnv.cjs.map +0 -6
  167. package/dist/cjs/vite/loadEnv.native.js +0 -44
  168. package/dist/cjs/vite/loadEnv.native.js.map +0 -6
  169. package/dist/esm/router/constants.js +0 -5
  170. package/dist/esm/router/constants.js.map +0 -6
  171. package/dist/esm/router/constants.mjs +0 -3
  172. package/dist/esm/router/constants.mjs.map +0 -1
  173. package/dist/esm/router/constants.native.js +0 -5
  174. package/dist/esm/router/constants.native.js.map +0 -6
  175. package/dist/esm/vite/loadEnv.js +0 -13
  176. package/dist/esm/vite/loadEnv.js.map +0 -6
  177. package/dist/esm/vite/loadEnv.mjs +0 -13
  178. package/dist/esm/vite/loadEnv.mjs.map +0 -1
  179. package/dist/esm/vite/loadEnv.native.js +0 -16
  180. package/dist/esm/vite/loadEnv.native.js.map +0 -6
  181. package/src/router/constants.ts +0 -4
  182. package/src/vite/loadEnv.ts +0 -11
  183. package/types/router/constants.d.ts +0 -2
  184. package/types/router/constants.d.ts.map +0 -1
  185. package/types/vite/loadEnv.d.ts +0 -2
  186. package/types/vite/loadEnv.d.ts.map +0 -1
@@ -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,11 +45,12 @@ 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))
51
52
  continue;
53
+ process.env.NODE_ENV === "development" && console.info(` \u2776 Running loader for route: ${finalUrl.pathname}`);
52
54
  const headers = new Headers();
53
55
  headers.set("Content-Type", "text/javascript");
54
56
  try {
@@ -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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ADER_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,11 +48,12 @@ 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) {
54
55
  if (route.file === "" || !route.workingRegex.test(finalUrl.pathname)) continue;
56
+ process.env.NODE_ENV === "development" && console.info(` \u2776 Running loader for route: ${finalUrl.pathname}`);
55
57
  const headers = new Headers();
56
58
  headers.set("Content-Type", "text/javascript");
57
59
  try {
@@ -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","Headers","set","loaderResponse","getLoaderParams","Response","console","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,Q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AAOoD,MAAA,CAAO3C,YAAY,EAAE6C,IAAA,CAAKzC,GAAA,CAAII,QAAQ;EAC/D,IAAIoC,KAAA,EAAOE,MAAA,EACT,WAAW,CAACC,GAAA,EAAKC,KAAK,KAAKtD,MAAA,CAAOuD,OAAA,CAAQL,KAAA,CAAME,MAAM,GAAG;IACvD,MAAMI,QAAA,GAAWP,MAAA,CAAOQ,SAAA,CAAUJ,GAAG;IACrC7B,MAAA,CAAOgC,QAAQ,IAAIF,KAAA;EACrB;EAEF,OAAO9B,MAAA;AACT;AAGA,SAASC,eAAeX,QAAA,EAAkBT,KAAA,EAA0B;EAElE,MAAM6C,KAAA,GADQ,IAAIrD,MAAA,CAAOQ,KAAA,CAAMP,UAAU,EACrBqD,IAAA,CAAKrC,QAAQ;EACjC,OAAKoC,KAAA,GACElD,MAAA,CAAO0D,WAAA,CACZ1D,MAAA,CAAOuD,OAAA,CAAQlD,KAAA,CAAMoD,SAAS,EAAErD,GAAA,CAAI,CAAC,CAACiD,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"],"sourcesContent":[null],"mappings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F,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,13 +53,14 @@ 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 {
59
60
  for (var _iterator = pageRoutes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
60
61
  var route = _step.value;
61
62
  if (route.file !== "" && route.workingRegex.test(finalUrl.pathname)) {
63
+ process.env.NODE_ENV === "development" && console.info(` \u2776 Running loader for route: ${finalUrl.pathname}`);
62
64
  var headers = new Headers();
63
65
  headers.set("Content-Type", "text/javascript");
64
66
  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,I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CAACoD,KAAKC,KAAAA,IAAM,OAAaL;WAAR;MAACK;OAAOL,gBAAAA,MAAME,YAAM,QAAZF,kBAAAA,SAAAA,SAAAA,cAAeI,GAAAA;;QAF5D,CAAC;AAItB;",
5
- "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", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "file", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "console", "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,OAA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,EAAExD,IAAI,SAAA,OAAA;QAAC,CAACqD,KAAKC,KAAAA,IAAM,OAAaL;WAAR;MAACK;OAAOL,gBAAAA,MAAME,YAAM,QAAZF,kBAAAA,SAAAA,SAAAA,cAAeI,GAAAA;;QAF5D,CAAC;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
  }
@@ -1,6 +1,6 @@
1
1
  const CLIENT_BASE_URL = typeof window < "u" && window.location ? `${window.location.protocol}//${window.location.host}` : "";
2
2
  function getURL() {
3
- return CLIENT_BASE_URL || process.env.ONE_SERVER_URL || "";
3
+ return CLIENT_BASE_URL || process.env.ONE_SERVER_URL || "http://localhost";
4
4
  }
5
5
  export {
6
6
  getURL
@@ -1,6 +1,6 @@
1
1
  const CLIENT_BASE_URL = typeof window < "u" && window.location ? `${window.location.protocol}//${window.location.host}` : "";
2
2
  function getURL() {
3
- return CLIENT_BASE_URL || process.env.ONE_SERVER_URL || "";
3
+ return CLIENT_BASE_URL || process.env.ONE_SERVER_URL || "http://localhost";
4
4
  }
5
5
  export { getURL };
6
6
  //# sourceMappingURL=getURL.mjs.map
@@ -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,MAAkC;AAC/D,SAAO,KAAK,MAAM,mCAAmC,IAAI,CAAC;AAC5D;AAGO,SAAS,oBAAoB,MAAc;AAChD,SAAO,KAAK,MAAM,0CAA0C,IAAI,CAAC;AACnE;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,e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;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","stripInvisibleSegmentsFrom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AELD,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));
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/matchers.ts"],
4
- "mappings": "AACO,SAASA,iBAAiBC,MAAY;MAGpCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,4BAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAA2C,CAAA;AACpD;AAGO,SAASE,0BAA0BF,MAAY;MAC7CA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,sBAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAAqC,CAAA;AAC9C;AAGO,SAASG,aAAaH,MAAY;AACvC,SAAO,eAAeI,KAAKJ,IAAAA;AAC7B;AAGO,SAASK,eAAeL,MAAY;MAClCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,mCAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAAkD,CAAA;AAC3D;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vC,SAAO,eAAeI,KAAKJ,IAAAA;AAC7B;AAGO,SAASK,eAAeL,MAAY;MAClCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,mCAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAAkD,CAAA;AAC3D;AAGO,SAASM,oBAAoBN,MAAY;MACvCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,oDAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAAmE,CAAA;AAC5E;AAEO,SAASO,oBAAoBP,MAAY;AAC9C,SAAOQ,0BAA0BC,qBAAqBT,IAAAA,CAAAA;AACxD;AAEO,SAASU,cAAcV,MAAY;AAGxC,MAAMW,SAAS,MAAMJ,oBAAoBP,IAAAA;AACzC,SAAKW,OAAOC,SAAS,SAAA,IAGdD,OAAOE,QAAQ,eAAe,EAAA,IAF5BF;AAGX;AAGO,SAASH,0BAA0BR,MAAY;AACpD,SAAOA,KAAKa,QAAQ,qCAAqC,EAAA;AAC3D;AAGO,SAASJ,qBAAqBK,UAAgB;AACnD,SAAOA,SAASD,QAAQ,kBAAkB,EAAA;AAC5C;AAEO,SAASE,2BAA2BC,MAAY;AACrD,SAAOA,KACJC,MAAM,GAAA,EACNC,OAAO,SAACC,KAAKC,GAAAA;AACZ,WAAIf,eAAee,CAAAA,KAAM,QACvBD,IAAIE,KAAKD,CAAAA,GAEJD;EACT,GAAG,CAAA,CAAE,EACJG,KAAK,GAAA;AACV;AAEO,SAASC,+BAA+BP,MAAY;AACzD,SAAOD,2BAA2BC,IAAAA,EAAMH,QAAQ,aAAa,EAAA;AAC/D;AAOO,SAASW,aAAaxB,MAAY;AACvC,SAAO,CAACA,KAAKyB,WAAW,GAAA,KAAQzB,KAAKC,MAAM,oCAAA,MAA0C;AACvF;",
5
5
  "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"]
6
6
  }
package/dist/esm/serve.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import "./polyfills-server";
2
2
  import FSExtra from "fs-extra";
3
3
  import Path, { join } from "node:path";
4
- import { getServerEntry, serve as vxrnServe } from "vxrn";
4
+ import { getServerEntry, loadEnv, serve as vxrnServe } from "vxrn";
5
+ import { labelProcess } from "./cli/label-process";
5
6
  import { createHandleRequest } from "./createHandleRequest";
6
7
  import { isResponse } from "./utils/isResponse";
7
8
  import { isStatusRedirect } from "./utils/isStatus";
8
9
  import { removeUndefined } from "./utils/removeUndefined";
9
- import { resolveAPIRequest } from "./vite/resolveAPIRequest";
10
10
  import { loadUserOneOptions } from "./vite/one";
11
- import { labelProcess } from "./cli/label-process";
11
+ import { resolveAPIRequest } from "./vite/resolveAPIRequest";
12
12
  process.on("uncaughtException", (err) => {
13
13
  console.error("[one] Uncaught exception", err?.stack || err);
14
14
  });
15
15
  async function serve(args = {}) {
16
- labelProcess("serve");
16
+ labelProcess("serve"), loadEnv("production");
17
17
  const oneOptions = await loadUserOneOptions("serve");
18
18
  return process.env.VXRN_REACT_19 = "1", await vxrnServe({
19
19
  server: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/serve.ts"],
4
- "mappings": "AAAA,OAAO;AAEP,OAAO,aAAa;AAEpB,OAAO,QAAQ,YAAY;AAE3B,SAAS,gBAAgB,SAAS,iBAAiB;AACnD,SAAS,2BAA2B;AAEpC,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAElC,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAE7B,QAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,UAAQ,MAAM,4BAA4B,KAAK,SAAS,GAAG;AAC7D,C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AAiB,SAAS,MAAM,GAAG;AACrC,kBAAM,WAAW,GAAG,SAAS,QAAQ,IAAI,UAAU,KAAK,EAAE;AAC1D,mBAAO,QAAQ,SAAS,UAAU,SAAS,MAAM;AAAA,UACnD;AAEA,cAAI,aAAa,IAAI,OAAO;AAC1B,gBAAI;AAEF,uBAAS,QAAQ,IAAI,iBAAiB,UAAU;AAAA,YAClD,SAAS,KAAK;AACZ,sBAAQ;AAAA,gBACN,6CACE,QAAQ,IAAI,IACd,wBAAwB,SAAS,QAAQ,IAAI,eAAe,CAAC;AAAA,gBAC7D;AAAA,cACF;AAAA,YACF;AAGF,iBAAO;AAAA,QACT;AAEA,eAAO,QAAQ;AAAA,UACb;AAAA,UACA;AAAA,UACA,aAAa,IAAI,OAAO,IACpB;AAAA,YACE,iBAAiB;AAAA,UACnB,IACA;AAAA,QACN;AAAA,MACF;AAAA,IACF,SAAS,KAAK;AACZ,cAAQ,MAAM,kCAAmC,IAAY,KAAQ,EAAE;AAAA,IACzE;AAEA,UAAM,KAAK;AAAA,EACb,CAAC;AACH;",
5
5
  "names": ["buildInfo"]
6
6
  }
@@ -1,19 +1,19 @@
1
1
  import "./polyfills-server.mjs";
2
2
  import FSExtra from "fs-extra";
3
3
  import Path, { join } from "node:path";
4
- import { getServerEntry, serve as vxrnServe } from "vxrn";
4
+ import { getServerEntry, loadEnv, serve as vxrnServe } from "vxrn";
5
+ import { labelProcess } from "./cli/label-process.mjs";
5
6
  import { createHandleRequest } from "./createHandleRequest.mjs";
6
7
  import { isResponse } from "./utils/isResponse.mjs";
7
8
  import { isStatusRedirect } from "./utils/isStatus.mjs";
8
9
  import { removeUndefined } from "./utils/removeUndefined.mjs";
9
- import { resolveAPIRequest } from "./vite/resolveAPIRequest.mjs";
10
10
  import { loadUserOneOptions } from "./vite/one.mjs";
11
- import { labelProcess } from "./cli/label-process.mjs";
11
+ import { resolveAPIRequest } from "./vite/resolveAPIRequest.mjs";
12
12
  process.on("uncaughtException", err => {
13
13
  console.error("[one] Uncaught exception", err?.stack || err);
14
14
  });
15
15
  async function serve(args = {}) {
16
- labelProcess("serve");
16
+ labelProcess("serve"), loadEnv("production");
17
17
  const oneOptions = await loadUserOneOptions("serve");
18
18
  return process.env.VXRN_REACT_19 = "1", await vxrnServe({
19
19
  server: {
@@ -1 +1 @@
1
- {"version":3,"names":["FSExtra","Path","join","getServerEntry","serve","vxrnServe","createHandleRequest","isResponse","isStatusRedirect","removeUndefined","resolveAPIRequest","loadUserOneOptions","labelProcess","process","on","err","console","error","stack","args","oneOptions","env","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","root","isAPIRequest","WeakMap","toAbsolute","p","resolve","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","buildInfo","readJSON","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","loaderData","serverJsPath","loader","preloads","headers","Headers","Response","path","htmlFiles","key","readFile","use","next","html","raw","response","handler","status","location","info","json"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,OAAOC,IAAA,IAAQC,IAAA,QAAY;AAE3B,SAASC,cAAA,EAAgBC,KAAA,IAASC,SAAA,QAAiB;AACnD,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,eAAA,QAAuB;AAChC,SAASC,iBAAA,QAAyB;AAElC,SAASC,kBAAA,QAA0B;AACnC,SAASC,YAAA,QAAoB;AAE7BC,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAM,4BAA4BF,GAAA,EAAKG,KAAA,IAASH,GAAG;AAC7D,CAAC;AAED,eAAsBX,MA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UACE,iBAAiB;QACnB,IACA,MACN;MACF;IACF,SAASxD,GAAA,EAAK;MACZC,OAAA,CAAQC,KAAA,CAAM,kCAAmCF,GAAA,CAAYG,KAAQ,EAAE;IACzE;IAEA,MAAM4E,IAAA,CAAK;EACb,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["FSExtra","Path","join","getServerEntry","loadEnv","serve","vxrnServe","labelProcess","createHandleRequest","isResponse","isStatusRedirect","removeUndefined","loadUserOneOptions","resolveAPIRequest","process","on","err","console","error","stack","args","oneOptions","env","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","root","isAPIRequest","WeakMap","toAbsolute","p","resolve","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","buildInfo","readJSON","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","loaderData","serverJsPath","loader","preloads","headers","Headers","Response","path","htmlFiles","key","readFile","use","next","html","raw","response","handler","status","location","info","json"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,OAAOC,IAAA,IAAQC,IAAA,QAAY;AAE3B,SAASC,cAAA,EAAgBC,OAAA,EAASC,KAAA,IAASC,SAAA,QAAiB;AAC5D,SAASC,YAAA,QAAoB;AAC7B,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,eAAA,QAAuB;AAChC,SAASC,kBAAA,QAA0B;AACnC,SAASC,iBAAA,QAAyB;AAGlCC,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAM,4BAA4BF,GAAA,EAAKG,KAAA,IAASH,GAAG;AAC7D,CAAC;AAED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A,CAAaQ,GAAA,CAAI4B,OAAO,IACpB;UACE,iBAAiB;QACnB,IACA,MACN;MACF;IACF,SAASxD,GAAA,EAAK;MACZC,OAAA,CAAQC,KAAA,CAAM,kCAAmCF,GAAA,CAAYG,KAAQ,EAAE;IACzE;IAEA,MAAM4E,IAAA,CAAK;EACb,CAAC;AACH","ignoreList":[]}
@@ -1,20 +1,20 @@
1
1
  import "./polyfills-server";
2
2
  import FSExtra from "fs-extra";
3
3
  import Path, { join } from "node:path";
4
- import { getServerEntry, serve as vxrnServe } from "vxrn";
4
+ import { getServerEntry, loadEnv, serve as vxrnServe } from "vxrn";
5
+ import { labelProcess } from "./cli/label-process";
5
6
  import { createHandleRequest } from "./createHandleRequest";
6
7
  import { isResponse } from "./utils/isResponse";
7
8
  import { isStatusRedirect } from "./utils/isStatus";
8
9
  import { removeUndefined } from "./utils/removeUndefined";
9
- import { resolveAPIRequest } from "./vite/resolveAPIRequest";
10
10
  import { loadUserOneOptions } from "./vite/one";
11
- import { labelProcess } from "./cli/label-process";
11
+ import { resolveAPIRequest } from "./vite/resolveAPIRequest";
12
12
  process.on("uncaughtException", function(err) {
13
13
  console.error("[one] Uncaught exception", err?.stack || err);
14
14
  });
15
15
  async function serve() {
16
16
  var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
17
- labelProcess("serve");
17
+ labelProcess("serve"), loadEnv("production");
18
18
  var oneOptions = await loadUserOneOptions("serve");
19
19
  return process.env.VXRN_REACT_19 = "1", await vxrnServe({
20
20
  server: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/serve.ts"],
4
- "mappings": "AAAA,OAAO;AAEP,OAAOA,aAAa;AAEpB,OAAOC,QAAQC,YAAY;AAE3B,SAASC,gBAAgBC,SAASC,iBAAiB;AACnD,SAASC,2BAA2B;AAEpC,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB;AACjC,SAASC,uBAAuB;AAChC,SAAS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AM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAMmF,KAAAA;EACR,CAAA;AACF;",
5
- "names": ["FSExtra", "Path", "join", "getServerEntry", "serve", "vxrnServe", "createHandleRequest", "isResponse", "isStatusRedirect", "removeUndefined", "resolveAPIRequest", "loadUserOneOptions", "labelProcess", "process", "on", "err", "console", "error", "stack", "args", "oneOptions", "env", "VXRN_REACT_19", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "root", "isAPIRequest", "WeakMap", "toAbsolute", "p", "resolve", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "buildInfo", "readJSON", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "cwd", "page", "set", "params", "handleSSR", "url", "type", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
4
+ "mappings": "AAAA,OAAO;AAEP,OAAOA,aAAa;AAEpB,OAAOC,QAAQC,YAAY;AAE3B,SAASC,gBAAgBC,SAASC,SAASC,iBAAiB;AAC5D,SAASC,oBAAoB;AAC7B,SAASC,2BAA2B;AAEpC,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB;AACjC,SAASC,uBAAuB;AAChC,SAASC,0BAA0B;AACnC,SAASC,yBAAyB;AAGlCC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,4BAA4BF,KAAKG,SAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBX,QAAAA;MAAMe,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC;AACzDb,eAAa,O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U,UAAUC,GAAAA,IAAO,MAAM/F,QAAQiG,SAAS/F,KAAK,eAAeyD,SAASoC,GAAAA,CAAI,GAAG,OAAA;EAC9E;AAEA9D,MAAIiE,IAAI,eAAOnD,SAASoD,MAAAA;AAEtB,QAAMC,OAAON,UAAU/C,QAAQO,IAAIuC,IAAI;AACvC,QAAIO;AACF,aAAOrD,QAAQqD,KAAKA,IAAAA;AAGtB,QAAI;AACF,UAAMzB,UAAU5B,QAAQO,IAAI+C,KACtBC,WAAW,MAAM7B,cAAc8B,QAAQ5B,OAAAA;AAE7C,UAAI2B,UAAU;AACZ,YAAI7F,WAAW6F,QAAAA,GAAW;AACxB,cAAI5F,iBAAiB4F,SAASE,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGH,SAASZ,QAAQ7C,IAAI,UAAA,KAAe,EAAA;AACxD,mBAAOE,QAAQH,SAAS6D,UAAUH,SAASE,MAAM;UACnD;AAEA,cAAInE,aAAaQ,IAAI8B,OAAAA;AACnB,gBAAI;AAEF2B,uBAASZ,QAAQV,IAAI,iBAAiB,UAAA;YACxC,SAAShE,KAAK;AACZC,sBAAQ+E,KACN,6CACEjD,QAAQO,IAAIuC,IAAI,wBACMS,SAASZ,QAAQ7C,IAAI,eAAA,CAAA,cAC7C7B,GAAAA;YAEJ;AAGF,iBAAOsF;QACT;AAEA,eAAOvD,QAAQ2D,KACbJ,UACA,KACAjE,aAAaQ,IAAI8B,OAAAA,IACb;UACE,iBAAiB;QACnB,IACAjD,MAAAA;MAER;IACF,SAASV,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAMmF,KAAAA;EACR,CAAA;AACF;",
5
+ "names": ["FSExtra", "Path", "join", "getServerEntry", "loadEnv", "serve", "vxrnServe", "labelProcess", "createHandleRequest", "isResponse", "isStatusRedirect", "removeUndefined", "loadUserOneOptions", "resolveAPIRequest", "process", "on", "err", "console", "error", "stack", "args", "oneOptions", "env", "VXRN_REACT_19", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "root", "isAPIRequest", "WeakMap", "toAbsolute", "p", "resolve", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "buildInfo", "readJSON", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "cwd", "page", "set", "params", "handleSSR", "url", "type", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
6
6
  }
@@ -37,7 +37,7 @@ function useLoader(loader) {
37
37
  try {
38
38
  const response = await (async () => {
39
39
  if (isNative) {
40
- const nativeLoaderJSUrl = `${loaderJSUrl}&platform=ios`;
40
+ const nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
41
41
  try {
42
42
  const loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
43
43
  if (!loaderJsCodeResp.ok)
@@ -43,7 +43,7 @@ function useLoader(loader) {
43
43
  try {
44
44
  const response = await (async () => {
45
45
  if (isNative) {
46
- const nativeLoaderJSUrl = `${loaderJSUrl}&platform=ios`;
46
+ const nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
47
47
  try {
48
48
  const loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
49
49
  if (!loaderJsCodeResp.ok) throw new Error(`Response not ok: ${loaderJsCodeResp.status}`);
@@ -43,7 +43,7 @@ function useLoader(loader) {
43
43
  try {
44
44
  var response = await async function() {
45
45
  if (isNative) {
46
- var nativeLoaderJSUrl = `${loaderJSUrl}&platform=ios`;
46
+ var nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
47
47
  try {
48
48
  var loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
49
49
  if (!loaderJsCodeResp.ok)
@@ -11,10 +11,10 @@ import {
11
11
  build as vxrnBuild
12
12
  } from "vxrn";
13
13
  import { getLoaderPath, getPreloadPath } from "../cleanUrl";
14
+ import { labelProcess } from "../cli/label-process";
14
15
  import { getManifest } from "./getManifest";
15
16
  import { loadUserOneOptions } from "./one";
16
17
  import { replaceLoader } from "./replaceLoader";
17
- import { labelProcess } from "../cli/label-process";
18
18
  const { ensureDir, readFile, outputFile } = FSExtra;
19
19
  process.on("uncaughtException", (err) => {
20
20
  console.error(err?.message || err);