one 1.1.298 → 1.1.300

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. package/dist/cjs/cleanUrl.js +1 -1
  2. package/dist/cjs/cleanUrl.js.map +1 -1
  3. package/dist/cjs/cleanUrl.native.js +1 -1
  4. package/dist/cjs/cleanUrl.native.js.map +1 -1
  5. package/dist/cjs/cli/runAndroid.js +34 -0
  6. package/dist/cjs/cli/runAndroid.js.map +6 -0
  7. package/dist/cjs/cli/runAndroid.native.js +39 -0
  8. package/dist/cjs/cli/runAndroid.native.js.map +6 -0
  9. package/dist/cjs/cli/runIos.js +34 -0
  10. package/dist/cjs/cli/runIos.js.map +6 -0
  11. package/dist/cjs/cli/runIos.native.js +39 -0
  12. package/dist/cjs/cli/runIos.native.js.map +6 -0
  13. package/dist/cjs/cli.js +23 -1
  14. package/dist/cjs/cli.js.map +1 -1
  15. package/dist/cjs/cli.native.js +25 -1
  16. package/dist/cjs/cli.native.js.map +2 -2
  17. package/dist/cjs/createHandleRequest.js +2 -2
  18. package/dist/cjs/createHandleRequest.js.map +1 -1
  19. package/dist/cjs/createHandleRequest.native.js +2 -2
  20. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  21. package/dist/cjs/vite/createFileSystemRouter.js +1 -1
  22. package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
  23. package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
  24. package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
  25. package/dist/cjs/vite/replaceLoader.js +7 -1
  26. package/dist/cjs/vite/replaceLoader.js.map +1 -1
  27. package/dist/cjs/vite/replaceLoader.native.js +7 -1
  28. package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
  29. package/dist/esm/Root.native.js +110 -104
  30. package/dist/esm/Root.native.js.map +6 -1
  31. package/dist/esm/Route.native.js +12 -10
  32. package/dist/esm/Route.native.js.map +6 -1
  33. package/dist/esm/cleanUrl.js +1 -1
  34. package/dist/esm/cleanUrl.js.map +1 -1
  35. package/dist/esm/cleanUrl.mjs +1 -1
  36. package/dist/esm/cleanUrl.mjs.map +1 -1
  37. package/dist/esm/cleanUrl.native.js +13 -14
  38. package/dist/esm/cleanUrl.native.js.map +6 -1
  39. package/dist/esm/cli/label-process.native.js +5 -4
  40. package/dist/esm/cli/label-process.native.js.map +6 -1
  41. package/dist/esm/cli/main.native.js +8 -13
  42. package/dist/esm/cli/main.native.js.map +6 -1
  43. package/dist/esm/cli/prebuild.native.js +5 -5
  44. package/dist/esm/cli/prebuild.native.js.map +6 -1
  45. package/dist/esm/cli/run.native.js +21 -28
  46. package/dist/esm/cli/run.native.js.map +6 -1
  47. package/dist/esm/cli/runAndroid.js +10 -0
  48. package/dist/esm/cli/runAndroid.js.map +6 -0
  49. package/dist/esm/cli/runAndroid.mjs +10 -0
  50. package/dist/esm/cli/runAndroid.mjs.map +1 -0
  51. package/dist/esm/cli/runAndroid.native.js +10 -0
  52. package/dist/esm/cli/runAndroid.native.js.map +6 -0
  53. package/dist/esm/cli/runIos.js +10 -0
  54. package/dist/esm/cli/runIos.js.map +6 -0
  55. package/dist/esm/cli/runIos.mjs +10 -0
  56. package/dist/esm/cli/runIos.mjs.map +1 -0
  57. package/dist/esm/cli/runIos.native.js +10 -0
  58. package/dist/esm/cli/runIos.native.js.map +6 -0
  59. package/dist/esm/cli.js +23 -1
  60. package/dist/esm/cli.js.map +1 -1
  61. package/dist/esm/cli.mjs +33 -1
  62. package/dist/esm/cli.mjs.map +1 -1
  63. package/dist/esm/cli.native.js +143 -148
  64. package/dist/esm/cli.native.js.map +6 -1
  65. package/dist/esm/clientLoaderResolver.native.js +9 -6
  66. package/dist/esm/clientLoaderResolver.native.js.map +6 -1
  67. package/dist/esm/config.native.js +12 -11
  68. package/dist/esm/config.native.js.map +6 -1
  69. package/dist/esm/constants.native.js +7 -5
  70. package/dist/esm/constants.native.js.map +6 -1
  71. package/dist/esm/createApp.native.js +13 -9
  72. package/dist/esm/createApp.native.js.map +6 -1
  73. package/dist/esm/createHandleRequest.js +2 -2
  74. package/dist/esm/createHandleRequest.js.map +1 -1
  75. package/dist/esm/createHandleRequest.mjs +2 -2
  76. package/dist/esm/createHandleRequest.mjs.map +1 -1
  77. package/dist/esm/createHandleRequest.native.js +57 -66
  78. package/dist/esm/createHandleRequest.native.js.map +6 -1
  79. package/dist/esm/createRoute.native.js +16 -16
  80. package/dist/esm/createRoute.native.js.map +6 -1
  81. package/dist/esm/fallbackViews/Sitemap.native.js +6 -3
  82. package/dist/esm/fallbackViews/Sitemap.native.js.map +6 -1
  83. package/dist/esm/fallbackViews/Unmatched.native.js +5 -3
  84. package/dist/esm/fallbackViews/Unmatched.native.js.map +6 -1
  85. package/dist/esm/fork/NavigationContainer.native.js +24 -31
  86. package/dist/esm/fork/NavigationContainer.native.js.map +6 -1
  87. package/dist/esm/fork/createMemoryHistory.native.js +99 -115
  88. package/dist/esm/fork/createMemoryHistory.native.js.map +6 -1
  89. package/dist/esm/fork/extractPathFromURL.native.js +16 -15
  90. package/dist/esm/fork/extractPathFromURL.native.js.map +6 -1
  91. package/dist/esm/fork/findFocusedRoute.native.js +6 -5
  92. package/dist/esm/fork/findFocusedRoute.native.js.map +6 -1
  93. package/dist/esm/fork/getPathFromState.native.js +127 -140
  94. package/dist/esm/fork/getPathFromState.native.js.map +6 -1
  95. package/dist/esm/fork/getStateFromPath.native.js +292 -288
  96. package/dist/esm/fork/getStateFromPath.native.js.map +6 -1
  97. package/dist/esm/fork/useLinking.native.js +70 -61
  98. package/dist/esm/fork/useLinking.native.js.map +6 -1
  99. package/dist/esm/fork/validatePathConfig.native.js +15 -9
  100. package/dist/esm/fork/validatePathConfig.native.js.map +6 -1
  101. package/dist/esm/getLinkingConfig.native.js +11 -6
  102. package/dist/esm/getLinkingConfig.native.js.map +6 -1
  103. package/dist/esm/getReactNavigationConfig.native.js +28 -20
  104. package/dist/esm/getReactNavigationConfig.native.js.map +6 -1
  105. package/dist/esm/getRoutes.native.js +249 -229
  106. package/dist/esm/getRoutes.native.js.map +6 -1
  107. package/dist/esm/getURL.native.js +4 -4
  108. package/dist/esm/getURL.native.js.map +6 -1
  109. package/dist/esm/head/Head.android.js +5 -3
  110. package/dist/esm/head/Head.android.js.map +6 -1
  111. package/dist/esm/head/Head.ios.js +144 -132
  112. package/dist/esm/head/Head.ios.js.map +6 -1
  113. package/dist/esm/head/Head.native.js +7 -7
  114. package/dist/esm/head/Head.native.js.map +6 -1
  115. package/dist/esm/head/HeadModule.native.js +6 -6
  116. package/dist/esm/head/HeadModule.native.js.map +6 -1
  117. package/dist/esm/head/index.native.js +2 -2
  118. package/dist/esm/head/index.native.js.map +6 -1
  119. package/dist/esm/head/types.native.js +1 -2
  120. package/dist/esm/head/types.native.js.map +6 -1
  121. package/dist/esm/head/url.native.js +10 -8
  122. package/dist/esm/head/url.native.js.map +6 -1
  123. package/dist/esm/hooks.native.js +53 -34
  124. package/dist/esm/hooks.native.js.map +6 -1
  125. package/dist/esm/imperative-api.native.js +9 -6
  126. package/dist/esm/imperative-api.native.js.map +6 -1
  127. package/dist/esm/import-mode/index.android.js +4 -3
  128. package/dist/esm/import-mode/index.android.js.map +6 -1
  129. package/dist/esm/import-mode/index.ios.js +4 -3
  130. package/dist/esm/import-mode/index.ios.js.map +6 -1
  131. package/dist/esm/import-mode/index.native.js +3 -1
  132. package/dist/esm/import-mode/index.native.js.map +6 -1
  133. package/dist/esm/index.native.js +65 -27
  134. package/dist/esm/index.native.js.map +6 -1
  135. package/dist/esm/interfaces/router.native.js +4 -2
  136. package/dist/esm/interfaces/router.native.js.map +6 -1
  137. package/dist/esm/layouts/Drawer.native.js +7 -6
  138. package/dist/esm/layouts/Drawer.native.js.map +6 -1
  139. package/dist/esm/layouts/Stack.native.js +7 -6
  140. package/dist/esm/layouts/Stack.native.js.map +6 -1
  141. package/dist/esm/layouts/Tabs.native.js +42 -39
  142. package/dist/esm/layouts/Tabs.native.js.map +6 -1
  143. package/dist/esm/layouts/withLayoutContext.native.js +51 -48
  144. package/dist/esm/layouts/withLayoutContext.native.js.map +6 -1
  145. package/dist/esm/link/Link.native.js +62 -53
  146. package/dist/esm/link/Link.native.js.map +6 -1
  147. package/dist/esm/link/Redirect.native.js +8 -9
  148. package/dist/esm/link/Redirect.native.js.map +6 -1
  149. package/dist/esm/link/href.native.js +28 -27
  150. package/dist/esm/link/href.native.js.map +6 -1
  151. package/dist/esm/link/linking.native.js +51 -40
  152. package/dist/esm/link/linking.native.js.map +6 -1
  153. package/dist/esm/link/path.native.js +28 -19
  154. package/dist/esm/link/path.native.js.map +6 -1
  155. package/dist/esm/link/useLinkTo.native.js +22 -20
  156. package/dist/esm/link/useLinkTo.native.js.map +6 -1
  157. package/dist/esm/link/useLoadedNavigation.native.js +30 -23
  158. package/dist/esm/link/useLoadedNavigation.native.js.map +6 -1
  159. package/dist/esm/matchers.native.js +16 -3
  160. package/dist/esm/matchers.native.js.map +6 -1
  161. package/dist/esm/platform.native.js +4 -2
  162. package/dist/esm/platform.native.js.map +6 -1
  163. package/dist/esm/polyfills-mobile.native.js +4 -5
  164. package/dist/esm/polyfills-mobile.native.js.map +6 -1
  165. package/dist/esm/polyfills-server.native.js +1 -1
  166. package/dist/esm/polyfills-server.native.js.map +6 -1
  167. package/dist/esm/render.native.js +3 -1
  168. package/dist/esm/render.native.js.map +6 -1
  169. package/dist/esm/router/RouterStore.native.js +1 -2
  170. package/dist/esm/router/RouterStore.native.js.map +6 -1
  171. package/dist/esm/router/constants.native.js +4 -2
  172. package/dist/esm/router/constants.native.js.map +6 -1
  173. package/dist/esm/router/getNormalizedStatePath.native.js +18 -17
  174. package/dist/esm/router/getNormalizedStatePath.native.js.map +6 -1
  175. package/dist/esm/router/lastAction.native.js +10 -9
  176. package/dist/esm/router/lastAction.native.js.map +6 -1
  177. package/dist/esm/router/router.native.js +135 -114
  178. package/dist/esm/router/router.native.js.map +6 -1
  179. package/dist/esm/router/serverLocationContext.native.js +4 -2
  180. package/dist/esm/router/serverLocationContext.native.js.map +6 -1
  181. package/dist/esm/router/useInitializeOneRouter.native.js +8 -5
  182. package/dist/esm/router/useInitializeOneRouter.native.js.map +6 -1
  183. package/dist/esm/serve.native.js +77 -104
  184. package/dist/esm/serve.native.js.map +6 -1
  185. package/dist/esm/server/createRoutesManifest.native.js +14 -11
  186. package/dist/esm/server/createRoutesManifest.native.js.map +6 -1
  187. package/dist/esm/server/getServerManifest.native.js +61 -67
  188. package/dist/esm/server/getServerManifest.native.js.map +6 -1
  189. package/dist/esm/server-render.native.js +9 -10
  190. package/dist/esm/server-render.native.js.map +6 -1
  191. package/dist/esm/sortRoutes.native.js +27 -17
  192. package/dist/esm/sortRoutes.native.js.map +6 -1
  193. package/dist/esm/typed-routes/generateRouteTypes.native.js +10 -11
  194. package/dist/esm/typed-routes/generateRouteTypes.native.js.map +6 -1
  195. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +38 -37
  196. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +6 -1
  197. package/dist/esm/types.native.js +1 -2
  198. package/dist/esm/types.native.js.map +6 -1
  199. package/dist/esm/useFocusEffect.native.js +25 -22
  200. package/dist/esm/useFocusEffect.native.js.map +6 -1
  201. package/dist/esm/useLoader.native.js +50 -50
  202. package/dist/esm/useLoader.native.js.map +6 -1
  203. package/dist/esm/useNavigation.native.js +23 -19
  204. package/dist/esm/useNavigation.native.js.map +6 -1
  205. package/dist/esm/useScreens.native.js +143 -160
  206. package/dist/esm/useScreens.native.js.map +6 -1
  207. package/dist/esm/useViteRoutes.native.js +25 -28
  208. package/dist/esm/useViteRoutes.native.js.map +6 -1
  209. package/dist/esm/utils/assertIsReady.native.js +6 -3
  210. package/dist/esm/utils/assertIsReady.native.js.map +6 -1
  211. package/dist/esm/utils/dynamicImport.native.js +5 -3
  212. package/dist/esm/utils/dynamicImport.native.js.map +6 -1
  213. package/dist/esm/utils/existsAsync.native.js +6 -4
  214. package/dist/esm/utils/existsAsync.native.js.map +6 -1
  215. package/dist/esm/utils/getPageExport.native.js +12 -11
  216. package/dist/esm/utils/getPageExport.native.js.map +6 -1
  217. package/dist/esm/utils/globDir.native.js +5 -3
  218. package/dist/esm/utils/globDir.native.js.map +6 -1
  219. package/dist/esm/utils/hashString.native.js +4 -2
  220. package/dist/esm/utils/hashString.native.js.map +6 -1
  221. package/dist/esm/utils/isResponse.native.js +4 -2
  222. package/dist/esm/utils/isResponse.native.js.map +6 -1
  223. package/dist/esm/utils/isStatus.native.js +4 -2
  224. package/dist/esm/utils/isStatus.native.js.map +6 -1
  225. package/dist/esm/utils/promiseWithResolvers.native.js +7 -7
  226. package/dist/esm/utils/promiseWithResolvers.native.js.map +6 -1
  227. package/dist/esm/utils/rand.native.js +5 -3
  228. package/dist/esm/utils/rand.native.js.map +6 -1
  229. package/dist/esm/utils/redirect.native.js +7 -5
  230. package/dist/esm/utils/redirect.native.js.map +6 -1
  231. package/dist/esm/utils/removeSearch.native.js +4 -2
  232. package/dist/esm/utils/removeSearch.native.js.map +6 -1
  233. package/dist/esm/utils/removeUndefined.native.js +6 -3
  234. package/dist/esm/utils/removeUndefined.native.js.map +6 -1
  235. package/dist/esm/utils/requireResolve.native.js +4 -2
  236. package/dist/esm/utils/requireResolve.native.js.map +6 -1
  237. package/dist/esm/utils/url.native.js +6 -2
  238. package/dist/esm/utils/url.native.js.map +6 -1
  239. package/dist/esm/utils/weakKey.native.js +11 -10
  240. package/dist/esm/utils/weakKey.native.js.map +6 -1
  241. package/dist/esm/utils/weakMemo.native.js +8 -8
  242. package/dist/esm/utils/weakMemo.native.js.map +6 -1
  243. package/dist/esm/views/EmptyRoute.native.js +5 -3
  244. package/dist/esm/views/EmptyRoute.native.js.map +6 -1
  245. package/dist/esm/views/ErrorBoundary.native.js +5 -8
  246. package/dist/esm/views/ErrorBoundary.native.js.map +6 -1
  247. package/dist/esm/views/LoadProgressBar.native.js +58 -57
  248. package/dist/esm/views/LoadProgressBar.native.js.map +6 -1
  249. package/dist/esm/views/Navigator.native.js +54 -71
  250. package/dist/esm/views/Navigator.native.js.map +6 -1
  251. package/dist/esm/views/PreloadLinks.native.js +3 -1
  252. package/dist/esm/views/PreloadLinks.native.js.map +6 -1
  253. package/dist/esm/views/RootErrorBoundary.native.js +39 -29
  254. package/dist/esm/views/RootErrorBoundary.native.js.map +6 -1
  255. package/dist/esm/views/Screen.native.js +12 -12
  256. package/dist/esm/views/Screen.native.js.map +6 -1
  257. package/dist/esm/views/ScrollRestoration.native.js +27 -27
  258. package/dist/esm/views/ScrollRestoration.native.js.map +6 -1
  259. package/dist/esm/views/Try.native.js +40 -37
  260. package/dist/esm/views/Try.native.js.map +6 -1
  261. package/dist/esm/vite/build.native.js +260 -295
  262. package/dist/esm/vite/build.native.js.map +6 -1
  263. package/dist/esm/vite/clientTreeShakePlugin.native.js +34 -33
  264. package/dist/esm/vite/clientTreeShakePlugin.native.js.map +6 -1
  265. package/dist/esm/vite/constants.native.js +6 -4
  266. package/dist/esm/vite/constants.native.js.map +6 -1
  267. package/dist/esm/vite/createFileSystemRouter.js +1 -1
  268. package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
  269. package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
  270. package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
  271. package/dist/esm/vite/createFileSystemRouter.native.js +100 -131
  272. package/dist/esm/vite/createFileSystemRouter.native.js.map +6 -1
  273. package/dist/esm/vite/customNodeExternals.native.js +9 -10
  274. package/dist/esm/vite/customNodeExternals.native.js.map +6 -1
  275. package/dist/esm/vite/ensureTsConfig.native.js +7 -5
  276. package/dist/esm/vite/ensureTsConfig.native.js.map +6 -1
  277. package/dist/esm/vite/findDepsToOptimize.native.js +27 -19
  278. package/dist/esm/vite/findDepsToOptimize.native.js.map +6 -1
  279. package/dist/esm/vite/fixDependenciesPlugin.native.js +5 -3
  280. package/dist/esm/vite/fixDependenciesPlugin.native.js.map +6 -1
  281. package/dist/esm/vite/generateTypesForRoutes.native.js +9 -9
  282. package/dist/esm/vite/generateTypesForRoutes.native.js.map +6 -1
  283. package/dist/esm/vite/getManifest.native.js +6 -4
  284. package/dist/esm/vite/getManifest.native.js.map +6 -1
  285. package/dist/esm/vite/headers.native.js +11 -5
  286. package/dist/esm/vite/headers.native.js.map +6 -1
  287. package/dist/esm/vite/loadEnv.native.js +7 -6
  288. package/dist/esm/vite/loadEnv.native.js.map +6 -1
  289. package/dist/esm/vite/makePluginWebOnly.native.js +9 -5
  290. package/dist/esm/vite/makePluginWebOnly.native.js.map +6 -1
  291. package/dist/esm/vite/one.native.js +142 -127
  292. package/dist/esm/vite/one.native.js.map +6 -1
  293. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js +14 -11
  294. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js.map +6 -1
  295. package/dist/esm/vite/replaceLoader.js +7 -1
  296. package/dist/esm/vite/replaceLoader.js.map +1 -1
  297. package/dist/esm/vite/replaceLoader.mjs +5 -1
  298. package/dist/esm/vite/replaceLoader.mjs.map +1 -1
  299. package/dist/esm/vite/replaceLoader.native.js +13 -10
  300. package/dist/esm/vite/replaceLoader.native.js.map +6 -1
  301. package/dist/esm/vite/resolveAPIRequest.native.js +44 -47
  302. package/dist/esm/vite/resolveAPIRequest.native.js.map +6 -1
  303. package/dist/esm/vite/server.native.js +5 -4
  304. package/dist/esm/vite/server.native.js.map +6 -1
  305. package/dist/esm/vite/types.native.js +1 -2
  306. package/dist/esm/vite/types.native.js.map +6 -1
  307. package/dist/esm/vite/virtualEntryPlugin.native.js +21 -16
  308. package/dist/esm/vite/virtualEntryPlugin.native.js.map +6 -1
  309. package/dist/esm/vite/vitePluginSsrCss.native.js +61 -50
  310. package/dist/esm/vite/vitePluginSsrCss.native.js.map +6 -1
  311. package/dist/esm/vite.native.js +19 -10
  312. package/dist/esm/vite.native.js.map +6 -1
  313. package/dist/esm/zero/getQueryKey.native.js +5 -3
  314. package/dist/esm/zero/getQueryKey.native.js.map +6 -1
  315. package/dist/esm/zero/isZeroQuery.native.js +4 -2
  316. package/dist/esm/zero/isZeroQuery.native.js.map +6 -1
  317. package/dist/esm/zero/resolveQuery.native.js +9 -8
  318. package/dist/esm/zero/resolveQuery.native.js.map +6 -1
  319. package/dist/esm/zero/subscribeToQuery.native.js +5 -3
  320. package/dist/esm/zero/subscribeToQuery.native.js.map +6 -1
  321. package/dist/esm/zero/types.native.js +1 -2
  322. package/dist/esm/zero/types.native.js.map +6 -1
  323. package/dist/esm/zero/useQuery.native.js +12 -12
  324. package/dist/esm/zero/useQuery.native.js.map +6 -1
  325. package/dist/esm/zero/useQueryZero.native.js +24 -20
  326. package/dist/esm/zero/useQueryZero.native.js.map +6 -1
  327. package/dist/esm/zero.native.js +9 -5
  328. package/dist/esm/zero.native.js.map +6 -1
  329. package/package.json +7 -7
  330. package/src/cleanUrl.ts +1 -1
  331. package/src/cli/runAndroid.ts +6 -0
  332. package/src/cli/runIos.ts +6 -0
  333. package/src/cli.ts +27 -1
  334. package/src/createHandleRequest.ts +7 -0
  335. package/src/vite/createFileSystemRouter.tsx +1 -2
  336. package/src/vite/replaceLoader.ts +7 -1
  337. package/types/cli/runAndroid.d.ts +2 -0
  338. package/types/cli/runAndroid.d.ts.map +1 -0
  339. package/types/cli/runIos.d.ts +2 -0
  340. package/types/cli/runIos.d.ts.map +1 -0
  341. package/types/createHandleRequest.d.ts.map +1 -1
  342. package/types/vite/createFileSystemRouter.d.ts.map +1 -1
  343. package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -1,15 +1,15 @@
1
- import "./polyfills-server.native.js";
1
+ import "./polyfills-server";
2
2
  import FSExtra from "fs-extra";
3
3
  import Path, { join } from "node:path";
4
4
  import { getServerEntry, serve as vxrnServe } from "vxrn";
5
- import { createHandleRequest } from "./createHandleRequest.native.js";
6
- import { isResponse } from "./utils/isResponse.native.js";
7
- import { isStatusRedirect } from "./utils/isStatus.native.js";
8
- import { removeUndefined } from "./utils/removeUndefined.native.js";
9
- import { resolveAPIRequest } from "./vite/resolveAPIRequest.native.js";
10
- import { loadUserOneOptions } from "./vite/one.native.js";
11
- import { labelProcess } from "./cli/label-process.native.js";
12
- process.on("uncaughtException", function (err) {
5
+ import { createHandleRequest } from "./createHandleRequest";
6
+ import { isResponse } from "./utils/isResponse";
7
+ import { isStatusRedirect } from "./utils/isStatus";
8
+ import { removeUndefined } from "./utils/removeUndefined";
9
+ import { resolveAPIRequest } from "./vite/resolveAPIRequest";
10
+ import { loadUserOneOptions } from "./vite/one";
11
+ import { labelProcess } from "./cli/label-process";
12
+ process.on("uncaughtException", function(err) {
13
13
  console.error("[one] Uncaught exception", err?.stack || err);
14
14
  });
15
15
  async function serve() {
@@ -36,50 +36,37 @@ async function serve() {
36
36
  });
37
37
  }
38
38
  async function oneServe(options, vxrnOptions, app) {
39
- var _options_web,
40
- _options_build_api,
41
- _options_build,
42
- root = options.root || vxrnOptions.root || ".",
43
- isAPIRequest = /* @__PURE__ */new WeakMap(),
44
- toAbsolute = function (p) {
45
- return Path.resolve(root, p);
46
- },
47
- redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
39
+ var _options_web, _options_build_api, _options_build, root = options.root || vxrnOptions.root || ".", isAPIRequest = /* @__PURE__ */ new WeakMap(), toAbsolute = function(p) {
40
+ return Path.resolve(root, p);
41
+ }, redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
48
42
  if (redirects) {
49
- var _iteratorNormalCompletion = !0,
50
- _didIteratorError = !1,
51
- _iteratorError = void 0;
43
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
52
44
  try {
53
- for (var _loop = function () {
54
- var redirect = _step.value;
55
- app.get(redirect.source, function (context) {
56
- var destinationUrl = redirect.destination.replace(/:\w+/g, function (param) {
57
- var paramName = param.substring(1);
58
- return context.req.param(paramName) || "";
59
- });
60
- return context.redirect(destinationUrl, redirect.permanent ? 301 : 302);
45
+ for (var _loop = function() {
46
+ var redirect = _step.value;
47
+ app.get(redirect.source, function(context) {
48
+ var destinationUrl = redirect.destination.replace(/:\w+/g, function(param) {
49
+ var paramName = param.substring(1);
50
+ return context.req.param(paramName) || "";
61
51
  });
62
- }, _iterator = redirects[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
52
+ return context.redirect(destinationUrl, redirect.permanent ? 301 : 302);
53
+ });
54
+ }, _iterator = redirects[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
63
55
  } catch (err) {
64
56
  _didIteratorError = !0, _iteratorError = err;
65
57
  } finally {
66
58
  try {
67
59
  !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
68
60
  } finally {
69
- if (_didIteratorError) throw _iteratorError;
61
+ if (_didIteratorError)
62
+ throw _iteratorError;
70
63
  }
71
64
  }
72
65
  }
73
66
  var buildInfo = await FSExtra.readJSON(toAbsolute("dist/buildInfo.json"));
74
- if (!buildInfo) throw new Error("No build info found, have you run build?");
75
- var {
76
- routeMap,
77
- builtRoutes
78
- } = buildInfo,
79
- routeToBuildInfo = {},
80
- _iteratorNormalCompletion1 = !0,
81
- _didIteratorError1 = !1,
82
- _iteratorError1 = void 0;
67
+ if (!buildInfo)
68
+ throw new Error("No build info found, have you run build?");
69
+ var { routeMap, builtRoutes } = buildInfo, routeToBuildInfo = {}, _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
83
70
  try {
84
71
  for (var _iterator1 = builtRoutes[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
85
72
  var route = _step1.value;
@@ -91,30 +78,21 @@ async function oneServe(options, vxrnOptions, app) {
91
78
  try {
92
79
  !_iteratorNormalCompletion1 && _iterator1.return != null && _iterator1.return();
93
80
  } finally {
94
- if (_didIteratorError1) throw _iteratorError1;
81
+ if (_didIteratorError1)
82
+ throw _iteratorError1;
95
83
  }
96
84
  }
97
85
  var serverOptions = {
98
- ...options,
99
- root
100
- },
101
- entryServer = getServerEntry(serverOptions),
102
- entry = await import(entryServer),
103
- render = entry.default.render,
104
- apiCJS = ((_options_build = options.build) === null || _options_build === void 0 || (_options_build_api = _options_build.api) === null || _options_build_api === void 0 ? void 0 : _options_build_api.outputFormat) === "cjs",
105
- handleRequest = createHandleRequest({}, {
106
- async handleAPI(param) {
107
- var {
108
- route: route2,
109
- request,
110
- loaderProps
111
- } = param,
112
- apiFile = join(process.cwd(), "dist", "api", route2.page.replace("[", "_").replace("]", "_") + (apiCJS ? ".cjs" : ".js"));
113
- return isAPIRequest.set(request, !0), resolveAPIRequest(async function () {
114
- try {
115
- return await import(apiFile);
116
- } catch (err) {
117
- return console.error(`
86
+ ...options,
87
+ root
88
+ }, entryServer = getServerEntry(serverOptions), entry = await import(entryServer), render = entry.default.render, apiCJS = ((_options_build = options.build) === null || _options_build === void 0 || (_options_build_api = _options_build.api) === null || _options_build_api === void 0 ? void 0 : _options_build_api.outputFormat) === "cjs", handleRequest = createHandleRequest({}, {
89
+ async handleAPI(param) {
90
+ var { route: route2, request, loaderProps } = param, apiFile = join(process.cwd(), "dist", "api", route2.page.replace("[", "_").replace("]", "_") + (apiCJS ? ".cjs" : ".js"));
91
+ return isAPIRequest.set(request, !0), resolveAPIRequest(async function() {
92
+ try {
93
+ return await import(apiFile);
94
+ } catch (err) {
95
+ return console.error(`
118
96
  [one] Error importing API route at ${apiFile}:
119
97
 
120
98
  ${err}
@@ -127,65 +105,58 @@ async function oneServe(options, vxrnOptions, app) {
127
105
  import('${apiFile}')
128
106
 
129
107
  `), {};
130
- }
131
- }, request, loaderProps?.params || {});
132
- },
133
- async handleSSR(param) {
134
- var {
135
- route: route2,
136
- url,
137
- loaderProps
138
- } = param;
139
- if (route2.type === "ssr") {
140
- var buildInfo2 = routeToBuildInfo[route2.page];
141
- if (!buildInfo2) throw new Error(`No buildinfo found for ${url}, route: ${route2.page}`);
142
- try {
143
- var _exported_loader,
144
- exported = await import(buildInfo2.serverJsPath),
145
- loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps)),
146
- preloads = buildInfo2.preloads,
147
- headers = new Headers();
148
- return headers.set("content-type", "text/html"), new Response(await render({
149
- loaderData,
150
- loaderProps,
151
- path: loaderProps?.path || "/",
152
- preloads
153
- }), {
154
- headers
155
- });
156
- } catch (err) {
157
- var _err_stack;
158
- console.error(`[one] Error rendering SSR route ${route2.page}
108
+ }
109
+ }, request, loaderProps?.params || {});
110
+ },
111
+ async handleSSR(param) {
112
+ var { route: route2, url, loaderProps } = param;
113
+ if (route2.type === "ssr") {
114
+ var buildInfo2 = routeToBuildInfo[route2.page];
115
+ if (!buildInfo2)
116
+ throw new Error(`No buildinfo found for ${url}, route: ${route2.page}`);
117
+ try {
118
+ var _exported_loader, exported = await import(buildInfo2.serverJsPath), loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps)), preloads = buildInfo2.preloads, headers = new Headers();
119
+ return headers.set("content-type", "text/html"), new Response(await render({
120
+ loaderData,
121
+ loaderProps,
122
+ path: loaderProps?.path || "/",
123
+ preloads
124
+ }), {
125
+ headers
126
+ });
127
+ } catch (err) {
128
+ var _err_stack;
129
+ console.error(`[one] Error rendering SSR route ${route2.page}
159
130
 
160
131
  ${(_err_stack = err?.stack) !== null && _err_stack !== void 0 ? _err_stack : err}
161
132
 
162
133
  url: ${url}`);
163
- }
164
134
  }
165
135
  }
166
- }),
167
- htmlFiles = {};
136
+ }
137
+ }), htmlFiles = {};
168
138
  for (var key in routeMap) {
169
139
  var info = routeToBuildInfo[key];
170
140
  info?.type !== "ssr" && (htmlFiles[key] = await FSExtra.readFile(join("dist/client", routeMap[key]), "utf-8"));
171
141
  }
172
- app.use(async function (context, next) {
142
+ app.use(async function(context, next) {
173
143
  var html = htmlFiles[context.req.path];
174
- if (html) return context.html(html);
144
+ if (html)
145
+ return context.html(html);
175
146
  try {
176
- var request = context.req.raw,
177
- response = await handleRequest.handler(request);
147
+ var request = context.req.raw, response = await handleRequest.handler(request);
178
148
  if (response) {
179
149
  if (isResponse(response)) {
180
150
  if (isStatusRedirect(response.status)) {
181
151
  var location = `${response.headers.get("location") || ""}`;
182
152
  return context.redirect(location, response.status);
183
153
  }
184
- if (isAPIRequest.get(request)) try {
185
- response.headers.set("Cache-Control", "no-store");
186
- } catch (err) {
187
- console.info(`Error udpating cache header on api route "${context.req.path}" to no-store, it is ${response.headers.get("cache-control")}, continue`, err);
188
- }
154
+ if (isAPIRequest.get(request))
155
+ try {
156
+ response.headers.set("Cache-Control", "no-store");
157
+ } catch (err) {
158
+ console.info(`Error udpating cache header on api route "${context.req.path}" to no-store, it is ${response.headers.get("cache-control")}, continue`, err);
159
+ }
189
160
  return response;
190
161
  }
191
162
  return context.json(response, 200, isAPIRequest.get(request) ? {
@@ -198,5 +169,7 @@ async function oneServe(options, vxrnOptions, app) {
198
169
  await next();
199
170
  });
200
171
  }
201
- export { serve };
202
- //# sourceMappingURL=serve.native.js.map
172
+ export {
173
+ serve
174
+ };
175
+ //# sourceMappingURL=serve.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["FSExtra","Path","join","getServerEntry","serve","vxrnServe","createHandleRequest","isResponse","isStatusRedirect","removeUndefined","resolveAPIRequest","loadUserOneOptions","labelProcess","process","on","err","console","error","stack","args","arguments","length","oneOptions","env","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","_oneOptions_server_beforeStart","_oneOptions_server","call","oneServe","vxrnOptions","_options_web","_options_build_api","_options_build","root","isAPIRequest","WeakMap","toAbsolute","p","resolve","redirects","web","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","redirect","_step","value","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","_iterator","Symbol","iterator","next","done","return","buildInfo","readJSON","Error","routeMap","builtRoutes","routeToBuildInfo","_iteratorNormalCompletion1","_didIteratorError1","_iteratorError1","_iterator1","_step1","route","cleanPath","serverOptions","entryServer","entry","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","route2","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","_exported_loader","exported","serverJsPath","loaderData","loader","preloads","headers","Headers","Response","path","_err_stack","htmlFiles","key","info","readFile","use","html","raw","response","handler","status","location"],"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,qBAAqB,UAASC,GAAA;EACvCC,OAAA,CAAQC,KAAA,CAAM,4BAA4BF,GAAA,EAAKG,KAAA,IAASH,GAAG;AAC7D,CAAC;AAED,eAAsBX,MAAA,EAAM;EAC1B,IAAAe,IAAA,GAAAC,SAAoB,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;EACpBR,YAAM,QAAa;EAGnB,IAAAU,UAAA,GAAQ,MAAIX,kBAEL,QAAM;EAAU,OACrBE,OAAQ,CAAAU,GAAA,CAAAC,aAAA,cAAAnB,SAAA;IAAAoB,MAAA;MAEN;MAAc,GAAAH,UAAA,CAAAG,MAAA;MAEd;MAAmB,GACjBhB,eAAW;QACXiB,IAAA,EAAMP,IAAA,CAAKO,IAAA,IAAAP,IAAA,CAAAO,IAAA;QACXC,IAAA,EAAAR,IAAU,CAAAQ,IAAK;QACfC,QAAA,EAAUT,IAAA,CAAKS,QAAA;QACfC,QAAA,EAAAV,IAAc,CAAAU,QAAK;QACpBC,YAAA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QAAAA,GAAW;AACxB,cAAI7F,iBAAiB6F,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", "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"]
6
+ }
@@ -1,14 +1,14 @@
1
- import { getRoutes } from "../getRoutes.native.js";
2
- import { getServerManifest } from "./getServerManifest.native.js";
1
+ import { getRoutes } from "../getRoutes";
2
+ import { getServerManifest } from "./getServerManifest";
3
3
  function createMockModuleWithContext() {
4
- var map = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [],
5
- contextModule = function (key) {
6
- return {
7
- default() {}
8
- };
4
+ var map = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], contextModule = function(key) {
5
+ return {
6
+ default() {
7
+ }
9
8
  };
9
+ };
10
10
  return Object.defineProperty(contextModule, "keys", {
11
- value: function () {
11
+ value: function() {
12
12
  return map;
13
13
  }
14
14
  }), contextModule;
@@ -21,8 +21,11 @@ function createRoutesManifest(paths, options) {
21
21
  ignoreEntryPoints: !0,
22
22
  platform: "web"
23
23
  });
24
- if (!routeTree) throw new Error(`No route tree found in paths: ${JSON.stringify(paths)}`);
24
+ if (!routeTree)
25
+ throw new Error(`No route tree found in paths: ${JSON.stringify(paths)}`);
25
26
  return getServerManifest(routeTree);
26
27
  }
27
- export { createRoutesManifest };
28
- //# sourceMappingURL=createRoutesManifest.native.js.map
28
+ export {
29
+ createRoutesManifest
30
+ };
31
+ //# sourceMappingURL=createRoutesManifest.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["getRoutes","getServerManifest","createMockModuleWithContext","map","arguments","length","contextModule","key","default","Object","defineProperty","value","createRoutesManifest","paths","options","routeTree","preserveApiRoutes","ignoreRequireErrors","ignoreEntryPoints"],"sources":["../../../src/server/createRoutesManifest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAAuBA,SAAA,QAAiB;AACxC,SAASC,iBAAA,QAAyB;AAqBlC,SAASC,4BAAA,EAA4B;EACnC,IAAAC,GAAM,GAAAC,SAAA,CAAAC,MAAiB,QAAWD,SAAA,CAAU,gBAAAA,SAAA;IAAAE,aAAA,YAAAA,CAAAC,GAAA;MAAG;QAE/CC,QAAA,EAAO,CACL;MACD;IAGH;EAEO,OAASC,MAAA,CAAAC,cAAqB,CAAAJ,aAAiB,EAAyC;IAC7FK,KAAM,WAAAA,CAAA,EAAY;MAChB,OAAGR,GAAA;IACH;EAAmB,EACnB,EAAAG,aAAA;AAAqB;AACF,SACnBM,oBAAUA,CAAAC,KAAA,EAAAC,OAAA;EACZ,IAACC,SAAA,GAAAf,SAAA,CAAAE,2BAAA,CAAAW,KAAA;IAED,GAAKC,OAAA;IACHE,iBAAgB;IAGlBC,mBAAO,IAAkB;IAC3BC,iBAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/server/Users/n8/one/packages/one/src/server/createRoutesManifest.ts"],
4
+ "mappings": "AAAA,SAAuBA,iBAAiB;AACxC,SAASC,yBAAyB;AAqBlC,SAASC,8BAAAA;MAA4BC,MAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAgB,CAAA,GAC7CC,gBAAgB,SAACC,KAAAA;WAAS;MAAEC,UAAAA;MAAW;IAAE;;AAE/CC,gBAAOC,eAAeJ,eAAe,QAAQ;IAC3CK,OAAO,WAAA;aAAMN;;EACf,CAAA,GAEOC;AACT;AAEO,SAASM,qBAAqBC,OAAiBC,SAAgB;AACpE,MAAMC,YAAYb,UAAUE,4BAA4BS,KAAAA,GAAQ;IAC9D,GAAGC;IACHE,mBAAmB;IACnBC,qBAAqB;IACrBC,mBAAmB;IACnBC,UAAU;EACZ,CAAA;AAEA,MAAI,CAACJ;AACH,UAAM,IAAIK,MAAM,iCAAiCC,KAAKC,UAAUT,KAAAA,CAAAA,EAAQ;AAG1E,SAAOV,kBAAkBY,SAAAA;AAC3B;",
5
+ "names": ["getRoutes", "getServerManifest", "createMockModuleWithContext", "map", "contextModule", "key", "default", "Object", "defineProperty", "value", "createRoutesManifest", "paths", "options", "routeTree", "preserveApiRoutes", "ignoreRequireErrors", "ignoreEntryPoints", "platform", "Error", "JSON", "stringify"]
6
+ }
@@ -1,35 +1,43 @@
1
- import { getContextKey, matchGroupName } from "../matchers.native.js";
2
- import { sortRoutes } from "../sortRoutes.native.js";
1
+ import { getContextKey, matchGroupName } from "../matchers";
2
+ import { sortRoutes } from "../sortRoutes";
3
3
  function isNotFoundRoute(route) {
4
4
  return !!(route.dynamic && route.dynamic[route.dynamic.length - 1].notFound);
5
5
  }
6
6
  function getServerManifest(route) {
7
7
  function getFlatNodes(route2, layouts) {
8
- if (route2.children.length) return route2.children.flatMap(function (child) {
9
- return getFlatNodes(child, [...(layouts || []), route2]);
10
- });
8
+ if (route2.children.length)
9
+ return route2.children.flatMap(function(child) {
10
+ return getFlatNodes(child, [
11
+ ...layouts || [],
12
+ route2
13
+ ]);
14
+ });
11
15
  var key;
12
- if (route2.type === "api") key = getContextKey(route2.contextKey).replace(/\/index$/, "") || "/";else {
13
- var parentSegments = layouts?.flatMap(function (route3) {
16
+ if (route2.type === "api")
17
+ key = getContextKey(route2.contextKey).replace(/\/index$/, "") || "/";
18
+ else {
19
+ var parentSegments = layouts?.flatMap(function(route3) {
14
20
  var key2 = getContextKey(route3.route).replace(/\/index$/, "") || "/";
15
- return key2 === "/" || key2.startsWith("/(") ? [] : [key2];
21
+ return key2 === "/" || key2.startsWith("/(") ? [] : [
22
+ key2
23
+ ];
16
24
  });
17
25
  key = parentSegments + getContextKey(route2.route).replace(/\/index$/, "") || "/";
18
26
  }
19
- return [[key, {
20
- ...route2,
21
- layouts
22
- }]];
27
+ return [
28
+ [
29
+ key,
30
+ {
31
+ ...route2,
32
+ layouts
33
+ }
34
+ ]
35
+ ];
23
36
  }
24
- var flat = getFlatNodes(route).sort(function (param, param1) {
25
- var [, a] = param,
26
- [, b] = param1;
27
- return sortRoutes(b, a);
28
- }).reverse(),
29
- pathToRoute = {},
30
- _iteratorNormalCompletion = !0,
31
- _didIteratorError = !1,
32
- _iteratorError = void 0;
37
+ var flat = getFlatNodes(route).sort(function(param, param1) {
38
+ var [, a] = param, [, b] = param1;
39
+ return sortRoutes(b, a);
40
+ }).reverse(), pathToRoute = {}, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
33
41
  try {
34
42
  for (var _iterator = flat[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
35
43
  var [path, _$route] = _step.value;
@@ -43,14 +51,11 @@ function getServerManifest(route) {
43
51
  try {
44
52
  !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
45
53
  } finally {
46
- if (_didIteratorError) throw _iteratorError;
54
+ if (_didIteratorError)
55
+ throw _iteratorError;
47
56
  }
48
57
  }
49
- var apiRoutes = [],
50
- pageRoutes = [],
51
- _iteratorNormalCompletion1 = !0,
52
- _didIteratorError1 = !1,
53
- _iteratorError1 = void 0;
58
+ var apiRoutes = [], pageRoutes = [], _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
54
59
  try {
55
60
  for (var _iterator1 = flat[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
56
61
  var [path1, node] = _step1.value;
@@ -66,7 +71,8 @@ function getServerManifest(route) {
66
71
  try {
67
72
  !_iteratorNormalCompletion1 && _iterator1.return != null && _iterator1.return();
68
73
  } finally {
69
- if (_didIteratorError1) throw _iteratorError1;
74
+ if (_didIteratorError1)
75
+ throw _iteratorError1;
70
76
  }
71
77
  }
72
78
  return {
@@ -93,10 +99,10 @@ function getNamedRouteRegex(normalizedRoute, node) {
93
99
  };
94
100
  }
95
101
  function buildGetSafeRouteKey() {
96
- var currentCharCode = 96,
97
- currentLength = 1;
98
- return function () {
99
- for (var result = "", incrementNext = !0, i = 0; i < currentLength; i++) incrementNext && (currentCharCode++, currentCharCode > 122 ? (currentCharCode = 97, incrementNext = !0) : incrementNext = !1), result = String.fromCharCode(currentCharCode) + result;
102
+ var currentCharCode = 96, currentLength = 1;
103
+ return function() {
104
+ for (var result = "", incrementNext = !0, i = 0; i < currentLength; i++)
105
+ incrementNext && (currentCharCode++, currentCharCode > 122 ? (currentCharCode = 97, incrementNext = !0) : incrementNext = !1), result = String.fromCharCode(currentCharCode) + result;
100
106
  return incrementNext && (currentLength++, currentCharCode = 96), result;
101
107
  };
102
108
  }
@@ -104,54 +110,42 @@ function removeTrailingSlash(route) {
104
110
  return route.replace(/\/$/, "") || "/";
105
111
  }
106
112
  function getNamedRegex(route) {
107
- var segments = removeTrailingSlash(route).slice(1).split("/"),
108
- getSafeRouteKey = buildGetSafeRouteKey(),
109
- routeKeys = {},
110
- routeSegments = segments.map(function (segment, index) {
111
- if (segment === "+not-found" && index === segments.length - 1 && (segment = "[...not-found]"), /^\[.*\]$/.test(segment)) {
112
- var {
113
- name,
114
- optional,
115
- repeat
116
- } = parseParam(segment),
117
- cleanedKey = name.replace(/\W/g, ""),
118
- invalidKey = !1;
119
- return (cleanedKey.length === 0 || cleanedKey.length > 30) && (invalidKey = !0), Number.isNaN(Number.parseInt(cleanedKey.slice(0, 1), 10)) || (invalidKey = !0), cleanedKey in routeKeys && (invalidKey = !0), invalidKey && (cleanedKey = getSafeRouteKey()), routeKeys[cleanedKey] = name, repeat ? optional ? `(?:/(?<${cleanedKey}>.+?))?` : `/(?<${cleanedKey}>.+?)` : `/(?<${cleanedKey}>[^/]+?)`;
120
- }
121
- if (insideParensRegex.test(segment)) {
122
- var groupName = matchGroupName(segment).split(",").map(function (group) {
123
- return group.trim();
124
- }).filter(Boolean);
125
- if (groupName.length > 1) {
126
- var optionalSegment = `\\((?:${groupName.map(escapeStringRegexp).join("|")})\\)`;
127
- return `(?:/${optionalSegment})?`;
128
- }
129
- return `(?:/${escapeStringRegexp(segment)})?`;
113
+ var segments = removeTrailingSlash(route).slice(1).split("/"), getSafeRouteKey = buildGetSafeRouteKey(), routeKeys = {}, routeSegments = segments.map(function(segment, index) {
114
+ if (segment === "+not-found" && index === segments.length - 1 && (segment = "[...not-found]"), /^\[.*\]$/.test(segment)) {
115
+ var { name, optional, repeat } = parseParam(segment), cleanedKey = name.replace(/\W/g, ""), invalidKey = !1;
116
+ return (cleanedKey.length === 0 || cleanedKey.length > 30) && (invalidKey = !0), Number.isNaN(Number.parseInt(cleanedKey.slice(0, 1), 10)) || (invalidKey = !0), cleanedKey in routeKeys && (invalidKey = !0), invalidKey && (cleanedKey = getSafeRouteKey()), routeKeys[cleanedKey] = name, repeat ? optional ? `(?:/(?<${cleanedKey}>.+?))?` : `/(?<${cleanedKey}>.+?)` : `/(?<${cleanedKey}>[^/]+?)`;
117
+ }
118
+ if (insideParensRegex.test(segment)) {
119
+ var groupName = matchGroupName(segment).split(",").map(function(group) {
120
+ return group.trim();
121
+ }).filter(Boolean);
122
+ if (groupName.length > 1) {
123
+ var optionalSegment = `\\((?:${groupName.map(escapeStringRegexp).join("|")})\\)`;
124
+ return `(?:/${optionalSegment})?`;
130
125
  }
131
- return `/${escapeStringRegexp(segment)}`;
132
- }).join("");
126
+ return `(?:/${escapeStringRegexp(segment)})?`;
127
+ }
128
+ return `/${escapeStringRegexp(segment)}`;
129
+ }).join("");
133
130
  return {
134
131
  namedRegex: `^${routeSegments}(?:/)?$`,
135
132
  routeKeys
136
133
  };
137
134
  }
138
- var insideBracketsRegex = /^\[.*\]$/,
139
- insideParensRegex = /^\(.*\)$/,
140
- tripleDotRegex = /^\.\.\./,
141
- replaceRegex = /[|\\{}()[\]^$+*?.-]/g,
142
- hasRegExpRegex = /[|\\{}()[\]^$+*?.-]/;
135
+ var insideBracketsRegex = /^\[.*\]$/, insideParensRegex = /^\(.*\)$/, tripleDotRegex = /^\.\.\./, replaceRegex = /[|\\{}()[\]^$+*?.-]/g, hasRegExpRegex = /[|\\{}()[\]^$+*?.-]/;
143
136
  function escapeStringRegexp(str) {
144
137
  return hasRegExpRegex.test(str) ? str.replace(replaceRegex, "\\$&") : str;
145
138
  }
146
139
  function parseParam(param) {
147
- var repeat = !1,
148
- optional = !1,
149
- name = param;
140
+ var repeat = !1, optional = !1, name = param;
150
141
  return insideBracketsRegex.test(name) && (optional = !0, name = name.slice(1, -1)), tripleDotRegex.test(name) && (repeat = !0, name = name.slice(3)), {
151
142
  name,
152
143
  repeat,
153
144
  optional
154
145
  };
155
146
  }
156
- export { getServerManifest, parseParam };
157
- //# sourceMappingURL=getServerManifest.native.js.map
147
+ export {
148
+ getServerManifest,
149
+ parseParam
150
+ };
151
+ //# sourceMappingURL=getServerManifest.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["getContextKey","matchGroupName","sortRoutes","isNotFoundRoute","route","dynamic","length","notFound","getServerManifest","getFlatNodes","route2","layouts","children","flatMap","child","key","type","contextKey","replace","parentSegments","route3","key2","startsWith","flat","sort","param","param1","a","b","reverse","pathToRoute","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","path","_$route","value","console","warn","err","return","apiRoutes","pageRoutes","_iteratorNormalCompletion1","_didIteratorError1","_iteratorError1","_iterator1","_step1","path1","node","push","getGeneratedNamedRouteRegex","normalizedRoute","getNamedRouteRegex","generated","isNotFound"],"sources":["../../../src/server/getServerManifest.ts"],"sourcesContent":[null],"mappings":"AAWA,SAASA,aAAA,EAAeC,cAAA,QAAsB;AAC9C,SAASC,UAAA,QAAkB;AA+B3B,SAASC,gBAAgBC,KAAA,EAAkB;EACzC,OAAO,GAAQA,KAAA,CAAMC,OAAA,IAAWD,KAAA,CAAMC,OAAA,CAAQD,KAAA,CAAMC,OAAA,CAAQC,MAAA,GAAS,CAAC,EAAEC,QAAA;AAC1E;AAGO,SAASC,kBAAkBJ,KAAA,EAA6C;EAC7E,SAASK,aAAaC,MAAA,EAAkBC,OAAA,EAA8C;IACpF,IAAID,MAAA,CAAME,QAAA,CAASN,MAAA,EACjB,OAAOI,MAAA,CAAME,QAAA,CAASC,OAAA,CAAQ,UAACC,KACtB;MAOP,OAA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", "isNotFoundRoute", "route", "Boolean", "dynamic", "length", "notFound", "getServerManifest", "getFlatNodes", "layouts", "children", "flatMap", "child", "key", "type", "contextKey", "replace", "parentSegments", "startsWith", "flat", "sort", "a", "b", "reverse", "pathToRoute", "path", "console", "warn", "apiRoutes", "pageRoutes", "node", "push", "getGeneratedNamedRouteRegex", "normalizedRoute", "getNamedRouteRegex", "generated", "isNotFound", "result", "getNamedRegex", "file", "page", "namedRegex", "routeKeys", "buildGetSafeRouteKey", "currentCharCode", "currentLength", "incrementNext", "i", "String", "fromCharCode", "removeTrailingSlash", "segments", "slice", "split", "getSafeRouteKey", "routeSegments", "map", "segment", "index", "test", "name", "optional", "repeat", "parseParam", "cleanedKey", "invalidKey", "Number", "isNaN", "parseInt", "insideParensRegex", "groupName", "group", "trim", "filter", "optionalSegment", "escapeStringRegexp", "join", "insideBracketsRegex", "tripleDotRegex", "replaceRegex", "hasRegExpRegex", "str", "param"]
6
+ }
@@ -1,5 +1,5 @@
1
1
  import ReactDOMServer from "react-dom/server.browser";
2
- var renderToString = async function (app, options) {
2
+ var renderToString = async function(app, options) {
3
3
  var readableStream = await ReactDOMServer.renderToReadableStream(app, {
4
4
  bootstrapModules: options.preloads
5
5
  });
@@ -9,12 +9,8 @@ var renderToString = async function (app, options) {
9
9
  };
10
10
  async function streamToString(stream) {
11
11
  var decoder = new TextDecoder("utf-8", {
12
- fatal: !0
13
- }),
14
- result = "",
15
- _iteratorNormalCompletion = !0,
16
- _didIteratorError = !1,
17
- _iteratorError = void 0;
12
+ fatal: !0
13
+ }), result = "", _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
18
14
  try {
19
15
  for (var _iterator = stream[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
20
16
  var chunk = _step.value;
@@ -28,10 +24,13 @@ async function streamToString(stream) {
28
24
  try {
29
25
  !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
30
26
  } finally {
31
- if (_didIteratorError) throw _iteratorError;
27
+ if (_didIteratorError)
28
+ throw _iteratorError;
32
29
  }
33
30
  }
34
31
  return result += decoder.decode(), result;
35
32
  }
36
- export { renderToString };
37
- //# sourceMappingURL=server-render.native.js.map
33
+ export {
34
+ renderToString
35
+ };
36
+ //# sourceMappingURL=server-render.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["ReactDOMServer","renderToString","app","options","readableStream","renderToReadableStream","bootstrapModules","preloads","allReady","out","streamToString","stream","decoder","TextDecoder","fatal","result","_iteratorNormalCompletion","_didIteratorError","_iteratorError"],"sources":["../../src/server-render.tsx"],"sourcesContent":[null],"mappings":"AACA,OAAOA,cAAA,MAAoB;AAEpB,IAAAC,cAAM,kBAAAA,CAAiDC,GAAA,EAAAC,OAAqC;EACjG,IAAAC,cAAM,SAAiBJ,cAAM,CAAAK,sBAAe,CAAAH,GAAuB;IACjEI,gBAAA,EAAkBH,OAAA,CAAQI;EAC5B,CAAC;EACD,MAAAH,cAAM,CAAAI,QAAe;EAGvB,IAAAC,GAAA,SAAAC,cAAA,CAAAN,cAAA;EAEA,OAAAK,GAAA;AACE;AACA,eAAaC,eAAAC,MAAA;EAGb,IAAAC,OAAA,OAAiBC,WAAS;MACxBC,KAAA;IAGF;IAAAC,MAAA;IAAUC,yBACH;IAAAC,iBAAA;IAAAC,cAAA;EACT","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/one/packages/one/src/server-render.tsx"],
4
+ "mappings": "AACA,OAAOA,oBAAoB;AAEpB,IAAMC,iBAAiB,eAAOC,KAAyBC,SAAAA;AAC5D,MAAMC,iBAAiB,MAAMJ,eAAeK,uBAAuBH,KAAK;IACtEI,kBAAkBH,QAAQI;EAC5B,CAAA;AACA,QAAMH,eAAeI;AACrB,MAAMC,MAAM,MAAMC,eAAeN,cAAAA;AACjC,SAAOK;AACT;AAEA,eAAeC,eAAeC,QAAkC;AAC9D,MAAMC,UAAU,IAAIC,YAAY,SAAS;IAAEC,OAAO;EAAK,CAAA,GACnDC,SAAS,IAGF,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAX,aAAW,YAAeJ,OAAAA,OAAAA,QAAAA,EAAAA,GAAf,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAuB;AAAvB,UAAMK,QAAN,MAAA;AACTD,gBAAUH,QAAQK,OAAOD,OAAO;QAAEL,QAAQ;MAAK,CAAA;IACjD;;AAFW,wBAAA,IAAA,iBAAA;;;OAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;UAAA;cAAA;;;AAIXI,mBAAUH,QAAQK,OAAM,GACjBF;AACT;",
5
+ "names": ["ReactDOMServer", "renderToString", "app", "options", "readableStream", "renderToReadableStream", "bootstrapModules", "preloads", "allReady", "out", "streamToString", "stream", "decoder", "TextDecoder", "fatal", "result", "chunk", "decode"]
6
+ }