one 1.1.311 → 1.1.312
Sign up to get free protection for your applications and to get access to all the features.
- 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 +2 -1
- package/dist/cjs/createHandleRequest.cjs.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +2 -2
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- 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/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 +2 -1
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +2 -1
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +2 -1
- package/dist/esm/createHandleRequest.native.js.map +2 -2
- 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/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 +2 -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/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/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,EA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YAAY,KAAK,IAAI,GAAG;AAE1B,gCAAQ,OAAO;AACf;AAAA,IACF;AAEA,UAAM,EAAE,QAAQ,IAAI,MAAM,OAAO,YAAY;AAC7C,UAAM,QAAQ,IAAI;AAAA,EACpB;AACF,CAAC;AAAA,IAED,sBAAQ,IAAI;",
|
5
5
|
"names": ["path", "colors", "clean"]
|
6
6
|
}
|
package/dist/cjs/cli.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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AEMuB,iBAAa3B,4BAAc;EAC/BC,MAAM;IACJC,MAAM;IACNb;EACF;EACAe,MAAM,CAAC;EACP,MAAMO,IAAI,OAAQ;QAAR,EAAEP,KAAI,IAAN,OACF,EAAEO,IAAG,IAAK,MAAM,OAAO,kBAAA;AAC7B,UAAMA,IAAIP,IAAAA;EACZ;AACF,CAAA,GAEMC,YAAQL,4BAAc;EAC1BC,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,7 +73,7 @@ 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) {
|
@@ -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,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QAAM,SAAiC,CAAC,GAClC,QAAQ,IAAI,OAAO,OAAO,YAAY,EAAE,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,7 +69,7 @@ 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 {
|
@@ -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", "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"]
|
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,MAAMC,eACJH,SAASI,UAAUC,OAAO,SAACC,KAAKC,KAAAA;AAC9BD,eAAIC,IAAIC,IAAI,IAAI;MAAE,GAAGD;MAAKE,eAAe,IAAIC,OAAOH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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/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;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,oDAAoD,IAAI,CAAC;AAC7E;AAEO,SAAS,oBAAoB,MAAsB;AACxD,SAAO,0BAA0B,qBAAqB,IAAI,CAAC;AAC7D;AAEO,SAAS,cAAc,MAAsB;AAGlD,QAAM,SAAS,MAAM,oBAAoB,IAAI;AAC7C,SAAK,OAAO,SAAS,SAAS,IAGvB,OAAO,QAAQ,eAAe,EAAE,IAF9B;AAGX;AAGO,SAAS,0BAA0B,MAAsB;AAC9D,SAAO,KAAK,QAAQ,qCAAqC,EAAE;AAC7D;AAGO,SAAS,qBAAqB,UAA0B;AAC7D,SAAO,SAAS,QAAQ,kBAAkB,EAAE;AAC9C;AAEO,SAAS,2BAA2B,MAAsB;AAC/D,SAAO,KACJ,MAAM,GAAG,EACT,OAAO,CAAC,KAAK,OACR,eAAe,CAAC,KAAK,QACvB,IAAI,KAAK,CAAC,GAEL,MACN,CAAC,CAAa,EAChB,KAAK,GAAG;AACb;AAEO,SAAS,+BAA+B,MAAsB;AACnE,SAAO,2BAA2B,IAAI,EAAE,QAAQ,aAAa,EAAE;AACjE;AAOO,SAAS,aAAa,MAAc;AACzC,SAAO,CAAC,KAAK,WAAW,GAAG,KAAK,KAAK,MAAM,oCAAoC,MAAM;AACvF;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -46,7 +46,7 @@ function matchGroupName(name) {
|
|
46
46
|
}
|
47
47
|
function matchArrayGroupName(name) {
|
48
48
|
var _name_match;
|
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;MA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;AACxD;AAEO,SAASU,cAAcV,MAAY;AAGxC,MAAMW,SAAS,MAAMJ,oBAAoBP,IAAAA;AACzC,SAAKW,OAAOC,SAAS,SAAA,IAGdD,OAAOE,QAAQ,eAAe,EAAA,IAF5BF;AAGX;AAGO,SAASH,0BAA0BR,MAAY;AACpD,SAAOA,KAAKa,QAAQ,qCAAqC,EAAA;AAC3D;AAGO,SAASJ,qBAAqBK,UAAgB;AACnD,SAAOA,SAASD,QAAQ,kBAAkB,EAAA;AAC5C;AAEO,SAASE,2BAA2BC,MAAY;AACrD,SAAOA,KACJC,MAAM,GAAA,EACNC,OAAO,SAACC,KAAKC,GAAAA;AACZ,WAAIf,eAAee,CAAAA,KAAM,QACvBD,IAAIE,KAAKD,CAAAA,GAEJD;EACT,GAAG,CAAA,CAAE,EACJG,KAAK,GAAA;AACV;AAEO,SAASC,+BAA+BP,MAAY;AACzD,SAAOD,2BAA2BC,IAAAA,EAAMH,QAAQ,aAAa,EAAA;AAC/D;AAOO,SAASW,aAAaxB,MAAY;AACvC,SAAO,CAACA,KAAKyB,WAAW,GAAA,KAAQzB,KAAKC,MAAM,oCAAA,MAA0C;AACvF;",
|
5
5
|
"names": ["matchDynamicName", "name", "match", "matchDeepDynamicRouteName", "testNotFound", "test", "matchGroupName", "matchArrayGroupName", "getNameFromFilePath", "removeSupportedExtensions", "removeFileSystemDots", "getContextKey", "normal", "endsWith", "replace", "filePath", "stripGroupSegmentsFromPath", "path", "split", "reduce", "acc", "v", "push", "join", "stripInvisibleSegmentsFromPath", "isTypedRoute", "startsWith"]
|
6
6
|
}
|
package/dist/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: {
|
package/dist/cjs/serve.cjs.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/serve.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAO,+BAEP,kBAAoB,iCAEpB,mBAA2B,kCAE3B,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAO,+BAEP,kBAAoB,iCAEpB,mBAA2B,kCAE3B,cAA4D,iBAC5D,uBAA6B,gCAC7B,6BAAoC,kCAEpC,oBAA2B,+BAC3B,kBAAiC,6BACjC,yBAAgC,oCAChC,aAAmC,uBACnC,2BAAkC;AAGlC,QAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,UAAQ,MAAM,4BAA4B,KAAK,SAAS,GAAG;AAC7D,CAAC;AAED,eAAsB,MAAM,OAA8B,CAAC,GAAG;AAC5D,yCAAa,OAAO,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A,QACN;AAAA,MACF;AAAA,IACF,SAAS,KAAK;AACZ,cAAQ,MAAM,kCAAmC,IAAY,KAAQ,EAAE;AAAA,IACzE;AAEA,UAAM,KAAK;AAAA,EACb,CAAC;AACH;",
|
5
5
|
"names": ["vxrnServe", "Path", "FSExtra", "buildInfo"]
|
6
6
|
}
|
package/dist/cjs/serve.native.js
CHANGED
@@ -26,13 +26,13 @@ __export(serve_exports, {
|
|
26
26
|
serve: () => serve
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(serve_exports);
|
29
|
-
var import_polyfills_server = require("./polyfills-server"), import_fs_extra = __toESM(require("fs-extra"), 1), import_node_path = __toESM(require("node:path"), 1), import_vxrn = require("vxrn"),
|
29
|
+
var import_polyfills_server = require("./polyfills-server"), import_fs_extra = __toESM(require("fs-extra"), 1), import_node_path = __toESM(require("node:path"), 1), import_vxrn = require("vxrn"), import_label_process = require("./cli/label-process"), import_createHandleRequest = require("./createHandleRequest"), import_isResponse = require("./utils/isResponse"), import_isStatus = require("./utils/isStatus"), import_removeUndefined = require("./utils/removeUndefined"), import_one = require("./vite/one"), import_resolveAPIRequest = require("./vite/resolveAPIRequest");
|
30
30
|
process.on("uncaughtException", function(err) {
|
31
31
|
console.error("[one] Uncaught exception", (err == null ? void 0 : err.stack) || err);
|
32
32
|
});
|
33
33
|
async function serve() {
|
34
34
|
var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
35
|
-
(0, import_label_process.labelProcess)("serve");
|
35
|
+
(0, import_label_process.labelProcess)("serve"), (0, import_vxrn.loadEnv)("production");
|
36
36
|
var oneOptions = await (0, import_one.loadUserOneOptions)("serve");
|
37
37
|
return process.env.VXRN_REACT_19 = "1", await (0, import_vxrn.serve)({
|
38
38
|
server: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/serve.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;8BAAO,+BAEP,kBAAoB,iCAEpB,mBAA2B,kCAE3B,
|
5
|
-
"names": ["process", "on", "err", "console", "error", "stack", "serve", "args", "labelProcess", "oneOptions", "loadUserOneOptions", "env", "VXRN_REACT_19", "vxrnServe", "server", "removeUndefined", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "root", "isAPIRequest", "WeakMap", "toAbsolute", "p", "Path", "resolve", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "buildInfo", "FSExtra", "readJSON", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "getServerEntry", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "createHandleRequest", "handleAPI", "request", "loaderProps", "apiFile", "join", "cwd", "page", "set", "resolveAPIRequest", "params", "handleSSR", "url", "type", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "isResponse", "isStatusRedirect", "status", "location", "json"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;8BAAO,+BAEP,kBAAoB,iCAEpB,mBAA2B,kCAE3B,cAA4D,iBAC5D,uBAA6B,gCAC7B,6BAAoC,kCAEpC,oBAA2B,+BAC3B,kBAAiC,6BACjC,yBAAgC,oCAChC,aAAmC,uBACnC,2BAAkC;AAGlCA,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,6BAA4BF,OAAAA,OAAAA,SAAAA,IAAKG,UAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBI,QAAAA;MAAMC,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC;AACzDC,yCAAa,OAAA,OACbC,qBAAQ,YA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C,iBAAiBsC,GAAAA;AAE9B,KAAIC,QAAAA,OAAAA,SAAAA,KAAMZ,UAAS,UAKnBU,UAAUC,GAAAA,IAAO,MAAM3C,gBAAAA,QAAQ6C,aAASrB,uBAAK,eAAerB,SAASwC,GAAAA,CAAI,GAAG,OAAA;EAC9E;AAEApE,MAAIuE,IAAI,eAAOxD,SAASyD,MAAAA;AAEtB,QAAMC,OAAON,UAAUpD,QAAQO,IAAI4C,IAAI;AACvC,QAAIO;AACF,aAAO1D,QAAQ0D,KAAKA,IAAAA;AAGtB,QAAI;AACF,UAAM3B,UAAU/B,QAAQO,IAAIoD,KACtBC,WAAW,MAAMhC,cAAciC,QAAQ9B,OAAAA;AAE7C,UAAI6B,UAAU;AACZ,gBAAIE,8BAAWF,QAAAA,GAAW;AACxB,kBAAIG,kCAAiBH,SAASI,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGL,SAASZ,QAAQlD,IAAI,UAAA,KAAe,EAAA;AACxD,mBAAOE,QAAQH,SAASoE,UAAUL,SAASI,MAAM;UACnD;AAEA,cAAI3E,aAAaS,IAAIiC,OAAAA;AACnB,gBAAI;AAEF6B,uBAASZ,QAAQX,IAAI,iBAAiB,UAAA;YACxC,SAAS3E,KAAK;AACZC,sBAAQ2F,KACN,6CACEtD,QAAQO,IAAI4C,IAAI,wBACMS,SAASZ,QAAQlD,IAAI,eAAA,CAAA,cAC7CpC,GAAAA;YAEJ;AAGF,iBAAOkG;QACT;AAEA,eAAO5D,QAAQkE,KACbN,UACA,KACAvE,aAAaS,IAAIiC,OAAAA,IACb;UACE,iBAAiB;QACnB,IACArD,MAAAA;MAER;IACF,SAAShB,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAM+F,KAAAA;EACR,CAAA;AACF;",
|
5
|
+
"names": ["process", "on", "err", "console", "error", "stack", "serve", "args", "labelProcess", "loadEnv", "oneOptions", "loadUserOneOptions", "env", "VXRN_REACT_19", "vxrnServe", "server", "removeUndefined", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "root", "isAPIRequest", "WeakMap", "toAbsolute", "p", "Path", "resolve", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "buildInfo", "FSExtra", "readJSON", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "getServerEntry", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "createHandleRequest", "handleAPI", "request", "loaderProps", "apiFile", "join", "cwd", "page", "set", "resolveAPIRequest", "params", "handleSSR", "url", "type", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "isResponse", "isStatusRedirect", "status", "location", "json"]
|
6
6
|
}
|
package/dist/cjs/useLoader.cjs
CHANGED
@@ -68,7 +68,7 @@ function useLoader(loader) {
|
|
68
68
|
try {
|
69
69
|
const response = await (async () => {
|
70
70
|
if (isNative) {
|
71
|
-
const nativeLoaderJSUrl = `${loaderJSUrl}
|
71
|
+
const nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
|
72
72
|
try {
|
73
73
|
const loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
|
74
74
|
if (!loaderJsCodeResp.ok) throw new Error(`Response not ok: ${loaderJsCodeResp.status}`);
|
@@ -55,7 +55,7 @@ function useLoader(loader) {
|
|
55
55
|
try {
|
56
56
|
var response = await async function() {
|
57
57
|
if (isNative) {
|
58
|
-
var nativeLoaderJSUrl = `${loaderJSUrl}
|
58
|
+
var nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
|
59
59
|
try {
|
60
60
|
var loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
|
61
61
|
if (!loaderJsCodeResp.ok)
|
package/dist/cjs/vite/build.cjs
CHANGED
@@ -42,10 +42,10 @@ var import_fs_extra = __toESM(require("fs-extra"), 1),
|
|
42
42
|
import_vite = require("vite"),
|
43
43
|
import_vxrn = require("vxrn"),
|
44
44
|
import_cleanUrl = require("../cleanUrl.cjs"),
|
45
|
+
import_label_process = require("../cli/label-process.cjs"),
|
45
46
|
import_getManifest = require("./getManifest.cjs"),
|
46
47
|
import_one = require("./one.cjs"),
|
47
|
-
import_replaceLoader = require("./replaceLoader.cjs")
|
48
|
-
import_label_process = require("../cli/label-process.cjs");
|
48
|
+
import_replaceLoader = require("./replaceLoader.cjs");
|
49
49
|
const import_meta = {},
|
50
50
|
{
|
51
51
|
ensureDir,
|