one 1.1.310 → 1.1.312
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Root.cjs +2 -1
- package/dist/cjs/Root.cjs.map +1 -1
- package/dist/cjs/Root.native.js +2 -2
- package/dist/cjs/Root.native.js.map +2 -2
- package/dist/cjs/cleanUrl.cjs +3 -8
- package/dist/cjs/cleanUrl.cjs.map +2 -2
- package/dist/cjs/cleanUrl.native.js +5 -8
- package/dist/cjs/cleanUrl.native.js.map +2 -2
- package/dist/cjs/cli.cjs +0 -2
- package/dist/cjs/cli.cjs.map +1 -1
- package/dist/cjs/cli.native.js +1 -2
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/config.cjs +1 -1
- package/dist/cjs/config.native.js +1 -1
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/constants.cjs +9 -1
- package/dist/cjs/constants.cjs.map +1 -1
- package/dist/cjs/constants.native.js +9 -1
- package/dist/cjs/constants.native.js.map +2 -2
- package/dist/cjs/createApp.native.cjs +1 -1
- package/dist/cjs/createApp.native.js +1 -1
- package/dist/cjs/createApp.native.js.map +1 -1
- package/dist/cjs/createHandleRequest.cjs +3 -1
- package/dist/cjs/createHandleRequest.cjs.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +3 -2
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- package/dist/cjs/getURL.cjs +1 -1
- package/dist/cjs/matchers.cjs +1 -1
- package/dist/cjs/matchers.cjs.map +1 -1
- package/dist/cjs/matchers.native.js +1 -1
- package/dist/cjs/matchers.native.js.map +1 -1
- package/dist/cjs/serve.cjs +3 -3
- package/dist/cjs/serve.cjs.map +1 -1
- package/dist/cjs/serve.native.js +2 -2
- package/dist/cjs/serve.native.js.map +2 -2
- package/dist/cjs/useLoader.cjs +1 -1
- package/dist/cjs/useLoader.native.js +1 -1
- package/dist/cjs/vite/build.cjs +2 -2
- package/dist/cjs/vite/build.cjs.map +1 -1
- package/dist/cjs/vite/build.native.js +1 -1
- package/dist/cjs/vite/build.native.js.map +1 -1
- package/dist/cjs/vite/clientTreeShakePlugin.cjs +1 -1
- package/dist/cjs/vite/clientTreeShakePlugin.native.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.cjs +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
- package/dist/cjs/vite/one.cjs +43 -14
- package/dist/cjs/vite/one.cjs.map +1 -1
- package/dist/cjs/vite/one.native.js +39 -12
- package/dist/cjs/vite/one.native.js.map +2 -2
- package/dist/cjs/vite/virtualEntryPlugin.cjs +5 -5
- package/dist/cjs/vite/virtualEntryPlugin.native.js +5 -5
- package/dist/cjs/vite/virtualEntryPlugin.native.js.map +1 -1
- package/dist/cjs/vite/vitePluginSsrCss.cjs +1 -1
- package/dist/cjs/vite/vitePluginSsrCss.native.js +1 -1
- package/dist/esm/Root.js +2 -1
- package/dist/esm/Root.js.map +1 -1
- package/dist/esm/Root.mjs +2 -1
- package/dist/esm/Root.mjs.map +1 -1
- package/dist/esm/Root.native.js +2 -1
- package/dist/esm/Root.native.js.map +2 -2
- package/dist/esm/cleanUrl.js +10 -9
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +4 -9
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +5 -9
- package/dist/esm/cleanUrl.native.js.map +2 -2
- package/dist/esm/cli.js +0 -2
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +0 -2
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +0 -2
- package/dist/esm/cli.native.js.map +2 -2
- package/dist/esm/config.js +1 -1
- package/dist/esm/config.mjs +1 -1
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/config.native.js +1 -1
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/constants.js +5 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/constants.mjs +6 -2
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +5 -1
- package/dist/esm/constants.native.js.map +2 -2
- package/dist/esm/createApp.native.js +1 -1
- package/dist/esm/createApp.native.js.map +1 -1
- package/dist/esm/createHandleRequest.js +3 -1
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +3 -1
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +3 -1
- package/dist/esm/createHandleRequest.native.js.map +2 -2
- package/dist/esm/getURL.js +1 -1
- package/dist/esm/getURL.mjs +1 -1
- package/dist/esm/matchers.js +1 -1
- package/dist/esm/matchers.js.map +1 -1
- package/dist/esm/matchers.mjs +1 -1
- package/dist/esm/matchers.mjs.map +1 -1
- package/dist/esm/matchers.native.js +1 -1
- package/dist/esm/matchers.native.js.map +1 -1
- package/dist/esm/serve.js +4 -4
- package/dist/esm/serve.js.map +1 -1
- package/dist/esm/serve.mjs +4 -4
- package/dist/esm/serve.mjs.map +1 -1
- package/dist/esm/serve.native.js +4 -4
- package/dist/esm/serve.native.js.map +2 -2
- package/dist/esm/useLoader.js +1 -1
- package/dist/esm/useLoader.mjs +1 -1
- package/dist/esm/useLoader.native.js +1 -1
- package/dist/esm/vite/build.js +1 -1
- package/dist/esm/vite/build.js.map +1 -1
- package/dist/esm/vite/build.mjs +1 -1
- package/dist/esm/vite/build.mjs.map +1 -1
- package/dist/esm/vite/build.native.js +1 -1
- package/dist/esm/vite/build.native.js.map +2 -2
- package/dist/esm/vite/clientTreeShakePlugin.js +1 -1
- package/dist/esm/vite/clientTreeShakePlugin.mjs +1 -1
- package/dist/esm/vite/clientTreeShakePlugin.native.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +1 -1
- package/dist/esm/vite/one.js +43 -14
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs +43 -14
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +41 -14
- package/dist/esm/vite/one.native.js.map +2 -2
- package/dist/esm/vite/virtualEntryPlugin.js +5 -5
- package/dist/esm/vite/virtualEntryPlugin.mjs +5 -5
- package/dist/esm/vite/virtualEntryPlugin.mjs.map +1 -1
- package/dist/esm/vite/virtualEntryPlugin.native.js +5 -5
- package/dist/esm/vite/virtualEntryPlugin.native.js.map +1 -1
- package/dist/esm/vite/vitePluginSsrCss.js +1 -1
- package/dist/esm/vite/vitePluginSsrCss.mjs +1 -1
- package/dist/esm/vite/vitePluginSsrCss.native.js +1 -1
- package/package.json +8 -8
- package/src/Root.tsx +2 -1
- package/src/cleanUrl.ts +10 -14
- package/src/cli.ts +0 -3
- package/src/config.ts +1 -1
- package/src/constants.ts +6 -0
- package/src/createApp.native.tsx +2 -2
- package/src/createHandleRequest.ts +7 -1
- package/src/getURL.ts +1 -1
- package/src/matchers.ts +1 -1
- package/src/serve.ts +5 -3
- package/src/useLoader.ts +1 -1
- package/src/vite/build.ts +2 -1
- package/src/vite/clientTreeShakePlugin.ts +1 -1
- package/src/vite/createFileSystemRouter.tsx +1 -1
- package/src/vite/one.ts +44 -11
- package/src/vite/virtualEntryPlugin.ts +5 -5
- package/src/vite/vitePluginSsrCss.ts +1 -1
- package/types/Root.d.ts.map +1 -1
- package/types/cleanUrl.d.ts.map +1 -1
- package/types/constants.d.ts +4 -0
- package/types/constants.d.ts.map +1 -1
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/serve.d.ts.map +1 -1
- package/types/vite/build.d.ts.map +1 -1
- package/types/vite/one.d.ts.map +1 -1
- package/dist/cjs/router/constants.cjs +0 -26
- package/dist/cjs/router/constants.cjs.map +0 -6
- package/dist/cjs/router/constants.native.js +0 -26
- package/dist/cjs/router/constants.native.js.map +0 -6
- package/dist/cjs/vite/loadEnv.cjs +0 -47
- package/dist/cjs/vite/loadEnv.cjs.map +0 -6
- package/dist/cjs/vite/loadEnv.native.js +0 -44
- package/dist/cjs/vite/loadEnv.native.js.map +0 -6
- package/dist/esm/router/constants.js +0 -5
- package/dist/esm/router/constants.js.map +0 -6
- package/dist/esm/router/constants.mjs +0 -3
- package/dist/esm/router/constants.mjs.map +0 -1
- package/dist/esm/router/constants.native.js +0 -5
- package/dist/esm/router/constants.native.js.map +0 -6
- package/dist/esm/vite/loadEnv.js +0 -13
- package/dist/esm/vite/loadEnv.js.map +0 -6
- package/dist/esm/vite/loadEnv.mjs +0 -13
- package/dist/esm/vite/loadEnv.mjs.map +0 -1
- package/dist/esm/vite/loadEnv.native.js +0 -16
- package/dist/esm/vite/loadEnv.native.js.map +0 -6
- package/src/router/constants.ts +0 -4
- package/src/vite/loadEnv.ts +0 -11
- package/types/router/constants.d.ts +0 -2
- package/types/router/constants.d.ts.map +0 -1
- package/types/vite/loadEnv.d.ts +0 -2
- package/types/vite/loadEnv.d.ts.map +0 -1
package/dist/cjs/Root.cjs
CHANGED
@@ -46,6 +46,7 @@ var import_react = require("react"),
|
|
46
46
|
import_PreloadLinks = require("./views/PreloadLinks.cjs"),
|
47
47
|
import_ScrollRestoration = require("./views/ScrollRestoration.cjs"),
|
48
48
|
import_rand = require("./utils/rand.cjs"),
|
49
|
+
import_getURL = require("./getURL.cjs"),
|
49
50
|
import_jsx_runtime =
|
50
51
|
// <StrictMode>
|
51
52
|
require("react/jsx-runtime");
|
@@ -136,7 +137,7 @@ function Contents({
|
|
136
137
|
...props
|
137
138
|
}) {
|
138
139
|
const context = (0, import_useViteRoutes.useViteRoutes)(routes, routeOptions, globalThis.__vxrnVersion),
|
139
|
-
location = typeof window < "u" && window.location ? new URL(path || window.location.href || "/", window.location.href) : new URL(path || "/",
|
140
|
+
location = typeof window < "u" && window.location ? new URL(path || window.location.href || "/", window.location.href) : new URL(path || "/", (0, import_getURL.getURL)());
|
140
141
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ContextNavigator, {
|
141
142
|
...props,
|
142
143
|
location,
|
package/dist/cjs/Root.cjs.map
CHANGED
@@ -1,6 +1,6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,IACF,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,iBAAW;AAAA;AAAA;AACX;AAAA,IACF,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,iBAAW;AAAA;AAAA;AACX;AAAA,EACJ;AAIA,MAFA,WAAW;AAAA;AAAA,uEAEP,QAAQ,IAAI,aAAa;AAC3B,UAAM,IAAI,MAAM,OAAO;AAEzB,UAAQ,MAAM,OAAO;AACvB,IAEA,oBAAoB,MAAM;AAAC;",
|
5
5
|
"names": ["UpstreamNavigationContainer"]
|
6
6
|
}
|
package/dist/cjs/Root.native.js
CHANGED
@@ -26,7 +26,7 @@ __export(Root_exports, {
|
|
26
26
|
Root: () => Root
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(Root_exports);
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_react = require("react"), import_useViteRoutes = require("./useViteRoutes"), import_RootErrorBoundary = require("./views/RootErrorBoundary"), import_native = require("@react-navigation/native"), import_elements = require("@react-navigation/elements"), import_universal_color_scheme = require("@vxrn/universal-color-scheme"), import_NavigationContainer = __toESM(require("./fork/NavigationContainer"), 1), import_serverLocationContext = require("./router/serverLocationContext"), import_useInitializeOneRouter = require("./router/useInitializeOneRouter"), import_PreloadLinks = require("./views/PreloadLinks"), import_ScrollRestoration = require("./views/ScrollRestoration"), import_rand = require("./utils/rand");
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_react = require("react"), import_useViteRoutes = require("./useViteRoutes"), import_RootErrorBoundary = require("./views/RootErrorBoundary"), import_native = require("@react-navigation/native"), import_elements = require("@react-navigation/elements"), import_universal_color_scheme = require("@vxrn/universal-color-scheme"), import_NavigationContainer = __toESM(require("./fork/NavigationContainer"), 1), import_serverLocationContext = require("./router/serverLocationContext"), import_useInitializeOneRouter = require("./router/useInitializeOneRouter"), import_PreloadLinks = require("./views/PreloadLinks"), import_ScrollRestoration = require("./views/ScrollRestoration"), import_rand = require("./utils/rand"), import_getURL = require("./getURL");
|
30
30
|
typeof window < "u" && (window.__getReactRefreshIgnoredExports = function() {
|
31
31
|
return [
|
32
32
|
"feedCardQuery",
|
@@ -135,7 +135,7 @@ window.$RefreshSig$ = () => (type) => type;`
|
|
135
135
|
});
|
136
136
|
}
|
137
137
|
function Contents(param) {
|
138
|
-
var { routes, path, wrapper = import_react.Fragment, routeOptions, ...props } = param, context = (0, import_useViteRoutes.useViteRoutes)(routes, routeOptions, globalThis.__vxrnVersion), location = typeof window < "u" && window.location ? new URL(path || window.location.href || "/", window.location.href) : new URL(path || "/",
|
138
|
+
var { routes, path, wrapper = import_react.Fragment, routeOptions, ...props } = param, context = (0, import_useViteRoutes.useViteRoutes)(routes, routeOptions, globalThis.__vxrnVersion), location = typeof window < "u" && window.location ? new URL(path || window.location.href || "/", window.location.href) : new URL(path || "/", (0, import_getURL.getURL)());
|
139
139
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextNavigator, {
|
140
140
|
...props,
|
141
141
|
location,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/Root.tsx"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAsF,kBAEtF,uBAA8B,4BAC9B,2BAAkC,sCAElC,gBAKO,qCACP,kBAAuC,uCACvC,gCAA+B,yCAC/B,6BAAwC,mDACxC,+BAAsC,2CACtC,gCAAuC,4CACvC,sBAA6B,iCAC7B,2BAAkC,sCAElC,cAAqB;
|
5
|
-
"names": ["window", "__getReactRefreshIgnoredExports", "Root", "props", "loaderData", "contents", "_jsxs", "RootErrorBoundary", "_jsx", "Contents", "PreloadLinks", "isClient", "globalThis", "show", "setShow", "useState", "useEffect", "constructor", "name", "undefined", "html", "lang", "head", "process", "env", "NODE_ENV", "DevHead", "script", "dangerouslySetInnerHTML", "__html", "css", "map", "file", "link", "rel", "href", "body", "async", "JSON", "stringify", "loaderProps", "mode", "ssrCSSID", "rand", "_Fragment", "as", "data-ssr-css", "type", "routes", "path", "wrapper", "Fragment", "routeOptions", "context", "useViteRoutes", "location", "URL", "ContextNavigator", "ParentWrapper", "initialLocation", "navigationContainerProps", "store", "useInitializeOneRouter", "colorScheme", "useColorScheme", "children", "ScrollRestoration", "SafeAreaProviderCompat", "Component", "rootComponent", "Error", "UpstreamNavigationContainer", "ref", "navigationRef", "initialState", "linking", "onUnhandledAction", "theme", "DarkTheme", "DefaultTheme", "documentTitle", "enabled", "ServerLocationContext", "Provider", "value", "action", "payload", "message", "console", "error"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAsF,kBAEtF,uBAA8B,4BAC9B,2BAAkC,sCAElC,gBAKO,qCACP,kBAAuC,uCACvC,gCAA+B,yCAC/B,6BAAwC,mDACxC,+BAAsC,2CACtC,gCAAuC,4CACvC,sBAA6B,iCAC7B,2BAAkC,sCAElC,cAAqB,yBACrB,gBAAuB;AAGnB,OAAOA,SAAW,QAEpBA,OAAOC,kCAAkC,WAAA;SAAM;IAAC;IAAiB;IAAsB;;;AA8BlF,SAASC,KAAKC,OAAgB;MA+B/BC,yBAeGD,YA3CDE;;IAEJ,uCAAAC,MAACC,4CAAAA;;;QAEC,uCAAAC,KAACC,UAAAA;UAAyB,GAAGN;WAAf,UAAA;QACd,uCAAAK,KAACE,kCAAAA,CAAAA,GAAiB,eAAA;;;;AAKtB,MAAIP,MAAMQ,UAAU;AAClB,QAAIC,WAAW,wBAA2B,OAAO;AAE/C,UAAM,CAACC,MAAMC,OAAAA,QAAWC,uBAAS,EAAA;AAGjCC,yCAAU,WAAA;AACRF,gBAAQ,EAAA;MACV,GAAG,CAAA,CAAE,GAEED,OAAOR,WAAW;IAC3B;AACA,WAAOA;EACT;AAEA,MAAI,EAAED,WAAU,IAAKD;AAGrB,UAAIC,cAAAA,SAAAA,0BAAAA,WAAYa,iBAAW,QAAvBb,4BAAAA,SAAAA,SAA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AO,CAAA,KAAM,EAAA;AAGhE,UAAQD,OAAOvC,MAAI;IACjB,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AACH,MAAIwC,WAAAA,QAAAA,QAASrE,OACXsE,WAAW;;6BAAkCD,QAAQrE,IAAI,OAEzDsE,WAAW;;;AAGb;IACF,KAAK;IACL,KAAK;IACL,KAAK;AACHA,iBAAW;;;AACX;IACF,KAAK;IACL,KAAK;IACL,KAAK;AACHA,iBAAW;;;AACX;EACJ;AAIA,MAFAA,WAAW;;uEAEPjE,QAAQC,IAAIC,aAAa;AAC3B,UAAM,IAAI8C,MAAMiB,OAAAA;AAElBC,UAAQC,MAAMF,OAAAA;AAChB,IAEAX,oBAAoB,WAAA;AAAO;",
|
5
|
+
"names": ["window", "__getReactRefreshIgnoredExports", "Root", "props", "loaderData", "contents", "_jsxs", "RootErrorBoundary", "_jsx", "Contents", "PreloadLinks", "isClient", "globalThis", "show", "setShow", "useState", "useEffect", "constructor", "name", "undefined", "html", "lang", "head", "process", "env", "NODE_ENV", "DevHead", "script", "dangerouslySetInnerHTML", "__html", "css", "map", "file", "link", "rel", "href", "body", "async", "JSON", "stringify", "loaderProps", "mode", "ssrCSSID", "rand", "_Fragment", "as", "data-ssr-css", "type", "routes", "path", "wrapper", "Fragment", "routeOptions", "context", "useViteRoutes", "location", "URL", "getURL", "ContextNavigator", "ParentWrapper", "initialLocation", "navigationContainerProps", "store", "useInitializeOneRouter", "colorScheme", "useColorScheme", "children", "ScrollRestoration", "SafeAreaProviderCompat", "Component", "rootComponent", "Error", "UpstreamNavigationContainer", "ref", "navigationRef", "initialState", "linking", "onUnhandledAction", "theme", "DarkTheme", "DefaultTheme", "documentTitle", "enabled", "ServerLocationContext", "Provider", "value", "action", "payload", "message", "console", "error"]
|
6
6
|
}
|
package/dist/cjs/cleanUrl.cjs
CHANGED
@@ -27,27 +27,22 @@ __export(cleanUrl_exports, {
|
|
27
27
|
module.exports = __toCommonJS(cleanUrl_exports);
|
28
28
|
var import_constants = require("./constants.cjs"),
|
29
29
|
import_getURL = require("./getURL.cjs"),
|
30
|
-
import_constants2 = require("./router/constants.cjs"),
|
31
30
|
import_removeSearch = require("./utils/removeSearch.cjs");
|
32
31
|
function cleanUrl(path) {
|
33
32
|
return (0, import_removeSearch.removeSearch)(path).replaceAll("/", "_").replace(/_$/, "");
|
34
33
|
}
|
35
34
|
const isClient = typeof window < "u",
|
36
|
-
clientSideSearch = isClient ? `?cache=${import_constants2.CACHE_KEY}` : "",
|
37
35
|
clientSideURL = isClient ? (0, import_getURL.getURL)() : "";
|
38
36
|
function getPreloadPath(currentPath) {
|
39
|
-
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}
|
37
|
+
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}${import_constants.PRELOAD_JS_POSTFIX}`;
|
40
38
|
}
|
41
39
|
function getLoaderPath(currentPath, includeUrl = import_constants.isNative) {
|
42
40
|
const baseURL = includeUrl ? (0, import_getURL.getURL)() : "",
|
43
41
|
devPath = process.env.NODE_ENV === "development" ? "/_one" : "",
|
44
42
|
currentPathUrl = new URL(currentPath, "http://example.com"
|
45
43
|
/* not important, just for `new URL()` to work */);
|
46
|
-
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}
|
44
|
+
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${import_constants.LOADER_JS_POSTFIX}`;
|
47
45
|
}
|
48
46
|
function getPathFromLoaderPath(loaderPath) {
|
49
|
-
return loaderPath.replace(
|
50
|
-
}
|
51
|
-
function getSearchParams(searchParams) {
|
52
|
-
return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
|
47
|
+
return loaderPath.replace(import_constants.LOADER_JS_POSTFIX_UNCACHED, "").replace(/_\d+/, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
53
48
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/cleanUrl.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
5
|
-
"names": [
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAKO,wBACP,gBAAuB,qBACvB,sBAA6B;AAE7B,SAAS,SAAS,MAAc;AAC9B,aACE,kCAAa,IAAI,EACd,WAAW,KAAK,GAAG,EAEnB,QAAQ,MAAM,EAAE;AAEvB;AAEA,MAAM,WAAW,OAAO,SAAW,KAC7B,gBAAgB,eAAW,sBAAO,IAAI;AAErC,SAAS,eAAe,aAAqB;AAClD,SAAO,GAAG,aAAa,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,GAAG,mCAAkB;AACvF;AAEO,SAAS,cACd,aAEA,aAAa,2BACb;AACA,QAAM,UAAU,iBAAa,sBAAO,IAAI,IAClC,UAAU,QAAQ,IAAI,aAAa,gBAAgB,UAAU,IAE7D,iBAAiB,IAAI;AAAA,IACzB;AAAA,IACA;AAAA;AAAA,EACF;AAEA,SAAO,GAAG,OAAO,GAAG,OAAO,WAAW,SAAS,eAAe,SAAS,MAAM,CAAC,CAAC,CAAC,GAAG,kCAAiB;AACtG;AAEO,SAAS,sBAAsB,YAAoB;AACxD,SAAO,WACJ,QAAQ,6CAA4B,EAAE,EACtC,QAAQ,QAAQ,EAAE,EAClB,QAAQ,sBAAsB,EAAE,EAChC,WAAW,MAAM,GAAG;AACzB;",
|
5
|
+
"names": []
|
6
6
|
}
|
@@ -20,23 +20,20 @@ __export(cleanUrl_exports, {
|
|
20
20
|
getPreloadPath: () => getPreloadPath
|
21
21
|
});
|
22
22
|
module.exports = __toCommonJS(cleanUrl_exports);
|
23
|
-
var import_constants = require("./constants"), import_getURL = require("./getURL"),
|
23
|
+
var import_constants = require("./constants"), import_getURL = require("./getURL"), import_removeSearch = require("./utils/removeSearch");
|
24
24
|
function cleanUrl(path) {
|
25
25
|
return (0, import_removeSearch.removeSearch)(path).replaceAll("/", "_").replace(/_$/, "");
|
26
26
|
}
|
27
|
-
var isClient = typeof window < "u",
|
27
|
+
var isClient = typeof window < "u", clientSideURL = isClient ? (0, import_getURL.getURL)() : "";
|
28
28
|
function getPreloadPath(currentPath) {
|
29
|
-
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}
|
29
|
+
return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}${import_constants.PRELOAD_JS_POSTFIX}`;
|
30
30
|
}
|
31
31
|
function getLoaderPath(currentPath) {
|
32
32
|
var includeUrl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : import_constants.isNative, baseURL = includeUrl ? (0, import_getURL.getURL)() : "", devPath = process.env.NODE_ENV === "development" ? "/_one" : "", currentPathUrl = new URL(currentPath, "http://example.com");
|
33
|
-
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}
|
33
|
+
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${import_constants.LOADER_JS_POSTFIX}`;
|
34
34
|
}
|
35
35
|
function getPathFromLoaderPath(loaderPath) {
|
36
|
-
return loaderPath.replace(
|
37
|
-
}
|
38
|
-
function getSearchParams(searchParams) {
|
39
|
-
return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
|
36
|
+
return loaderPath.replace(import_constants.LOADER_JS_POSTFIX_UNCACHED, "").replace(/_\d+/, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
40
37
|
}
|
41
38
|
// Annotate the CommonJS export names for ESM import in node:
|
42
39
|
0 && (module.exports = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/cleanUrl.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;
|
5
|
-
"names": ["
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;uBAKO,wBACP,gBAAuB,qBACvB,sBAA6B;AAE7B,SAASA,SAASC,MAAY;AAC5B,aACEC,kCAAaD,IAAAA,EACVE,WAAW,KAAK,GAAA,EAEhBC,QAAQ,MAAM,EAAA;AAErB;AAEA,IAAMC,WAAW,OAAOC,SAAW,KAC7BC,gBAAgBF,eAAWG,sBAAAA,IAAW;AAErC,SAASC,eAAeC,aAAmB;AAChD,SAAO,GAAGH,aAAAA,WAAwBP,SAASU,YAAYC,MAAM,CAAA,CAAA,CAAA,GAAMC,mCAAAA;AACrE;AAEO,SAASC,cACdH,aAAmB;MAEnBI,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAaC,2BAEPC,UAAUF,iBAAaN,sBAAAA,IAAW,IAClCS,UAAUC,QAAQC,IAAIC,aAAa,gBAAgB,UAAU,IAE7DC,iBAAiB,IAAIC,IACzBZ,aACA,oBAAA;AAGF,SAAO,GAAGM,OAAAA,GAAUC,OAAAA,WAAkBjB,SAASqB,eAAeE,SAASZ,MAAM,CAAA,CAAA,CAAA,GAAMa,kCAAAA;AACrF;AAEO,SAASC,sBAAsBC,YAAkB;AACtD,SAAOA,WACJtB,QAAQuB,6CAA4B,EAAA,EACpCvB,QAAQ,QAAQ,EAAA,EAChBA,QAAQ,sBAAsB,EAAA,EAC9BD,WAAW,MAAM,GAAA;AACtB;",
|
5
|
+
"names": ["cleanUrl", "path", "removeSearch", "replaceAll", "replace", "isClient", "window", "clientSideURL", "getURL", "getPreloadPath", "currentPath", "slice", "PRELOAD_JS_POSTFIX", "getLoaderPath", "includeUrl", "isNative", "baseURL", "devPath", "process", "env", "NODE_ENV", "currentPathUrl", "URL", "pathname", "LOADER_JS_POSTFIX", "getPathFromLoaderPath", "loaderPath", "LOADER_JS_POSTFIX_UNCACHED"]
|
6
6
|
}
|
package/dist/cjs/cli.cjs
CHANGED
@@ -22,7 +22,6 @@ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
22
|
}) : target, mod));
|
23
23
|
var import_citty = require("citty"),
|
24
24
|
import_picocolors = __toESM(require("picocolors"), 1),
|
25
|
-
import_loadEnv = require("./vite/loadEnv.cjs"),
|
26
25
|
import_node_fs = require("node:fs"),
|
27
26
|
import_node_path = __toESM(require("node:path"), 1),
|
28
27
|
import_node_url = require("node:url");
|
@@ -34,7 +33,6 @@ function getPackageVersion() {
|
|
34
33
|
return JSON.parse((0, import_node_fs.readFileSync)(packagePath, "utf-8")).version;
|
35
34
|
}
|
36
35
|
const version = getPackageVersion();
|
37
|
-
(0, import_loadEnv.loadEnv)(process.cwd());
|
38
36
|
import_node_path.default.sep !== "/" && console.warn(import_picocolors.default.bgYellow("WARNING: UNSUPPORTED OS") + import_picocolors.default.yellow(" - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."));
|
39
37
|
const modes = {
|
40
38
|
development: "development",
|
package/dist/cjs/cli.cjs.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/cli.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,oBAAmB,mCACnB,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,oBAAmB,mCACnB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;AAJ9B;AAMA,SAAS,oBAAoB;AAC3B,MAAI;AACJ,EAAI,OAAO,YAAc,MAEvB,UAAU,YAGV,UAAU,iBAAAA,QAAK,YAAQ,+BAAc,YAAY,GAAG,CAAC;AAEvD,QAAM,cAAc,iBAAAA,QAAK,KAAK,SAAS,MAAM,MAAM,cAAc;AAEjE,SADoB,KAAK,UAAM,6BAAa,aAAa,OAAO,CAAC,EAC9C;AACrB;AAEA,MAAM,UAAU,kBAAkB;AAE9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native.js
CHANGED
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
18
18
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
19
19
|
mod
|
20
20
|
));
|
21
|
-
var import_citty = require("citty"), import_picocolors = __toESM(require("picocolors"), 1),
|
21
|
+
var import_citty = require("citty"), import_picocolors = __toESM(require("picocolors"), 1), import_node_fs = require("node:fs"), import_node_path = __toESM(require("node:path"), 1), import_node_url = require("node:url");
|
22
22
|
const import_meta = {};
|
23
23
|
function getPackageVersion() {
|
24
24
|
var dirname;
|
@@ -27,7 +27,6 @@ function getPackageVersion() {
|
|
27
27
|
return packageJson.version;
|
28
28
|
}
|
29
29
|
var version = getPackageVersion();
|
30
|
-
(0, import_loadEnv.loadEnv)(process.cwd());
|
31
30
|
import_node_path.default.sep !== "/" && console.warn(import_picocolors.default.bgYellow("WARNING: UNSUPPORTED OS") + import_picocolors.default.yellow(" - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."));
|
32
31
|
var modes = {
|
33
32
|
development: "development",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/cli.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,oBAAmB,mCACnB,
|
5
|
-
"names": ["getPackageVersion", "dirname", "__dirname", "path", "fileURLToPath", "url", "packagePath", "join", "packageJson", "JSON", "parse", "readFileSync", "version", "
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,oBAAmB,mCACnB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;AAJ9B;AAMA,SAASA,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUE,iBAAAA,QAAKF,YAAQG,+BAAc,YAAY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C,MAAM;IACJC,MAAM;IACNb,SAAS;IACTc,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMO,MAAAA;AACJ,QAAM,EAAEN,OAAOuB,UAAS,IAAK,MAAM,OAAO,MAAA;AAC1C,UAAMA,UAAU;MACdC,MAAMZ,QAAQa,IAAG;IACnB,CAAA;EACF;AACF,CAAA,GAEMC,cAAc;EAClBhC;EACAM;EACAW,OAAOJ;EACPa;EACA,WAAWC;EACX,eAAeC;EACfJ,OAAOJ;AACT,GAGMa,cAAUhC,4BAAc;EAC5BC,MAAM;IACJC,MAAM;IACNb;IACAc,aAAa;EACf;EACA4B;AACF,CAAA,GAEME,WAAOjC,4BAAc;EACzBC,MAAM;IACJC,MAAM;IACNb;IACAc,aAAa;EACf;EACAC,MAAM;IACJF,MAAM;MACJI,MAAM;MACNH,aAAa;MACbW,UAAU;IACZ;EACF;EACA,MAAMH,IAAI,OAAQ;QAAR,EAAEP,KAAI,IAAN;AACR,QAAI2B,YAAY3B,KAAKF,IAAI,GAAG;AAE1BgC,gCAAQF,OAAAA;AACR;IACF;AAEA,QAAM,EAAEG,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,UAAMA,QAAQ/B,IAAAA;EAChB;AACF,CAAA;IAEA8B,sBAAQD,IAAAA;",
|
5
|
+
"names": ["getPackageVersion", "dirname", "__dirname", "path", "fileURLToPath", "url", "packagePath", "join", "packageJson", "JSON", "parse", "readFileSync", "version", "sep", "console", "warn", "colors", "bgYellow", "yellow", "modes", "development", "production", "dev", "defineCommand", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "mode", "run", "buildCommand", "step", "required", "only", "build", "process", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "cwd", "subCommands", "subMain", "main", "runMain", "cliMain"]
|
6
6
|
}
|
package/dist/cjs/config.cjs
CHANGED
@@ -24,7 +24,7 @@ __export(config_exports, {
|
|
24
24
|
});
|
25
25
|
module.exports = __toCommonJS(config_exports);
|
26
26
|
var import_constants = require("./constants.cjs");
|
27
|
-
const CLIENT_RENDER_MODE = process.env.
|
27
|
+
const CLIENT_RENDER_MODE = process.env.ONE_DEFAULT_RENDER_MODE,
|
28
28
|
getDefaultRenderMode = () => {
|
29
29
|
const serverConfig = globalThis.__vxrnPluginConfig__;
|
30
30
|
if (import_constants.isWebServer && !serverConfig) throw new Error("Internal one error: should call setServerConfig before createManifest");
|
@@ -18,7 +18,7 @@ __export(config_exports, {
|
|
18
18
|
getDefaultRenderMode: () => getDefaultRenderMode
|
19
19
|
});
|
20
20
|
module.exports = __toCommonJS(config_exports);
|
21
|
-
var import_constants = require("./constants"), CLIENT_RENDER_MODE = process.env.
|
21
|
+
var import_constants = require("./constants"), CLIENT_RENDER_MODE = process.env.ONE_DEFAULT_RENDER_MODE, getDefaultRenderMode = function() {
|
22
22
|
var _serverConfig_web, serverConfig = globalThis.__vxrnPluginConfig__;
|
23
23
|
if (import_constants.isWebServer && !serverConfig)
|
24
24
|
throw new Error("Internal one error: should call setServerConfig before createManifest");
|
@@ -2,5 +2,5 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/config.ts"],
|
4
4
|
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;uBAA4B,wBAGtBA,qBAAqBC,QAAQC,IAAIC,yBAG1BC,uBAAuB,WAAA;MAOLC,mBANvBA,eAAeC,WAAW;AAEhC,MAAIC,gCAAe,CAACF;AAClB,UAAM,IAAIG,MAAM,uEAAuE;MAGlFR;AAAP,UAAOA,OAAAA,uBAAsBK,gBAAAA,SAAAA,oBAAAA,aAAcI,SAAG,QAAjBJ,sBAAAA,SAAAA,SAAAA,kBAAmBK,wBAAiB,QAA1DV,SAAAA,SAAAA,OAA8D;AACvE;",
|
5
|
-
"names": ["CLIENT_RENDER_MODE", "process", "env", "
|
5
|
+
"names": ["CLIENT_RENDER_MODE", "process", "env", "ONE_DEFAULT_RENDER_MODE", "getDefaultRenderMode", "serverConfig", "globalThis", "isWebServer", "Error", "web", "defaultRenderMode"]
|
6
6
|
}
|
package/dist/cjs/constants.cjs
CHANGED
@@ -20,6 +20,10 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
20
20
|
}), mod);
|
21
21
|
var constants_exports = {};
|
22
22
|
__export(constants_exports, {
|
23
|
+
CACHE_KEY: () => CACHE_KEY,
|
24
|
+
LOADER_JS_POSTFIX: () => LOADER_JS_POSTFIX,
|
25
|
+
LOADER_JS_POSTFIX_UNCACHED: () => LOADER_JS_POSTFIX_UNCACHED,
|
26
|
+
PRELOAD_JS_POSTFIX: () => PRELOAD_JS_POSTFIX,
|
23
27
|
isNative: () => isNative,
|
24
28
|
isWebClient: () => isWebClient,
|
25
29
|
isWebServer: () => isWebServer
|
@@ -27,4 +31,8 @@ __export(constants_exports, {
|
|
27
31
|
module.exports = __toCommonJS(constants_exports);
|
28
32
|
const isWebClient = typeof window < "u",
|
29
33
|
isWebServer = typeof window > "u",
|
30
|
-
isNative = !1
|
34
|
+
isNative = !1,
|
35
|
+
CACHE_KEY = `${process.env.ONE_CACHE_KEY ?? Math.round(Math.random() * 1e8)}`,
|
36
|
+
LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js",
|
37
|
+
LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`,
|
38
|
+
PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/constants.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAyD,OAAO,SAAW,KAC3E,cAAyD,OAAO,SAAW,KAC3E,WAAW;",
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAyD,OAAO,SAAW,KAC3E,cAAyD,OAAO,SAAW,KAC3E,WAAW,IAEX,YAAY,GAAG,QAAQ,IAAI,iBAAiB,KAAK,MAAM,KAAK,OAAO,IAAI,GAAW,CAAC,IAEnF,6BAA6B,mBAC7B,oBAAoB,IAAI,SAAS,GAAG,0BAA0B,IAC9D,qBAAqB,IAAI,SAAS;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -15,14 +15,22 @@ var __export = (target, all) => {
|
|
15
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
16
16
|
var constants_exports = {};
|
17
17
|
__export(constants_exports, {
|
18
|
+
CACHE_KEY: () => CACHE_KEY,
|
19
|
+
LOADER_JS_POSTFIX: () => LOADER_JS_POSTFIX,
|
20
|
+
LOADER_JS_POSTFIX_UNCACHED: () => LOADER_JS_POSTFIX_UNCACHED,
|
21
|
+
PRELOAD_JS_POSTFIX: () => PRELOAD_JS_POSTFIX,
|
18
22
|
isNative: () => isNative,
|
19
23
|
isWebClient: () => isWebClient,
|
20
24
|
isWebServer: () => isWebServer
|
21
25
|
});
|
22
26
|
module.exports = __toCommonJS(constants_exports);
|
23
|
-
var isWebClient = !1, isWebServer = !1, isNative = !0
|
27
|
+
var isWebClient = !1, isWebServer = !1, isNative = !0, _process_env_ONE_CACHE_KEY, CACHE_KEY = `${(_process_env_ONE_CACHE_KEY = process.env.ONE_CACHE_KEY) !== null && _process_env_ONE_CACHE_KEY !== void 0 ? _process_env_ONE_CACHE_KEY : Math.round(Math.random() * 1e8)}`, LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js", LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`, PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
|
24
28
|
// Annotate the CommonJS export names for ESM import in node:
|
25
29
|
0 && (module.exports = {
|
30
|
+
CACHE_KEY,
|
31
|
+
LOADER_JS_POSTFIX,
|
32
|
+
LOADER_JS_POSTFIX_UNCACHED,
|
33
|
+
PRELOAD_JS_POSTFIX,
|
26
34
|
isNative,
|
27
35
|
isWebClient,
|
28
36
|
isWebServer
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/constants.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": ["isWebClient", "process", "isWebServer", "isNative"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;AAAO,IAAMA,cAAcC,IACdC,cAAcD,IACdE,WAAWF,IAEIA,4BAAfG,YAAY,IAAGH,6BAAAA,QAAQI,IAAIC,mBAAa,QAAzBL,+BAAAA,SAAAA,6BAA6BM,KAAKC,MAAMD,KAAKE,OAAM,IAAK,GAAA,CAAA,IAEvEC,6BAA6B,mBAC7BC,oBAAoB,IAAIP,SAAAA,GAAYM,0BAAAA,IACpCE,qBAAqB,IAAIR,SAAAA;",
|
5
|
+
"names": ["isWebClient", "process", "isWebServer", "isNative", "CACHE_KEY", "env", "ONE_CACHE_KEY", "Math", "round", "random", "LOADER_JS_POSTFIX_UNCACHED", "LOADER_JS_POSTFIX", "PRELOAD_JS_POSTFIX"]
|
6
6
|
}
|
@@ -34,5 +34,5 @@ function createApp(options) {
|
|
34
34
|
routes: options.routes,
|
35
35
|
path: "/"
|
36
36
|
});
|
37
|
-
import_react_native.AppRegistry.registerComponent("main", () => App), import_react_native.AppRegistry.registerComponent("tamaguikitchensink", () => App), process.env.
|
37
|
+
import_react_native.AppRegistry.registerComponent("main", () => App), import_react_native.AppRegistry.registerComponent("tamaguikitchensink", () => App), process.env.ONE_APP_NAME && import_react_native.AppRegistry.registerComponent(process.env.ONE_APP_NAME, () => App);
|
38
38
|
}
|
@@ -34,7 +34,7 @@ function createApp(options) {
|
|
34
34
|
return App;
|
35
35
|
}), import_react_native.AppRegistry.registerComponent("tamaguikitchensink", function() {
|
36
36
|
return App;
|
37
|
-
}), process.env.
|
37
|
+
}), process.env.ONE_APP_NAME && import_react_native.AppRegistry.registerComponent(process.env.ONE_APP_NAME, function() {
|
38
38
|
return App;
|
39
39
|
});
|
40
40
|
}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/createApp.native.tsx"],
|
4
4
|
"mappings": ";;;;;;;;;;;;;;;;;;;;uDAAA,0BAAO,+BACP,cAAqB,mBACrB,sBAAoC;AAKpCA,2BAAOC,WAAW;EAAC;CAA0C;AAEtD,SAASC,UAAUC,SAAuB;AAC/C,MAAMC,MAAM,WAAA;WAAM,uCAAAC,KAACC,kBAAAA;MAAKC,UAAQ;MAACC,QAAQL,QAAQK;MAAQC,MAAK;;;AAE9DC,kCAAYC,kBAAkB,QAAQ,WAAA;WAAMP;MAG5CM,gCAAYC,kBAAkB,sBAAsB,WAAA;WAAMP;MAEtDQ,QAAQC,IAAIC,gBACdJ,gCAAYC,kBAAkBC,QAAQC,IAAIC,cAAc,WAAA;WAAMV;;AAElE;",
|
5
|
-
"names": ["LogBox", "ignoreLogs", "createApp", "options", "App", "_jsx", "Root", "isClient", "routes", "path", "AppRegistry", "registerComponent", "process", "env", "
|
5
|
+
"names": ["LogBox", "ignoreLogs", "createApp", "options", "App", "_jsx", "Root", "isClient", "routes", "path", "AppRegistry", "registerComponent", "process", "env", "ONE_APP_NAME"]
|
6
6
|
}
|
@@ -24,6 +24,7 @@ __export(createHandleRequest_exports, {
|
|
24
24
|
});
|
25
25
|
module.exports = __toCommonJS(createHandleRequest_exports);
|
26
26
|
var import_cleanUrl = require("./cleanUrl.cjs"),
|
27
|
+
import_constants = require("./constants.cjs"),
|
27
28
|
import_isResponse = require("./utils/isResponse.cjs"),
|
28
29
|
import_promiseWithResolvers = require("./utils/promiseWithResolvers.cjs"),
|
29
30
|
import_getManifest = require("./vite/getManifest.cjs");
|
@@ -72,11 +73,12 @@ function createHandleRequest(options, handlers) {
|
|
72
73
|
}
|
73
74
|
}
|
74
75
|
if (request.method !== "GET") return null;
|
75
|
-
if (handlers.handleLoader && pathname.endsWith(
|
76
|
+
if (handlers.handleLoader && pathname.endsWith(import_constants.LOADER_JS_POSTFIX_UNCACHED)) {
|
76
77
|
const originalUrl = (0, import_cleanUrl.getPathFromLoaderPath)(pathname),
|
77
78
|
finalUrl = new URL(originalUrl, url.origin);
|
78
79
|
for (const route of pageRoutes) {
|
79
80
|
if (route.file === "" || !route.workingRegex.test(finalUrl.pathname)) continue;
|
81
|
+
process.env.NODE_ENV === "development" && console.info(` \u2776 Running loader for route: ${finalUrl.pathname}`);
|
80
82
|
const headers = new Headers();
|
81
83
|
headers.set("Content-Type", "text/javascript");
|
82
84
|
try {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/createHandleRequest.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAsC,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAsC,uBACtC,mBAA8D,wBAE9D,oBAA2B,+BAC3B,8BAAqC,yCACrC,qBAA4B;AAYrB,SAAS,oBACd,SACA,UAKA;AACA,QAAM,eAAW,gCAAY;AAC7B,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,oBAAoB;AAGtC,QAAM,eACJ,SAAS,UAAU,OAAO,CAAC,KAAK,SAC9B,IAAI,IAAI,IAAI,IAAI,EAAE,GAAG,KAAK,eAAe,IAAI,OAAO,IAAI,UAAU,EAAE,GAC7D,MACN,CAAC,CAAC,GAED,gBAAgB,OAAO,OAAO,YAAY,GAK1C,iBAAiB,CAAC,GAGlB,aAAa,SAAS,WAAW,IAAI,CAAC,WAAW;AAAA,IACrD,GAAG;AAAA,IACH,cAAc,IAAI,O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E,KAAK,IAAI,QAAQ;AAC/D,MAAI,OAAO;AACT,eAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,MAAM,MAAM,GAAG;AACvD,YAAM,WAAW,OAAO,UAAU,GAAG;AACrC,aAAO,QAAQ,IAAI;AAAA,IACrB;AAEF,SAAO;AACT;AAGA,SAAS,eAAe,UAAkB,OAA0B;AAElE,QAAM,QADQ,IAAI,OAAO,MAAM,UAAU,EACrB,KAAK,QAAQ;AACjC,SAAK,QACE,OAAO;AAAA,IACZ,OAAO,QAAQ,MAAM,SAAS,EAAE,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,CAAC,CAAC;AAAA,EACpF,IAHmB,CAAC;AAItB;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -18,7 +18,7 @@ __export(createHandleRequest_exports, {
|
|
18
18
|
createHandleRequest: () => createHandleRequest
|
19
19
|
});
|
20
20
|
module.exports = __toCommonJS(createHandleRequest_exports);
|
21
|
-
var import_cleanUrl = require("./cleanUrl"), import_isResponse = require("./utils/isResponse"), import_promiseWithResolvers = require("./utils/promiseWithResolvers"), import_getManifest = require("./vite/getManifest");
|
21
|
+
var import_cleanUrl = require("./cleanUrl"), import_constants = require("./constants"), import_isResponse = require("./utils/isResponse"), import_promiseWithResolvers = require("./utils/promiseWithResolvers"), import_getManifest = require("./vite/getManifest");
|
22
22
|
function createHandleRequest(options, handlers) {
|
23
23
|
var manifest = (0, import_getManifest.getManifest)();
|
24
24
|
if (!manifest)
|
@@ -69,13 +69,14 @@ function createHandleRequest(options, handlers) {
|
|
69
69
|
if (request.method !== "GET")
|
70
70
|
return null;
|
71
71
|
if (handlers.handleLoader) {
|
72
|
-
var isClientRequestingNewRoute = pathname.endsWith(
|
72
|
+
var isClientRequestingNewRoute = pathname.endsWith(import_constants.LOADER_JS_POSTFIX_UNCACHED);
|
73
73
|
if (isClientRequestingNewRoute) {
|
74
74
|
var originalUrl = (0, import_cleanUrl.getPathFromLoaderPath)(pathname), finalUrl = new URL(originalUrl, url.origin), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
75
75
|
try {
|
76
76
|
for (var _iterator = pageRoutes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
77
77
|
var route = _step.value;
|
78
78
|
if (route.file !== "" && route.workingRegex.test(finalUrl.pathname)) {
|
79
|
+
process.env.NODE_ENV === "development" && console.info(` \u2776 Running loader for route: ${finalUrl.pathname}`);
|
79
80
|
var headers = new Headers();
|
80
81
|
headers.set("Content-Type", "text/javascript");
|
81
82
|
try {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/createHandleRequest.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;sBAAsC,
|
5
|
-
"names": ["createHandleRequest", "options", "handlers", "manifest", "getManifest", "Error", "apiRoutesMap", "apiRoutes", "reduce", "acc", "cur", "page", "compiledRegex", "RegExp", "namedRegex", "apiRoutesList", "Object", "values", "activeRequests", "pageRoutes", "map", "route", "workingRegex", "handler", "request", "urlString", "url", "URL", "headers", "get", "pathname", "search", "process", "env", "NODE_ENV", "startsWith", "handleAPI", "apiRoute", "find", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "isResponse", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "getPathFromLoaderPath", "finalUrl", "origin", "file", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;sBAAsC,uBACtC,mBAA8D,wBAE9D,oBAA2B,+BAC3B,8BAAqC,yCACrC,qBAA4B;AAYrB,SAASA,oBACdC,SACAC,UAIC;AAED,MAAMC,eAAWC,gCAAAA;AACjB,MAAI,CAACD;AACH,UAAM,IAAIE,MAAM,oBAAoB;AAGtC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pC,eAAOsC,QAAAA,IAAYD;MACrB;;AAHK,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;EAIP;AACA,SAAOrC;AACT;AAGA,SAASC,eAAeZ,UAAkBT,OAAwB;AAChE,MAAMkB,QAAQ,IAAI1B,OAAOQ,MAAMP,UAAU,GACnC2D,QAAQlC,MAAMmC,KAAK5C,QAAAA;AACzB,SAAK2C,QACEzD,OAAOiE,YACZjE,OAAO4D,QAAQvD,MAAM2D,SAAS,EAAE5D,IAAI,SAAA,OAAA;QAAC,CAACyD,KAAKC,KAAAA,IAAM,OAAaL;WAAR;MAACK;OAAOL,gBAAAA,MAAME,YAAM,QAAZF,kBAAAA,SAAAA,SAAAA,cAAeI,GAAAA;;QAF5D,CAAC;AAItB;",
|
5
|
+
"names": ["createHandleRequest", "options", "handlers", "manifest", "getManifest", "Error", "apiRoutesMap", "apiRoutes", "reduce", "acc", "cur", "page", "compiledRegex", "RegExp", "namedRegex", "apiRoutesList", "Object", "values", "activeRequests", "pageRoutes", "map", "route", "workingRegex", "handler", "request", "urlString", "url", "URL", "headers", "get", "pathname", "search", "process", "env", "NODE_ENV", "startsWith", "handleAPI", "apiRoute", "find", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "isResponse", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "LOADER_JS_POSTFIX_UNCACHED", "originalUrl", "getPathFromLoaderPath", "finalUrl", "origin", "file", "console", "info", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "error", "routes", "handleSSR", "promise", "reject", "resolve", "promiseWithResolvers", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
|
6
6
|
}
|
package/dist/cjs/getURL.cjs
CHANGED
@@ -25,5 +25,5 @@ __export(getURL_exports, {
|
|
25
25
|
module.exports = __toCommonJS(getURL_exports);
|
26
26
|
const CLIENT_BASE_URL = typeof window < "u" && window.location ? `${window.location.protocol}//${window.location.host}` : "";
|
27
27
|
function getURL() {
|
28
|
-
return CLIENT_BASE_URL || process.env.ONE_SERVER_URL || "";
|
28
|
+
return CLIENT_BASE_URL || process.env.ONE_SERVER_URL || "http://localhost";
|
29
29
|
}
|
package/dist/cjs/matchers.cjs
CHANGED
@@ -47,7 +47,7 @@ function matchGroupName(name) {
|
|
47
47
|
return name.match(/^(?:[^\\(\\)])*?\(([^\\/]+)\).*?$/)?.[1];
|
48
48
|
}
|
49
49
|
function matchArrayGroupName(name) {
|
50
|
-
return name.match(/(?:[^\\(\\)])*?\(([
|
50
|
+
return name.match(/(?:[^\\(\\)])*?\(?([^\\/\(\)]+,[^\\/\(\)]+)\)?.*?$/)?.[1];
|
51
51
|
}
|
52
52
|
function getNameFromFilePath(name) {
|
53
53
|
return removeSupportedExtensions(removeFileSystemDots(name));
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/matchers.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,SAAS,iBAAiB,MAAkC;AAGjE,SAAO,KAAK,MAAM,4BAA4B,IAAI,CAAC;AACrD;AAGO,SAAS,0BAA0B,MAAkC;AAC1E,SAAO,KAAK,MAAM,sBAAsB,IAAI,CAAC;AAC/C;AAGO,SAAS,aAAa,MAAuB;AAClD,SAAO,eAAe,KAAK,IAAI;AACjC;AAGO,SAAS,eAAe,MAAkC;AAC/D,SAAO,KAAK,MAAM,mCAAmC,IAAI,CAAC;AAC5D;AAGO,SAAS,oBAAoB,MAAc;AAChD,SAAO,KAAK,MAAM,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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|
49
|
-
return (_name_match = name.match(/(?:[^\\(\\)])*?\(([
|
49
|
+
return (_name_match = name.match(/(?:[^\\(\\)])*?\(?([^\\/\(\)]+,[^\\/\(\)]+)\)?.*?$/)) === null || _name_match === void 0 ? void 0 : _name_match[1];
|
50
50
|
}
|
51
51
|
function getNameFromFilePath(name) {
|
52
52
|
return removeSupportedExtensions(removeFileSystemDots(name));
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/matchers.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;AACO,SAASA,iBAAiBC,MAAY;MAGpCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,4BAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAA2C,CAAA;AACpD;AAGO,SAASE,0BAA0BF,MAAY;MAC7CA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,sBAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAAqC,CAAA;AAC9C;AAGO,SAASG,aAAaH,MAAY;AACvC,SAAO,eAAeI,KAAKJ,IAAAA;AAC7B;AAGO,SAASK,eAAeL,MAAY;MAClCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,mCAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAAkD,CAAA;AAC3D;AAGO,SAASM,oBAAoBN,MAAY;MACvCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;AACO,SAASA,iBAAiBC,MAAY;MAGpCA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,4BAAA,OAAA,QAAXD,gBAAAA,SAAAA,SAAAA,YAA2C,CAAA;AACpD;AAGO,SAASE,0BAA0BF,MAAY;MAC7CA;AAAP,UAAOA,cAAAA,KAAKC,MAAM,sBAAA,OAAA,QAAXD,gBAAAA,SAAA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ArrayGroupName", "getNameFromFilePath", "removeSupportedExtensions", "removeFileSystemDots", "getContextKey", "normal", "endsWith", "replace", "filePath", "stripGroupSegmentsFromPath", "path", "split", "reduce", "acc", "v", "push", "join", "stripInvisibleSegmentsFromPath", "isTypedRoute", "startsWith"]
|
6
6
|
}
|
package/dist/cjs/serve.cjs
CHANGED
@@ -38,18 +38,18 @@ var import_polyfills_server = require("./polyfills-server.cjs"),
|
|
38
38
|
import_fs_extra = __toESM(require("fs-extra"), 1),
|
39
39
|
import_node_path = __toESM(require("node:path"), 1),
|
40
40
|
import_vxrn = require("vxrn"),
|
41
|
+
import_label_process = require("./cli/label-process.cjs"),
|
41
42
|
import_createHandleRequest = require("./createHandleRequest.cjs"),
|
42
43
|
import_isResponse = require("./utils/isResponse.cjs"),
|
43
44
|
import_isStatus = require("./utils/isStatus.cjs"),
|
44
45
|
import_removeUndefined = require("./utils/removeUndefined.cjs"),
|
45
|
-
import_resolveAPIRequest = require("./vite/resolveAPIRequest.cjs"),
|
46
46
|
import_one = require("./vite/one.cjs"),
|
47
|
-
|
47
|
+
import_resolveAPIRequest = require("./vite/resolveAPIRequest.cjs");
|
48
48
|
process.on("uncaughtException", err => {
|
49
49
|
console.error("[one] Uncaught exception", err?.stack || err);
|
50
50
|
});
|
51
51
|
async function serve(args = {}) {
|
52
|
-
(0, import_label_process.labelProcess)("serve");
|
52
|
+
(0, import_label_process.labelProcess)("serve"), (0, import_vxrn.loadEnv)("production");
|
53
53
|
const oneOptions = await (0, import_one.loadUserOneOptions)("serve");
|
54
54
|
return process.env.VXRN_REACT_19 = "1", await (0, import_vxrn.serve)({
|
55
55
|
server: {
|