one 1.1.299 → 1.1.300
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cleanUrl.js +1 -1
- package/dist/cjs/cleanUrl.js.map +1 -1
- package/dist/cjs/cleanUrl.native.js +1 -1
- package/dist/cjs/cleanUrl.native.js.map +1 -1
- package/dist/cjs/cli/runAndroid.js +34 -0
- package/dist/cjs/cli/runAndroid.js.map +6 -0
- package/dist/cjs/cli/runAndroid.native.js +39 -0
- package/dist/cjs/cli/runAndroid.native.js.map +6 -0
- package/dist/cjs/cli/runIos.js +34 -0
- package/dist/cjs/cli/runIos.js.map +6 -0
- package/dist/cjs/cli/runIos.native.js +39 -0
- package/dist/cjs/cli/runIos.native.js.map +6 -0
- package/dist/cjs/cli.js +23 -1
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/cli.native.js +25 -1
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/createHandleRequest.js +2 -2
- package/dist/cjs/createHandleRequest.js.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +2 -2
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- package/dist/cjs/vite/createFileSystemRouter.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.js +1 -1
- package/dist/cjs/vite/replaceLoader.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.native.js +1 -1
- package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
- package/dist/esm/cleanUrl.js +1 -1
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +1 -1
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +1 -1
- package/dist/esm/cleanUrl.native.js.map +1 -1
- package/dist/esm/cli/runAndroid.js +10 -0
- package/dist/esm/cli/runAndroid.js.map +6 -0
- package/dist/esm/cli/runAndroid.mjs +10 -0
- package/dist/esm/cli/runAndroid.mjs.map +1 -0
- package/dist/esm/cli/runAndroid.native.js +10 -0
- package/dist/esm/cli/runAndroid.native.js.map +6 -0
- package/dist/esm/cli/runIos.js +10 -0
- package/dist/esm/cli/runIos.js.map +6 -0
- package/dist/esm/cli/runIos.mjs +10 -0
- package/dist/esm/cli/runIos.mjs.map +1 -0
- package/dist/esm/cli/runIos.native.js +10 -0
- package/dist/esm/cli/runIos.native.js.map +6 -0
- package/dist/esm/cli.js +23 -1
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +33 -1
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +25 -1
- package/dist/esm/cli.native.js.map +2 -2
- package/dist/esm/createHandleRequest.js +2 -2
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +2 -2
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +2 -2
- package/dist/esm/createHandleRequest.native.js.map +2 -2
- package/dist/esm/vite/createFileSystemRouter.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js.map +1 -1
- package/dist/esm/vite/replaceLoader.js +1 -1
- package/dist/esm/vite/replaceLoader.js.map +1 -1
- package/dist/esm/vite/replaceLoader.mjs +1 -1
- package/dist/esm/vite/replaceLoader.mjs.map +1 -1
- package/dist/esm/vite/replaceLoader.native.js +1 -1
- package/dist/esm/vite/replaceLoader.native.js.map +1 -1
- package/package.json +6 -6
- package/src/cleanUrl.ts +1 -1
- package/src/cli/runAndroid.ts +6 -0
- package/src/cli/runIos.ts +6 -0
- package/src/cli.ts +27 -1
- package/src/createHandleRequest.ts +7 -0
- package/src/vite/createFileSystemRouter.tsx +1 -2
- package/src/vite/replaceLoader.ts +1 -1
- package/types/cli/runAndroid.d.ts +2 -0
- package/types/cli/runAndroid.d.ts.map +1 -0
- package/types/cli/runIos.d.ts +2 -0
- package/types/cli/runIos.d.ts.map +1 -0
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/vite/createFileSystemRouter.d.ts.map +1 -1
package/dist/cjs/cleanUrl.js
CHANGED
@@ -36,7 +36,7 @@ function getLoaderPath(currentPath, includeUrl = import_constants.isNative) {
|
|
36
36
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
|
37
37
|
}
|
38
38
|
function getPathFromLoaderPath(loaderPath) {
|
39
|
-
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").
|
39
|
+
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
40
40
|
}
|
41
41
|
function getSearchParams(searchParams) {
|
42
42
|
return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
|
package/dist/cjs/cleanUrl.js.map
CHANGED
@@ -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,uBAAyB,wBACzB,gBAAuB,qBACvBA,oBAA0B,+BAC1B,sBAA6B;AAE7B,SAAS,SAAS,MAAc;AAC9B,aACE,kCAAa,IAAI,EACd,WAAW,KAAK,GAAG,EAEnB,QAAQ,MAAM,EAAE;AAEvB;AAEA,MAAM,WAAW,OAAO,SAAW,KAC7B,mBAAmB,WAAW,UAAU,2BAAS,KAAK,IACtD,gBAAgB,eAAW,sBAAO,IAAI;AAErC,SAAS,eAAe,aAAqB;AAClD,SAAO,GAAG,aAAa,WAAW,SAAS,YAAY,MAAM,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AsB,YAAoB;AACxD,SAAO,WACJ,QAAQ,mBAAmB,EAAE,EAC7B,QAAQ,sBAAsB,EAAE,EAChC,WAAW,MAAM,GAAG;AACzB;AAEA,SAAS,gBAAgB,cAAc;AACrC,SAAK,eAIE,GAAG,YAAY,IAAI,iBAAiB,MAAM,CAAC,CAA8B,KAHvE;AAIX;",
|
5
5
|
"names": ["import_constants"]
|
6
6
|
}
|
@@ -33,7 +33,7 @@ function getLoaderPath(currentPath) {
|
|
33
33
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
|
34
34
|
}
|
35
35
|
function getPathFromLoaderPath(loaderPath) {
|
36
|
-
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").
|
36
|
+
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
37
37
|
}
|
38
38
|
function getSearchParams(searchParams) {
|
39
39
|
return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
|
@@ -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;;;;;;;uBAAyB,wBACzB,gBAAuB,qBACvBA,oBAA0B,+BAC1B,sBAA6B;AAE7B,SAASC,SAASC,MAAY;AAC5B,aACEC,kCAAaD,IAAAA,EACVE,WAAW,KAAK,GAAA,EAEhBC,QAAQ,MAAM,EAAA;AAErB;AAEA,IAAMC,WAAW,OAAOC,SAAW,KAC7BC,mBAAmBF,WAAW,UAAUG,2BAAAA,KAAc,IACtDC,gBAAgBJ,eAAWK,sBAAAA,IAAW;AAErC,SAASC,eAAeC,aAAmB;AAChD,SAAO,GAAGH,aAAAA,WAAwBT,SAASY,YAAYC,MAAM,CAAA,CAAA,CAAA,cAAiB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,GAAUC,OAAAA,WAAkBlB,SAASsB,eAAeE,SAASX,MAAM,CAAA,CAAA,CAAA,kBAAqBY,gBAAgBH,eAAeI,MAAM,CAAA;AACzI;AAEO,SAASC,sBAAsBC,YAAkB;AACtD,SAAOA,WACJxB,QAAQ,mBAAmB,EAAA,EAC3BA,QAAQ,sBAAsB,EAAA,EAC9BD,WAAW,MAAM,GAAA;AACtB;AAEA,SAASsB,gBAAgBI,cAAY;AACnC,SAAKA,eAIE,GAAGA,YAAAA,IAAgBtB,iBAAiBM,MAAM,CAAA,CAAA,KAHxCN;AAIX;",
|
5
5
|
"names": ["import_constants", "cleanUrl", "path", "removeSearch", "replaceAll", "replace", "isClient", "window", "clientSideSearch", "CACHE_KEY", "clientSideURL", "getURL", "getPreloadPath", "currentPath", "slice", "getLoaderPath", "includeUrl", "isNative", "baseURL", "devPath", "process", "env", "NODE_ENV", "currentPathUrl", "URL", "pathname", "getSearchParams", "search", "getPathFromLoaderPath", "loaderPath", "searchParams"]
|
6
6
|
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
13
|
+
return to;
|
14
|
+
};
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
21
|
+
mod
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
23
|
+
var runAndroid_exports = {};
|
24
|
+
__export(runAndroid_exports, {
|
25
|
+
run: () => run
|
26
|
+
});
|
27
|
+
module.exports = __toCommonJS(runAndroid_exports);
|
28
|
+
async function run(args) {
|
29
|
+
const { runAndroid } = await import("vxrn");
|
30
|
+
await runAndroid({
|
31
|
+
root: process.cwd()
|
32
|
+
});
|
33
|
+
}
|
34
|
+
//# sourceMappingURL=runAndroid.js.map
|
@@ -0,0 +1,6 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/cli/runAndroid.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAAsB,IAAI,MAAU;AAClC,QAAM,EAAE,WAAW,IAAI,MAAM,OAAO,MAAM;AAC1C,QAAM,WAAW;AAAA,IACf,MAAM,QAAQ,IAAI;AAAA,EACpB,CAAC;AACH;",
|
5
|
+
"names": []
|
6
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __create = Object.create;
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
return to;
|
15
|
+
};
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
22
|
+
mod
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
24
|
+
var runAndroid_exports = {};
|
25
|
+
__export(runAndroid_exports, {
|
26
|
+
run: () => run
|
27
|
+
});
|
28
|
+
module.exports = __toCommonJS(runAndroid_exports);
|
29
|
+
async function run(args) {
|
30
|
+
var { runAndroid } = await import("vxrn");
|
31
|
+
await runAndroid({
|
32
|
+
root: process.cwd()
|
33
|
+
});
|
34
|
+
}
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
36
|
+
0 && (module.exports = {
|
37
|
+
run
|
38
|
+
});
|
39
|
+
//# sourceMappingURL=runAndroid.js.map
|
@@ -0,0 +1,6 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/runAndroid.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;eAAsBA,IAAIC,MAAQ;AAChC,MAAM,EAAEC,WAAU,IAAK,MAAM,OAAO,MAAA;AACpC,QAAMA,WAAW;IACfC,MAAMC,QAAQC,IAAG;EACnB,CAAA;AACF;",
|
5
|
+
"names": ["run", "args", "runAndroid", "root", "process", "cwd"]
|
6
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
13
|
+
return to;
|
14
|
+
};
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
21
|
+
mod
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
23
|
+
var runIos_exports = {};
|
24
|
+
__export(runIos_exports, {
|
25
|
+
run: () => run
|
26
|
+
});
|
27
|
+
module.exports = __toCommonJS(runIos_exports);
|
28
|
+
async function run(args) {
|
29
|
+
const { runIos } = await import("vxrn");
|
30
|
+
await runIos({
|
31
|
+
root: process.cwd()
|
32
|
+
});
|
33
|
+
}
|
34
|
+
//# sourceMappingURL=runIos.js.map
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __create = Object.create;
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
return to;
|
15
|
+
};
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
22
|
+
mod
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
24
|
+
var runIos_exports = {};
|
25
|
+
__export(runIos_exports, {
|
26
|
+
run: () => run
|
27
|
+
});
|
28
|
+
module.exports = __toCommonJS(runIos_exports);
|
29
|
+
async function run(args) {
|
30
|
+
var { runIos } = await import("vxrn");
|
31
|
+
await runIos({
|
32
|
+
root: process.cwd()
|
33
|
+
});
|
34
|
+
}
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
36
|
+
0 && (module.exports = {
|
37
|
+
run
|
38
|
+
});
|
39
|
+
//# sourceMappingURL=runIos.js.map
|
@@ -0,0 +1,6 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/runIos.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;eAAsBA,IAAIC,MAAQ;AAChC,MAAM,EAAEC,OAAM,IAAK,MAAM,OAAO,MAAA;AAChC,QAAMA,OAAO;IACXC,MAAMC,QAAQC,IAAG;EACnB,CAAA;AACF;",
|
5
|
+
"names": ["run", "args", "runIos", "root", "process", "cwd"]
|
6
|
+
}
|
package/dist/cjs/cli.js
CHANGED
@@ -117,6 +117,26 @@ const dev = (0, import_citty.defineCommand)({
|
|
117
117
|
const { run } = await import("./cli/prebuild");
|
118
118
|
await run(args);
|
119
119
|
}
|
120
|
+
}), runIos = (0, import_citty.defineCommand)({
|
121
|
+
meta: {
|
122
|
+
name: "run:ios",
|
123
|
+
version
|
124
|
+
},
|
125
|
+
args: {},
|
126
|
+
async run({ args }) {
|
127
|
+
const { run } = await import("./cli/runIos");
|
128
|
+
await run(args);
|
129
|
+
}
|
130
|
+
}), runAndroid = (0, import_citty.defineCommand)({
|
131
|
+
meta: {
|
132
|
+
name: "run:ios",
|
133
|
+
version
|
134
|
+
},
|
135
|
+
args: {},
|
136
|
+
async run({ args }) {
|
137
|
+
const { run } = await import("./cli/runAndroid");
|
138
|
+
await run(args);
|
139
|
+
}
|
120
140
|
}), clean = (0, import_citty.defineCommand)({
|
121
141
|
meta: {
|
122
142
|
name: "clean",
|
@@ -138,7 +158,7 @@ const dev = (0, import_citty.defineCommand)({
|
|
138
158
|
},
|
139
159
|
args: {},
|
140
160
|
async run({ args }) {
|
141
|
-
if (["clean", "prebuild"].includes(args._[0]))
|
161
|
+
if (["clean", "prebuild", "run:ios", "run:android"].includes(args._[0]))
|
142
162
|
return;
|
143
163
|
const { cliMain } = await import("./cli/main");
|
144
164
|
await cliMain(args);
|
@@ -148,6 +168,8 @@ const dev = (0, import_citty.defineCommand)({
|
|
148
168
|
clean,
|
149
169
|
build: buildCommand,
|
150
170
|
prebuild,
|
171
|
+
"run:ios": runIos,
|
172
|
+
"run:android": runAndroid,
|
151
173
|
serve: serveCommand
|
152
174
|
}
|
153
175
|
});
|
package/dist/cjs/cli.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/cli.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,iBAAwB,2BACxB,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;AAAA,IAE7B,wBAAQ,QAAQ,IAAI,CAAC;AAE1B,MAAM,UAAM,4BAAc;AAAA,EACxB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,MAAM,IAAI,EAAE,KAAK,GAAG;AAClB,UAAM,EAAE,IAAI,IAAI,MAAM,OAAO,WAAW;AACxC,UAAM,IAAI,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,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,MAAM,CAAC;AAAA,EACP,MAAM,IAAI,EAAE,KAAK,GAAG;AAClB,QAAI,CAAC,SAAS,YAAY,WAAW,aAAa,EAAE,SAAS,KAAK,EAAE,CAAC,CAAC;AAEpE;AAGF,UAAM,EAAE,QAAQ,IAAI,MAAM,OAAO,YAAY;AAC7C,UAAM,QAAQ,IAAI;AAAA,EACpB;AAAA,EACA,aAAa;AAAA,IACX;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA,WAAW;AAAA,IACX,eAAe;AAAA,IACf,OAAO;AAAA,EACT;AACF,CAAC;AAAA,IAED,sBAAQ,IAAI;",
|
5
5
|
"names": ["path"]
|
6
6
|
}
|
package/dist/cjs/cli.native.js
CHANGED
@@ -118,6 +118,26 @@ var dev = (0, import_citty.defineCommand)({
|
|
118
118
|
var { args } = param, { run } = await import("./cli/prebuild");
|
119
119
|
await run(args);
|
120
120
|
}
|
121
|
+
}), runIos = (0, import_citty.defineCommand)({
|
122
|
+
meta: {
|
123
|
+
name: "run:ios",
|
124
|
+
version
|
125
|
+
},
|
126
|
+
args: {},
|
127
|
+
async run(param) {
|
128
|
+
var { args } = param, { run } = await import("./cli/runIos");
|
129
|
+
await run(args);
|
130
|
+
}
|
131
|
+
}), runAndroid = (0, import_citty.defineCommand)({
|
132
|
+
meta: {
|
133
|
+
name: "run:ios",
|
134
|
+
version
|
135
|
+
},
|
136
|
+
args: {},
|
137
|
+
async run(param) {
|
138
|
+
var { args } = param, { run } = await import("./cli/runAndroid");
|
139
|
+
await run(args);
|
140
|
+
}
|
121
141
|
}), clean = (0, import_citty.defineCommand)({
|
122
142
|
meta: {
|
123
143
|
name: "clean",
|
@@ -142,7 +162,9 @@ var dev = (0, import_citty.defineCommand)({
|
|
142
162
|
var { args } = param;
|
143
163
|
if (![
|
144
164
|
"clean",
|
145
|
-
"prebuild"
|
165
|
+
"prebuild",
|
166
|
+
"run:ios",
|
167
|
+
"run:android"
|
146
168
|
].includes(args._[0])) {
|
147
169
|
var { cliMain } = await import("./cli/main");
|
148
170
|
await cliMain(args);
|
@@ -153,6 +175,8 @@ var dev = (0, import_citty.defineCommand)({
|
|
153
175
|
clean,
|
154
176
|
build: buildCommand,
|
155
177
|
prebuild,
|
178
|
+
"run:ios": runIos,
|
179
|
+
"run:android": runAndroid,
|
156
180
|
serve: serveCommand
|
157
181
|
}
|
158
182
|
});
|
@@ -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,iBAAwB,2BACxB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;AAJ9B;AAMA,SAASA,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUE,iBAAAA,QAAKF,YAAQG,+BAAc,YAAYC,GAAG,CAAA;AAEtD,MAAMC,cAAcH,iBAAAA,QAAKI,KAAKN,SAAS,MAAM,MAAM,cAAA,GAC7CO,cAAcC,KAAKC,UAAMC,6BAAaL,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAYI;AACrB;AAEA,IAAMA,UAAUZ,kBAAAA;IAEXa,wBAAQC,QAAQC,IAAG,CAAA;AAExB,IAAMC,UAAMC,4BAAc;EACxBC,MAAM;IACJC,MAAM;IACNP;IACAQ,aAAa;EACf;EACAC,MAAM;IACJC,OAAO;MACLC,MAAM;IACR;IACAC,MAAM;MACJD,MAAM;IACR;IACAE,MAAM;MACJF,MAAM;IACR;IACAG,OAAO;MACLH,MAAM;IACR;EACF;EACA,MAAMI,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN,OACF,EAAEM,IAAG,IAAK,MAAM,OAAO,WAAA;AAC7B,UAAMA,IAAIN,IAAAA;EACZ;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AC;EACP,MAAMM,MAAAA;AACJ,QAAM,EAAEL,
|
5
|
-
"names": ["getPackageVersion", "dirname", "__dirname", "path", "fileURLToPath", "url", "packagePath", "join", "packageJson", "JSON", "parse", "readFileSync", "version", "loadEnv", "process", "cwd", "dev", "defineCommand", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "run", "buildCommand", "step", "required", "only", "build", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "vxrnClean", "root", "main", "includes", "_", "cliMain", "subCommands", "runMain"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,iBAAwB,2BACxB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;AAJ9B;AAMA,SAASA,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUE,iBAAAA,QAAKF,YAAQG,+BAAc,YAAYC,GAAG,CAAA;AAEtD,MAAMC,cAAcH,iBAAAA,QAAKI,KAAKN,SAAS,MAAM,MAAM,cAAA,GAC7CO,cAAcC,KAAKC,UAAMC,6BAAaL,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAYI;AACrB;AAEA,IAAMA,UAAUZ,kBAAAA;IAEXa,wBAAQC,QAAQC,IAAG,CAAA;AAExB,IAAMC,UAAMC,4BAAc;EACxBC,MAAM;IACJC,MAAM;IACNP;IACAQ,aAAa;EACf;EACAC,MAAM;IACJC,OAAO;MACLC,MAAM;IACR;IACAC,MAAM;MACJD,MAAM;IACR;IACAE,MAAM;MACJF,MAAM;IACR;IACAG,OAAO;MACLH,MAAM;IACR;EACF;EACA,MAAMI,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN,OACF,EAAEM,IAAG,IAAK,MAAM,OAAO,WAAA;AAC7B,UAAMA,IAAIN,IAAAA;EACZ;AACF,CAAA,GAEMO,mBAAeX,4BAAc;EACjCC,MAAM;IACJC,MAAM;IACNP;IACAQ,aAAa;EAC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C7B,UAAMA,IAAIN,IAAAA;EACZ;AACF,CAAA,GAEMqB,iBAAazB,4BAAc;EAC/BC,MAAM;IACJC,MAAM;IACNP;EACF;EACAS,MAAM,CAAC;EACP,MAAMM,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN,OACF,EAAEM,IAAG,IAAK,MAAM,OAAO,kBAAA;AAC7B,UAAMA,IAAIN,IAAAA;EACZ;AACF,CAAA,GAEMC,YAAQL,4BAAc;EAC1BC,MAAM;IACJC,MAAM;IACNP,SAAS;IACTQ,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMM,MAAAA;AACJ,QAAM,EAAEL,OAAOqB,UAAS,IAAK,MAAM,OAAO,MAAA;AAC1C,UAAMA,UAAU;MACdC,MAAM9B,QAAQC,IAAG;IACnB,CAAA;EACF;AACF,CAAA,GAEM8B,WAAO5B,4BAAc;EACzBC,MAAM;IACJC,MAAM;IACNP;IACAQ,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMM,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN;AACR,QAAI;MAAC;MAAS;MAAY;MAAW;MAAeyB,SAASzB,KAAK0B,EAAE,CAAA,CAAE,GAKtE;UAAM,EAAEC,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,YAAMA,QAAQ3B,IAAAA;;EAChB;EACA4B,aAAa;IACXjC;IACAM;IACAU,OAAOJ;IACPY;IACA,WAAWC;IACX,eAAeC;IACfJ,OAAOJ;EACT;AACF,CAAA;IAEAgB,sBAAQL,IAAAA;",
|
5
|
+
"names": ["getPackageVersion", "dirname", "__dirname", "path", "fileURLToPath", "url", "packagePath", "join", "packageJson", "JSON", "parse", "readFileSync", "version", "loadEnv", "process", "cwd", "dev", "defineCommand", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "run", "buildCommand", "step", "required", "only", "build", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "main", "includes", "_", "cliMain", "subCommands", "runMain"]
|
6
6
|
}
|
@@ -66,7 +66,7 @@ function createHandleRequest(options, handlers) {
|
|
66
66
|
if (handlers.handleLoader && pathname.endsWith("_vxrn_loader.js")) {
|
67
67
|
const originalUrl = (0, import_cleanUrl.getPathFromLoaderPath)(pathname), finalUrl = new URL(originalUrl, url.origin);
|
68
68
|
for (const route of pageRoutes) {
|
69
|
-
if (!route.workingRegex.test(finalUrl.pathname))
|
69
|
+
if (route.file === "" || !route.workingRegex.test(finalUrl.pathname))
|
70
70
|
continue;
|
71
71
|
const headers = new Headers();
|
72
72
|
headers.set("Content-Type", "text/javascript");
|
@@ -86,7 +86,7 @@ function createHandleRequest(options, handlers) {
|
|
86
86
|
} catch (err) {
|
87
87
|
if ((0, import_isResponse.isResponse)(err))
|
88
88
|
return err;
|
89
|
-
throw err;
|
89
|
+
throw console.error(`Error running loader: ${err}`), err;
|
90
90
|
}
|
91
91
|
}
|
92
92
|
return process.env.NODE_ENV === "development" && console.error("No matching route found!", {
|
@@ -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,uBAEtC,oBAA2B,+BAC3B,8BAAqC,yCACrC,qBAA4B;AAJ5B;AAgBO,SAAS,oBACd,SACA,UAKA;AACA,MAAI,YAAY;AACd,UAAM,IAAI,MAAM,mDAAmD;AAGrE,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,SA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AAA,cACA,aAAa;AAAA,gBACX,MAAM,WAAW;AAAA,gBACjB,QAAQ,gBAAgB,KAAK,KAAK;AAAA,cACpC;AAAA,YACF,CAAC;AAED,2BAAQ,WAAW,GACZ;AAAA,UACT;AAAA,QACF,SAAS,KAAK;AACZ,uBAAO,GAAG,GACJ;AAAA,QACR,UAAE;AACA,iBAAO,eAAe,QAAQ;AAAA,QAChC;AAAA,MACF;AAEA,aAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,SAAS,gBACP,KACA,QACA;AACA,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
|
}
|
@@ -78,7 +78,7 @@ function createHandleRequest(options, handlers) {
|
|
78
78
|
try {
|
79
79
|
for (var _iterator = pageRoutes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
80
80
|
var route = _step.value;
|
81
|
-
if (route.workingRegex.test(finalUrl.pathname)) {
|
81
|
+
if (route.file !== "" && route.workingRegex.test(finalUrl.pathname)) {
|
82
82
|
var headers = new Headers();
|
83
83
|
headers.set("Content-Type", "text/javascript");
|
84
84
|
try {
|
@@ -97,7 +97,7 @@ function createHandleRequest(options, handlers) {
|
|
97
97
|
} catch (err) {
|
98
98
|
if ((0, import_isResponse.isResponse)(err))
|
99
99
|
return err;
|
100
|
-
throw err;
|
100
|
+
throw console.error(`Error running loader: ${err}`), err;
|
101
101
|
}
|
102
102
|
}
|
103
103
|
}
|
@@ -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,uBAEtC,oBAA2B,+BAC3B,8BAAqC,yCACrC,qBAA4B;AAJ5B;AAgBO,SAASA,oBACdC,SACAC,UAIC;AAED,MAAI,YAAYC;AACd,UAAM,IAAIC,MAAM,mDAAmD;AAGrE,MAAMC,eAAWC,gCAAAA;AACjB,MAAI,CAACD;AACH,UAAM,IAAID,MAAM,oBAAoB;AAGtC,MAAMG,eACJF,SAASG,UAAUC,OAAO,SAACC,KAAKC,KAAAA;AAC9BD,eAAIC,IAAIC,IAAI,IAAI;MAAE,GAAGD;MAAKE,eAAe,IAAIC,OAAOH,IAAII,UAAU;IAAE,GAC7DL;EACT,GAAG,CAAC,CAAA,GAEAM,gBAAgBC,OAAOC,OAAOX,YAAAA,GAK9BY,iBAAiB,CAAC,GAGlBC,aAAaf,SAASe,WAAWC,IAAI,SAACC,OAAAA;WAAW;MACrD,GAAGA;MACHC,cAAc,IAAIT,OAAOQ,MAAMP,UAAU;IAC3C;;AAEA,SAAO;IACLV;IACAmB,SAAS,eAA6BC,SAAgB;AACpD,UAAMC,YAAYD,QAAQE,OAAO,IAC3BA,MAAM,IAAIC,IACdF,aAAa,IACbD,QAAQI,QAAQC,IAAI,MAAA,IAAU,UAAUL,QAAQI,QAAQC,IAAI,MAAA,CAAA,KAAY,EAAA,GAEpE,EAAEC,UAAUC,OAAM,IAAKL;AAE7B,UAAIM,QAAQ9B,IAAI+B,aAAa,gBACvBf,eAAeY,QAAAA;AACjB,eAAO,MAAMZ,eAAeY,QAAAA;AAIhC,UAAIA,aAAa,gBAAgBA,SAASI,WAAW,IAAA;AACnD,eAAO;AAGT,UAAIjC,SAASkC,WAAW;AACtB,YAAMC,WAAWrB,cAAcsB,KAAK,SAAChB,QAAAA;AACnC,cAAMiB,QAAQjB,OAAMT;AACpB,iBAAO0B,MAAMC,KAAKT,QAAAA;QACpB,CAAA;AAEA,YAAIM,UAAU;AACZ,cAAMI,SAASC,eAAeX,UAAUM,QAAAA;AAExC,cAAI;AACF,mBAAO,MAAMnC,SAASkC,UAAU;cAC9BX;cACAH,OAAOe;cACPV;cACAgB,aAAa;gBACXC,MAAMb;gBACNU;cACF;YACF,CAAA;UACF,SAASI,KAAK;AACZ,oBAAIC,8BAAWD,GAAAA;AACb,qBAAOA;AAET,kBAAMA;UACR;QACF;MACF;AAEA,UAAIpB,QAAQsB,WAAW;AACrB,eAAO;AAGT,UAAI7C,SAAS8C,cAAc;AACzB,YAAMC,6BAA6BlB,SAASmB,SAAS,iBAAA;AAErD,YAAID,4BAA4B;AAC9B,cAAME,kBAAcC,uCAAsBrB,QAAAA,GACpCsB,WAAW,IAAIzB,IAAIuB,aAAaxB,IAAI2B,MAAM,GAE3C,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,qBAAK,YAAelC,WAAAA,OAAAA,QAAAA,EAAAA,GAAf,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAA2B;AAA3B,kBAAME,QAAN,MAAA;AACH,
|
5
|
-
"names": ["createHandleRequest", "options", "handlers", "env", "Error", "manifest", "getManifest", "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", "NODE_ENV", "startsWith", "handleAPI", "apiRoute", "find", "regex", "test", "params", "getRouteParams", "loaderProps", "path", "err", "isResponse", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "getPathFromLoaderPath", "finalUrl", "origin", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "console", "error", "routes", "handleSSR", "promise", "reject", "resolve", "promiseWithResolvers", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;sBAAsC,uBAEtC,oBAA2B,+BAC3B,8BAAqC,yCACrC,qBAA4B;AAJ5B;AAgBO,SAASA,oBACdC,SACAC,UAIC;AAED,MAAI,YAAYC;AACd,UAAM,IAAIC,MAAM,mDAAmD;AAGrE,MAAMC,eAAWC,gCAAAA;AACjB,MAAI,CAACD;AACH,UAAM,IAAID,MAAM,oBAAoB;AAGtC,MAAMG,eACJF,SAASG,UAAUC,OAAO,SAACC,KAAKC,KAAAA;AAC9BD,eAAIC,IAAIC,IAAI,IAAI;MAAE,GAAGD;MAAKE,eAAe,IAAIC,OAAOH,IAAII,UAAU;IAAE,GAC7DL;EACT,GAAG,CAAC,CAAA,GAEAM,gBAAgBC,OAAOC,OAAOX,YAAAA,GAK9BY,iBAAiB,CAAC,GAGlBC,aAAaf,SAASe,WAAWC,IAAI,SAACC,OAAAA;WAAW;MACrD,GAAGA;MACHC,cAAc,IAAIT,OAAOQ,MAAMP,UAAU;IAC3C;;AAEA,SAAO;IACLV;IACAmB,SAAS,eAA6BC,SAAgB;AACpD,UAAMC,YAAYD,QAAQE,OAAO,IAC3BA,MAAM,IAAIC,IACdF,aAAa,IACbD,QAAQI,QAAQC,IAAI,MAAA,IAAU,UAAUL,QAAQI,QAAQC,IAAI,MAAA,CAAA,KAAY,EAAA,GAEpE,EAAEC,UAAUC,OAAM,IAAKL;AAE7B,UAAIM,QAAQ9B,IAAI+B,aAAa,gBACvBf,eAAeY,QAAAA;AACjB,eAAO,MAAMZ,eAAeY,QAAAA;AAIhC,UAAI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C,KACA2C,QAAmE;AAEnE,MAAM7B,SAAiC,CAAC,GAClC8B,QAAQ,IAAIzD,OAAOwD,OAAO/C,YAAY,EAAEiD,KAAK7C,IAAII,QAAQ;AAC/D,MAAIwC,SAAAA,QAAAA,MAAOE,QAAQ;QACZ,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,eAAK,YAAsBxD,OAAOyD,QAAQH,MAAME,MAAM,EAAA,OAAA,QAAA,EAAA,GAAjD,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAoD;AAApD,YAAM,CAACE,KAAKC,KAAAA,IAAZ,MAAA,OACGC,WAAWP,OAAOQ,UAAUH,GAAAA;AAClClC,eAAOoC,QAAAA,IAAYD;MACrB;;AAHK,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;EAIP;AACA,SAAOnC;AACT;AAGA,SAASC,eAAeX,UAAkBT,OAAwB;AAChE,MAAMiB,QAAQ,IAAIzB,OAAOQ,MAAMP,UAAU,GACnCwD,QAAQhC,MAAMiC,KAAKzC,QAAAA;AACzB,SAAKwC,QACEtD,OAAO8D,YACZ9D,OAAOyD,QAAQpD,MAAMwD,SAAS,EAAEzD,IAAI,SAAA,OAAA;QAAC,CAACsD,KAAKC,KAAAA,IAAM,OAAaL;WAAR;MAACK;OAAOL,gBAAAA,MAAME,YAAM,QAAZF,kBAAAA,SAAAA,SAAAA,cAAeI,GAAAA;;QAF5D,CAAC;AAItB;",
|
5
|
+
"names": ["createHandleRequest", "options", "handlers", "env", "Error", "manifest", "getManifest", "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", "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", "console", "error", "routes", "handleSSR", "promise", "reject", "resolve", "promiseWithResolvers", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
|
6
6
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/createFileSystemRouter.tsx"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAqB,sBACrB,0BAAyB,6BAEzB,cAAyC,iBAEzC,6BAAoC,mCAEpC,oBAA2B,gCAC3B,kBAAiC,8BACjC,8BAAqC,0CACrC,mBAAgC,wBAChC,uBAA8B,4BAC9B,2BAAkC,gCAElC,4BAAoD;AAGpD,MAAM,iBAAiB;AAAM;AAEtB,SAAS,uBAAuB,SAAoC;
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAqB,sBACrB,0BAAyB,6BAEzB,cAAyC,iBAEzC,6BAAoC,mCAEpC,oBAA2B,gCAC3B,kBAAiC,8BACjC,8BAAqC,0CACrC,mBAAgC,wBAChC,uBAA8B,4BAC9B,2BAAkC,gCAElC,4BAAoD;AAGpD,MAAM,iBAAiB;AAAM;AAEtB,SAAS,uBAAuB,SAAoC;AACzE,QAAM,WAAW,CAAC,iBAAiB,6CAAmB;AAEtD,MAAI,QACA,QAEA,gBAAgB,qBAAqB,GAErC,gBAAsC;AAE1C,WAAS,uBAAuB;AAC9B,eAAO,gDAAoB,SAAS;AAAA,MAClC,MAAM,UAAU,EAAE,OAAO,KAAK,YAAY,GAAG;AAG3C,YAFA,QAAQ,KAAK,aAAQ,MAAM,IAAI,KAAK,GAAG,gBAAgB,MAAM,I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,SAAO,IAAI,QAAQ,CAACI,UAAS,WAAW;AACtC,UAAM,SAAuB,CAAC;AAC9B,WAAO,GAAG,QAAQ,CAAC,UAAsB,OAAO,KAAK,KAAK,CAAC,GAC3D,OAAO,GAAG,OAAO,MAAMA,SAAQ,OAAO,OAAO,MAAM,CAAC,CAAC,GACrD,OAAO,GAAG,SAAS,MAAM;AAAA,EAC3B,CAAC;AACH;",
|
5
5
|
"names": ["route", "url", "loaderProps", "routeFile", "loaderData", "resolve"]
|
6
6
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/createFileSystemRouter.tsx"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,uBAAqB,sBACrB,0BAAyB,6BAEzB,cAAyC,iBAEzC,6BAAoC,mCAEpC,oBAA2B,gCAC3B,kBAAiC,8BACjC,8BAAqC,0CACrC,mBAAgC,wBAChC,uBAA8B,4BAC9B,2BAAkC,gCAElC,4BAAoD;;;;;AAGpD,IAAMA,iBAAiB;AAAM;AAEtB,SAASC,uBAAuBC,SAA0B;
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,uBAAqB,sBACrB,0BAAyB,6BAEzB,cAAyC,iBAEzC,6BAAoC,mCAEpC,oBAA2B,gCAC3B,kBAAiC,8BACjC,8BAAqC,0CACrC,mBAAgC,wBAChC,uBAA8B,4BAC9B,2BAAkC,gCAElC,4BAAoD;;;;;AAGpD,IAAMA,iBAAiB;AAAM;AAEtB,SAASC,uBAAuBC,SAA0B;AAC/D,MAAMC,WAAW;IAAC;IAAiBC;KAE/BC,QACAC,QAEAC,gBAAgBC,qBAAAA,GAEhBC,gBAAsC;AAE1C,WAASD,uBAAAA;AACP,eAAOE,gDAAoBR,SAAS;MAClC,MAAMS,UAAU,OAA2B;YAA3B,EAAEC,OAAOC,KAAKC,YAAW,IAAzB;AAGd,YAFAC,QAAQC,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8D,UAAU,EAAA,IAC5D,MAAME,WAAWhE,GAAAA,IACjB;IACJzD;EACF,CAAA;AACF;AAEA,SAASyH,WAAWjB,QAA+B;AACjD,SAAO,IAAIkB,QAAQ,SAAChJ,UAASiJ,QAAAA;AAC3B,QAAMC,SAAuB,CAAA;AAC7BpB,WAAOqB,GAAG,QAAQ,SAACC,OAAAA;aAAsBF,OAAOG,KAAKD,KAAAA;QACrDtB,OAAOqB,GAAG,OAAO,WAAA;aAAMnJ,SAAQsJ,OAAOC,OAAOL,MAAAA,CAAAA;QAC7CpB,OAAOqB,GAAG,SAASF,MAAAA;EACrB,CAAA;AACF;",
|
5
5
|
"names": ["USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "virtalEntryIdClient", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "createHandleRequest", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "promiseWithResolvers", "globalThis", "exported", "routeFile", "join", "clearCache", "import", "loaderData", "loader", "eval", "entry", "virtualEntryId", "render", "default", "LoaderDataCache", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "replaceLoader", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "resolveAPIRequest", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "createServerModuleRunner", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "debounce", "startsWith", "watcher", "addListener", "middlewares", "use", "req", "res", "next", "redirects", "web", "URL", "host", "redirect", "regexStr", "source", "replace", "match", "RegExp", "destination", "forEach", "index", "warn", "writeHead", "permanent", "Location", "end", "reply", "handler", "convertIncomingMessageToRequest", "isResponse", "isStatusRedirect", "location", "statusCode", "statusMessage", "statusText", "value", "key", "cookies", "split", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "cookie", "appendHeader", "setHeader", "outString", "body", "locked", "streamToString", "write", "stream", "reader", "getReader", "decoder", "TextDecoder", "done", "read", "decode", "releaseLock", "originalUrl", "urlBase", "urlString", "Headers", "append", "Request", "method", "includes", "readStream", "Promise", "reject", "chunks", "on", "chunk", "push", "Buffer", "concat"]
|
6
6
|
}
|
@@ -27,7 +27,7 @@ function replaceLoader({
|
|
27
27
|
// make sure this ' ' is added in front,
|
28
28
|
// minifiers will do `return"something"
|
29
29
|
// but if its null then it becomes returnnull
|
30
|
-
" " + stringifiedData
|
30
|
+
" " + stringifiedData.replace(/\$/g, "$$$$")
|
31
31
|
) : code + `
|
32
32
|
export const loader = () => (${stringifiedData})`;
|
33
33
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/replaceLoader.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,cAAc;AAAA,EAC5B;AAAA,EACA;AACF,GAGG;AACD,QAAM,kBAAkB,KAAK,UAAU,UAAU;AAejD,SAZO,KAAK,SAAS,kBAAkB,IAG9B,KAAK;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAIA,MAAM;AAAA,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,cAAc;AAAA,EAC5B;AAAA,EACA;AACF,GAGG;AACD,QAAM,kBAAkB,KAAK,UAAU,UAAU;AAejD,SAZO,KAAK,SAAS,kBAAkB,IAG9B,KAAK;AAAA,IACV;AAAA;AAAA;AAAA;AAAA,IAIA,MAAM,gBAAgB,QAAQ,OAAO,MAAM;AAAA,EAC7C,IARS,OAAO;AAAA,+BAAkC,eAAe;AAYrE;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -25,7 +25,7 @@ function replaceLoader(param) {
|
|
25
25
|
// make sure this ' ' is added in front,
|
26
26
|
// minifiers will do `return"something"
|
27
27
|
// but if its null then it becomes returnnull
|
28
|
-
" " + stringifiedData
|
28
|
+
" " + stringifiedData.replace(/\$/g, "$$$$")
|
29
29
|
) : code + `
|
30
30
|
export const loader = () => (${stringifiedData})`;
|
31
31
|
}();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/replaceLoader.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAAO,SAASA,cAAc,OAM7B;MAN6B,EAC5BC,MACAC,WAAU,IAFkB,OAOtBC,kBAAkBC,KAAKC,UAAUH,UAAAA,GAEjCI,MAAO,WAAA;AACX,WAAKL,KAAKM,SAAS,kBAAA,IAGZN,KAAKO;MACV;;;;MAIA,MAAML;
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAAO,SAASA,cAAc,OAM7B;MAN6B,EAC5BC,MACAC,WAAU,IAFkB,OAOtBC,kBAAkBC,KAAKC,UAAUH,UAAAA,GAEjCI,MAAO,WAAA;AACX,WAAKL,KAAKM,SAAS,kBAAA,IAGZN,KAAKO;MACV;;;;MAIA,MAAML,gBAAgBK,QAAQ,OAAO,MAAA;IAAA,IAP9BP,OAAO;+BAAkCE,eAAAA;EASpD,EAAA;AAEA,SAAOG;AACT;",
|
5
5
|
"names": ["replaceLoader", "code", "loaderData", "stringifiedData", "JSON", "stringify", "out", "includes", "replace"]
|
6
6
|
}
|
package/dist/esm/cleanUrl.js
CHANGED
@@ -18,7 +18,7 @@ function getLoaderPath(currentPath, includeUrl = isNative) {
|
|
18
18
|
return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
|
19
19
|
}
|
20
20
|
function getPathFromLoaderPath(loaderPath) {
|
21
|
-
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").
|
21
|
+
return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
|
22
22
|
}
|
23
23
|
function getSearchParams(searchParams) {
|
24
24
|
return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
|