one 1.1.297 → 1.1.299
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Root.js.map +1 -1
- package/dist/cjs/Root.native.js.map +1 -1
- package/dist/cjs/cleanUrl.js +9 -2
- package/dist/cjs/cleanUrl.js.map +1 -1
- package/dist/cjs/cleanUrl.native.js +5 -2
- package/dist/cjs/cleanUrl.native.js.map +2 -2
- package/dist/cjs/vite/replaceLoader.js +7 -1
- package/dist/cjs/vite/replaceLoader.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.native.js +7 -1
- package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
- package/dist/esm/Root.js.map +1 -1
- package/dist/esm/Root.mjs.map +1 -1
- package/dist/esm/Root.native.js +110 -104
- package/dist/esm/Root.native.js.map +6 -1
- package/dist/esm/Route.native.js +12 -10
- package/dist/esm/Route.native.js.map +6 -1
- package/dist/esm/cleanUrl.js +9 -2
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +7 -2
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +16 -13
- package/dist/esm/cleanUrl.native.js.map +6 -1
- package/dist/esm/cli/label-process.native.js +5 -4
- package/dist/esm/cli/label-process.native.js.map +6 -1
- package/dist/esm/cli/main.native.js +8 -13
- package/dist/esm/cli/main.native.js.map +6 -1
- package/dist/esm/cli/prebuild.native.js +5 -5
- package/dist/esm/cli/prebuild.native.js.map +6 -1
- package/dist/esm/cli/run.native.js +21 -28
- package/dist/esm/cli/run.native.js.map +6 -1
- package/dist/esm/cli.native.js +119 -148
- package/dist/esm/cli.native.js.map +6 -1
- package/dist/esm/clientLoaderResolver.native.js +9 -6
- package/dist/esm/clientLoaderResolver.native.js.map +6 -1
- package/dist/esm/config.native.js +12 -11
- package/dist/esm/config.native.js.map +6 -1
- package/dist/esm/constants.native.js +7 -5
- package/dist/esm/constants.native.js.map +6 -1
- package/dist/esm/createApp.native.js +13 -9
- package/dist/esm/createApp.native.js.map +6 -1
- package/dist/esm/createHandleRequest.native.js +55 -64
- package/dist/esm/createHandleRequest.native.js.map +6 -1
- package/dist/esm/createRoute.native.js +16 -16
- package/dist/esm/createRoute.native.js.map +6 -1
- package/dist/esm/fallbackViews/Sitemap.native.js +6 -3
- package/dist/esm/fallbackViews/Sitemap.native.js.map +6 -1
- package/dist/esm/fallbackViews/Unmatched.native.js +5 -3
- package/dist/esm/fallbackViews/Unmatched.native.js.map +6 -1
- package/dist/esm/fork/NavigationContainer.native.js +24 -31
- package/dist/esm/fork/NavigationContainer.native.js.map +6 -1
- package/dist/esm/fork/createMemoryHistory.native.js +99 -115
- package/dist/esm/fork/createMemoryHistory.native.js.map +6 -1
- package/dist/esm/fork/extractPathFromURL.native.js +16 -15
- package/dist/esm/fork/extractPathFromURL.native.js.map +6 -1
- package/dist/esm/fork/findFocusedRoute.native.js +6 -5
- package/dist/esm/fork/findFocusedRoute.native.js.map +6 -1
- package/dist/esm/fork/getPathFromState.native.js +127 -140
- package/dist/esm/fork/getPathFromState.native.js.map +6 -1
- package/dist/esm/fork/getStateFromPath.native.js +292 -288
- package/dist/esm/fork/getStateFromPath.native.js.map +6 -1
- package/dist/esm/fork/useLinking.native.js +70 -61
- package/dist/esm/fork/useLinking.native.js.map +6 -1
- package/dist/esm/fork/validatePathConfig.native.js +15 -9
- package/dist/esm/fork/validatePathConfig.native.js.map +6 -1
- package/dist/esm/getLinkingConfig.native.js +11 -6
- package/dist/esm/getLinkingConfig.native.js.map +6 -1
- package/dist/esm/getReactNavigationConfig.native.js +28 -20
- package/dist/esm/getReactNavigationConfig.native.js.map +6 -1
- package/dist/esm/getRoutes.native.js +249 -229
- package/dist/esm/getRoutes.native.js.map +6 -1
- package/dist/esm/getURL.native.js +4 -4
- package/dist/esm/getURL.native.js.map +6 -1
- package/dist/esm/head/Head.android.js +5 -3
- package/dist/esm/head/Head.android.js.map +6 -1
- package/dist/esm/head/Head.ios.js +144 -132
- package/dist/esm/head/Head.ios.js.map +6 -1
- package/dist/esm/head/Head.native.js +7 -7
- package/dist/esm/head/Head.native.js.map +6 -1
- package/dist/esm/head/HeadModule.native.js +6 -6
- package/dist/esm/head/HeadModule.native.js.map +6 -1
- package/dist/esm/head/index.native.js +2 -2
- package/dist/esm/head/index.native.js.map +6 -1
- package/dist/esm/head/types.native.js +1 -2
- package/dist/esm/head/types.native.js.map +6 -1
- package/dist/esm/head/url.native.js +10 -8
- package/dist/esm/head/url.native.js.map +6 -1
- package/dist/esm/hooks.native.js +53 -34
- package/dist/esm/hooks.native.js.map +6 -1
- package/dist/esm/imperative-api.native.js +9 -6
- package/dist/esm/imperative-api.native.js.map +6 -1
- package/dist/esm/import-mode/index.android.js +4 -3
- package/dist/esm/import-mode/index.android.js.map +6 -1
- package/dist/esm/import-mode/index.ios.js +4 -3
- package/dist/esm/import-mode/index.ios.js.map +6 -1
- package/dist/esm/import-mode/index.native.js +3 -1
- package/dist/esm/import-mode/index.native.js.map +6 -1
- package/dist/esm/index.native.js +65 -27
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/interfaces/router.native.js +4 -2
- package/dist/esm/interfaces/router.native.js.map +6 -1
- package/dist/esm/layouts/Drawer.native.js +7 -6
- package/dist/esm/layouts/Drawer.native.js.map +6 -1
- package/dist/esm/layouts/Stack.native.js +7 -6
- package/dist/esm/layouts/Stack.native.js.map +6 -1
- package/dist/esm/layouts/Tabs.native.js +42 -39
- package/dist/esm/layouts/Tabs.native.js.map +6 -1
- package/dist/esm/layouts/withLayoutContext.native.js +51 -48
- package/dist/esm/layouts/withLayoutContext.native.js.map +6 -1
- package/dist/esm/link/Link.native.js +62 -53
- package/dist/esm/link/Link.native.js.map +6 -1
- package/dist/esm/link/Redirect.native.js +8 -9
- package/dist/esm/link/Redirect.native.js.map +6 -1
- package/dist/esm/link/href.native.js +28 -27
- package/dist/esm/link/href.native.js.map +6 -1
- package/dist/esm/link/linking.native.js +51 -40
- package/dist/esm/link/linking.native.js.map +6 -1
- package/dist/esm/link/path.native.js +28 -19
- package/dist/esm/link/path.native.js.map +6 -1
- package/dist/esm/link/useLinkTo.native.js +22 -20
- package/dist/esm/link/useLinkTo.native.js.map +6 -1
- package/dist/esm/link/useLoadedNavigation.native.js +30 -23
- package/dist/esm/link/useLoadedNavigation.native.js.map +6 -1
- package/dist/esm/matchers.native.js +16 -3
- package/dist/esm/matchers.native.js.map +6 -1
- package/dist/esm/platform.native.js +4 -2
- package/dist/esm/platform.native.js.map +6 -1
- package/dist/esm/polyfills-mobile.native.js +4 -5
- package/dist/esm/polyfills-mobile.native.js.map +6 -1
- package/dist/esm/polyfills-server.native.js +1 -1
- package/dist/esm/polyfills-server.native.js.map +6 -1
- package/dist/esm/render.native.js +3 -1
- package/dist/esm/render.native.js.map +6 -1
- package/dist/esm/router/RouterStore.native.js +1 -2
- package/dist/esm/router/RouterStore.native.js.map +6 -1
- package/dist/esm/router/constants.native.js +4 -2
- package/dist/esm/router/constants.native.js.map +6 -1
- package/dist/esm/router/getNormalizedStatePath.native.js +18 -17
- package/dist/esm/router/getNormalizedStatePath.native.js.map +6 -1
- package/dist/esm/router/lastAction.native.js +10 -9
- package/dist/esm/router/lastAction.native.js.map +6 -1
- package/dist/esm/router/router.native.js +135 -114
- package/dist/esm/router/router.native.js.map +6 -1
- package/dist/esm/router/serverLocationContext.native.js +4 -2
- package/dist/esm/router/serverLocationContext.native.js.map +6 -1
- package/dist/esm/router/useInitializeOneRouter.native.js +8 -5
- package/dist/esm/router/useInitializeOneRouter.native.js.map +6 -1
- package/dist/esm/serve.native.js +77 -104
- package/dist/esm/serve.native.js.map +6 -1
- package/dist/esm/server/createRoutesManifest.native.js +14 -11
- package/dist/esm/server/createRoutesManifest.native.js.map +6 -1
- package/dist/esm/server/getServerManifest.native.js +61 -67
- package/dist/esm/server/getServerManifest.native.js.map +6 -1
- package/dist/esm/server-render.native.js +9 -10
- package/dist/esm/server-render.native.js.map +6 -1
- package/dist/esm/sortRoutes.native.js +27 -17
- package/dist/esm/sortRoutes.native.js.map +6 -1
- package/dist/esm/typed-routes/generateRouteTypes.native.js +10 -11
- package/dist/esm/typed-routes/generateRouteTypes.native.js.map +6 -1
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +38 -37
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +6 -1
- package/dist/esm/types.native.js +1 -2
- package/dist/esm/types.native.js.map +6 -1
- package/dist/esm/useFocusEffect.native.js +25 -22
- package/dist/esm/useFocusEffect.native.js.map +6 -1
- package/dist/esm/useLoader.native.js +50 -50
- package/dist/esm/useLoader.native.js.map +6 -1
- package/dist/esm/useNavigation.native.js +23 -19
- package/dist/esm/useNavigation.native.js.map +6 -1
- package/dist/esm/useScreens.native.js +143 -160
- package/dist/esm/useScreens.native.js.map +6 -1
- package/dist/esm/useViteRoutes.native.js +25 -28
- package/dist/esm/useViteRoutes.native.js.map +6 -1
- package/dist/esm/utils/assertIsReady.native.js +6 -3
- package/dist/esm/utils/assertIsReady.native.js.map +6 -1
- package/dist/esm/utils/dynamicImport.native.js +5 -3
- package/dist/esm/utils/dynamicImport.native.js.map +6 -1
- package/dist/esm/utils/existsAsync.native.js +6 -4
- package/dist/esm/utils/existsAsync.native.js.map +6 -1
- package/dist/esm/utils/getPageExport.native.js +12 -11
- package/dist/esm/utils/getPageExport.native.js.map +6 -1
- package/dist/esm/utils/globDir.native.js +5 -3
- package/dist/esm/utils/globDir.native.js.map +6 -1
- package/dist/esm/utils/hashString.native.js +4 -2
- package/dist/esm/utils/hashString.native.js.map +6 -1
- package/dist/esm/utils/isResponse.native.js +4 -2
- package/dist/esm/utils/isResponse.native.js.map +6 -1
- package/dist/esm/utils/isStatus.native.js +4 -2
- package/dist/esm/utils/isStatus.native.js.map +6 -1
- package/dist/esm/utils/promiseWithResolvers.native.js +7 -7
- package/dist/esm/utils/promiseWithResolvers.native.js.map +6 -1
- package/dist/esm/utils/rand.native.js +5 -3
- package/dist/esm/utils/rand.native.js.map +6 -1
- package/dist/esm/utils/redirect.native.js +7 -5
- package/dist/esm/utils/redirect.native.js.map +6 -1
- package/dist/esm/utils/removeSearch.native.js +4 -2
- package/dist/esm/utils/removeSearch.native.js.map +6 -1
- package/dist/esm/utils/removeUndefined.native.js +6 -3
- package/dist/esm/utils/removeUndefined.native.js.map +6 -1
- package/dist/esm/utils/requireResolve.native.js +4 -2
- package/dist/esm/utils/requireResolve.native.js.map +6 -1
- package/dist/esm/utils/url.native.js +6 -2
- package/dist/esm/utils/url.native.js.map +6 -1
- package/dist/esm/utils/weakKey.native.js +11 -10
- package/dist/esm/utils/weakKey.native.js.map +6 -1
- package/dist/esm/utils/weakMemo.native.js +8 -8
- package/dist/esm/utils/weakMemo.native.js.map +6 -1
- package/dist/esm/views/EmptyRoute.native.js +5 -3
- package/dist/esm/views/EmptyRoute.native.js.map +6 -1
- package/dist/esm/views/ErrorBoundary.native.js +5 -8
- package/dist/esm/views/ErrorBoundary.native.js.map +6 -1
- package/dist/esm/views/LoadProgressBar.native.js +58 -57
- package/dist/esm/views/LoadProgressBar.native.js.map +6 -1
- package/dist/esm/views/Navigator.native.js +54 -71
- package/dist/esm/views/Navigator.native.js.map +6 -1
- package/dist/esm/views/PreloadLinks.native.js +3 -1
- package/dist/esm/views/PreloadLinks.native.js.map +6 -1
- package/dist/esm/views/RootErrorBoundary.native.js +39 -29
- package/dist/esm/views/RootErrorBoundary.native.js.map +6 -1
- package/dist/esm/views/Screen.native.js +12 -12
- package/dist/esm/views/Screen.native.js.map +6 -1
- package/dist/esm/views/ScrollRestoration.native.js +27 -27
- package/dist/esm/views/ScrollRestoration.native.js.map +6 -1
- package/dist/esm/views/Try.native.js +40 -37
- package/dist/esm/views/Try.native.js.map +6 -1
- package/dist/esm/vite/build.native.js +260 -295
- package/dist/esm/vite/build.native.js.map +6 -1
- package/dist/esm/vite/clientTreeShakePlugin.native.js +34 -33
- package/dist/esm/vite/clientTreeShakePlugin.native.js.map +6 -1
- package/dist/esm/vite/constants.native.js +6 -4
- package/dist/esm/vite/constants.native.js.map +6 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +99 -130
- package/dist/esm/vite/createFileSystemRouter.native.js.map +6 -1
- package/dist/esm/vite/customNodeExternals.native.js +9 -10
- package/dist/esm/vite/customNodeExternals.native.js.map +6 -1
- package/dist/esm/vite/ensureTsConfig.native.js +7 -5
- package/dist/esm/vite/ensureTsConfig.native.js.map +6 -1
- package/dist/esm/vite/findDepsToOptimize.native.js +27 -19
- package/dist/esm/vite/findDepsToOptimize.native.js.map +6 -1
- package/dist/esm/vite/fixDependenciesPlugin.native.js +5 -3
- package/dist/esm/vite/fixDependenciesPlugin.native.js.map +6 -1
- package/dist/esm/vite/generateTypesForRoutes.native.js +9 -9
- package/dist/esm/vite/generateTypesForRoutes.native.js.map +6 -1
- package/dist/esm/vite/getManifest.native.js +6 -4
- package/dist/esm/vite/getManifest.native.js.map +6 -1
- package/dist/esm/vite/headers.native.js +11 -5
- package/dist/esm/vite/headers.native.js.map +6 -1
- package/dist/esm/vite/loadEnv.native.js +7 -6
- package/dist/esm/vite/loadEnv.native.js.map +6 -1
- package/dist/esm/vite/makePluginWebOnly.native.js +9 -5
- package/dist/esm/vite/makePluginWebOnly.native.js.map +6 -1
- package/dist/esm/vite/one.native.js +142 -127
- package/dist/esm/vite/one.native.js.map +6 -1
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js +14 -11
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js.map +6 -1
- package/dist/esm/vite/replaceLoader.js +7 -1
- package/dist/esm/vite/replaceLoader.js.map +1 -1
- package/dist/esm/vite/replaceLoader.mjs +5 -1
- package/dist/esm/vite/replaceLoader.mjs.map +1 -1
- package/dist/esm/vite/replaceLoader.native.js +13 -10
- package/dist/esm/vite/replaceLoader.native.js.map +6 -1
- package/dist/esm/vite/resolveAPIRequest.native.js +44 -47
- package/dist/esm/vite/resolveAPIRequest.native.js.map +6 -1
- package/dist/esm/vite/server.native.js +5 -4
- package/dist/esm/vite/server.native.js.map +6 -1
- package/dist/esm/vite/types.native.js +1 -2
- package/dist/esm/vite/types.native.js.map +6 -1
- package/dist/esm/vite/virtualEntryPlugin.native.js +21 -16
- package/dist/esm/vite/virtualEntryPlugin.native.js.map +6 -1
- package/dist/esm/vite/vitePluginSsrCss.native.js +61 -50
- package/dist/esm/vite/vitePluginSsrCss.native.js.map +6 -1
- package/dist/esm/vite.native.js +19 -10
- package/dist/esm/vite.native.js.map +6 -1
- package/dist/esm/zero/getQueryKey.native.js +5 -3
- package/dist/esm/zero/getQueryKey.native.js.map +6 -1
- package/dist/esm/zero/isZeroQuery.native.js +4 -2
- package/dist/esm/zero/isZeroQuery.native.js.map +6 -1
- package/dist/esm/zero/resolveQuery.native.js +9 -8
- package/dist/esm/zero/resolveQuery.native.js.map +6 -1
- package/dist/esm/zero/subscribeToQuery.native.js +5 -3
- package/dist/esm/zero/subscribeToQuery.native.js.map +6 -1
- package/dist/esm/zero/types.native.js +1 -2
- package/dist/esm/zero/types.native.js.map +6 -1
- package/dist/esm/zero/useQuery.native.js +12 -12
- package/dist/esm/zero/useQuery.native.js.map +6 -1
- package/dist/esm/zero/useQueryZero.native.js +24 -20
- package/dist/esm/zero/useQueryZero.native.js.map +6 -1
- package/dist/esm/zero.native.js +9 -5
- package/dist/esm/zero.native.js.map +6 -1
- package/package.json +7 -7
- package/src/Root.tsx +20 -16
- package/src/cleanUrl.ts +15 -1
- package/src/vite/replaceLoader.ts +7 -1
- package/types/cleanUrl.d.ts.map +1 -1
- package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -1 +1,6 @@
|
|
1
|
-
{"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","rollupRemoveUnusedImportsPlugin","vxrnBuild","getLoaderPath","getPreloadPath","getManifest","loadUserOneOptions","replaceLoader","labelProcess","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","_userOptions_build_server","_userOptions_build","_userOptions_web","_options_server","userOptions","_userOptions_build_server_outputFormat","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","_userOptions_build_api","_userOptions_build1","_userOptions_build_api1","_userOptions_build2","info","processEnvDefines","Object","fromEntries","entries","map","param","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","_userOptions_build_api_outputFormat","apiOutputFormat","api","treeshake","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","moduleSideEffects","filter","Boolean","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","_assetInfo_name","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","_serverImport_default_default","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","index","_step","_vxrnOutput_buildArgs","_foundRoute_layouts","_exported_generateStaticParams","type","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","clientManifest","find","endsWith","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","startsWith","collectImports","imports","css","arguments","Set","flatMap","found","flat","x","entryImports","_foundRoute_layouts_flatMap","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path2","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","_ref","paramsList","call","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step1","next","done","params","cleanId","path","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","html","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc","buildInfoForWriting","buildInfo"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAAA,QAAqB;AAC9B,OAAOC,IAAA,IAAQC,IAAA,EAAMC,QAAA,QAAgB;AAErC,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,EAAaC,KAAA,IAASC,SAAA,QAAoC;AACnE,SAAAC,WAAA,EAAAC,eAAA,EAAAC,+BAAA,EAAAJ,KAAA,IAAAK,SAAA;AAAA,SACEC,aAAA,EAAAC,cAAA;AAAA,SACAC,WAAA;AAAA,SACAC,kBAAA;AAAA,SACAC,aAAS;AAAA,SAEJC,YAAA;AACP;EAAAC,SAAS;EAAAC,QAAe;EAAAC;AAAA,IAAAtB,OAAsB;AAG9CuB,OAAA,CAAAC,EAAS,oBAAmB,YAAAC,GAAA;EAC5BC,OAAS,CAAAC,KAAA,CAAAF,GAAA,EAAAG,OAAA,IAAAH,GAA0B;AACnC;AAEA,eAASjB,MAAAqB,IAAA;EAET,IAAMC,yBAAuB,EAAAC,kBAAe,EAAAC,gBAAA,EAAAC,eAAA;EAE5Cd,YAAW;EACT,IAAAe,WAAc,SAAKjB,kBAAc;IAAAkB,sCAAA;IAAAC,kBAAA,IAAAD,sCAAA,IAAAJ,kBAAA,GAAAG,WAAA,CAAA1B,KAAA,cAAAuB,kBAAA,gBAAAD,yBAAA,GAAAC,kBAAA,CAAAM,MAAA,cAAAP,yBAAA,uBAAAA,yBAAA,CAAAQ,YAAA,cAAAH,sCAAA,cAAAA,sCAAA;EAClCZ,OAAA,CAAAgB,GAAA,CAAAC,aAAA,QAAAjB,OAAA,CAAAgB,GAAA,CAAAE,cAAA,IAAAf,OAAA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,mBAAmBF,cAAchO,KAAK,GAAA,GAEtCmO,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
|
5
|
+
"names": ["FSExtra", "MicroMatch", "createRequire", "Path", "join", "relative", "nodeExternals", "mergeConfig", "build", "viteBuild", "fillOptions", "getOptimizeDeps", "rollupRemoveUnusedImportsPlugin", "vxrnBuild", "getLoaderPath", "getPreloadPath", "getManifest", "loadUserOneOptions", "replaceLoader", "labelProcess", "ensureDir", "readFile", "outputFile", "process", "on", "err", "console", "error", "message", "args", "userOptions", "options", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "analyze", "toAbsolute", "p", "resolve", "root", "manifest", "optimizeDeps", "apiBuildConfig", "webBuildConfig", "configFile", "appType", "apiRoutes", "length", "info", "processEnvDefines", "Object", "fromEntries", "entries", "map", "key", "value", "JSON", "stringify", "apiRouteExternalRegex", "buildRegexExcludingDeps", "include", "apiEntryPoints", "reduce", "page", "file", "slice", "apiOutputFormat", "api", "treeshake", "plugins", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "cwd", "onlyBuild", "buildArgs", "only", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "x", "entryImports", "layoutEntries", "layouts", "layout", "clientKey", "contextKey", "layoutImports", "entry", "preloadSetupFilePreloads", "setupFile", "needle", "preloads", "path", "allEntries", "allCSS", "DEBUG", "serverJsPath", "fileName", "Error", "cause", "generateStaticParams", "paramsList", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "params", "cleanId", "getPathnameFromFilePath", "htmlPath", "removeTrailingSlash", "clientJsPath", "htmlOutPath", "loaderData", "cleanPath", "preloadPath", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "loaderPartialPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "buildInfo", "writeJSON", "postBuildLogs", "platform", "web", "deploy", "afterBuild", "VXRN_ANALYZE_BUNDLE", "forEach", "log", "src", "dest", "copy", "overwrite", "errorOnExist", "strict", "nameWithParams", "part", "split", "escapeRegex", "string", "deps", "sanitizedDeps", "dep", "exclusionPattern", "regexPattern", "RegExp"]
|
6
|
+
}
|
@@ -2,39 +2,39 @@ import BabelGenerate from "@babel/generator";
|
|
2
2
|
import { parse } from "@babel/parser";
|
3
3
|
import BabelTraverse from "@babel/traverse";
|
4
4
|
import { deadCodeElimination, findReferencedIdentifiers } from "babel-dead-code-elimination";
|
5
|
-
import { EMPTY_LOADER_STRING } from "./constants
|
6
|
-
var traverse = BabelTraverse.default,
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
}
|
18
|
-
};
|
5
|
+
import { EMPTY_LOADER_STRING } from "./constants";
|
6
|
+
var traverse = BabelTraverse.default, generate = BabelGenerate.default, clientTreeShakePlugin = function() {
|
7
|
+
return {
|
8
|
+
name: "one:client-tree-shake",
|
9
|
+
enforce: "pre",
|
10
|
+
applyToEnvironment(env) {
|
11
|
+
return env.name === "client" || env.name === "ios" || env.name === "android";
|
12
|
+
},
|
13
|
+
async transform(code, id, settings) {
|
14
|
+
if (this.environment.name !== "ssr")
|
15
|
+
return await transformTreeShakeClient(code, id);
|
16
|
+
}
|
19
17
|
};
|
18
|
+
};
|
20
19
|
async function transformTreeShakeClient(code, id) {
|
21
20
|
if (!id.includes("node_modules") && /generateStaticParams|loader/.test(code)) {
|
22
21
|
var ast = parse(code, {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
22
|
+
sourceType: "module",
|
23
|
+
plugins: [
|
24
|
+
"typescript",
|
25
|
+
"jsx"
|
26
|
+
]
|
27
|
+
}), referenced = findReferencedIdentifiers(ast), removed = {
|
28
|
+
loader: !1,
|
29
|
+
generateStaticParams: !1
|
30
|
+
};
|
31
31
|
traverse(ast, {
|
32
32
|
ExportNamedDeclaration(path) {
|
33
33
|
if (path.node.declaration && path.node.declaration.type === "FunctionDeclaration") {
|
34
34
|
if (!path.node.declaration.id) return;
|
35
35
|
var functionName = path.node.declaration.id.name;
|
36
36
|
(functionName === "loader" || functionName === "generateStaticParams") && (path.remove(), removed[functionName] = !0);
|
37
|
-
} else path.node.declaration && path.node.declaration.type === "VariableDeclaration" && path.node.declaration.declarations.forEach(function
|
37
|
+
} else path.node.declaration && path.node.declaration.type === "VariableDeclaration" && path.node.declaration.declarations.forEach(function(declarator, index) {
|
38
38
|
if (declarator.id.type === "Identifier" && (declarator.id.name === "loader" || declarator.id.name === "generateStaticParams")) {
|
39
39
|
var declaration = path.get("declaration.declarations." + index);
|
40
40
|
Array.isArray(declaration) || (declaration.remove(), removed[declarator.id.name] = !0);
|
@@ -42,19 +42,17 @@ async function transformTreeShakeClient(code, id) {
|
|
42
42
|
});
|
43
43
|
}
|
44
44
|
});
|
45
|
-
var removedFunctions = Object.keys(removed).filter(function
|
45
|
+
var removedFunctions = Object.keys(removed).filter(function(key) {
|
46
46
|
return removed[key];
|
47
47
|
});
|
48
48
|
if (removedFunctions.length) {
|
49
49
|
deadCodeElimination(ast, referenced);
|
50
|
-
var out = generate(ast),
|
51
|
-
codeOut = out.code + `
|
50
|
+
var out = generate(ast), codeOut = out.code + `
|
52
51
|
|
53
|
-
` +
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
}).join(`
|
52
|
+
` + // TODO ideally put it back in same place as it was
|
53
|
+
removedFunctions.map(function(key) {
|
54
|
+
return key === "loader" ? EMPTY_LOADER_STRING : "export function generateStaticParams() {};";
|
55
|
+
}).join(`
|
58
56
|
`);
|
59
57
|
return {
|
60
58
|
code: codeOut,
|
@@ -63,5 +61,8 @@ async function transformTreeShakeClient(code, id) {
|
|
63
61
|
}
|
64
62
|
}
|
65
63
|
}
|
66
|
-
export {
|
67
|
-
|
64
|
+
export {
|
65
|
+
clientTreeShakePlugin,
|
66
|
+
transformTreeShakeClient
|
67
|
+
};
|
68
|
+
//# sourceMappingURL=clientTreeShakePlugin.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/clientTreeShakePlugin.ts"],
|
4
|
+
"mappings": "AAAA,OAAOA,mBAAmB;AAC1B,SAASC,aAAa;AACtB,OAAOC,mBAAmB;AAC1B,SAASC,qBAAqBC,iCAAiC;AAE/D,SAASC,2BAA2B;AAEpC,IAAMC,WAAWJ,cAAc,SACzBK,WAAWP,cAAc,SAElBQ,wBAAwB,WAAA;AACnC,SAAO;IACLC,MAAM;IAENC,SAAS;IAETC,mBAAmBC,KAAG;AACpB,aAAOA,IAAIH,SAAS,YAAYG,IAAIH,SAAS,SAASG,IAAIH,SAAS;IACrE;IAEA,MAAMI,UAAUC,MAAMC,IAAIC,UAAQ;AAChC,UAAI,KAAKC,YAAYR,SAAS;AAG9B,eAAO,MAAMS,yBAAyBJ,MAAMC,EAAAA;IAC9C;EACF;AACF;AAEA,eAAsBG,yBAAyBJ,MAAcC,IAAU;AACrE,MAAIA,IAAGI,SAAS,cAAA,KAEX,8BAA8BC,KAAKN,IAAAA,GAIxC;QAAMO,MAAMp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,MAAMmC;QACNC,KAAKF,IAAIE;MACX;IACF;;AACF;",
|
5
|
+
"names": ["BabelGenerate", "parse", "BabelTraverse", "deadCodeElimination", "findReferencedIdentifiers", "EMPTY_LOADER_STRING", "traverse", "generate", "clientTreeShakePlugin", "name", "enforce", "applyToEnvironment", "env", "transform", "code", "id", "settings", "environment", "transformTreeShakeClient", "includes", "test", "ast", "sourceType", "plugins", "referenced", "removed", "loader", "generateStaticParams", "ExportNamedDeclaration", "path", "node", "declaration", "type", "functionName", "remove", "declarations", "forEach", "declarator", "index", "get", "Array", "isArray", "removedFunctions", "Object", "keys", "filter", "key", "length", "out", "codeOut", "map", "join"]
|
6
|
+
}
|
@@ -1,4 +1,6 @@
|
|
1
|
-
var EMPTY_LOADER_STRING = 'export function loader() {return "__vxrn__loader__"};',
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
var EMPTY_LOADER_STRING = 'export function loader() {return "__vxrn__loader__"};', LoaderDataCache = {};
|
2
|
+
export {
|
3
|
+
EMPTY_LOADER_STRING,
|
4
|
+
LoaderDataCache
|
5
|
+
};
|
6
|
+
//# sourceMappingURL=constants.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/constants.ts"],
|
4
|
+
"mappings": "AAAO,IAAMA,sBAAsB,yDAEtBC,kBAAkB,CAAC;",
|
5
|
+
"names": ["EMPTY_LOADER_STRING", "LoaderDataCache"]
|
6
|
+
}
|
@@ -1,36 +1,31 @@
|
|
1
1
|
import { join } from "node:path";
|
2
2
|
import { debounce } from "perfect-debounce";
|
3
3
|
import { createServerModuleRunner } from "vite";
|
4
|
-
import { createHandleRequest } from "../createHandleRequest
|
5
|
-
import { isResponse } from "../utils/isResponse
|
6
|
-
import { isStatusRedirect } from "../utils/isStatus
|
7
|
-
import { promiseWithResolvers } from "../utils/promiseWithResolvers
|
8
|
-
import { LoaderDataCache } from "./constants
|
9
|
-
import { replaceLoader } from "./replaceLoader
|
10
|
-
import { resolveAPIRequest } from "./resolveAPIRequest
|
11
|
-
import { virtalEntryIdClient, virtualEntryId } from "./virtualEntryPlugin
|
4
|
+
import { createHandleRequest } from "../createHandleRequest";
|
5
|
+
import { isResponse } from "../utils/isResponse";
|
6
|
+
import { isStatusRedirect } from "../utils/isStatus";
|
7
|
+
import { promiseWithResolvers } from "../utils/promiseWithResolvers";
|
8
|
+
import { LoaderDataCache } from "./constants";
|
9
|
+
import { replaceLoader } from "./replaceLoader";
|
10
|
+
import { resolveAPIRequest } from "./resolveAPIRequest";
|
11
|
+
import { virtalEntryIdClient, virtualEntryId } from "./virtualEntryPlugin";
|
12
12
|
function _type_of(obj) {
|
13
13
|
"@swc/helpers - typeof";
|
14
|
-
|
15
14
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
16
15
|
}
|
17
16
|
var USE_SERVER_ENV = !1;
|
18
17
|
//!!process.env.USE_SERVER_ENV
|
19
18
|
function createFileSystemRouter(options) {
|
20
|
-
var preloads = [
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
renderPromise = null;
|
19
|
+
var preloads = [
|
20
|
+
"/@vite/client",
|
21
|
+
virtalEntryIdClient
|
22
|
+
], runner, server, handleRequest = createRequestHandler(), renderPromise = null;
|
25
23
|
function createRequestHandler() {
|
26
24
|
return createHandleRequest(options, {
|
27
25
|
async handleSSR(param) {
|
28
|
-
var {
|
29
|
-
|
30
|
-
|
31
|
-
loaderProps
|
32
|
-
} = param;
|
33
|
-
if (console.info(` \u24F5 [${route.type}] ${url} resolved to ${route.file}`), route.type === "spa") return `<html><head>
|
26
|
+
var { route, url, loaderProps } = param;
|
27
|
+
if (console.info(` \u24F5 [${route.type}] ${url} resolved to ${route.file}`), route.type === "spa")
|
28
|
+
return `<html><head>
|
34
29
|
<script>globalThis['global'] = globalThis</script>
|
35
30
|
<script>globalThis['__vxrnIsSPA'] = true</script>
|
36
31
|
<script type="module">
|
@@ -42,31 +37,22 @@ function createFileSystemRouter(options) {
|
|
42
37
|
<script type="module" src="/@vite/client" async=""></script>
|
43
38
|
<script type="module" src="/@id/__x00__virtual:one-entry" async=""></script>
|
44
39
|
</head></html>`;
|
45
|
-
renderPromise &&
|
46
|
-
var {
|
47
|
-
promise,
|
48
|
-
resolve
|
49
|
-
} = promiseWithResolvers();
|
40
|
+
renderPromise && await renderPromise;
|
41
|
+
var { promise, resolve } = promiseWithResolvers();
|
50
42
|
renderPromise = promise;
|
51
43
|
try {
|
52
|
-
var _globalThis___vxrnresetState,
|
53
|
-
_globalThis,
|
54
|
-
_exported_loader,
|
55
|
-
routeFile = join("app", route.file);
|
44
|
+
var _globalThis___vxrnresetState, _globalThis, _exported_loader, routeFile = join("app", route.file);
|
56
45
|
runner.clearCache(), (_globalThis___vxrnresetState = (_globalThis = globalThis).__vxrnresetState) === null || _globalThis___vxrnresetState === void 0 || _globalThis___vxrnresetState.call(_globalThis);
|
57
|
-
var exported = routeFile === "" ? {} : await runner.import(routeFile),
|
58
|
-
loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps));
|
46
|
+
var exported = routeFile === "" ? {} : await runner.import(routeFile), loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps));
|
59
47
|
eval("process.env.TAMAGUI_IS_SERVER = '1'");
|
60
|
-
var entry = await runner.import(virtualEntryId),
|
61
|
-
render = entry.default.render;
|
48
|
+
var entry = await runner.import(virtualEntryId), render = entry.default.render;
|
62
49
|
globalThis.__vxrnLoaderData__ = loaderData, globalThis.__vxrnLoaderProps__ = loaderProps, LoaderDataCache[route.file] = loaderData;
|
63
|
-
var is404 = route.isNotFound || !exported.default,
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
});
|
50
|
+
var is404 = route.isNotFound || !exported.default, html = await render({
|
51
|
+
loaderData,
|
52
|
+
loaderProps,
|
53
|
+
path: loaderProps?.path || "/",
|
54
|
+
preloads
|
55
|
+
});
|
70
56
|
return is404 ? new Response(html, {
|
71
57
|
status: 404,
|
72
58
|
headers: {
|
@@ -75,9 +61,7 @@ function createFileSystemRouter(options) {
|
|
75
61
|
}) : html;
|
76
62
|
} catch (err) {
|
77
63
|
console.error("Error in handleSSR:", err);
|
78
|
-
var title = `Error rendering ${url.pathname} on server`,
|
79
|
-
message = err instanceof Error ? err.message : `${err}`,
|
80
|
-
stack = err instanceof Error ? err.stack : "";
|
64
|
+
var title = `Error rendering ${url.pathname} on server`, message = err instanceof Error ? err.message : `${err}`, stack = err instanceof Error ? err.stack : "";
|
81
65
|
return console.error(`${title}
|
82
66
|
${message}
|
83
67
|
|
@@ -98,19 +82,10 @@ ${stack}
|
|
98
82
|
}
|
99
83
|
},
|
100
84
|
async handleLoader(param2) {
|
101
|
-
var {
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
loaderProps: loaderProps2
|
106
|
-
} = param2,
|
107
|
-
_this,
|
108
|
-
_exported_loader2,
|
109
|
-
routeFile2 = join("app", route2.file),
|
110
|
-
transformedJS = (_this = await server.transformRequest(routeFile2)) === null || _this === void 0 ? void 0 : _this.code;
|
111
|
-
if (!transformedJS) throw new Error("No transformed js returned");
|
112
|
-
var exported2 = await runner.import(routeFile2),
|
113
|
-
loaderData2 = await ((_exported_loader2 = exported2.loader) === null || _exported_loader2 === void 0 ? void 0 : _exported_loader2.call(exported2, loaderProps2));
|
85
|
+
var { request, route: route2, url: url2, loaderProps: loaderProps2 } = param2, _this, _exported_loader2, routeFile2 = join("app", route2.file), transformedJS = (_this = await server.transformRequest(routeFile2)) === null || _this === void 0 ? void 0 : _this.code;
|
86
|
+
if (!transformedJS)
|
87
|
+
throw new Error("No transformed js returned");
|
88
|
+
var exported2 = await runner.import(routeFile2), loaderData2 = await ((_exported_loader2 = exported2.loader) === null || _exported_loader2 === void 0 ? void 0 : _exported_loader2.call(exported2, loaderProps2));
|
114
89
|
loaderData2 && (transformedJS = replaceLoader({
|
115
90
|
code: transformedJS,
|
116
91
|
loaderData: loaderData2
|
@@ -118,22 +93,17 @@ ${stack}
|
|
118
93
|
var platform = url2.searchParams.get("platform");
|
119
94
|
if (platform === "ios" || platform === "android") {
|
120
95
|
var environment = server.environments[platform || ""];
|
121
|
-
if (!environment)
|
96
|
+
if (!environment)
|
97
|
+
throw new Error(`[handleLoader] No Vite environment found for platform '${platform}'`);
|
122
98
|
var nativeTransformedJS = `exports.loader = () => (${JSON.stringify(loaderData2)});`;
|
123
99
|
return nativeTransformedJS;
|
124
100
|
}
|
125
101
|
return transformedJS;
|
126
102
|
},
|
127
103
|
async handleAPI(param2) {
|
128
|
-
var {
|
129
|
-
|
130
|
-
|
131
|
-
url: url2,
|
132
|
-
loaderProps: loaderProps2
|
133
|
-
} = param2,
|
134
|
-
result = await resolveAPIRequest(function () {
|
135
|
-
return runner.import(join("app", route2.file));
|
136
|
-
}, request, loaderProps2?.params || {});
|
104
|
+
var { request, route: route2, url: url2, loaderProps: loaderProps2 } = param2, result = await resolveAPIRequest(function() {
|
105
|
+
return runner.import(join("app", route2.file));
|
106
|
+
}, request, loaderProps2?.params || {});
|
137
107
|
return result;
|
138
108
|
}
|
139
109
|
});
|
@@ -144,12 +114,17 @@ ${stack}
|
|
144
114
|
apply: "serve",
|
145
115
|
async config(userConfig) {
|
146
116
|
if (handleRequest.manifest.pageRoutes) {
|
147
|
-
var routesAndLayouts = [
|
148
|
-
|
149
|
-
|
150
|
-
return
|
151
|
-
|
152
|
-
|
117
|
+
var routesAndLayouts = [
|
118
|
+
...new Set(handleRequest.manifest.pageRoutes.flatMap(function(route2) {
|
119
|
+
var _route_layouts;
|
120
|
+
return [
|
121
|
+
join("app", route2.file),
|
122
|
+
...((_route_layouts = route2.layouts) === null || _route_layouts === void 0 ? void 0 : _route_layouts.map(function(layout) {
|
123
|
+
return join("app", layout.contextKey);
|
124
|
+
})) || []
|
125
|
+
];
|
126
|
+
}))
|
127
|
+
];
|
153
128
|
return {
|
154
129
|
optimizeDeps: {
|
155
130
|
/**
|
@@ -203,37 +178,29 @@ ${stack}
|
|
203
178
|
// }
|
204
179
|
configureServer(serverIn) {
|
205
180
|
server = serverIn, runner = createServerModuleRunner(USE_SERVER_ENV ? server.environments.server : server.environments.ssr);
|
206
|
-
var appDir = join(process.cwd(), "app"),
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
server.middlewares.use(async function (req, res, next) {
|
181
|
+
var appDir = join(process.cwd(), "app"), fileWatcherChangeListener = debounce(async function(type, path) {
|
182
|
+
(type === "add" || type === "delete") && path.startsWith(appDir) && (handleRequest = createRequestHandler());
|
183
|
+
}, 100);
|
184
|
+
return server.watcher.addListener("all", fileWatcherChangeListener), function() {
|
185
|
+
server.middlewares.use(async function(req, res, next) {
|
212
186
|
try {
|
213
|
-
var _options_web,
|
214
|
-
redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
|
187
|
+
var _options_web, redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
|
215
188
|
if (redirects) {
|
216
|
-
var url2 = new URL(req.url || "", `http://${req.headers.host}`),
|
217
|
-
_iteratorNormalCompletion = !0,
|
218
|
-
_didIteratorError = !1,
|
219
|
-
_iteratorError = void 0;
|
189
|
+
var url2 = new URL(req.url || "", `http://${req.headers.host}`), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
220
190
|
try {
|
221
|
-
for (var _loop = function
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
};
|
235
|
-
}
|
236
|
-
}, _iterator = redirects[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
191
|
+
for (var _loop = function() {
|
192
|
+
var redirect = _step.value, regexStr = `^${redirect.source.replace(/:\w+/g, "([^/]+)")}$`, match = url2.pathname.match(new RegExp(regexStr));
|
193
|
+
if (match) {
|
194
|
+
var destination = redirect.destination, params = redirect.source.match(/:\w+/g);
|
195
|
+
return params && params.forEach(function(param2, index) {
|
196
|
+
destination = destination.replace(param2, match[index + 1] || "");
|
197
|
+
}), console.warn(` [one] redirecting via redirect: ${destination}`), res.writeHead(redirect.permanent ? 301 : 302, {
|
198
|
+
Location: destination
|
199
|
+
}), res.end(), {
|
200
|
+
v: void 0
|
201
|
+
};
|
202
|
+
}
|
203
|
+
}, _iterator = redirects[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
237
204
|
var _ret = _loop();
|
238
205
|
if (_type_of(_ret) === "object") return _ret.v;
|
239
206
|
}
|
@@ -243,12 +210,14 @@ ${stack}
|
|
243
210
|
try {
|
244
211
|
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
245
212
|
} finally {
|
246
|
-
if (_didIteratorError)
|
213
|
+
if (_didIteratorError)
|
214
|
+
throw _iteratorError;
|
247
215
|
}
|
248
216
|
}
|
249
217
|
}
|
250
218
|
var reply = await handleRequest.handler(await convertIncomingMessageToRequest(req));
|
251
|
-
if (!reply)
|
219
|
+
if (!reply)
|
220
|
+
return next();
|
252
221
|
if (typeof reply != "string" && isResponse(reply)) {
|
253
222
|
if (isStatusRedirect(reply.status)) {
|
254
223
|
var location = `${reply.headers.get("location") || ""}`;
|
@@ -260,12 +229,9 @@ ${stack}
|
|
260
229
|
}
|
261
230
|
console.error("No location provided to redirected status reply", reply);
|
262
231
|
}
|
263
|
-
res.statusCode = reply.status, res.statusMessage = reply.statusText, reply.headers.forEach(function
|
232
|
+
res.statusCode = reply.status, res.statusMessage = reply.statusText, reply.headers.forEach(function(value, key) {
|
264
233
|
if (key === "set-cookie") {
|
265
|
-
var cookies = value.split(", "),
|
266
|
-
_iteratorNormalCompletion2 = !0,
|
267
|
-
_didIteratorError2 = !1,
|
268
|
-
_iteratorError2 = void 0;
|
234
|
+
var cookies = value.split(", "), _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
269
235
|
try {
|
270
236
|
for (var _iterator2 = cookies[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
271
237
|
var cookie = _step2.value;
|
@@ -277,10 +243,12 @@ ${stack}
|
|
277
243
|
try {
|
278
244
|
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
279
245
|
} finally {
|
280
|
-
if (_didIteratorError2)
|
246
|
+
if (_didIteratorError2)
|
247
|
+
throw _iteratorError2;
|
281
248
|
}
|
282
249
|
}
|
283
|
-
} else
|
250
|
+
} else
|
251
|
+
res.setHeader(key, value);
|
284
252
|
});
|
285
253
|
var outString = "";
|
286
254
|
reply.body && reply.body.locked && console.warn("Body is locked??");
|
@@ -308,15 +276,10 @@ ${stack}
|
|
308
276
|
};
|
309
277
|
}
|
310
278
|
async function streamToString(stream) {
|
311
|
-
var reader = stream.getReader(),
|
312
|
-
decoder = new TextDecoder(),
|
313
|
-
result = "";
|
279
|
+
var reader = stream.getReader(), decoder = new TextDecoder(), result = "";
|
314
280
|
try {
|
315
|
-
for (
|
316
|
-
var {
|
317
|
-
done,
|
318
|
-
value
|
319
|
-
} = await reader.read();
|
281
|
+
for (; ; ) {
|
282
|
+
var { done, value } = await reader.read();
|
320
283
|
if (done) break;
|
321
284
|
result += decoder.decode(value, {
|
322
285
|
stream: !0
|
@@ -329,28 +292,34 @@ async function streamToString(stream) {
|
|
329
292
|
}
|
330
293
|
return result;
|
331
294
|
}
|
332
|
-
var convertIncomingMessageToRequest = async function
|
333
|
-
if (!req.originalUrl)
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
headers
|
338
|
-
for (var key in req.headers) req.headers[key] && headers.append(key, req.headers[key]);
|
295
|
+
var convertIncomingMessageToRequest = async function(req) {
|
296
|
+
if (!req.originalUrl)
|
297
|
+
throw new Error("Can't convert");
|
298
|
+
var urlBase = `http://${req.headers.host}`, urlString = req.originalUrl || "", url2 = new URL(urlString, urlBase), headers = new Headers();
|
299
|
+
for (var key in req.headers)
|
300
|
+
req.headers[key] && headers.append(key, req.headers[key]);
|
339
301
|
return new Request(url2, {
|
340
302
|
method: req.method,
|
341
|
-
body: [
|
303
|
+
body: [
|
304
|
+
"POST",
|
305
|
+
"PUT",
|
306
|
+
"PATCH",
|
307
|
+
"DELETE"
|
308
|
+
].includes(req.method || "") ? await readStream(req) : null,
|
342
309
|
headers
|
343
310
|
});
|
344
311
|
};
|
345
312
|
function readStream(stream) {
|
346
|
-
return new Promise(function
|
313
|
+
return new Promise(function(resolve2, reject) {
|
347
314
|
var chunks = [];
|
348
|
-
stream.on("data", function
|
315
|
+
stream.on("data", function(chunk) {
|
349
316
|
return chunks.push(chunk);
|
350
|
-
}), stream.on("end", function
|
317
|
+
}), stream.on("end", function() {
|
351
318
|
return resolve2(Buffer.concat(chunks));
|
352
319
|
}), stream.on("error", reject);
|
353
320
|
});
|
354
321
|
}
|
355
|
-
export {
|
356
|
-
|
322
|
+
export {
|
323
|
+
createFileSystemRouter
|
324
|
+
};
|
325
|
+
//# sourceMappingURL=createFileSystemRouter.js.map
|