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
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/createFileSystemRouter.tsx"],
|
4
|
+
"mappings": "AAAA,SAASA,YAAY;AACrB,SAASC,gBAAgB;AAEzB,SAASC,gCAAgC;AAEzC,SAASC,2BAA2B;AAEpC,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB;AACj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AM,IAAImF,IAAImD,WAAWD,OAAAA,GAEzB5G,UAAU,IAAI8G,QAAAA;AACpB,WAAW5B,OAAO7B,IAAIrD;AACpB,IAAIqD,IAAIrD,QAAQkF,GAAAA,KAAMlF,QAAQ+G,OAAO7B,KAAK7B,IAAIrD,QAAQkF,GAAAA,CAAI;AAG5D,SAAO,IAAI8B,QAAQzI,MAAK;IACtB0I,QAAQ5D,IAAI4D;IACZnB,MAAM;MAAC;MAAQ;MAAO;MAAS;MAAUoB,SAAS7D,IAAI4D,UAAU,EAAA,IAC5D,MAAME,WAAW9D,GAAAA,IACjB;IACJrD;EACF,CAAA;AACF;AAEA,SAASmH,WAAWjB,QAA+B;AACjD,SAAO,IAAIkB,QAAQ,SAACtI,UAASuI,QAAAA;AAC3B,QAAMC,SAAuB,CAAA;AAC7BpB,WAAOqB,GAAG,QAAQ,SAACC,OAAAA;aAAsBF,OAAOG,KAAKD,KAAAA;QACrDtB,OAAOqB,GAAG,OAAO,WAAA;aAAMzI,SAAQ4I,OAAOC,OAAOL,MAAAA,CAAAA;QAC7CpB,OAAOqB,GAAG,SAASF,MAAAA;EACrB,CAAA;AACF;",
|
5
|
+
"names": ["join", "debounce", "createServerModuleRunner", "createHandleRequest", "isResponse", "isStatusRedirect", "promiseWithResolvers", "LoaderDataCache", "replaceLoader", "resolveAPIRequest", "virtalEntryIdClient", "virtualEntryId", "USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "globalThis", "exported", "routeFile", "clearCache", "import", "loaderData", "loader", "eval", "entry", "render", "default", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "startsWith", "watcher", "addListener", "middlewares", "use", "req", "res", "next", "redirects", "web", "URL", "host", "redirect", "regexStr", "source", "replace", "match", "RegExp", "destination", "forEach", "index", "warn", "writeHead", "permanent", "Location", "end", "reply", "handler", "convertIncomingMessageToRequest", "location", "statusCode", "statusMessage", "statusText", "value", "key", "cookies", "split", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "cookie", "appendHeader", "setHeader", "outString", "body", "locked", "streamToString", "write", "stream", "reader", "getReader", "decoder", "TextDecoder", "done", "read", "decode", "releaseLock", "originalUrl", "urlBase", "urlString", "Headers", "append", "Request", "method", "includes", "readStream", "Promise", "reject", "chunks", "on", "chunk", "push", "Buffer", "concat"]
|
6
|
+
}
|
@@ -7,14 +7,11 @@ function nodeExternals() {
|
|
7
7
|
resolveId: {
|
8
8
|
order: "pre",
|
9
9
|
async handler(specifier, importer, param) {
|
10
|
-
var {
|
11
|
-
|
12
|
-
}
|
13
|
-
|
14
|
-
|
15
|
-
/^(?:\0|\.{1,2}\/)/.test(specifier) ||
|
16
|
-
// Ignore virtual modules and relative imports
|
17
|
-
path.isAbsolute(specifier)) return null;
|
10
|
+
var { isEntry } = param;
|
11
|
+
if (isEntry || // Ignore entry points (they should always be resolved)
|
12
|
+
/^(?:\0|\.{1,2}\/)/.test(specifier) || // Ignore virtual modules and relative imports
|
13
|
+
path.isAbsolute(specifier))
|
14
|
+
return null;
|
18
15
|
if (isBuiltin(specifier)) {
|
19
16
|
var stripped = specifier.replace(/^node:/, "");
|
20
17
|
return {
|
@@ -27,5 +24,7 @@ function nodeExternals() {
|
|
27
24
|
}
|
28
25
|
};
|
29
26
|
}
|
30
|
-
export {
|
31
|
-
|
27
|
+
export {
|
28
|
+
nodeExternals
|
29
|
+
};
|
30
|
+
//# sourceMappingURL=customNodeExternals.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/customNodeExternals.ts"],
|
4
|
+
"mappings": "AAEA,SAASA,iBAAiB;AAC1B,OAAOC,UAAU;AAGV,SAASC,gBAAAA;AACd,SAAO;IACLC,MAAM;IACNC,SAAS;IAETC,WAAW;MACTC,OAAO;MACP,MAAMC,QAAQC,WAAWC,UAAU,OAAW;YAAX,EAAEC,QAAO,IAAT;AACjC,YACEA;QACA,oBAAoBC,KAAKH,SAAAA;QACzBP,KAAKW,WAAWJ,SAAAA;AAEhB,iBAAO;AAET,YAAIR,UAAUQ,SAAAA,GAAY;AACxB,cAAMK,WAAWL,UAAUM,QAAQ,UAAU,EAAA;AAC7C,iBAAO;YACLC,IAAKf,UAAUa,QAAAA,IAAiCA,WAArB,UAAUA;YACrCG,UAAU;YACVC,mBAAmB;UACrB;QACF;MACF;IACF;EACF;AACF;",
|
5
|
+
"names": ["isBuiltin", "path", "nodeExternals", "name", "enforce", "resolveId", "order", "handler", "specifier", "importer", "isEntry", "test", "isAbsolute", "stripped", "replace", "id", "external", "moduleSideEffects"]
|
6
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { writeFile } from "node:fs/promises";
|
2
|
-
import "../polyfills-server
|
3
|
-
import { existsAsync } from "../utils/existsAsync
|
2
|
+
import "../polyfills-server";
|
3
|
+
import { existsAsync } from "../utils/existsAsync";
|
4
4
|
function ensureTSConfig() {
|
5
|
-
existsAsync("tsconfig.json").then(function
|
5
|
+
existsAsync("tsconfig.json").then(function(hasTsConfig) {
|
6
6
|
hasTsConfig || (console.info("[one] adding default tsconfig.json. to disable set one/vite { config: { tsConfigPaths: false } }"), writeFile("tsconfig.json", `{
|
7
7
|
"compilerOptions": {
|
8
8
|
"baseUrl": ".",
|
@@ -41,5 +41,7 @@ function ensureTSConfig() {
|
|
41
41
|
`));
|
42
42
|
});
|
43
43
|
}
|
44
|
-
export {
|
45
|
-
|
44
|
+
export {
|
45
|
+
ensureTSConfig
|
46
|
+
};
|
47
|
+
//# sourceMappingURL=ensureTsConfig.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/ensureTsConfig.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,iBAAiB;AAC1B,OAAO;AACP,SAASC,mBAAmB;AAErB,SAASC,iBAAAA;AACdD,cAAY,eAAA,EAAiBE,KAAK,SAACC,aAAAA;AACjC,IAAKA,gBACHC,QAAQC,KACN,kGAAkG,GAEpGN,UACE,iBACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCP;EAGC,CAAA;AACF;",
|
5
|
+
"names": ["writeFile", "existsAsync", "ensureTSConfig", "then", "hasTsConfig", "console", "info"]
|
6
|
+
}
|
@@ -4,40 +4,48 @@ import path, { dirname } from "node:path";
|
|
4
4
|
import { createRequire } from "node:module";
|
5
5
|
async function getAllDependencies(root) {
|
6
6
|
var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 20;
|
7
|
-
if (depth === 0)
|
7
|
+
if (depth === 0)
|
8
|
+
return [];
|
8
9
|
var pkgJsonPath = await findClosestPkgJsonPath(root);
|
9
|
-
if (!pkgJsonPath)
|
10
|
+
if (!pkgJsonPath)
|
11
|
+
throw new Error(`Cannot find package.json from ${root}`);
|
10
12
|
return await crawl(pkgJsonPath, depth - 1);
|
11
13
|
}
|
12
14
|
async function crawl(pkgJsonPath) {
|
13
|
-
var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1 / 0,
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies = pkgJson.dependencies ? Object.keys(pkgJson.dependencies) : [];
|
20
|
-
return await Promise.all(dependencies.map(async function (depName) {
|
15
|
+
var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1 / 0, pkgJson = await FSExtra.readJson(pkgJsonPath).catch(function(e) {
|
16
|
+
throw new Error(`Unable to read ${pkgJsonPath}`, {
|
17
|
+
cause: e
|
18
|
+
});
|
19
|
+
}), dependencies = pkgJson.dependencies ? Object.keys(pkgJson.dependencies) : [];
|
20
|
+
return await Promise.all(dependencies.map(async function(depName) {
|
21
21
|
try {
|
22
|
-
var resolved = createRequire(dirname(pkgJsonPath)).resolve(depName),
|
23
|
-
|
24
|
-
|
22
|
+
var resolved = createRequire(dirname(pkgJsonPath)).resolve(depName), subDeps = await getAllDependencies(resolved, depth - 1);
|
23
|
+
subDeps && (dependencies = [
|
24
|
+
...dependencies,
|
25
|
+
...subDeps
|
26
|
+
]);
|
25
27
|
} catch {
|
26
28
|
console.log("Couldn't resolve", depName);
|
27
29
|
}
|
28
|
-
})), [
|
30
|
+
})), [
|
31
|
+
...new Set(dependencies)
|
32
|
+
];
|
29
33
|
}
|
30
34
|
async function findClosestPkgJsonPath(dir, predicate) {
|
31
|
-
for (dir.endsWith("package.json") && (dir = path.dirname(dir)); dir;) {
|
35
|
+
for (dir.endsWith("package.json") && (dir = path.dirname(dir)); dir; ) {
|
32
36
|
var pkg = path.join(dir, "package.json");
|
33
37
|
try {
|
34
38
|
var stat = await fs.stat(pkg);
|
35
|
-
if (stat.isFile() && (!predicate ||
|
36
|
-
|
39
|
+
if (stat.isFile() && (!predicate || await predicate(pkg)))
|
40
|
+
return pkg;
|
41
|
+
} catch {
|
42
|
+
}
|
37
43
|
var nextDir = path.dirname(dir);
|
38
44
|
if (nextDir === dir) break;
|
39
45
|
dir = nextDir;
|
40
46
|
}
|
41
47
|
}
|
42
|
-
export {
|
43
|
-
|
48
|
+
export {
|
49
|
+
getAllDependencies
|
50
|
+
};
|
51
|
+
//# sourceMappingURL=findDepsToOptimize.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version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,IAAIE,SAAS,cAAA,MACfF,MAAM7B,KAAKC,QAAQ4B,GAAAA,IAEdA,OAAK;AACV,QAAMG,MAAMhC,KAAKiC,KAAKJ,KAAK,cAAA;AAC3B,QAAI;AACF,UAAMK,OAAO,MAAMnC,GAAGmC,KAAKF,GAAAA;AAC3B,UAAIE,KAAKC,OAAM,MAAO,CAACL,aAAc,MAAMA,UAAUE,GAAAA;AACnD,eAAOA;IAEX,QAAQ;IAAC;AACT,QAAMI,UAAUpC,KAAKC,QAAQ4B,GAAAA;AAC7B,QAAIO,YAAYP,IAAK;AACrBA,UAAMO;EACR;AAEF;",
|
5
|
+
"names": ["FSExtra", "fs", "path", "dirname", "createRequire", "getAllDependencies", "root", "depth", "pkgJsonPath", "findClosestPkgJsonPath", "Error", "crawl", "Infinity", "pkgJson", "readJson", "catch", "e", "cause", "dependencies", "Object", "keys", "Promise", "all", "map", "depName", "resolved", "resolve", "subDeps", "console", "log", "Set", "dir", "predicate", "endsWith", "pkg", "join", "stat", "isFile", "nextDir"]
|
6
|
+
}
|
@@ -17,9 +17,11 @@ function fixDependenciesPlugin(options) {
|
|
17
17
|
!hasApplied && patches.length && (hasApplied = !0, await applyOptimizePatches(patches, config));
|
18
18
|
},
|
19
19
|
async configResolved(config) {
|
20
|
-
patches.length &&
|
20
|
+
patches.length && await applyDependencyPatches(patches, config);
|
21
21
|
}
|
22
22
|
};
|
23
23
|
}
|
24
|
-
export {
|
25
|
-
|
24
|
+
export {
|
25
|
+
fixDependenciesPlugin
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=fixDependenciesPlugin.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/fixDependenciesPlugin.ts"],
|
4
|
+
"mappings": "AAEA,SAASA,sBAAsBC,8BAA6C;AAG5E,IAAIC,aAAa;AAEV,SAASC,sBAAsBC,SAA6B;AACjE,MAAMC,UAAsB,CAAA;AAC5B,WAAWC,OAAOF,SAAS;AACzB,QAAMG,QAAQH,QAAQE,GAAAA;AACtBD,YAAQG,KAAK;MACXC,QAAQH;MACRI,YACEH,SAAS,OAAOA,SAAU,WACtBA,QACA;QACEI,UAAUJ;MACZ;IACR,CAAA;EACF;AAEA,SAAO;IACLK,MAAM;IAEN,MAAMC,OAAOA,QAAM;AACjB,MAAI,CAACX,cAAcG,QAAQS,WACzBZ,aAAa,IACb,MAAMF,qBAAqBK,SAASQ,MAAAA;IAExC;IAEA,MAAME,eAAeF,QAAM;AACzB,MAAIR,QAAQS,UACV,MAAMb,uBAAuBI,SAASQ,MAAAA;IAE1C;EACF;AACF;",
|
5
|
+
"names": ["applyOptimizePatches", "applyDependencyPatches", "hasApplied", "fixDependenciesPlugin", "options", "patches", "key", "value", "push", "module", "patchFiles", "optimize", "name", "config", "length", "configResolved"]
|
6
|
+
}
|
@@ -1,22 +1,22 @@
|
|
1
1
|
import { join } from "node:path";
|
2
2
|
import { debounce } from "perfect-debounce";
|
3
|
-
import { generateRouteTypes } from "../typed-routes/generateRouteTypes
|
3
|
+
import { generateRouteTypes } from "../typed-routes/generateRouteTypes";
|
4
4
|
function generateTypesForRoutes(options) {
|
5
5
|
return {
|
6
6
|
name: "one-generate-fs-route-types",
|
7
7
|
enforce: "post",
|
8
8
|
apply: "serve",
|
9
9
|
configureServer(server) {
|
10
|
-
var appDir = join(process.cwd(), "app"),
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}, 100);
|
15
|
-
return server.watcher.addListener("all", fileWatcherChangeListener), function () {
|
10
|
+
var appDir = join(process.cwd(), "app"), outFile = join(process.cwd(), "routes.d.ts"), fileWatcherChangeListener = debounce(async function(type, path) {
|
11
|
+
(type === "add" || type === "delete") && path.startsWith(appDir) && generateRouteTypes(outFile);
|
12
|
+
}, 100);
|
13
|
+
return server.watcher.addListener("all", fileWatcherChangeListener), function() {
|
16
14
|
generateRouteTypes(outFile);
|
17
15
|
};
|
18
16
|
}
|
19
17
|
};
|
20
18
|
}
|
21
|
-
export {
|
22
|
-
|
19
|
+
export {
|
20
|
+
generateTypesForRoutes
|
21
|
+
};
|
22
|
+
//# sourceMappingURL=generateTypesForRoutes.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/generateTypesForRoutes.tsx"],
|
4
|
+
"mappings": "AAAA,SAASA,YAAY;AACrB,SAASC,gBAAgB;AAGzB,SAASC,0BAA0B;AAE5B,SAASC,uBAAuBC,SAA0B;AAC/D,SAAO;IACLC,MAAM;IACNC,SAAS;IACTC,OAAO;IAEPC,gBAAgBC,QAAM;AACpB,UAAMC,SAASV,KAAKW,QAAQC,IAAG,GAAI,KAAA,GAC7BC,UAAUb,KAAKW,QAAQC,IAAG,GAAI,aAAA,GAG9BE,4BAA4Bb,SAAS,eAAOc,MAAcC,MAAAA;AAC9D,SAAID,SAAS,SAASA,SAAS,aACzBC,KAAKC,WAAWP,MAAAA,KAElBR,mBAAmBW,OAAAA;MAGzB,GAAG,GAAA;AAEHJ,oBAAOS,QAAQC,YAAY,OAAOL,yBAAAA,GAE3B,WAAA;AAGLZ,2BAAmBW,OAAAA;MACrB;IACF;EACF;AACF;",
|
5
|
+
"names": ["join", "debounce", "generateRouteTypes", "generateTypesForRoutes", "options", "name", "enforce", "apply", "configureServer", "server", "appDir", "process", "cwd", "outFile", "fileWatcherChangeListener", "type", "path", "startsWith", "watcher", "addListener"]
|
6
|
+
}
|
@@ -1,10 +1,12 @@
|
|
1
|
-
import { createRoutesManifest } from "../server/createRoutesManifest
|
2
|
-
import { globDir } from "../utils/globDir
|
1
|
+
import { createRoutesManifest } from "../server/createRoutesManifest";
|
2
|
+
import { globDir } from "../utils/globDir";
|
3
3
|
function getManifest() {
|
4
4
|
var routePaths = globDir("app");
|
5
5
|
return createRoutesManifest(routePaths, {
|
6
6
|
platform: "web"
|
7
7
|
});
|
8
8
|
}
|
9
|
-
export {
|
10
|
-
|
9
|
+
export {
|
10
|
+
getManifest
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=getManifest.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/getManifest.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,4BAA4B;AACrC,SAASC,eAAe;AAEjB,SAASC,cAAAA;AACd,MAAMC,aAAaF,QAAQ,KAAA;AAC3B,SAAOD,qBAAqBG,YAAY;IACtCC,UAAU;EACZ,CAAA;AACF;",
|
5
|
+
"names": ["createRoutesManifest", "globDir", "getManifest", "routePaths", "platform"]
|
6
|
+
}
|
@@ -1,6 +1,12 @@
|
|
1
|
-
var requestAsyncLocalStore = null,
|
2
|
-
|
3
|
-
|
4
|
-
function mergeHeaders(onto, from) {
|
5
|
-
|
1
|
+
var requestAsyncLocalStore = null, asyncHeadersCache = /* @__PURE__ */ new WeakMap();
|
2
|
+
async function setCurrentRequestHeaders(cb) {
|
3
|
+
}
|
4
|
+
function mergeHeaders(onto, from) {
|
5
|
+
}
|
6
|
+
export {
|
7
|
+
asyncHeadersCache,
|
8
|
+
mergeHeaders,
|
9
|
+
requestAsyncLocalStore,
|
10
|
+
setCurrentRequestHeaders
|
11
|
+
};
|
6
12
|
//# sourceMappingURL=headers.native.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/headers.native.ts"],
|
4
|
+
"mappings": "AAAO,IAAMA,yBAAyB,MAEzBC,oBAAoB,oBAAIC,QAAAA;AAIrC,eAAsBC,yBAAyBC,IAA8B;AAAG;AAEzE,SAASC,aAAaC,MAAeC,MAAa;AAAG;",
|
5
|
+
"names": ["requestAsyncLocalStore", "asyncHeadersCache", "WeakMap", "setCurrentRequestHeaders", "cb", "mergeHeaders", "onto", "from"]
|
6
|
+
}
|
@@ -3,13 +3,14 @@ import path from "node:path";
|
|
3
3
|
async function loadEnv(root) {
|
4
4
|
var envPath = path.join(root, ".env");
|
5
5
|
if (fs.existsSync(envPath)) {
|
6
|
-
var dotenv = await import("dotenv"),
|
7
|
-
|
8
|
-
|
9
|
-
});
|
6
|
+
var dotenv = await import("dotenv"), result = dotenv.config({
|
7
|
+
path: envPath
|
8
|
+
});
|
10
9
|
if (result.error) throw result.error;
|
11
10
|
return !0;
|
12
11
|
}
|
13
12
|
}
|
14
|
-
export {
|
15
|
-
|
13
|
+
export {
|
14
|
+
loadEnv
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=loadEnv.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/loadEnv.ts"],
|
4
|
+
"mappings": "AAAA,OAAOA,QAAQ;AACf,OAAOC,UAAU;AAEjB,eAAsBC,QAAQC,MAAY;AACxC,MAAMC,UAAUH,KAAKI,KAAKF,MAAM,MAAA;AAChC,MAAKH,GAAGM,WAAWF,OAAAA,GACnB;QAAMG,SAAS,MAAM,OAAO,QAAA,GACtBC,SAASD,OAAOE,OAAO;MAAER,MAAMG;IAAQ,CAAA;AAC7C,QAAII,OAAOE,MAAO,OAAMF,OAAOE;AAC/B,WAAO;;AACT;",
|
5
|
+
"names": ["fs", "path", "loadEnv", "root", "envPath", "join", "existsSync", "dotenv", "result", "config", "error"]
|
6
|
+
}
|
@@ -1,9 +1,13 @@
|
|
1
1
|
function makePluginWebOnly(plugin) {
|
2
2
|
var og = plugin.transform;
|
3
|
-
return og && (plugin.transform = function
|
4
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
5
|
-
|
3
|
+
return og && (plugin.transform = function() {
|
4
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
5
|
+
args[_key] = arguments[_key];
|
6
|
+
if (this.environment.name === "client")
|
7
|
+
return og.call(this, ...args);
|
6
8
|
}), plugin;
|
7
9
|
}
|
8
|
-
export {
|
9
|
-
|
10
|
+
export {
|
11
|
+
makePluginWebOnly
|
12
|
+
};
|
13
|
+
//# sourceMappingURL=makePluginWebOnly.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/makePluginWebOnly.ts"],
|
4
|
+
"mappings": "AAEO,SAASA,kBAAkBC,QAAc;AAC9C,MAAMC,KAAKD,OAAOE;AAElB,SAAID,OACFD,OAAOE,YAAY,WAAA;AAAgB,aAAA,OAAA,UAAA,QAAGC,OAAH,IAAA,MAAA,IAAA,GAAA,OAAA,GAAA,OAAA,MAAA;AAAGA,WAAH,IAAA,IAAA,UAAA,IAAA;AACjC,QAAI,KAAKC,YAAYC,SAAS;AAG9B,aAAOJ,GAAGK,KAAK,MAAI,GAAKH,IAAAA;EAC1B,IAGKH;AACT;",
|
5
|
+
"names": ["makePluginWebOnly", "plugin", "og", "transform", "args", "environment", "name", "call"]
|
6
|
+
}
|