one 1.1.299 → 1.1.300

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/dist/cjs/cleanUrl.js +1 -1
  2. package/dist/cjs/cleanUrl.js.map +1 -1
  3. package/dist/cjs/cleanUrl.native.js +1 -1
  4. package/dist/cjs/cleanUrl.native.js.map +1 -1
  5. package/dist/cjs/cli/runAndroid.js +34 -0
  6. package/dist/cjs/cli/runAndroid.js.map +6 -0
  7. package/dist/cjs/cli/runAndroid.native.js +39 -0
  8. package/dist/cjs/cli/runAndroid.native.js.map +6 -0
  9. package/dist/cjs/cli/runIos.js +34 -0
  10. package/dist/cjs/cli/runIos.js.map +6 -0
  11. package/dist/cjs/cli/runIos.native.js +39 -0
  12. package/dist/cjs/cli/runIos.native.js.map +6 -0
  13. package/dist/cjs/cli.js +23 -1
  14. package/dist/cjs/cli.js.map +1 -1
  15. package/dist/cjs/cli.native.js +25 -1
  16. package/dist/cjs/cli.native.js.map +2 -2
  17. package/dist/cjs/createHandleRequest.js +2 -2
  18. package/dist/cjs/createHandleRequest.js.map +1 -1
  19. package/dist/cjs/createHandleRequest.native.js +2 -2
  20. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  21. package/dist/cjs/vite/createFileSystemRouter.js +1 -1
  22. package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
  23. package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
  24. package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
  25. package/dist/cjs/vite/replaceLoader.js +1 -1
  26. package/dist/cjs/vite/replaceLoader.js.map +1 -1
  27. package/dist/cjs/vite/replaceLoader.native.js +1 -1
  28. package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
  29. package/dist/esm/cleanUrl.js +1 -1
  30. package/dist/esm/cleanUrl.js.map +1 -1
  31. package/dist/esm/cleanUrl.mjs +1 -1
  32. package/dist/esm/cleanUrl.mjs.map +1 -1
  33. package/dist/esm/cleanUrl.native.js +1 -1
  34. package/dist/esm/cleanUrl.native.js.map +1 -1
  35. package/dist/esm/cli/runAndroid.js +10 -0
  36. package/dist/esm/cli/runAndroid.js.map +6 -0
  37. package/dist/esm/cli/runAndroid.mjs +10 -0
  38. package/dist/esm/cli/runAndroid.mjs.map +1 -0
  39. package/dist/esm/cli/runAndroid.native.js +10 -0
  40. package/dist/esm/cli/runAndroid.native.js.map +6 -0
  41. package/dist/esm/cli/runIos.js +10 -0
  42. package/dist/esm/cli/runIos.js.map +6 -0
  43. package/dist/esm/cli/runIos.mjs +10 -0
  44. package/dist/esm/cli/runIos.mjs.map +1 -0
  45. package/dist/esm/cli/runIos.native.js +10 -0
  46. package/dist/esm/cli/runIos.native.js.map +6 -0
  47. package/dist/esm/cli.js +23 -1
  48. package/dist/esm/cli.js.map +1 -1
  49. package/dist/esm/cli.mjs +33 -1
  50. package/dist/esm/cli.mjs.map +1 -1
  51. package/dist/esm/cli.native.js +25 -1
  52. package/dist/esm/cli.native.js.map +2 -2
  53. package/dist/esm/createHandleRequest.js +2 -2
  54. package/dist/esm/createHandleRequest.js.map +1 -1
  55. package/dist/esm/createHandleRequest.mjs +2 -2
  56. package/dist/esm/createHandleRequest.mjs.map +1 -1
  57. package/dist/esm/createHandleRequest.native.js +2 -2
  58. package/dist/esm/createHandleRequest.native.js.map +2 -2
  59. package/dist/esm/vite/createFileSystemRouter.js +1 -1
  60. package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
  61. package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
  62. package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
  63. package/dist/esm/vite/createFileSystemRouter.native.js +1 -1
  64. package/dist/esm/vite/createFileSystemRouter.native.js.map +1 -1
  65. package/dist/esm/vite/replaceLoader.js +1 -1
  66. package/dist/esm/vite/replaceLoader.js.map +1 -1
  67. package/dist/esm/vite/replaceLoader.mjs +1 -1
  68. package/dist/esm/vite/replaceLoader.mjs.map +1 -1
  69. package/dist/esm/vite/replaceLoader.native.js +1 -1
  70. package/dist/esm/vite/replaceLoader.native.js.map +1 -1
  71. package/package.json +6 -6
  72. package/src/cleanUrl.ts +1 -1
  73. package/src/cli/runAndroid.ts +6 -0
  74. package/src/cli/runIos.ts +6 -0
  75. package/src/cli.ts +27 -1
  76. package/src/createHandleRequest.ts +7 -0
  77. package/src/vite/createFileSystemRouter.tsx +1 -2
  78. package/src/vite/replaceLoader.ts +1 -1
  79. package/types/cli/runAndroid.d.ts +2 -0
  80. package/types/cli/runAndroid.d.ts.map +1 -0
  81. package/types/cli/runIos.d.ts +2 -0
  82. package/types/cli/runIos.d.ts.map +1 -0
  83. package/types/createHandleRequest.d.ts.map +1 -1
  84. package/types/vite/createFileSystemRouter.d.ts.map +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/cleanUrl.ts"],
4
- "mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAE7B,SAAS,SAAS,MAAc;AAC9B,SACE,aAAa,IAAI,EACd,WAAW,KAAK,GAAG,EAEnB,QAAQ,MAAM,EAAE;AAEvB;AAEA,MAAM,WAAW,OAAO,SAAW,KAC7B,mBAAmB,WAAW,UAAU,SAAS,KAAK,IACtD,gBAAgB,WAAW,OAAO,IAAI;AAErC,SAAS,eAAe,aAAqB;AAClD,SAAO,GAAG,aAAa,WAAW,SAAS,YAAY,MAAM,CAAC,CAAC,CAAC,cAAc,gBAAgB;AAChG;AAEO,SAAS,cACd,aAEA,aAAa,UACb;AACA,QAAM,UAAU,aAAa,OAAO,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,kBAAkB,gBAAgB,eAAe,MAAM,CAAC;AAC1I;AAEO,SAAS,sBAAs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
19
19
  return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
20
20
  }
21
21
  function getPathFromLoaderPath(loaderPath) {
22
- return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replace("_", "/");
22
+ return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
23
23
  }
24
24
  function getSearchParams(searchParams) {
25
25
  return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
@@ -1 +1 @@
1
- {"version":3,"names":["isNative","getURL","CACHE_KEY","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideSearch","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","currentPathUrl","URL","pathname","getSearchParams","search","getPathFromLoaderPath","loaderPath","searchParams"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,QAAgB;AACzB,SAASC,MAAA,QAAc;AACvB,SAASC,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAE7B,SAASC,SAASC,IAAA,EAAc;EAC9B,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,MAAMC,QAAA,GAAW,OAAOC,MAAA,GAAW;EAC7BC,gBAAA,GAAmBF,QAAA,GAAW,UAAUN,SAAS,KAAK;EACtDS,aAAA,GAAgBH,QAAA,GAAWP,MAAA,CAAO,IAAI;AAErC,SAASW,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWP,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,cAAcJ,gBAAgB;AAChG;AAEO,SAASK,cACdF,WAAA,EAEAG,UAAA,GAAahB,QAAA,EACb;EACA,MAAMiB,OAAA,GAAUD,UAAA,GAAaf,MAAA,CAAO,IAAI;IAClCiB,OAAA,GAAUC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,gBAAgB,UAAU;IAE7DC,cAAA,GAAiB,IAAIC,GAAA,CACzBV,WAAA,EACA;IAAA,iDACF;EAEA,OAAO,GAAGI,OAAO,GAAGC,OAAO,WAAWd,QAAA,CAASkB,cAAA,CAAeE,QAAA,CAASV,KAAA,CAAM,CAAC,CAAC,CAAC,kBAAkBW,eAAA,CAAgBH,cAAA,CAAeI,MAAM,CAAC;AAC1I;AAEO,SAASC,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJrB,OAAA,CAAQ,mBAAmB,EAAE,EAC7BA,OAAA,CAAQ,sBAAsB,EAAE,EAChCA,OAAA,CAAQ,KAAK,GAAG;AACrB;AAEA,SAASkB,gBAAgBI,YAAA,EAAc;EACrC,OAAKA,YAAA,GAIE,GAAGA,YAAY,IAAInB,gBAAA,CAAiBI,KAAA,CAAM,CAAC,CAA8B,KAHvEJ,gBAAA;AAIX","ignoreList":[]}
1
+ {"version":3,"names":["isNative","getURL","CACHE_KEY","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideSearch","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","currentPathUrl","URL","pathname","getSearchParams","search","getPathFromLoaderPath","loaderPath","searchParams"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,QAAgB;AACzB,SAASC,MAAA,QAAc;AACvB,SAASC,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAE7B,SAASC,SAASC,IAAA,EAAc;EAC9B,OACEF,YAAA,CAAaE,IAAI,EACdC,UAAA,CAAW,KAAK,GAAG,EAEnBC,OAAA,CAAQ,MAAM,EAAE;AAEvB;AAEA,MAAMC,QAAA,GAAW,OAAOC,MAAA,GAAW;EAC7BC,gBAAA,GAAmBF,QAAA,GAAW,UAAUN,SAAS,KAAK;EACtDS,aAAA,GAAgBH,QAAA,GAAWP,MAAA,CAAO,IAAI;AAErC,SAASW,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWP,QAAA,CAASS,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,cAAcJ,gBAAgB;AAChG;AAEO,SAASK,cACdF,WAAA,EAEAG,UAAA,GAAahB,QAAA,EACb;EACA,MAAMiB,OAAA,GAAUD,UAAA,GAAaf,MAAA,CAAO,IAAI;IAClCiB,OAAA,GAAUC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,gBAAgB,UAAU;IAE7DC,cAAA,GAAiB,IAAIC,GAAA,CACzBV,WAAA,EACA;IAAA,iDACF;EAEA,OAAO,GAAGI,OAAO,GAAGC,OAAO,WAAWd,QAAA,CAASkB,cAAA,CAAeE,QAAA,CAASV,KAAA,CAAM,CAAC,CAAC,CAAC,kBAAkBW,eAAA,CAAgBH,cAAA,CAAeI,MAAM,CAAC;AAC1I;AAEO,SAASC,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJrB,OAAA,CAAQ,mBAAmB,EAAE,EAC7BA,OAAA,CAAQ,sBAAsB,EAAE,EAChCD,UAAA,CAAW,MAAM,GAAG;AACzB;AAEA,SAASmB,gBAAgBI,YAAA,EAAc;EACrC,OAAKA,YAAA,GAIE,GAAGA,YAAY,IAAInB,gBAAA,CAAiBI,KAAA,CAAM,CAAC,CAA8B,KAHvEJ,gBAAA;AAIX","ignoreList":[]}
@@ -14,7 +14,7 @@ function getLoaderPath(currentPath) {
14
14
  return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
15
15
  }
16
16
  function getPathFromLoaderPath(loaderPath) {
17
- return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replace("_", "/");
17
+ return loaderPath.replace("_vxrn_loader.js", "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
18
18
  }
19
19
  function getSearchParams(searchParams) {
20
20
  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,SAASA,gBAAgB;AACzB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,oBAAoB;AAE7B,SAASC,SAASC,MAAY;AAC5B,SACEF,aAAaE,IAAAA,EACVC,WAAW,KAAK,GAAA,EAEhBC,QAAQ,MAAM,EAAA;AAErB;AAEA,IAAMC,WAAW,OAAOC,SAAW,KAC7BC,mBAAmBF,WAAW,UAAUN,SAAAA,KAAc,IACtDS,gBAAgBH,WAAWP,OAAAA,IAAW;AAErC,SAASW,eAAeC,aAAmB;AAChD,SAAO,GAAGF,aAAAA,WAAwBP,SAASS,YAAYC,MAAM,CAAA,CAAA,CAAA,cAAiBJ,gBAAAA;AAChF;AAEO,SAASK,cACdF,aAAmB;MAEnBG,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAahB,UAEPiB,UAAUD,aAAaf,OAAAA,IAAW,IAClCiB,UAAUC,QAAQC,IAAIC,aAAa,gBAAgB,UAAU,IAE7DC,iBAAiB,IAAIC,IACzBV,aACA,oBAAA;AAGF,SAAO,GAAGI,OAAAA,GAAUC,OAAAA,WAAkBd,SAASkB,eAAeE,SAASV,MAAM,CAAA,CAAA,CAAA,kBAAqBW,gBAAgBH,eAAeI,MAAM,CAAA;AACzI;AAEO,SAASC,sBAAsBC,YAAkB;AACtD,SAAOA,WACJrB,QAAQ,mBAAmB,EAAA,EAC3BA,QAAQ,sBAAsB,EAAA,EAC9BA,QAAQ,KAAK,GAAA;AAClB;AAEA,SAASkB,gBAAgBI,cAAY;AACnC,SAA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"clientSideSearch", "clientSideURL", "getPreloadPath", "currentPath", "slice", "getLoaderPath", "includeUrl", "baseURL", "devPath", "process", "env", "NODE_ENV", "currentPathUrl", "URL", "pathname", "getSearchParams", "search", "getPathFromLoaderPath", "loaderPath", "searchParams"]
6
6
  }
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ const { runAndroid } = await import("vxrn");
3
+ await runAndroid({
4
+ root: process.cwd()
5
+ });
6
+ }
7
+ export {
8
+ run
9
+ };
10
+ //# sourceMappingURL=runAndroid.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/cli/runAndroid.ts"],
4
+ "mappings": "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,10 @@
1
+ async function run(args) {
2
+ const {
3
+ runAndroid
4
+ } = await import("vxrn");
5
+ await runAndroid({
6
+ root: process.cwd()
7
+ });
8
+ }
9
+ export { run };
10
+ //# sourceMappingURL=runAndroid.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["run","args","runAndroid","root","process","cwd"],"sources":["../../../src/cli/runAndroid.ts"],"sourcesContent":[null],"mappings":"AAAA,eAAsBA,IAAIC,IAAA,EAAU;EAClC,MAAM;IAAEC;EAAW,IAAI,MAAM,OAAO,MAAM;EAC1C,MAAMA,UAAA,CAAW;IACfC,IAAA,EAAMC,OAAA,CAAQC,GAAA,CAAI;EACpB,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ var { runAndroid } = await import("vxrn");
3
+ await runAndroid({
4
+ root: process.cwd()
5
+ });
6
+ }
7
+ export {
8
+ run
9
+ };
10
+ //# 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,10 @@
1
+ async function run(args) {
2
+ const { runIos } = await import("vxrn");
3
+ await runIos({
4
+ root: process.cwd()
5
+ });
6
+ }
7
+ export {
8
+ run
9
+ };
10
+ //# sourceMappingURL=runIos.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/cli/runIos.ts"],
4
+ "mappings": "AAAA,eAAsB,IAAI,MAAU;AAClC,QAAM,EAAE,OAAO,IAAI,MAAM,OAAO,MAAM;AACtC,QAAM,OAAO;AAAA,IACX,MAAM,QAAQ,IAAI;AAAA,EACpB,CAAC;AACH;",
5
+ "names": []
6
+ }
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ const {
3
+ runIos
4
+ } = await import("vxrn");
5
+ await runIos({
6
+ root: process.cwd()
7
+ });
8
+ }
9
+ export { run };
10
+ //# sourceMappingURL=runIos.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["run","args","runIos","root","process","cwd"],"sources":["../../../src/cli/runIos.ts"],"sourcesContent":[null],"mappings":"AAAA,eAAsBA,IAAIC,IAAA,EAAU;EAClC,MAAM;IAAEC;EAAO,IAAI,MAAM,OAAO,MAAM;EACtC,MAAMA,MAAA,CAAO;IACXC,IAAA,EAAMC,OAAA,CAAQC,GAAA,CAAI;EACpB,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ var { runIos } = await import("vxrn");
3
+ await runIos({
4
+ root: process.cwd()
5
+ });
6
+ }
7
+ export {
8
+ run
9
+ };
10
+ //# 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/esm/cli.js CHANGED
@@ -101,6 +101,26 @@ const dev = defineCommand({
101
101
  const { run } = await import("./cli/prebuild");
102
102
  await run(args);
103
103
  }
104
+ }), runIos = defineCommand({
105
+ meta: {
106
+ name: "run:ios",
107
+ version
108
+ },
109
+ args: {},
110
+ async run({ args }) {
111
+ const { run } = await import("./cli/runIos");
112
+ await run(args);
113
+ }
114
+ }), runAndroid = defineCommand({
115
+ meta: {
116
+ name: "run:ios",
117
+ version
118
+ },
119
+ args: {},
120
+ async run({ args }) {
121
+ const { run } = await import("./cli/runAndroid");
122
+ await run(args);
123
+ }
104
124
  }), clean = defineCommand({
105
125
  meta: {
106
126
  name: "clean",
@@ -122,7 +142,7 @@ const dev = defineCommand({
122
142
  },
123
143
  args: {},
124
144
  async run({ args }) {
125
- if (["clean", "prebuild"].includes(args._[0]))
145
+ if (["clean", "prebuild", "run:ios", "run:android"].includes(args._[0]))
126
146
  return;
127
147
  const { cliMain } = await import("./cli/main");
128
148
  await cliMain(args);
@@ -132,6 +152,8 @@ const dev = defineCommand({
132
152
  clean,
133
153
  build: buildCommand,
134
154
  prebuild,
155
+ "run:ios": runIos,
156
+ "run:android": runAndroid,
135
157
  serve: serveCommand
136
158
  }
137
159
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/cli.ts"],
4
- "mappings": "AAAA,SAAS,eAAe,eAAe;AACvC,SAAS,eAAe;AACxB,SAAS,oBAAoB;AAC7B,OAAO,UAAU;AACj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pB;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;AAED,QAAQ,IAAI;",
5
5
  "names": []
6
6
  }
package/dist/esm/cli.mjs CHANGED
@@ -121,6 +121,36 @@ const dev = defineCommand({
121
121
  await run(args);
122
122
  }
123
123
  }),
124
+ runIos = defineCommand({
125
+ meta: {
126
+ name: "run:ios",
127
+ version
128
+ },
129
+ args: {},
130
+ async run({
131
+ args
132
+ }) {
133
+ const {
134
+ run
135
+ } = await import("./cli/runIos.mjs");
136
+ await run(args);
137
+ }
138
+ }),
139
+ runAndroid = defineCommand({
140
+ meta: {
141
+ name: "run:ios",
142
+ version
143
+ },
144
+ args: {},
145
+ async run({
146
+ args
147
+ }) {
148
+ const {
149
+ run
150
+ } = await import("./cli/runAndroid.mjs");
151
+ await run(args);
152
+ }
153
+ }),
124
154
  clean = defineCommand({
125
155
  meta: {
126
156
  name: "clean",
@@ -147,7 +177,7 @@ const dev = defineCommand({
147
177
  async run({
148
178
  args
149
179
  }) {
150
- if (["clean", "prebuild"].includes(args._[0])) return;
180
+ if (["clean", "prebuild", "run:ios", "run:android"].includes(args._[0])) return;
151
181
  const {
152
182
  cliMain
153
183
  } = await import("./cli/main.mjs");
@@ -158,6 +188,8 @@ const dev = defineCommand({
158
188
  clean,
159
189
  build: buildCommand,
160
190
  prebuild,
191
+ "run:ios": runIos,
192
+ "run:android": runAndroid,
161
193
  serve: serveCommand
162
194
  }
163
195
  });
@@ -1 +1 @@
1
- {"version":3,"names":["defineCommand","runMain","loadEnv","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","process","cwd","dev","name","description","args","clean","type","host","port","https","run","buildCommand","step","required","only","build","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","vxrnClean","root","main","includes","_","cliMain","subCommands"],"sources":["../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AAEM;MAAI,IAAI,MAAM,OAAO,oBAAgB;MAC7C,MAAMA,GAAA,CAAIN,IAAI;IAChB;EACF,CAAC;EAEKC,KAAA,GAAQvB,aAAA,CAAc;IAC1BU,IAAA,EAAM;MACJU,IAAA,EAAM;MACNJ,OAAA,EAAS;MACTK,WAAA,EAAa;IACf;IACAC,IAAA,EAAM,CAAC;IACP,MAAMM,IAAA,EAAM;MACV,MAAM;QAAEL,KAAA,EAAOkB;MAAU,IAAI,MAAM,OAAO,MAAM;MAChD,MAAMA,SAAA,CAAU;QACdC,IAAA,EAAMzB,OAAA,CAAQC,GAAA,CAAI;MACpB,CAAC;IACH;EACF,CAAC;EAEKyB,IAAA,GAAO3C,aAAA,CAAc;IACzBU,IAAA,EAAM;MACJU,IAAA,EAAM;MACNJ,OAAA;MACAK,WAAA,EAAa;IACf;IACAC,IAAA,EAAM,CAAC;IACP,MAAMM,IAAI;MAAEN;IAAK,GAAG;MAClB,IAAI,CAAC,SAAS,UAAU,EAAEsB,QAAA,CAAStB,IAAA,CAAKuB,CAAA,CAAE,CAAC,CAAC,GAE1C;MAGF,MAAM;QAAEC;MAAQ,IAAI,MAAM,OAAO,gBAAY;MAC7C,MAAMA,OAAA,CAAQxB,IAAI;IACpB;IACAyB,WAAA,EAAa;MACX5B,GAAA;MACAI,KAAA;MACAU,KAAA,EAAOJ,YAAA;MACPW,QAAA;MACAD,KAAA,EAAOJ;IACT;EACF,CAAC;AAEDlC,OAAA,CAAQ0C,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["defineCommand","runMain","loadEnv","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","process","cwd","dev","name","description","args","clean","type","host","port","https","run","buildCommand","step","required","only","build","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","runIos","runAndroid","vxrnClean","root","main","includes","_","cliMain","subCommands"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAe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,WAAA,EAAa;MACX9B,GAAA;MACAI,KAAA;MACAU,KAAA,EAAOJ,YAAA;MACPW,QAAA;MACA,WAAWC,MAAA;MACX,eAAeC,UAAA;MACfH,KAAA,EAAOJ;IACT;EACF,CAAC;AAEDlC,OAAA,CAAQ4C,IAAI","ignoreList":[]}
@@ -101,6 +101,26 @@ var dev = defineCommand({
101
101
  var { args } = param, { run } = await import("./cli/prebuild");
102
102
  await run(args);
103
103
  }
104
+ }), runIos = defineCommand({
105
+ meta: {
106
+ name: "run:ios",
107
+ version
108
+ },
109
+ args: {},
110
+ async run(param) {
111
+ var { args } = param, { run } = await import("./cli/runIos");
112
+ await run(args);
113
+ }
114
+ }), runAndroid = defineCommand({
115
+ meta: {
116
+ name: "run:ios",
117
+ version
118
+ },
119
+ args: {},
120
+ async run(param) {
121
+ var { args } = param, { run } = await import("./cli/runAndroid");
122
+ await run(args);
123
+ }
104
124
  }), clean = defineCommand({
105
125
  meta: {
106
126
  name: "clean",
@@ -125,7 +145,9 @@ var dev = defineCommand({
125
145
  var { args } = param;
126
146
  if (![
127
147
  "clean",
128
- "prebuild"
148
+ "prebuild",
149
+ "run:ios",
150
+ "run:android"
129
151
  ].includes(args._[0])) {
130
152
  var { cliMain } = await import("./cli/main");
131
153
  await cliMain(args);
@@ -136,6 +158,8 @@ var dev = defineCommand({
136
158
  clean,
137
159
  build: buildCommand,
138
160
  prebuild,
161
+ "run:ios": runIos,
162
+ "run:android": runAndroid,
139
163
  serve: serveCommand
140
164
  }
141
165
  });
@@ -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,SAASA,eAAeC,eAAe;AACvC,SAASC,eAAe;AACxB,SAASC,oBAAoB;AAC7B,OAAOC,UAAU;AACjB,SAASC,qBAAqB;AAE9B,SAASC,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUH,K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AK,IAAK,MAAM,OAAO,SAAA;AAC/B,UAAMA,MAAM;MACVb,MAAMJ,KAAKI,OAAO,CAACJ,KAAKI,OAAOc;MAC/Bf,MAAMH,KAAKG;MACXa,cAAchB,KAAKgB,iBAAiB,KAAQ,QAAQE;MACpDH,UAAUf,KAAKe;MACfD,UAAUd,KAAKc,aAAa,WAAW,WAAW;IACpD,CAAA;EACF;AACF,CAAA,GAEMK,WAAWzC,cAAc;EAC7BmB,MAAM;IACJC,MAAM;IACNL;IACAM,aAAa;EACf;;EACAC,MAAM,CAAC;EACP,MAAMM,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN,OACF,EAAEM,IAAG,IAAK,MAAM,OAAO,gBAAA;AAC7B,UAAMA,IAAIN,IAAAA;EACZ;AACF,CAAA,GAEMC,QAAQvB,cAAc;EAC1BmB,MAAM;IACJC,MAAM;IACNL,SAAS;IACTM,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMM,MAAAA;AACJ,QAAM,EAAEL,OAAOmB,UAAS,IAAK,MAAM,OAAO,MAAA;AAC1C,UAAMA,UAAU;MACdC,MAAM3B,QAAQC,IAAG;IACnB,CAAA;EACF;AACF,CAAA,GAEM2B,OAAO5C,cAAc;EACzBmB,MAAM;IACJC,MAAM;IACNL;IACAM,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMM,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN;AACR,QAAI;MAAC;MAAS;MAAYuB,SAASvB,KAAKwB,EAAE,CAAA,CAAE,GAK5C;UAAM,EAAEC,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,YAAMA,QAAQzB,IAAAA;;EAChB;EACA0B,aAAa;IACX9B;IACAK;IACAU,OAAOJ;IACPY;IACAF,OAAOJ;EACT;AACF,CAAA;AAEAlC,QAAQ2C,IAAAA;",
5
- "names": ["defineCommand", "runMain", "loadEnv", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "process", "cwd", "dev", "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"]
4
+ "mappings": "AAAA,SAASA,eAAeC,eAAe;AACvC,SAASC,eAAe;AACxB,SAASC,oBAAoB;AAC7B,OAAOC,UAAU;AACjB,SAASC,qBAAqB;AAE9B,SAASC,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUH,KAAKG,QAAQF,cAAc,YAAYI,GAAG,CAAA;AAEtD,MAAMC,cAAcN,KAAKO,KAAKJ,SAAS,MAAM,MAAM,cAAA,GAC7CK,cAAcC,KAAKC,MAAMX,aAAaO,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAYG;AACrB;AAEA,IAAMA,UAAUT,kBAAAA;AAEXJ,QAAQc,QAAQC,IAAG,CAAA;AAExB,IAAMC,MAAMlB,cAAc;EACxBmB,MAAM;IACJC,MAAM;IACNL;IACAM,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,eAAe7B,cAAc;EACjCmB,MAAM;IACJC,MAAM;IACNL;IACAM,aAAa;EACf;EACAC,MAAM;IACJQ,MAAM;MACJN,MAAM;MACNO,UAAU;IACZ;;IAEAC,MAAM;MACJR,MAAM;MACNO,UAAU;IACZ;EACF;EACA,MAAMH,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN,OACF,EAAEW,MAAK,IAAK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M,IAAG,IAAK,MAAM,OAAO,kBAAA;AAC7B,UAAMA,IAAIN,IAAAA;EACZ;AACF,CAAA,GAEMC,QAAQvB,cAAc;EAC1BmB,MAAM;IACJC,MAAM;IACNL,SAAS;IACTM,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMM,MAAAA;AACJ,QAAM,EAAEL,OAAOqB,UAAS,IAAK,MAAM,OAAO,MAAA;AAC1C,UAAMA,UAAU;MACdC,MAAM7B,QAAQC,IAAG;IACnB,CAAA;EACF;AACF,CAAA,GAEM6B,OAAO9C,cAAc;EACzBmB,MAAM;IACJC,MAAM;IACNL;IACAM,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;IACXhC;IACAK;IACAU,OAAOJ;IACPY;IACA,WAAWC;IACX,eAAeC;IACfJ,OAAOJ;EACT;AACF,CAAA;AAEAlC,QAAQ6C,IAAAA;",
5
+ "names": ["defineCommand", "runMain", "loadEnv", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "process", "cwd", "dev", "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"]
6
6
  }
@@ -49,7 +49,7 @@ function createHandleRequest(options, handlers) {
49
49
  if (handlers.handleLoader && pathname.endsWith("_vxrn_loader.js")) {
50
50
  const originalUrl = getPathFromLoaderPath(pathname), finalUrl = new URL(originalUrl, url.origin);
51
51
  for (const route of pageRoutes) {
52
- if (!route.workingRegex.test(finalUrl.pathname))
52
+ if (route.file === "" || !route.workingRegex.test(finalUrl.pathname))
53
53
  continue;
54
54
  const headers = new Headers();
55
55
  headers.set("Content-Type", "text/javascript");
@@ -69,7 +69,7 @@ function createHandleRequest(options, handlers) {
69
69
  } catch (err) {
70
70
  if (isResponse(err))
71
71
  return err;
72
- throw err;
72
+ throw console.error(`Error running loader: ${err}`), err;
73
73
  }
74
74
  }
75
75
  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,SAAS,6BAA6B;AAEtC,SAAS,kBAAkB;AAC3B,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAYrB,SAAS,oBACd,SACA,UAKA;AACA,MAAI,YAAY;AACd,UAAM,IAAI,MAAM,mDAAmD;AAGrE,QAAM,WAAW,YAAY;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,OAAO,MAAM,UAAU;AAAA,EAC3C,EAAE;AAEF,SAAO;AAAA,IACL;AAAA,IACA,SAAS,eAA6B,SAAmD;AACvF,YAAM,YAAY,QAAQ,OAAO,IAC3B,MAAM,IAAI;AAAA,QACd,aAAa;AAAA,QACb,QAAQ,QAAQ,IAAI,MAAM,IAAI,UAAU,QAAQ,QAAQ,IAAI,MAAM,CAAC,KAAK;AAAA,MAC1E,GACM,EAAE,UAAU,OAAO,I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9B,gBAAI,CAAC,MAAM,aAAa,KAAK,QAAQ;AACnC;AAGF,kBAAM,cAAc,MAAM,SAAS,UAAU;AAAA,cAC3C;AAAA,cACA;AAAA,cACA;AAAA,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
  }
@@ -52,7 +52,7 @@ function createHandleRequest(options, handlers) {
52
52
  const originalUrl = getPathFromLoaderPath(pathname),
53
53
  finalUrl = new URL(originalUrl, url.origin);
54
54
  for (const route of pageRoutes) {
55
- if (!route.workingRegex.test(finalUrl.pathname)) continue;
55
+ if (route.file === "" || !route.workingRegex.test(finalUrl.pathname)) continue;
56
56
  const headers = new Headers();
57
57
  headers.set("Content-Type", "text/javascript");
58
58
  try {
@@ -70,7 +70,7 @@ function createHandleRequest(options, handlers) {
70
70
  });
71
71
  } catch (err) {
72
72
  if (isResponse(err)) return err;
73
- throw err;
73
+ throw console.error(`Error running loader: ${err}`), err;
74
74
  }
75
75
  }
76
76
  return process.env.NODE_ENV === "development" && console.error("No matching route found!", {
@@ -1 +1 @@
1
- {"version":3,"names":["getPathFromLoaderPath","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","import","meta","env","Error","manifest","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","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","Headers","set","loaderResponse","getLoaderParams","Response","console","error","routes","handleSSR","promise","reject","resolve","ssrResponse","config","match","exec","groups","key","value","entries","namedKey","routeKeys","fromEntries"],"sources":["../../src/createHandleRequest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAA,QAA6B;AAEtC,SAASC,UAAA,QAAkB;AAC3B,SAASC,oBAAA,QAA4B;AACrC,SAASC,WAAA,QAAmB;AAYrB,SAASC,oBACdC,OAAA,EACAC,QAAA,EAKA;EACA,IAAIC,MAAA,CAAAC,IAAA,CAAYC,GAAA,EACd,MAAM,IAAIC,KAAA,CAAM,mDAAmD;EAGrE,MAAMC,QAAA,GAAWR,WAAA,CAAY;EAC7B,IAAI,CAACQ,QAAA,EACH,MAAM,IAAID,KAAA,CAAM,oBAAoB;EAGtC,MAAME,YAAA,GACJD,QAAA,CAASE,SAAA,CAAUC,MAAA,CAAO,CAACC,GAAA,EAAKC,GAAA,MAC9BD,GAAA,CAAIC,GAAA,CAAIC,IAAI,IAAI;MAAE,GAAGD,GAAA;MAAKE,aAAA,EAAe,IAAIC,MAAA,CAAO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A,EAA0B;EAElE,MAAM2C,KAAA,GADQ,IAAInD,MAAA,CAAOQ,KAAA,CAAMP,UAAU,EACrBmD,IAAA,CAAKnC,QAAQ;EACjC,OAAKkC,KAAA,GACEhD,MAAA,CAAOwD,WAAA,CACZxD,MAAA,CAAOqD,OAAA,CAAQhD,KAAA,CAAMkD,SAAS,EAAEnD,GAAA,CAAI,CAAC,CAAC+C,GAAA,EAAKC,KAAK,MAAM,CAACA,KAAA,EAAOJ,KAAA,CAAME,MAAA,GAASC,GAAG,CAAC,CAAC,CACpF,IAHmB,CAAC;AAItB","ignoreList":[]}
1
+ {"version":3,"names":["getPathFromLoaderPath","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","import","meta","env","Error","manifest","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","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","file","Headers","set","loaderResponse","getLoaderParams","Response","console","error","routes","handleSSR","promise","reject","resolve","ssrResponse","config","match","exec","groups","key","value","entries","namedKey","routeKeys","fromEntries"],"sources":["../../src/createHandleRequest.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAA,QAA6B;AAEtC,SAASC,UAAA,QAAkB;AAC3B,SAASC,oBAAA,QAA4B;AACrC,SAASC,WAAA,QAAmB;AAYrB,SAASC,oBACdC,OAAA,EACAC,QAAA,EAKA;EACA,IAAIC,MAAA,CAAAC,IAAA,CAAYC,GAAA,EACd,MAAM,IAAIC,KAAA,CAAM,mDAAmD;EAGrE,MAAMC,QAAA,GAAWR,WAAA,CAAY;EAC7B,IAAI,CAACQ,QAAA,EACH,MAAM,IAAID,KAAA,CAAM,oBAAoB;EAGtC,MAAME,YAAA,GACJD,QAAA,CAASE,SAAA,CAAUC,MAAA,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,MAAA,CAAOsD,OAAA,CAAQL,KAAA,CAAME,MAAM,GAAG;IACvD,MAAMI,QAAA,GAAWP,MAAA,CAAOQ,SAAA,CAAUJ,GAAG;IACrC7B,MAAA,CAAOgC,QAAQ,IAAIF,KAAA;EACrB;EAEF,OAAO9B,MAAA;AACT;AAGA,SAASC,eAAeV,QAAA,EAAkBT,KAAA,EAA0B;EAElE,MAAM4C,KAAA,GADQ,IAAIpD,MAAA,CAAOQ,KAAA,CAAMP,UAAU,EACrBoD,IAAA,CAAKpC,QAAQ;EACjC,OAAKmC,KAAA,GACEjD,MAAA,CAAOyD,WAAA,CACZzD,MAAA,CAAOsD,OAAA,CAAQjD,KAAA,CAAMmD,SAAS,EAAEpD,GAAA,CAAI,CAAC,CAACgD,GAAA,EAAKC,KAAK,MAAM,CAACA,KAAA,EAAOJ,KAAA,CAAME,MAAA,GAASC,GAAG,CAAC,CAAC,CACpF,IAHmB,CAAC;AAItB","ignoreList":[]}
@@ -60,7 +60,7 @@ function createHandleRequest(options, handlers) {
60
60
  try {
61
61
  for (var _iterator = pageRoutes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
62
62
  var route = _step.value;
63
- if (route.workingRegex.test(finalUrl.pathname)) {
63
+ if (route.file !== "" && route.workingRegex.test(finalUrl.pathname)) {
64
64
  var headers = new Headers();
65
65
  headers.set("Content-Type", "text/javascript");
66
66
  try {
@@ -79,7 +79,7 @@ function createHandleRequest(options, handlers) {
79
79
  } catch (err) {
80
80
  if (isResponse(err))
81
81
  return err;
82
- throw err;
82
+ throw console.error(`Error running loader: ${err}`), err;
83
83
  }
84
84
  }
85
85
  }
@@ -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,SAASA,6BAA6B;AAEtC,SAASC,kBAAkB;AAC3B,SAASC,4BAA4B;AACrC,SAASC,mBAAm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,eAAOgC,QAAAA,IAAYD;MACrB;;AAHK,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;EAIP;AACA,SAAO/B;AACT;AAGA,SAASC,eAAeX,UAAkBT,OAAwB;AAChE,MAAMiB,QAAQ,IAAIzB,OAAOQ,MAAMP,UAAU,GACnCoD,QAAQ5B,MAAM6B,KAAKrC,QAAAA;AACzB,SAAKoC,QACElD,OAAO0D,YACZ1D,OAAOqD,QAAQhD,MAAMoD,SAAS,EAAErD,IAAI,SAAA,OAAA;QAAC,CAACkD,KAAKC,KAAAA,IAAM,OAAaL;WAAR;MAACK;OAAOL,gBAAAA,MAAME,YAAM,QAAZF,kBAAAA,SAAAA,SAAAA,cAAeI,GAAAA;;QAF5D,CAAC;AAItB;",
5
- "names": ["getPathFromLoaderPath", "isResponse", "promiseWithResolvers", "getManifest", "createHandleRequest", "options", "handlers", "env", "Error", "manifest", "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", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "console", "error", "routes", "handleSSR", "promise", "reject", "resolve", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
4
+ "mappings": "AAAA,SAASA,6BAA6B;AAEtC,SAASC,kBAAkB;AAC3B,SAASC,4BAA4B;AACrC,SAASC,mBAAmB;AAYrB,SAASC,oBACdC,SACAC,UAIC;AAED,MAAI,YAAYC;AACd,UAAM,IAAIC,MAAM,mDAAmD;AAGrE,MAAMC,WAA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BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;EAIP;AACA,SAAOhC;AACT;AAGA,SAASC,eAAeX,UAAkBT,OAAwB;AAChE,MAAMiB,QAAQ,IAAIzB,OAAOQ,MAAMP,UAAU,GACnCqD,QAAQ7B,MAAM8B,KAAKtC,QAAAA;AACzB,SAAKqC,QACEnD,OAAO2D,YACZ3D,OAAOsD,QAAQjD,MAAMqD,SAAS,EAAEtD,IAAI,SAAA,OAAA;QAAC,CAACmD,KAAKC,KAAAA,IAAM,OAAaL;WAAR;MAACK;OAAOL,gBAAAA,MAAME,YAAM,QAAZF,kBAAAA,SAAAA,SAAAA,cAAeI,GAAAA;;QAF5D,CAAC;AAItB;",
5
+ "names": ["getPathFromLoaderPath", "isResponse", "promiseWithResolvers", "getManifest", "createHandleRequest", "options", "handlers", "env", "Error", "manifest", "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", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "file", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "console", "error", "routes", "handleSSR", "promise", "reject", "resolve", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
6
6
  }
@@ -189,7 +189,7 @@ ${stack}
189
189
  res.write(reply), res.end();
190
190
  return;
191
191
  } catch (error) {
192
- next(error);
192
+ console.error(`One routing error: ${error}`), next(error);
193
193
  }
194
194
  console.warn(`SSR handler didn't send a response for url: ${req.url}`);
195
195
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "s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AO,SAAS,QAAQ,EAAE,SAAS,IAAI,UAAU,EAAE,IAC9D,MAAM,WAAW,GAAG,IACpB;AAAA,IACJ;AAAA,EACF,CAAC;AACH;AAEA,SAAS,WAAW,QAAkD;AACpE,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
  }
@@ -200,7 +200,7 @@ ${stack}
200
200
  res.write(reply), res.end();
201
201
  return;
202
202
  } catch (error) {
203
- next(error);
203
+ console.error(`One routing error: ${error}`), next(error);
204
204
  }
205
205
  console.warn(`SSR handler didn't send a response for url: ${req.url}`);
206
206
  });