one 1.1.313 → 1.1.315

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/dist/cjs/cleanUrl.cjs +1 -1
  2. package/dist/cjs/cleanUrl.cjs.map +1 -1
  3. package/dist/cjs/cleanUrl.native.js +1 -1
  4. package/dist/cjs/cleanUrl.native.js.map +2 -2
  5. package/dist/cjs/constants.cjs +2 -0
  6. package/dist/cjs/constants.cjs.map +1 -1
  7. package/dist/cjs/constants.native.js +3 -1
  8. package/dist/cjs/constants.native.js.map +2 -2
  9. package/dist/cjs/createHandleRequest.cjs.map +1 -1
  10. package/dist/cjs/createHandleRequest.native.js.map +1 -1
  11. package/dist/cjs/serve.cjs +5 -1
  12. package/dist/cjs/serve.cjs.map +1 -1
  13. package/dist/cjs/serve.native.js +4 -0
  14. package/dist/cjs/serve.native.js.map +2 -2
  15. package/dist/cjs/views/PreloadLinks.cjs +11 -5
  16. package/dist/cjs/views/PreloadLinks.cjs.map +1 -1
  17. package/dist/esm/cleanUrl.js +2 -2
  18. package/dist/esm/cleanUrl.js.map +1 -1
  19. package/dist/esm/cleanUrl.mjs +2 -2
  20. package/dist/esm/cleanUrl.mjs.map +1 -1
  21. package/dist/esm/cleanUrl.native.js +2 -2
  22. package/dist/esm/cleanUrl.native.js.map +2 -2
  23. package/dist/esm/constants.js +2 -1
  24. package/dist/esm/constants.js.map +1 -1
  25. package/dist/esm/constants.mjs +2 -1
  26. package/dist/esm/constants.mjs.map +1 -1
  27. package/dist/esm/constants.native.js +2 -1
  28. package/dist/esm/constants.native.js.map +2 -2
  29. package/dist/esm/createHandleRequest.js.map +1 -1
  30. package/dist/esm/createHandleRequest.mjs.map +1 -1
  31. package/dist/esm/createHandleRequest.native.js.map +1 -1
  32. package/dist/esm/serve.js +4 -1
  33. package/dist/esm/serve.js.map +1 -1
  34. package/dist/esm/serve.mjs +5 -1
  35. package/dist/esm/serve.mjs.map +1 -1
  36. package/dist/esm/serve.native.js +4 -0
  37. package/dist/esm/serve.native.js.map +2 -2
  38. package/dist/esm/views/PreloadLinks.js +17 -8
  39. package/dist/esm/views/PreloadLinks.js.map +1 -1
  40. package/dist/esm/views/PreloadLinks.mjs +11 -5
  41. package/dist/esm/views/PreloadLinks.mjs.map +1 -1
  42. package/package.json +7 -7
  43. package/src/cleanUrl.ts +2 -3
  44. package/src/constants.ts +1 -0
  45. package/src/createHandleRequest.ts +2 -1
  46. package/src/serve.ts +9 -0
  47. package/src/views/PreloadLinks.tsx +24 -11
  48. package/types/cleanUrl.d.ts.map +1 -1
  49. package/types/constants.d.ts +1 -0
  50. package/types/constants.d.ts.map +1 -1
  51. package/types/createHandleRequest.d.ts.map +1 -1
  52. package/types/views/PreloadLinks.d.ts.map +1 -1
@@ -44,5 +44,5 @@ function getLoaderPath(currentPath, includeUrl = import_constants.isNative) {
44
44
  return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${import_constants.LOADER_JS_POSTFIX}`;
45
45
  }
46
46
  function getPathFromLoaderPath(loaderPath) {
47
- return loaderPath.replace(import_constants.LOADER_JS_POSTFIX_UNCACHED, "").replace(/_\d+/, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
47
+ return loaderPath.replace(import_constants.LOADER_JS_POSTFIX_REGEX, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
48
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,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,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,QAAQ,0CAAyB,EAAE,EACnC,QAAQ,sBAAsB,EAAE,EAChC,WAAW,MAAM,GAAG;AACzB;",
5
5
  "names": []
6
6
  }
@@ -33,7 +33,7 @@ function getLoaderPath(currentPath) {
33
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(import_constants.LOADER_JS_POSTFIX_UNCACHED, "").replace(/_\d+/, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
36
+ return loaderPath.replace(import_constants.LOADER_JS_POSTFIX_REGEX, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
37
37
  }
38
38
  // Annotate the CommonJS export names for ESM import in node:
39
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;;;;;;;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"]
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,0CAAyB,EAAA,EACjCvB,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_REGEX"]
6
6
  }
@@ -22,6 +22,7 @@ var constants_exports = {};
22
22
  __export(constants_exports, {
23
23
  CACHE_KEY: () => CACHE_KEY,
24
24
  LOADER_JS_POSTFIX: () => LOADER_JS_POSTFIX,
25
+ LOADER_JS_POSTFIX_REGEX: () => LOADER_JS_POSTFIX_REGEX,
25
26
  LOADER_JS_POSTFIX_UNCACHED: () => LOADER_JS_POSTFIX_UNCACHED,
26
27
  PRELOAD_JS_POSTFIX: () => PRELOAD_JS_POSTFIX,
27
28
  isNative: () => isNative,
@@ -34,5 +35,6 @@ const isWebClient = typeof window < "u",
34
35
  isNative = !1,
35
36
  CACHE_KEY = `${process.env.ONE_CACHE_KEY ?? Math.round(Math.random() * 1e8)}`,
36
37
  LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js",
38
+ LOADER_JS_POSTFIX_REGEX = new RegExp(`_\\d+${LOADER_JS_POSTFIX_UNCACHED}$`),
37
39
  LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`,
38
40
  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;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;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;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,0BAA0B,IAAI,OAAO,QAAQ,0BAA0B,GAAG,GAC1E,oBAAoB,IAAI,SAAS,GAAG,0BAA0B,IAC9D,qBAAqB,IAAI,SAAS;",
5
5
  "names": []
6
6
  }
@@ -17,6 +17,7 @@ var constants_exports = {};
17
17
  __export(constants_exports, {
18
18
  CACHE_KEY: () => CACHE_KEY,
19
19
  LOADER_JS_POSTFIX: () => LOADER_JS_POSTFIX,
20
+ LOADER_JS_POSTFIX_REGEX: () => LOADER_JS_POSTFIX_REGEX,
20
21
  LOADER_JS_POSTFIX_UNCACHED: () => LOADER_JS_POSTFIX_UNCACHED,
21
22
  PRELOAD_JS_POSTFIX: () => PRELOAD_JS_POSTFIX,
22
23
  isNative: () => isNative,
@@ -24,11 +25,12 @@ __export(constants_exports, {
24
25
  isWebServer: () => isWebServer
25
26
  });
26
27
  module.exports = __toCommonJS(constants_exports);
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`;
28
+ 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_REGEX = new RegExp(`_\\d+${LOADER_JS_POSTFIX_UNCACHED}$`), LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`, PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
28
29
  // Annotate the CommonJS export names for ESM import in node:
29
30
  0 && (module.exports = {
30
31
  CACHE_KEY,
31
32
  LOADER_JS_POSTFIX,
33
+ LOADER_JS_POSTFIX_REGEX,
32
34
  LOADER_JS_POSTFIX_UNCACHED,
33
35
  PRELOAD_JS_POSTFIX,
34
36
  isNative,
@@ -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;;;;;;;;;;;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"]
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,0BAA0B,IAAIC,OAAO,QAAQF,0BAAAA,GAA6B,GAC1EG,oBAAoB,IAAIT,SAAAA,GAAYM,0BAAAA,IACpCI,qBAAqB,IAAIV,SAAAA;",
5
+ "names": ["isWebClient", "process", "isWebServer", "isNative", "CACHE_KEY", "env", "ONE_CACHE_KEY", "Math", "round", "random", "LOADER_JS_POSTFIX_UNCACHED", "LOADER_JS_POSTFIX_REGEX", "RegExp", "LOADER_JS_POSTFIX", "PRELOAD_JS_POSTFIX"]
6
6
  }
@@ -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,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,OAA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AAAA,MAAOE,QAAQ;QACZ,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,eAAK,YAAsB3D,OAAO4D,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;AAClCpC,eAAOsC,QAAAA,IAAYD;MACrB;;AAHK,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;EAIP;AACA,SAAOrC;AACT;AAGA,SAASC,eAAeZ,UAAkBT,OAAwB;AAChE,MAAMkB,QAAQ,IAAI1B,OAAOQ,MAAMP,UAAU,GACnC2D,QAAQlC,MAAMmC,KAAK5C,QAAAA;AACzB,SAAK2C,QACEzD,OAAOiE,YACZjE,OAAO4D,QAAQvD,MAAM2D,SAAS,EAAE5D,IAAI,SAAA,OAAA;QAAC,CAACyD,KAAKC,KAAAA,IAAM,OAAaL;WAAR;MAACK;OAAOL,gBAAAA,MAAME,YAAM,QAAZF,kBAAAA,SAAAA,SAAAA,cAAeI,GAAAA;;QAF5D,CAAC;AAItB;",
5
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
  }
@@ -102,7 +102,11 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
102
102
  builtRoutes
103
103
  } = buildInfo,
104
104
  routeToBuildInfo = {};
105
- for (const route of builtRoutes) routeToBuildInfo[route.cleanPath] = route;
105
+ for (const route of builtRoutes) {
106
+ routeToBuildInfo[route.cleanPath] = route;
107
+ const bracketRoutePath = route.cleanPath.split("/").map(part => part[0] === ":" ? `[${part.slice(1)}]` : part).join("/");
108
+ routeToBuildInfo[bracketRoutePath] = route;
109
+ }
106
110
  const serverOptions = {
107
111
  ...options,
108
112
  root
@@ -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,mBAAqB,sBAErB,cAA4D;AAK5D,QAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,UAAQ,MAAM,4BAA4B,KAAK,SAAS,GAAG;AAC7D,CAAC;AAED,eAAsB,MAAM,OAA8B,CAAC,GAAG;AAC5D,QAAM,YAAa,MAAM,gBAAAA,QAAQ,SAAS,qBAAqB;AAG/D,UAAQ,IAAI,gBAAgB,UAAU,UAAU;AAGhD,QAAM,EAAE,aAAa,IAAI,MAAM,OAAO,qBAAqB,GACrD,EAAE,gBAAgB,IAAI,MAAM,OAAO,yBAAyB,GAC5D,EAAE,mBAAmB,IAAI,MAAM,OAAO,YAAY;AAExD,eAAa,OAAO,OACpB,qBAAQ,YAAY;AAEpB,QAAM,aAAa,MAAM,mBAAmB,OAAO;AAGnD,iBAAQ,IAAI,gBAAgB,KAErB,UAAM,YAAAC,OAAU;AAAA,IACrB,QAAQ;AAAA;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,GAEvB,SAAS,UAKnB,UAAU,GAAG,IAAI,MAAM,gBAAAF,QAAQ,aAAS,uBAAK,eAAe,SAAS,GAAG,CAAC,GAAG,OAAO;AAGrF,MAAI,IAAI,OAAO,SAAS,SAAS;AAE/B,UAAM,OAAO,UAAU,QAAQ,IAAI,IAAI;AACvC,QAAI;AACF,aAAO,QAAQ,KAAK,IAAI;AAG1B,QAAI;AACF,YAAM,UAAU,QAAQ,IAAI,KACtB,WAAW,MAAM,cAAc,QAAQ,OAAO;AAEpD,UAAI,UAAU;AACZ,YAAI,WAAW,QAAQ,GAAG;AACxB,cAAI,iBAAiB,SAAS,MAAM,GAAG;AACrC,kBAAM,WAAW,GAAG,SAAS,QAAQ,IAAI,UAAU,KAAK,EAAE;AAC1D,mBAAO,QAAQ,SAAS,UAAU,SAAS,MAAM;AAAA,UACnD;AAEA,cAAI,aAAa,IAAI,OAAO;AAC1B,gBAAI;AAEF,uBAAS,QAAQ,IAAI,iBAAiB,UAAU;AAAA,YAClD,SAAS,KAAK;AACZ,sBAAQ;AAAA,gBACN,6CACE,QAAQ,IAAI,IACd,wBAAwB,SAAS,QAAQ,IAAI,eAAe,CAAC;AAAA,gBAC7D;AAAA,cACF;AAAA,YACF;AAGF,iBAAO;AAAA,QACT;AAEA,eAAO,QAAQ;AAAA,UACb;AAAA,UACA;AAAA,UACA,aAAa,IAAI,OAAO,IACpB;AAAA,YACE,iBAAiB;AAAA,UACnB,IACA;AAAA,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": ["FSExtra", "vxrnServe", "buildInfo"]
6
6
  }
@@ -88,6 +88,10 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
88
88
  for (var _iterator1 = builtRoutes[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
89
89
  var route = _step1.value;
90
90
  routeToBuildInfo[route.cleanPath] = route;
91
+ var bracketRoutePath = route.cleanPath.split("/").map(function(part) {
92
+ return part[0] === ":" ? `[${part.slice(1)}]` : part;
93
+ }).join("/");
94
+ routeToBuildInfo[bracketRoutePath] = route;
91
95
  }
92
96
  } catch (err) {
93
97
  _didIteratorError1 = !0, _iteratorError1 = err;
@@ -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,mBAAqB,sBAErB,cAA4D;AAK5DA,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,GACnDC,YAAa,MAAMC,gBAAAA,QAAQC,SAAS,qBAAqB;AAG/DV,UAAQW,IAAIC,gBAAgBJ,UAAUK,UAAUC;AAGhD,MAAM,EAAEC,aAAY,IAAK,MAAM,OAAO,qBAAA,GAChC,EAAEC,gBAAe,IAAK,MAAM,OAAO,yBAAA,GACnC,EAAEC,mBAAkB,IAAK,MAAM,OAAO,YAAA;AAE5CF,eAAa,OAAA,OACbG,qBAAQ,YAAA;AAER,MAAMC,aAAa,MAAMF,mBAAmB,OAAA;AAG5CjB,iBAAQW,IAAIS,gBAAgB,KAErB,UAAMC,YAAAA,OAAU;IACrBC,QAAQ;;MAEN,GAAGH,WAAWG;;MAEd,GAAGN,gBAAgB;QACjBO,MAAMhB,KAAKgB,OAAO,CAAChB,KAAKgB,OAAOC;QAC/BC,MAAMlB,KAAKkB;QACXC,UAAUnB,KAAKmB;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AA,CAAI,GAAG,OAAA;EAC9E;AAEAjE,MAAIoE,IAAI,eAAOrD,SAASsD,MAAAA;AAEtB,QAAMC,OAAON,UAAUjD,QAAQO,IAAIyC,IAAI;AACvC,QAAIO;AACF,aAAOvD,QAAQuD,KAAKA,IAAAA;AAGtB,QAAI;AACF,UAAM5B,UAAU3B,QAAQO,IAAIiD,KACtBC,WAAW,MAAMhC,cAAciC,QAAQ/B,OAAAA;AAE7C,UAAI8B,UAAU;AACZ,YAAIpE,WAAWoE,QAAAA,GAAW;AACxB,cAAInE,iBAAiBmE,SAASE,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGH,SAASZ,QAAQ/C,IAAI,UAAA,KAAe,EAAA;AACxD,mBAAOE,QAAQH,SAAS+D,UAAUH,SAASE,MAAM;UACnD;AAEA,cAAInE,aAAaM,IAAI6B,OAAAA;AACnB,gBAAI;AAEF8B,uBAASZ,QAAQZ,IAAI,iBAAiB,UAAA;YACxC,SAAS7E,KAAK;AACZC,sBAAQ8F,KACN,6CACEnD,QAAQO,IAAIyC,IAAI,wBACMS,SAASZ,QAAQ/C,IAAI,eAAA,CAAA,cAC7C1C,GAAAA;YAEJ;AAGF,iBAAOqG;QACT;AAEA,eAAOzD,QAAQ6D,KACbJ,UACA,KACAjE,aAAaM,IAAI6B,OAAAA,IACb;UACE,iBAAiB;QACnB,IACAjD,MAAAA;MAER;IACF,SAAStB,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAMkG,KAAAA;EACR,CAAA;AACF;",
5
- "names": ["process", "on", "err", "console", "error", "stack", "serve", "args", "buildInfo", "FSExtra", "readJSON", "env", "ONE_CACHE_KEY", "constants", "CACHE_KEY", "labelProcess", "removeUndefined", "loadUserOneOptions", "loadEnv", "oneOptions", "VXRN_REACT_19", "vxrnServe", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "createHandleRequest", "isResponse", "isStatusRedirect", "resolveAPIRequest", "isAPIRequest", "WeakMap", "root", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "getServerEntry", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "join", "cwd", "page", "set", "params", "handleSSR", "url", "type", "Object", "keys", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;8BAAO,+BAEP,kBAAoB,iCAEpB,mBAAqB,sBAErB,cAA4D;AAK5DA,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,GACnDC,YAAa,MAAMC,gBAAAA,QAAQC,SAAS,qBAAqB;AAG/DV,UAAQW,IAAIC,gBAAgBJ,UAAUK,UAAUC;AAGhD,MAAM,EAAEC,aAAY,IAAK,MAAM,OAAO,qBAAA,GAChC,EAAEC,gBAAe,IAAK,MAAM,OAAO,yBAAA,GACnC,EAAEC,mBAAkB,IAAK,MAAM,OAAO,YAAA;AAE5CF,eAAa,OAAA,OACbG,qBAAQ,YAAA;AAER,MAAMC,aAAa,MAAMF,mBAAmB,OAAA;AAG5CjB,iBAAQW,IAAIS,gBAAgB,KAErB,UAAMC,YAAAA,OAAU;IACrBC,QAAQ;;MAEN,GAAGH,WAAWG;;MAEd,GAAGN,gBAAgB;QACjBO,MAAMhB,KAAKg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;AAEA,UAAMuG,KAAAA;EACR,CAAA;AACF;",
5
+ "names": ["process", "on", "err", "console", "error", "stack", "serve", "args", "buildInfo", "FSExtra", "readJSON", "env", "ONE_CACHE_KEY", "constants", "CACHE_KEY", "labelProcess", "removeUndefined", "loadUserOneOptions", "loadEnv", "oneOptions", "VXRN_REACT_19", "vxrnServe", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "createHandleRequest", "isResponse", "isStatusRedirect", "resolveAPIRequest", "isAPIRequest", "WeakMap", "root", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "bracketRoutePath", "split", "map", "part", "slice", "join", "serverOptions", "entryServer", "getServerEntry", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "cwd", "page", "set", "params", "handleSSR", "url", "type", "Object", "keys", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
6
6
  }
@@ -28,13 +28,19 @@ var import_react = require("react"),
28
28
  import_getURL = require("../getURL.cjs");
29
29
  const import_meta = {};
30
30
  function PreloadLinks() {
31
- return import_meta.env.PROD && (0, import_react.useEffect)(() => {
32
- const url = (0, import_getURL.getURL)();
33
- document.addEventListener("mouseover", e => {
31
+ return typeof window < "u" && import_meta.env.PROD && (0, import_react.useEffect)(() => {
32
+ const url = (0, import_getURL.getURL)(),
33
+ controller = new AbortController();
34
+ return document.addEventListener("mouseover", e => {
34
35
  let target = e.target;
35
- if (!(target instanceof HTMLElement) || (target = target instanceof HTMLAnchorElement ? target : target.parentElement, !(target instanceof HTMLAnchorElement))) return;
36
+ if (!(target instanceof HTMLElement) || (target = target instanceof HTMLAnchorElement ? target : target.closest("a"), !(target instanceof HTMLAnchorElement))) return;
36
37
  const href = target.getAttribute("href");
37
38
  (href?.[0] === "/" || href?.[0].startsWith(url)) && (0, import_router.preloadRoute)(href.replace(url, ""));
38
- });
39
+ }, {
40
+ passive: !0,
41
+ signal: controller.signal
42
+ }), () => {
43
+ controller.abort();
44
+ };
39
45
  }, []), null;
40
46
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/views/PreloadLinks.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA0B,kBAC1B,gBAA6B,6BAC7B,gBAAuB;AAFvB;AAIO,SAAS,eAAe;AAG7B,SAAI,YAAY,IAAI,YAClB,wBAAU,MAAM;AACd,UAAM,UAAM,sBAAO;AACnB,aAAS,iBAAiB,aAAa,CAAC,MAAM;AAC5C,UAAI,SAAS,EAAE;AAGf,UAFI,EAAE,kBAAkB,iBACxB,SAAS,kBAAkB,oBAAoB,SAAS,OAAO,eAC3D,EAAE,kBAAkB,oBAAoB;AAC5C,YAAM,OAAO,OAAO,aAAa,MAAM;AACvC,OAAI,OAAO,CAAC,MAAM,OAAO,OAAO,CAAC,EAAE,WAAW,GAAG,UAE/C,4BAAa,KAAK,QAAQ,KAAK,EAAE,CAAC;AAAA,IAEtC,CAAC;AAAA,EACH,GAAG,CAAC,CAAC,GAGA;AACT;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA0B,kBAC1B,gBAA6B,6BAC7B,gBAAuB;AAFvB;AAIO,SAAS,eAAe;AAG7B,SAAI,OAAO,SAAW,OAAe,YAAY,IAAI,YACnD,wBAAU,MAAM;AACd,UAAM,UAAM,sBAAO,GACb,aAAa,IAAI,gBAAgB;AAEvC,oBAAS;AAAA,MACP;AAAA,MACA,CAAC,MAAM;AACL,YAAI,SAAS,EAAE;AAGf,YAFI,EAAE,kBAAkB,iBACxB,SAAS,kBAAkB,oBAAoB,SAAS,OAAO,QAAQ,GAAG,GACtE,EAAE,kBAAkB,oBAAoB;AAC5C,cAAM,OAAO,OAAO,aAAa,MAAM;AACvC,SAAI,OAAO,CAAC,MAAM,OAAO,OAAO,CAAC,EAAE,WAAW,GAAG,UAE/C,4BAAa,KAAK,QAAQ,KAAK,EAAE,CAAC;AAAA,MAEtC;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,QAAQ,WAAW;AAAA,MACrB;AAAA,IACF,GAEO,MAAM;AACX,iBAAW,MAAM;AAAA,IACnB;AAAA,EACF,GAAG,CAAC,CAAC,GAGA;AACT;",
5
5
  "names": []
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isNative,
3
3
  LOADER_JS_POSTFIX,
4
- LOADER_JS_POSTFIX_UNCACHED,
4
+ LOADER_JS_POSTFIX_REGEX,
5
5
  PRELOAD_JS_POSTFIX
6
6
  } from "./constants";
7
7
  import { getURL } from "./getURL";
@@ -22,7 +22,7 @@ function getLoaderPath(currentPath, includeUrl = isNative) {
22
22
  return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${LOADER_JS_POSTFIX}`;
23
23
  }
24
24
  function getPathFromLoaderPath(loaderPath) {
25
- return loaderPath.replace(LOADER_JS_POSTFIX_UNCACHED, "").replace(/_\d+/, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
25
+ return loaderPath.replace(LOADER_JS_POSTFIX_REGEX, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
26
26
  }
27
27
  export {
28
28
  getLoaderPath,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/cleanUrl.ts"],
4
- "mappings": "AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAAc;AACvB,SAAS,oBAAoB;AAE7B,SAAS,SAAS,MAAc;AAC9B,SACE,aAAa,IAAI,EACd,WAAW,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O,GAAG,OAAO,GAAG,OAAO,WAAW,SAAS,eAAe,SAAS,MAAM,CAAC,CAAC,CAAC,GAAG,iBAAiB;AACtG;AAEO,SAAS,sBAAsB,YAAoB;AACxD,SAAO,WACJ,QAAQ,yBAAyB,EAAE,EACnC,QAAQ,sBAAsB,EAAE,EAChC,WAAW,MAAM,GAAG;AACzB;",
5
5
  "names": []
6
6
  }
@@ -1,4 +1,4 @@
1
- import { isNative, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_UNCACHED, PRELOAD_JS_POSTFIX } from "./constants.mjs";
1
+ import { isNative, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_REGEX, PRELOAD_JS_POSTFIX } from "./constants.mjs";
2
2
  import { getURL } from "./getURL.mjs";
3
3
  import { removeSearch } from "./utils/removeSearch.mjs";
4
4
  function cleanUrl(path) {
@@ -17,7 +17,7 @@ function getLoaderPath(currentPath, includeUrl = isNative) {
17
17
  return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${LOADER_JS_POSTFIX}`;
18
18
  }
19
19
  function getPathFromLoaderPath(loaderPath) {
20
- return loaderPath.replace(LOADER_JS_POSTFIX_UNCACHED, "").replace(/_\d+/, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
20
+ return loaderPath.replace(LOADER_JS_POSTFIX_REGEX, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
21
21
  }
22
22
  export { getLoaderPath, getPathFromLoaderPath, getPreloadPath };
23
23
  //# sourceMappingURL=cleanUrl.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["isNative","LOADER_JS_POSTFIX","LOADER_JS_POSTFIX_UNCACHED","PRELOAD_JS_POSTFIX","getURL","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","currentPathUrl","URL","pathname","getPathFromLoaderPath","loaderPath"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SACEA,QAAA,EACAC,iBAAA,EACAC,0BAAA,EACAC,kBAAA,QACK;AACP,SAASC,MAAA,QAAc;AACvB,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,aAAA,GAAgBF,QAAA,GAAWN,MAAA,CAAO,IAAI;AAErC,SAASS,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWN,QAAA,CAASQ,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,GAAGZ,kBAAkB;AACvF;AAEO,SAASa,cACdF,WAAA,EAEAG,UAAA,GAAajB,QAAA,EACb;EACA,MAAMkB,OAAA,GAAUD,UAAA,GAAab,MAAA,CAAO,IAAI;IAClCe,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,WAAWb,QAAA,CAASiB,cAAA,CAAeE,QAAA,CAASV,KAAA,CAAM,CAAC,CAAC,CAAC,GAAGd,iBAAiB;AACtG;AAEO,SAASyB,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJlB,OAAA,CAAQP,0BAAA,EAA4B,EAAE,EACtCO,OAAA,CAAQ,QAAQ,EAAE,EAClBA,OAAA,CAAQ,sBAAsB,EAAE,EAChCD,UAAA,CAAW,MAAM,GAAG;AACzB","ignoreList":[]}
1
+ {"version":3,"names":["isNative","LOADER_JS_POSTFIX","LOADER_JS_POSTFIX_REGEX","PRELOAD_JS_POSTFIX","getURL","removeSearch","cleanUrl","path","replaceAll","replace","isClient","window","clientSideURL","getPreloadPath","currentPath","slice","getLoaderPath","includeUrl","baseURL","devPath","process","env","NODE_ENV","currentPathUrl","URL","pathname","getPathFromLoaderPath","loaderPath"],"sources":["../../src/cleanUrl.ts"],"sourcesContent":[null],"mappings":"AAAA,SACEA,QAAA,EACAC,iBAAA,EACAC,uBAAA,EACAC,kBAAA,QACK;AACP,SAASC,MAAA,QAAc;AACvB,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,aAAA,GAAgBF,QAAA,GAAWN,MAAA,CAAO,IAAI;AAErC,SAASS,eAAeC,WAAA,EAAqB;EAClD,OAAO,GAAGF,aAAa,WAAWN,QAAA,CAASQ,WAAA,CAAYC,KAAA,CAAM,CAAC,CAAC,CAAC,GAAGZ,kBAAkB;AACvF;AAEO,SAASa,cACdF,WAAA,EAEAG,UAAA,GAAajB,QAAA,EACb;EACA,MAAMkB,OAAA,GAAUD,UAAA,GAAab,MAAA,CAAO,IAAI;IAClCe,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,WAAWb,QAAA,CAASiB,cAAA,CAAeE,QAAA,CAASV,KAAA,CAAM,CAAC,CAAC,CAAC,GAAGd,iBAAiB;AACtG;AAEO,SAASyB,sBAAsBC,UAAA,EAAoB;EACxD,OAAOA,UAAA,CACJlB,OAAA,CAAQP,uBAAA,EAAyB,EAAE,EACnCO,OAAA,CAAQ,sBAAsB,EAAE,EAChCD,UAAA,CAAW,MAAM,GAAG;AACzB","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { isNative, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_UNCACHED, PRELOAD_JS_POSTFIX } from "./constants";
1
+ import { isNative, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_REGEX, PRELOAD_JS_POSTFIX } from "./constants";
2
2
  import { getURL } from "./getURL";
3
3
  import { removeSearch } from "./utils/removeSearch";
4
4
  function cleanUrl(path) {
@@ -13,7 +13,7 @@ function getLoaderPath(currentPath) {
13
13
  return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}${LOADER_JS_POSTFIX}`;
14
14
  }
15
15
  function getPathFromLoaderPath(loaderPath) {
16
- return loaderPath.replace(LOADER_JS_POSTFIX_UNCACHED, "").replace(/_\d+/, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
16
+ return loaderPath.replace(LOADER_JS_POSTFIX_REGEX, "").replace(/^(\/_one)?\/assets/, "").replaceAll(/_/g, "/");
17
17
  }
18
18
  export {
19
19
  getLoaderPath,
@@ -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,SACEA,UACAC,mBACAC,4BACAC,0BACK;AACP,SAASC,cAAc;AACvB,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,gBAAgBF,WAAWN,OAAAA,IAAW;AAErC,SAASS,eAAeC,aAAmB;AAChD,SAAO,GAAGF,aAAAA,WAAwBN,SAASQ,YAAYC,MAAM,CAAA,CAAA,CAAA,GAAMZ,kBAAAA;AACrE;AAEO,SAASa,cACdF,aAAmB;MAEnBG,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAajB,UAEPkB,UAAUD,aAAab,OAAAA,IAAW,IAClCe,UAAUC,QAAQC,IAAIC,aAAa,gBAAgB,UAAU,IAE7DC,iBAAiB,IAAIC,IACzBV,aACA,oBAAA;AAGF,SAAO,GAAGI,OAAAA,GAAUC,OAAAA,WAAkBb,SAASiB,eAAeE,SAASV,MAAM,CAAA,CAAA,CAAA,GAAMd,iBAAAA;AACrF;AAEO,SAASyB,sBAAsBC,YAAkB;AACtD,SAAOA,WACJlB,QAAQP,4BAA4B,EAAA,EACpCO,QAAQ,QAAQ,EAAA,EAChBA,QAAQ,sBAAsB,EAAA,EAC9BD,WAAW,MAAM,GAAA;AACtB;",
5
- "names": ["isNative", "LOADER_JS_POSTFIX", "LOADER_JS_POSTFIX_UNCACHED", "PRELOAD_JS_POSTFIX", "getURL", "removeSearch", "cleanUrl", "path", "replaceAll", "replace", "isClient", "window", "clientSideURL", "getPreloadPath", "currentPath", "slice", "getLoaderPath", "includeUrl", "baseURL", "devPath", "process", "env", "NODE_ENV", "currentPathUrl", "URL", "pathname", "getPathFromLoaderPath", "loaderPath"]
4
+ "mappings": "AAAA,SACEA,UACAC,mBACAC,yBACAC,0BACK;AACP,SAASC,cAAc;AACvB,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,gBAAgBF,WAAWN,OAAAA,IAAW;AAErC,SAASS,eAAeC,aAAmB;AAChD,SAAO,GAAGF,aAAAA,WAAwBN,SAASQ,YAAYC,MAAM,CAAA,CAAA,CAAA,GAAMZ,kBAAAA;AACrE;AAEO,SAASa,cACdF,aAAmB;MAEnBG,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAajB,UAEPkB,UAAUD,aAAab,OAAAA,IAAW,IAClCe,UAAUC,QAAQC,IAAIC,aAAa,gBAAgB,UAAU,IAE7DC,iBAAiB,IAAIC,IACzBV,aACA,oBAAA;AAGF,SAAO,GAAGI,OAAAA,GAAUC,OAAAA,WAAkBb,SAASiB,eAAeE,SAASV,MAAM,CAAA,CAAA,CAAA,GAAMd,iBAAAA;AACrF;AAEO,SAASyB,sBAAsBC,YAAkB;AACtD,SAAOA,WACJlB,QAAQP,yBAAyB,EAAA,EACjCO,QAAQ,sBAAsB,EAAA,EAC9BD,WAAW,MAAM,GAAA;AACtB;",
5
+ "names": ["isNative", "LOADER_JS_POSTFIX", "LOADER_JS_POSTFIX_REGEX", "PRELOAD_JS_POSTFIX", "getURL", "removeSearch", "cleanUrl", "path", "replaceAll", "replace", "isClient", "window", "clientSideURL", "getPreloadPath", "currentPath", "slice", "getLoaderPath", "includeUrl", "baseURL", "devPath", "process", "env", "NODE_ENV", "currentPathUrl", "URL", "pathname", "getPathFromLoaderPath", "loaderPath"]
6
6
  }
@@ -1,7 +1,8 @@
1
- const isWebClient = typeof window < "u", isWebServer = typeof window > "u", isNative = !1, CACHE_KEY = `${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`;
1
+ const isWebClient = typeof window < "u", isWebServer = typeof window > "u", isNative = !1, CACHE_KEY = `${process.env.ONE_CACHE_KEY ?? Math.round(Math.random() * 1e8)}`, LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js", LOADER_JS_POSTFIX_REGEX = new RegExp(`_\\d+${LOADER_JS_POSTFIX_UNCACHED}$`), LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`, PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
2
2
  export {
3
3
  CACHE_KEY,
4
4
  LOADER_JS_POSTFIX,
5
+ LOADER_JS_POSTFIX_REGEX,
5
6
  LOADER_JS_POSTFIX_UNCACHED,
6
7
  PRELOAD_JS_POSTFIX,
7
8
  isNative,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/constants.ts"],
4
- "mappings": "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;",
4
+ "mappings": "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,0BAA0B,IAAI,OAAO,QAAQ,0BAA0B,GAAG,GAC1E,oBAAoB,IAAI,SAAS,GAAG,0BAA0B,IAC9D,qBAAqB,IAAI,SAAS;",
5
5
  "names": []
6
6
  }
@@ -3,7 +3,8 @@ const isWebClient = typeof window < "u",
3
3
  isNative = !1,
4
4
  CACHE_KEY = `${process.env.ONE_CACHE_KEY ?? Math.round(Math.random() * 1e8)}`,
5
5
  LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js",
6
+ LOADER_JS_POSTFIX_REGEX = new RegExp(`_\\d+${LOADER_JS_POSTFIX_UNCACHED}$`),
6
7
  LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`,
7
8
  PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
8
- export { CACHE_KEY, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_UNCACHED, PRELOAD_JS_POSTFIX, isNative, isWebClient, isWebServer };
9
+ export { CACHE_KEY, LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_REGEX, LOADER_JS_POSTFIX_UNCACHED, PRELOAD_JS_POSTFIX, isNative, isWebClient, isWebServer };
9
10
  //# sourceMappingURL=constants.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["isWebClient","window","isWebServer","isNative","CACHE_KEY","process","env","ONE_CACHE_KEY","Math","round","random","LOADER_JS_POSTFIX_UNCACHED","LOADER_JS_POSTFIX","PRELOAD_JS_POSTFIX"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,WAAA,GAAyD,OAAOC,MAAA,GAAW;EAC3EC,WAAA,GAAyD,OAAOD,MAAA,GAAW;EAC3EE,QAAA,GAAW;EAEXC,SAAA,GAAY,GAAGC,OAAA,CAAQC,GAAA,CAAIC,aAAA,IAAiBC,IAAA,CAAKC,KAAA,CAAMD,IAAA,CAAKE,MAAA,CAAO,IAAI,GAAW,CAAC;EAEnFC,0BAAA,GAA6B;EAC7BC,iBAAA,GAAoB,IAAIR,SAAS,GAAGO,0BAA0B;EAC9DE,kBAAA,GAAqB,IAAIT,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["isWebClient","window","isWebServer","isNative","CACHE_KEY","process","env","ONE_CACHE_KEY","Math","round","random","LOADER_JS_POSTFIX_UNCACHED","LOADER_JS_POSTFIX_REGEX","RegExp","LOADER_JS_POSTFIX","PRELOAD_JS_POSTFIX"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,WAAA,GAAyD,OAAOC,MAAA,GAAW;EAC3EC,WAAA,GAAyD,OAAOD,MAAA,GAAW;EAC3EE,QAAA,GAAW;EAEXC,SAAA,GAAY,GAAGC,OAAA,CAAQC,GAAA,CAAIC,aAAA,IAAiBC,IAAA,CAAKC,KAAA,CAAMD,IAAA,CAAKE,MAAA,CAAO,IAAI,GAAW,CAAC;EAEnFC,0BAAA,GAA6B;EAC7BC,uBAAA,GAA0B,IAAIC,MAAA,CAAO,QAAQF,0BAA0B,GAAG;EAC1EG,iBAAA,GAAoB,IAAIV,SAAS,GAAGO,0BAA0B;EAC9DI,kBAAA,GAAqB,IAAIX,SAAS","ignoreList":[]}
@@ -1,7 +1,8 @@
1
- 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`;
1
+ 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_REGEX = new RegExp(`_\\d+${LOADER_JS_POSTFIX_UNCACHED}$`), LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`, PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`;
2
2
  export {
3
3
  CACHE_KEY,
4
4
  LOADER_JS_POSTFIX,
5
+ LOADER_JS_POSTFIX_REGEX,
5
6
  LOADER_JS_POSTFIX_UNCACHED,
6
7
  PRELOAD_JS_POSTFIX,
7
8
  isNative,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/constants.ts"],
4
- "mappings": "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"]
4
+ "mappings": "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,0BAA0B,IAAIC,OAAO,QAAQF,0BAAAA,GAA6B,GAC1EG,oBAAoB,IAAIT,SAAAA,GAAYM,0BAAAA,IACpCI,qBAAqB,IAAIV,SAAAA;",
5
+ "names": ["isWebClient", "process", "isWebServer", "isNative", "CACHE_KEY", "env", "ONE_CACHE_KEY", "Math", "round", "random", "LOADER_JS_POSTFIX_UNCACHED", "LOADER_JS_POSTFIX_REGEX", "RegExp", "LOADER_JS_POSTFIX", "PRELOAD_JS_POSTFIX"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/createHandleRequest.ts"],
4
- "mappings": "AAAA,SAAS,6BAA6B;AACtC,SAA4B,kCAAkC;AAE9D,SAAS,kBAAkB;AAC3B,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAYrB,SAAS,oBACd,SACA,UAKA;AACA,QAAM,WAAW,YAAY;AAC7B,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,oBAAoB;AAGtC,QAAM,eACJ,SAAS,UAAU,OAAO,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AAY,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
  }
@@ -1 +1 @@
1
- {"version":3,"names":["getPathFromLoaderPath","LOADER_JS_POSTFIX_UNCACHED","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","manifest","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","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","file","console","info","Headers","set","loaderResponse","getLoaderParams","Response","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;AACtC,SAA4BC,0BAAA,QAAkC;AAE9D,SAASC,UAAA,QAAkB;AAC3B,SAASC,oBAAA,QAA4B;AACrC,SAASC,WAAA,QAAmB;AAYrB,SAASC,oBACdC,OAAA,EACAC,QAAA,EAKA;EACA,MAAMC,QAAA,GAAWJ,WAAA,CAAY;EAC7B,IAAI,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GAAA,EACAwC,MAAA,EACA;EACA,MAAM1B,MAAA,GAAiC,CAAC;IAClC2B,KAAA,GAAQ,IAAItD,MAAA,CAAOqD,MAAA,CAAO5C,YAAY,EAAE8C,IAAA,CAAK1C,GAAA,CAAII,QAAQ;EAC/D,IAAIqC,KAAA,EAAOE,MAAA,EACT,WAAW,CAACC,GAAA,EAAKC,KAAK,KAAKvD,MAAA,CAAOwD,OAAA,CAAQL,KAAA,CAAME,MAAM,GAAG;IACvD,MAAMI,QAAA,GAAWP,MAAA,CAAOQ,SAAA,CAAUJ,GAAG;IACrC9B,MAAA,CAAOiC,QAAQ,IAAIF,KAAA;EACrB;EAEF,OAAO/B,MAAA;AACT;AAGA,SAASC,eAAeX,QAAA,EAAkBT,KAAA,EAA0B;EAElE,MAAM8C,KAAA,GADQ,IAAItD,MAAA,CAAOQ,KAAA,CAAMP,UAAU,EACrBsD,IAAA,CAAKtC,QAAQ;EACjC,OAAKqC,KAAA,GACEnD,MAAA,CAAO2D,WAAA,CACZ3D,MAAA,CAAOwD,OAAA,CAAQnD,KAAA,CAAMqD,SAAS,EAAEtD,GAAA,CAAI,CAAC,CAACkD,GAAA,EAAKC,KAAK,MAAM,CAACA,KAAA,EAAOJ,KAAA,CAAME,MAAA,GAASC,GAAG,CAAC,CAAC,CACpF,IAHmB,CAAC;AAItB","ignoreList":[]}
1
+ {"version":3,"names":["getPathFromLoaderPath","LOADER_JS_POSTFIX_UNCACHED","isResponse","promiseWithResolvers","getManifest","createHandleRequest","options","handlers","manifest","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","test","params","getRouteParams","loaderProps","path","err","method","handleLoader","endsWith","originalUrl","finalUrl","origin","file","console","info","Headers","set","loaderResponse","getLoaderParams","Response","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;AACtC,SAAkCC,0BAAA,QAAkC;AAEpE,SAASC,UAAA,QAAkB;AAC3B,SAASC,oBAAA,QAA4B;AACrC,SAASC,WAAA,QAAmB;AAYrB,SAASC,oBACdC,OAAA,EACAC,QAAA,EAKA;EACA,MAAMC,QAAA,GAAWJ,WAAA,CAAY;EAC7B,IAAI,CAACI,QAAA,EACH,MAAM,IAAIC,KAAA,CAAM,oBAAoB;EAGtC,MAAMC,YAAA,GACJF,QAAA,CAASG,SAAA,CAAUC,MAAA,CAAO,CAACC,GAAA,EAAKC,GAAA,MAC9BD,GAAA,CAAIC,GAAA,CAAIC,IAAI,IAAI;MAAE,GAAGD,GAAA;MAAKE,aAAA,EAAe,IAAIC,MAAA,CAAOH,GAAA,CAAII,UAAU;IAAE,GAC7DL,GAAA,GACN,CAAC,CAAC;IAEDM,aAAA,GAAgBC,MAAA,CAAOC,MAAA,CAAOX,YAAY;IAK1CY,cAAA,GAAiB,CAAC;IAGlBC,UAAA,GAAaf,QAAA,CAASe,UAAA,CAAWC,GAAA,CAAKC,KAAA,KAAW;MACrD,GAAGA,KAAA;MACHC,YAAA,EAAc,IAAIT,MAAA,CAAOQ,KAAA,CAAMP,UAAU;IAC3C,EAAE;EAEF,OAAO;IACLV,QAAA;IACAmB,OAAA,EAAS,eAAAA,CAA6BC,OAAA,EAAmD;MACvF,MAAMC,SAAA,GAAYD,OAAA,CAAQE,GAAA,IAAO;QAC3BA,GAAA,GAAM,IAAIC,GAAA,CACdF,SAAA,IAAa,IACbD,OAAA,CAAQI,OAAA,CAAQC,GAAA,CAAI,MAAM,IAAI,UAAUL,OAAA,CAAQI,OAAA,CAAQC,GAAA,CAAI,MAAM,CAAC,KAAK,EAC1E;QACM;UAAEC,QAAA;UAAUC;QAAO,IAAIL,GAAA;MAE7B,IAA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D,QAAQ9B,MAAM+B,KAAKxC,QAAAA;AACzB,SAAKuC,QACErD,OAAO6D,YACZ7D,OAAOwD,QAAQnD,MAAMuD,SAAS,EAAExD,IAAI,SAAA,OAAA;QAAC,CAACqD,KAAKC,KAAAA,IAAM,OAAaL;WAAR;MAACK;OAAOL,gBAAAA,MAAME,YAAM,QAAZF,kBAAAA,SAAAA,SAAAA,cAAeI,GAAAA;;QAF5D,CAAC;AAItB;",
5
5
  "names": ["getPathFromLoaderPath", "LOADER_JS_POSTFIX_UNCACHED", "isResponse", "promiseWithResolvers", "getManifest", "createHandleRequest", "options", "handlers", "manifest", "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", "method", "handleLoader", "isClientRequestingNewRoute", "endsWith", "originalUrl", "finalUrl", "origin", "file", "console", "info", "Headers", "set", "loaderResponse", "getLoaderParams", "Response", "error", "routes", "handleSSR", "promise", "reject", "resolve", "ssrResponse", "config", "match", "exec", "groups", "entries", "key", "value", "namedKey", "routeKeys", "fromEntries"]
6
6
  }
package/dist/esm/serve.js CHANGED
@@ -43,8 +43,11 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
43
43
  if (!buildInfo)
44
44
  throw new Error("No build info found, have you run build?");
45
45
  const { routeMap, builtRoutes } = buildInfo, routeToBuildInfo = {};
46
- for (const route of builtRoutes)
46
+ for (const route of builtRoutes) {
47
47
  routeToBuildInfo[route.cleanPath] = route;
48
+ const bracketRoutePath = route.cleanPath.split("/").map((part) => part[0] === ":" ? `[${part.slice(1)}]` : part).join("/");
49
+ routeToBuildInfo[bracketRoutePath] = route;
50
+ }
48
51
  const serverOptions = {
49
52
  ...options,
50
53
  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,UAAU;AAAA,YAClD,SAAS,KAAK;AACZ,sBAAQ;AAAA,gBACN,6CACE,QAAQ,IAAI,IACd,wBAAwB,SAAS,QAAQ,IAAI,eAAe,CAAC;AAAA,gBAC7D;AAAA,cACF;AAAA,YACF;AAGF,iBAAO;AAAA,QACT;AAEA,eAAO,QAAQ;AAAA,UACb;AAAA,UACA;AAAA,UACA,aAAa,IAAI,OAAO,IACpB;AAAA,YACE,iBAAiB;AAAA,UACnB,IACA;AAAA,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": ["buildInfo"]
6
6
  }
@@ -66,7 +66,11 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
66
66
  builtRoutes
67
67
  } = buildInfo,
68
68
  routeToBuildInfo = {};
69
- for (const route of builtRoutes) routeToBuildInfo[route.cleanPath] = route;
69
+ for (const route of builtRoutes) {
70
+ routeToBuildInfo[route.cleanPath] = route;
71
+ const bracketRoutePath = route.cleanPath.split("/").map(part => part[0] === ":" ? `[${part.slice(1)}]` : part).join("/");
72
+ routeToBuildInfo[bracketRoutePath] = route;
73
+ }
70
74
  const serverOptions = {
71
75
  ...options,
72
76
  root
@@ -1 +1 @@
1
- {"version":3,"names":["FSExtra","join","getServerEntry","loadEnv","serve","vxrnServe","process","on","err","console","error","stack","args","buildInfo","readJSON","env","ONE_CACHE_KEY","constants","CACHE_KEY","labelProcess","removeUndefined","loadUserOneOptions","oneOptions","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","createHandleRequest","isResponse","isStatusRedirect","resolveAPIRequest","isAPIRequest","WeakMap","root","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","Object","keys","loaderData","serverJsPath","loader","preloads","headers","Headers","Response","path","htmlFiles","key","readFile","use","next","html","raw","response","handler","status","location","info","json"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,SAASC,IAAA,QAAY;AAErB,SAASC,cAAA,EAAgBC,OAAA,EAASC,KAAA,IAASC,SAAA,QAAiB;AAK5DC,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAM,4BAA4BF,GAAA,EAAKG,KAAA,IAASH,GAAG;AAC7D,CAAC;AAED,eAAsBJ,MAAMQ,IAAA,GAA8B,CAAC,GAAG;EAC5D,MAAMC,SAAA,GAAa,MAAMb,OAAA,CAAQc,QAAA,CAAS,qBAAqB;EAG/DR,OAAA,CAAQS,GAAA,CAAIC,aAAA,GAAgBH,SAAA,CAAUI,SAAA,CAAUC,SAAA;EAGhD,MAAM;MAAEC;IAAa,IAAI,MAAM,OAAO,yBAAqB;IACrD;MAAEC;IAAgB,IAAI,MAAM,OAAO,6BAAyB;IAC5D;MAAEC;IAAmB,IAAI,MAAM,OAAO,gBAAY;EAExDF,YAAA,CAAa,OAAO,GACpBhB,OAAA,CAAQ,YAAY;EAEpB,MAAMmB,UAAA,GAAa,MAAMD,kBAAA,CAAmB,OAAO;EAGnD,OAAAf,OAAA,CAAQS,GAAA,CAAIQ,aAAA,GAAgB,KAErB,MAAMlB,SAAA,CAAU;IACrBmB,MAAA,EAAQ;MAAA;MAEN,GAAGF,UAAA,CAAWE,MAAA;MAAA;MAEd,GAAGJ,eAAA,CAAgB;QACjBK,IAAA,EAAMb,IAAA,CAAKa,IAAA,GAAO,CAACb,IAAA,CAAKa,IAAA,GAAO;QAC/BC,IAAA,EAAMd,IAAA,CAAKc,IAAA;QACXC,QAAA,EAAUf,IAAA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,IAAI;IAG1B,IAAI;MACF,MAAM1B,OAAA,GAAUxB,OAAA,CAAQO,GAAA,CAAI4C,GAAA;QACtBC,QAAA,GAAW,MAAM9B,aAAA,CAAc+B,OAAA,CAAQ7B,OAAO;MAEpD,IAAI4B,QAAA,EAAU;QACZ,IAAI/D,UAAA,CAAW+D,QAAQ,GAAG;UACxB,IAAI9D,gBAAA,CAAiB8D,QAAA,CAASE,MAAM,GAAG;YACrC,MAAMC,QAAA,GAAW,GAAGH,QAAA,CAASX,OAAA,CAAQ3C,GAAA,CAAI,UAAU,KAAK,EAAE;YAC1D,OAAOE,OAAA,CAAQH,QAAA,CAAS0D,QAAA,EAAUH,QAAA,CAASE,MAAM;UACnD;UAEA,IAAI9D,YAAA,CAAaM,GAAA,CAAI0B,OAAO,GAC1B,IAAI;YAEF4B,QAAA,CAASX,OAAA,CAAQZ,GAAA,CAAI,iBAAiB,UAAU;UAClD,SAASpE,GAAA,EAAK;YACZC,OAAA,CAAQ8F,IAAA,CACN,6CACExD,OAAA,CAAQO,GAAA,CAAIqC,IACd,wBAAwBQ,QAAA,CAASX,OAAA,CAAQ3C,GAAA,CAAI,eAAe,CAAC,cAC7DrC,GACF;UACF;UAGF,OAAO2F,QAAA;QACT;QAEA,OAAOpD,OAAA,CAAQyD,IAAA,CACbL,QAAA,EACA,KACA5D,YAAA,CAAaM,GAAA,CAAI0B,OAAO,IACpB;UACE,iBAAiB;QACnB,IACA,MACN;MACF;IACF,SAAS/D,GAAA,EAAK;MACZC,OAAA,CAAQC,KAAA,CAAM,kCAAmCF,GAAA,CAAYG,KAAQ,EAAE;IACzE;IAEA,MAAMqF,IAAA,CAAK;EACb,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["FSExtra","join","getServerEntry","loadEnv","serve","vxrnServe","process","on","err","console","error","stack","args","buildInfo","readJSON","env","ONE_CACHE_KEY","constants","CACHE_KEY","labelProcess","removeUndefined","loadUserOneOptions","oneOptions","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","createHandleRequest","isResponse","isStatusRedirect","resolveAPIRequest","isAPIRequest","WeakMap","root","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","bracketRoutePath","split","map","part","slice","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","Object","keys","loaderData","serverJsPath","loader","preloads","headers","Headers","Response","path","htmlFiles","key","readFile","use","next","html","raw","response","handler","status","location","info","json"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,SAASC,IAAA,QAAY;AAErB,SAASC,cAAA,EAAgBC,OAAA,EAASC,KAAA,IAASC,SAAA,QAAiB;AAK5DC,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAM,4BAA4BF,GAAA,EAAKG,KAAA,IAASH,GAAG;AAC7D,CAAC;AAED,eAAsBJ,MAAMQ,IAAA,GAA8B,CAAC,GAAG;EAC5D,MAAMC,SAAA,GAAa,MAAMb,OAAA,CAAQc,QAAA,CAAS,qBAAqB;EAG/DR,OAAA,CAAQS,GAAA,CAAIC,aAAA,GAAgBH,SAAA,CAAUI,SAAA,CAAUC,SAAA;EAGhD,MAAM;MAAEC;IAAa,IAAI,MAAM,OAAO,yBAAqB;IACrD;MAAEC;IAAgB,IAAI,MAAM,OAAO,6BAAyB;IAC5D;MAAEC;IAAmB,IAAI,MAAM,OAAO,gBAAY;EAExDF,YAAA,CAAa,OAAO,GACpBhB,OAAA,CAAQ,YAAY;EAEpB,MAAMmB,UAAA,GAAa,MAAMD,kBAAA,CAAmB,OAAO;EAGnD,OAAAf,OAAA,CAAQS,GAAA,CAAIQ,aAAA,GAAgB,KAErB,MAAMlB,SAAA,CA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e,CAAC,cAC7DrC,GACF;UACF;UAGF,OAAOgG,QAAA;QACT;QAEA,OAAOzD,OAAA,CAAQ8D,IAAA,CACbL,QAAA,EACA,KACAjE,YAAA,CAAaM,GAAA,CAAI+B,OAAO,IACpB;UACE,iBAAiB;QACnB,IACA,MACN;MACF;IACF,SAASpE,GAAA,EAAK;MACZC,OAAA,CAAQC,KAAA,CAAM,kCAAmCF,GAAA,CAAYG,KAAQ,EAAE;IACzE;IAEA,MAAM0F,IAAA,CAAK;EACb,CAAC;AACH","ignoreList":[]}
@@ -63,6 +63,10 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
63
63
  for (var _iterator1 = builtRoutes[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
64
64
  var route = _step1.value;
65
65
  routeToBuildInfo[route.cleanPath] = route;
66
+ var bracketRoutePath = route.cleanPath.split("/").map(function(part) {
67
+ return part[0] === ":" ? `[${part.slice(1)}]` : part;
68
+ }).join("/");
69
+ routeToBuildInfo[bracketRoutePath] = route;
66
70
  }
67
71
  } catch (err) {
68
72
  _didIteratorError1 = !0, _iteratorError1 = err;
@@ -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,OAAO;AAEP,OAAOA,aAAa;AAEpB,SAASC,YAAY;AAErB,SAASC,gBAAgBC,SAASC,SAASC,iBAAiB;AAK5DC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,4BAA4BF,KAAKG,SAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBJ,QAAAA;MAAMQ,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC,GACnDC,YAAa,MAAMb,QAAQc,SAAS,qBAAqB;AAG/DR,UAAQS,IAAIC,gBAAgBH,UAAUI,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AAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAM4F,KAAAA;EACR,CAAA;AACF;",
5
- "names": ["FSExtra", "join", "getServerEntry", "loadEnv", "serve", "vxrnServe", "process", "on", "err", "console", "error", "stack", "args", "buildInfo", "readJSON", "env", "ONE_CACHE_KEY", "constants", "CACHE_KEY", "labelProcess", "removeUndefined", "loadUserOneOptions", "oneOptions", "VXRN_REACT_19", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "createHandleRequest", "isResponse", "isStatusRedirect", "resolveAPIRequest", "isAPIRequest", "WeakMap", "root", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "cwd", "page", "set", "params", "handleSSR", "url", "type", "Object", "keys", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
4
+ "mappings": "AAAA,OAAO;AAEP,OAAOA,aAAa;AAEpB,SAASC,YAAY;AAErB,SAASC,gBAAgBC,SAASC,SAASC,iBAAiB;AAK5DC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,4BAA4BF,KAAKG,SAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBJ,QAAAA;MAAMQ,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC,GACnDC,YAAa,MAAMb,QAAQc,SAAS,qBAAqB;AAG/DR,UAAQS,IAAIC,gBAAgBH,UAAUI,UAAUC;AAGhD,MAAM,EAAEC,aAAY,IAAK,MAAM,OAAO,qBAAA,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AAGF,iBAAOoG;QACT;AAEA,eAAO5D,QAAQgE,KACbJ,UACA,KACApE,aAAaM,IAAIiC,OAAAA,IACb;UACE,iBAAiB;QACnB,IACArD,MAAAA;MAER;IACF,SAASlB,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAMiG,KAAAA;EACR,CAAA;AACF;",
5
+ "names": ["FSExtra", "join", "getServerEntry", "loadEnv", "serve", "vxrnServe", "process", "on", "err", "console", "error", "stack", "args", "buildInfo", "readJSON", "env", "ONE_CACHE_KEY", "constants", "CACHE_KEY", "labelProcess", "removeUndefined", "loadUserOneOptions", "oneOptions", "VXRN_REACT_19", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "createHandleRequest", "isResponse", "isStatusRedirect", "resolveAPIRequest", "isAPIRequest", "WeakMap", "root", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "bracketRoutePath", "split", "map", "part", "slice", "serverOptions", "entryServer", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "cwd", "page", "set", "params", "handleSSR", "url", "type", "Object", "keys", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
6
6
  }
@@ -2,14 +2,23 @@ import { useEffect } from "react";
2
2
  import { preloadRoute } from "../router/router";
3
3
  import { getURL } from "../getURL";
4
4
  function PreloadLinks() {
5
- return import.meta.env.PROD && useEffect(() => {
6
- const url = getURL();
7
- document.addEventListener("mouseover", (e) => {
8
- let target = e.target;
9
- if (!(target instanceof HTMLElement) || (target = target instanceof HTMLAnchorElement ? target : target.parentElement, !(target instanceof HTMLAnchorElement))) return;
10
- const href = target.getAttribute("href");
11
- (href?.[0] === "/" || href?.[0].startsWith(url)) && preloadRoute(href.replace(url, ""));
12
- });
5
+ return typeof window < "u" && import.meta.env.PROD && useEffect(() => {
6
+ const url = getURL(), controller = new AbortController();
7
+ return document.addEventListener(
8
+ "mouseover",
9
+ (e) => {
10
+ let target = e.target;
11
+ if (!(target instanceof HTMLElement) || (target = target instanceof HTMLAnchorElement ? target : target.closest("a"), !(target instanceof HTMLAnchorElement))) return;
12
+ const href = target.getAttribute("href");
13
+ (href?.[0] === "/" || href?.[0].startsWith(url)) && preloadRoute(href.replace(url, ""));
14
+ },
15
+ {
16
+ passive: !0,
17
+ signal: controller.signal
18
+ }
19
+ ), () => {
20
+ controller.abort();
21
+ };
13
22
  }, []), null;
14
23
  }
15
24
  export {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/views/PreloadLinks.tsx"],
4
- "mappings": "AAAA,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,cAAc;AAEhB,SAAS,eAAe;AAG7B,SAAI,YAAY,IAAI,QAClB,UAAU,MAAM;AACd,UAAM,MAAM,OAAO;AACnB,aAAS,iBAAiB,aAAa,CAAC,MAAM;AAC5C,UAAI,SAAS,EAAE;AAGf,UAFI,EAAE,kBAAkB,iBACxB,SAAS,kBAAkB,oBAAoB,SAAS,OAAO,eAC3D,EAAE,kBAAkB,oBAAoB;AAC5C,YAAM,OAAO,OAAO,aAAa,MAAM;AACvC,OAAI,OAAO,CAAC,MAAM,OAAO,OAAO,CAAC,EAAE,WAAW,GAAG,MAE/C,aAAa,KAAK,QAAQ,KAAK,EAAE,CAAC;AAAA,IAEtC,CAAC;AAAA,EACH,GAAG,CAAC,CAAC,GAGA;AACT;",
4
+ "mappings": "AAAA,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,cAAc;AAEhB,SAAS,eAAe;AAG7B,SAAI,OAAO,SAAW,OAAe,YAAY,IAAI,QACnD,UAAU,MAAM;AACd,UAAM,MAAM,OAAO,GACb,aAAa,IAAI,gBAAgB;AAEvC,oBAAS;AAAA,MACP;AAAA,MACA,CAAC,MAAM;AACL,YAAI,SAAS,EAAE;AAGf,YAFI,EAAE,kBAAkB,iBACxB,SAAS,kBAAkB,oBAAoB,SAAS,OAAO,QAAQ,GAAG,GACtE,EAAE,kBAAkB,oBAAoB;AAC5C,cAAM,OAAO,OAAO,aAAa,MAAM;AACvC,SAAI,OAAO,CAAC,MAAM,OAAO,OAAO,CAAC,EAAE,WAAW,GAAG,MAE/C,aAAa,KAAK,QAAQ,KAAK,EAAE,CAAC;AAAA,MAEtC;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,QAAQ,WAAW;AAAA,MACrB;AAAA,IACF,GAEO,MAAM;AACX,iBAAW,MAAM;AAAA,IACnB;AAAA,EACF,GAAG,CAAC,CAAC,GAGA;AACT;",
5
5
  "names": []
6
6
  }
@@ -2,14 +2,20 @@ import { useEffect } from "react";
2
2
  import { preloadRoute } from "../router/router.mjs";
3
3
  import { getURL } from "../getURL.mjs";
4
4
  function PreloadLinks() {
5
- return import.meta.env.PROD && useEffect(() => {
6
- const url = getURL();
7
- document.addEventListener("mouseover", e => {
5
+ return typeof window < "u" && import.meta.env.PROD && useEffect(() => {
6
+ const url = getURL(),
7
+ controller = new AbortController();
8
+ return document.addEventListener("mouseover", e => {
8
9
  let target = e.target;
9
- if (!(target instanceof HTMLElement) || (target = target instanceof HTMLAnchorElement ? target : target.parentElement, !(target instanceof HTMLAnchorElement))) return;
10
+ if (!(target instanceof HTMLElement) || (target = target instanceof HTMLAnchorElement ? target : target.closest("a"), !(target instanceof HTMLAnchorElement))) return;
10
11
  const href = target.getAttribute("href");
11
12
  (href?.[0] === "/" || href?.[0].startsWith(url)) && preloadRoute(href.replace(url, ""));
12
- });
13
+ }, {
14
+ passive: !0,
15
+ signal: controller.signal
16
+ }), () => {
17
+ controller.abort();
18
+ };
13
19
  }, []), null;
14
20
  }
15
21
  export { PreloadLinks };
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","preloadRoute","getURL","PreloadLinks","import","meta","env","PROD","url","document","addEventListener","e","target","HTMLElement","HTMLAnchorElement","parentElement","href","getAttribute","startsWith","replace"],"sources":["../../../src/views/PreloadLinks.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAC7B,SAASC,MAAA,QAAc;AAEhB,SAASC,aAAA,EAAe;EAG7B,OAAIC,MAAA,CAAAC,IAAA,CAAYC,GAAA,CAAIC,IAAA,IAClBP,SAAA,CAAU,MAAM;IACd,MAAMQ,GAAA,GAAMN,MAAA,CAAO;IACnBO,QAAA,CAASC,gBAAA,CAAiB,aAAcC,CAAA,IAAM;MAC5C,IAAIC,MAAA,GAASD,CAAA,CAAEC,MAAA;MAGf,IAFI,EAAEA,MAAA,YAAkBC,WAAA,MACxBD,MAAA,GAASA,MAAA,YAAkBE,iBAAA,GAAoBF,MAAA,GAASA,MAAA,CAAOG,aAAA,EAC3D,EAAEH,MAAA,YAAkBE,iBAAA,IAAoB;MAC5C,MAAME,IAAA,GAAOJ,MAAA,CAAOK,YAAA,CAAa,MAAM;MACvC,CAAID,IAAA,GAAO,CAAC,MAAM,OAAOA,IAAA,GAAO,CAAC,EAAEE,UAAA,CAAWV,GAAG,MAE/CP,YAAA,CAAae,IAAA,CAAKG,OAAA,CAAQX,GAAA,EAAK,EAAE,CAAC;IAEtC,CAAC;EACH,GAAG,EAAE,GAGA;AACT","ignoreList":[]}
1
+ {"version":3,"names":["useEffect","preloadRoute","getURL","PreloadLinks","window","import","meta","env","PROD","url","controller","AbortController","document","addEventListener","e","target","HTMLElement","HTMLAnchorElement","closest","href","getAttribute","startsWith","replace","passive","signal","abort"],"sources":["../../../src/views/PreloadLinks.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,QAAiB;AAC1B,SAASC,YAAA,QAAoB;AAC7B,SAASC,MAAA,QAAc;AAEhB,SAASC,aAAA,EAAe;EAG7B,OAAI,OAAOC,MAAA,GAAW,OAAeC,MAAA,CAAAC,IAAA,CAAYC,GAAA,CAAIC,IAAA,IACnDR,SAAA,CAAU,MAAM;IACd,MAAMS,GAAA,GAAMP,MAAA,CAAO;MACbQ,UAAA,GAAa,IAAIC,eAAA,CAAgB;IAEvC,OAAAC,QAAA,CAASC,gBAAA,CACP,aACCC,CAAA,IAAM;MACL,IAAIC,MAAA,GAASD,CAAA,CAAEC,MAAA;MAGf,IAFI,EAAEA,MAAA,YAAkBC,WAAA,MACxBD,MAAA,GAASA,MAAA,YAAkBE,iBAAA,GAAoBF,MAAA,GAASA,MAAA,CAAOG,OAAA,CAAQ,GAAG,GACtE,EAAEH,MAAA,YAAkBE,iBAAA,IAAoB;MAC5C,MAAME,IAAA,GAAOJ,MAAA,CAAOK,YAAA,CAAa,MAAM;MACvC,CAAID,IAAA,GAAO,CAAC,MAAM,OAAOA,IAAA,GAAO,CAAC,EAAEE,UAAA,CAAWZ,GAAG,MAE/CR,YAAA,CAAakB,IAAA,CAAKG,OAAA,CAAQb,GAAA,EAAK,EAAE,CAAC;IAEtC,GACA;MACEc,OAAA,EAAS;MACTC,MAAA,EAAQd,UAAA,CAAWc;IACrB,CACF,GAEO,MAAM;MACXd,UAAA,CAAWe,KAAA,CAAM;IACnB;EACF,GAAG,EAAE,GAGA;AACT","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "1.1.313",
3
+ "version": "1.1.315",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "sideEffects": false,
@@ -91,14 +91,14 @@
91
91
  "@react-navigation/native-stack": "~6.9.13",
92
92
  "@react-navigation/routers": "~6.1.9",
93
93
  "@ungap/structured-clone": "^1.2.0",
94
- "@vxrn/resolve": "1.1.313",
95
- "@vxrn/tslib-lite": "1.1.313",
96
- "@vxrn/universal-color-scheme": "1.1.313",
97
- "@vxrn/use-isomorphic-layout-effect": "1.1.313",
94
+ "@vxrn/resolve": "1.1.315",
95
+ "@vxrn/tslib-lite": "1.1.315",
96
+ "@vxrn/universal-color-scheme": "1.1.315",
97
+ "@vxrn/use-isomorphic-layout-effect": "1.1.315",
98
98
  "babel-dead-code-elimination": "^1.0.6",
99
99
  "citty": "^0.1.6",
100
100
  "core-js": "^3.38.1",
101
- "create-vxrn": "1.1.313",
101
+ "create-vxrn": "1.1.315",
102
102
  "escape-string-regexp": "^5.0.0",
103
103
  "expo-linking": "~6.3.1",
104
104
  "expo-modules-core": "^1.12.24",
@@ -120,7 +120,7 @@
120
120
  "url-parse": "^1.5.10",
121
121
  "vite": "6.0.0-beta.1",
122
122
  "vite-tsconfig-paths": "^5.0.1",
123
- "vxrn": "1.1.313",
123
+ "vxrn": "1.1.315",
124
124
  "ws": "^8.18.0",
125
125
  "xxhashjs": "^0.2.2"
126
126
  },
package/src/cleanUrl.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isNative,
3
3
  LOADER_JS_POSTFIX,
4
- LOADER_JS_POSTFIX_UNCACHED,
4
+ LOADER_JS_POSTFIX_REGEX,
5
5
  PRELOAD_JS_POSTFIX,
6
6
  } from './constants'
7
7
  import { getURL } from './getURL'
@@ -41,8 +41,7 @@ export function getLoaderPath(
41
41
 
42
42
  export function getPathFromLoaderPath(loaderPath: string) {
43
43
  return loaderPath
44
- .replace(LOADER_JS_POSTFIX_UNCACHED, '')
45
- .replace(/_\d+/, '')
44
+ .replace(LOADER_JS_POSTFIX_REGEX, '')
46
45
  .replace(/^(\/_one)?\/assets/, '')
47
46
  .replaceAll(/_/g, '/')
48
47
  }
package/src/constants.ts CHANGED
@@ -5,5 +5,6 @@ export const isNative = process.env.TAMAGUI_TARGET === 'native'
5
5
  export const CACHE_KEY = `${process.env.ONE_CACHE_KEY ?? Math.round(Math.random() * 100_000_000)}`
6
6
 
7
7
  export const LOADER_JS_POSTFIX_UNCACHED = `_vxrn_loader.js`
8
+ export const LOADER_JS_POSTFIX_REGEX = new RegExp(`_\\d+${LOADER_JS_POSTFIX_UNCACHED}$`)
8
9
  export const LOADER_JS_POSTFIX = `_${CACHE_KEY}${LOADER_JS_POSTFIX_UNCACHED}`
9
10
  export const PRELOAD_JS_POSTFIX = `_${CACHE_KEY}_preload.js`
@@ -1,5 +1,5 @@
1
1
  import { getPathFromLoaderPath } from './cleanUrl'
2
- import { LOADER_JS_POSTFIX, LOADER_JS_POSTFIX_UNCACHED } from './constants'
2
+ import { LOADER_JS_POSTFIX_REGEX, LOADER_JS_POSTFIX_UNCACHED } from './constants'
3
3
  import type { RouteInfo } from './server/createRoutesManifest'
4
4
  import { isResponse } from './utils/isResponse'
5
5
  import { promiseWithResolvers } from './utils/promiseWithResolvers'
@@ -104,6 +104,7 @@ export function createHandleRequest(
104
104
 
105
105
  if (isClientRequestingNewRoute) {
106
106
  const originalUrl = getPathFromLoaderPath(pathname)
107
+
107
108
  const finalUrl = new URL(originalUrl, url.origin)
108
109
 
109
110
  for (const route of pageRoutes) {
package/src/serve.ts CHANGED
@@ -90,6 +90,15 @@ async function oneServe(
90
90
  const routeToBuildInfo: Record<string, One.RouteBuildInfo> = {}
91
91
  for (const route of builtRoutes) {
92
92
  routeToBuildInfo[route.cleanPath] = route
93
+
94
+ // temp - make it back into brackets style
95
+ const bracketRoutePath = route.cleanPath
96
+ .split('/')
97
+ .map((part) => {
98
+ return part[0] === ':' ? `[${part.slice(1)}]` : part
99
+ })
100
+ .join('/')
101
+ routeToBuildInfo[bracketRoutePath] = route
93
102
  }
94
103
 
95
104
  const serverOptions = {
@@ -5,20 +5,33 @@ import { getURL } from '../getURL'
5
5
  export function PreloadLinks() {
6
6
  // only in prod because we don't generate them until build
7
7
  // @ts-ignore
8
- if (import.meta.env.PROD) {
8
+ if (typeof window !== 'undefined' && import.meta.env.PROD) {
9
9
  useEffect(() => {
10
10
  const url = getURL()
11
- document.addEventListener('mouseover', (e) => {
12
- let target = e.target
13
- if (!(target instanceof HTMLElement)) return
14
- target = target instanceof HTMLAnchorElement ? target : target.parentElement
15
- if (!(target instanceof HTMLAnchorElement)) return
16
- const href = target.getAttribute('href')
17
- if (href?.[0] === '/' || href?.[0].startsWith(url)) {
18
- // local route
19
- preloadRoute(href.replace(url, ''))
11
+ const controller = new AbortController()
12
+
13
+ document.addEventListener(
14
+ 'mouseover',
15
+ (e) => {
16
+ let target = e.target
17
+ if (!(target instanceof HTMLElement)) return
18
+ target = target instanceof HTMLAnchorElement ? target : target.closest('a')
19
+ if (!(target instanceof HTMLAnchorElement)) return
20
+ const href = target.getAttribute('href')
21
+ if (href?.[0] === '/' || href?.[0].startsWith(url)) {
22
+ // local route
23
+ preloadRoute(href.replace(url, ''))
24
+ }
25
+ },
26
+ {
27
+ passive: true,
28
+ signal: controller.signal,
20
29
  }
21
- })
30
+ )
31
+
32
+ return () => {
33
+ controller.abort()
34
+ }
22
35
  }, [])
23
36
  }
24
37
 
@@ -1 +1 @@
1
- {"version":3,"file":"cleanUrl.d.ts","sourceRoot":"","sources":["../src/cleanUrl.ts"],"names":[],"mappings":"AAqBA,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,UAEjD;AAED,wBAAgB,aAAa,CAC3B,WAAW,EAAE,MAAM,EAEnB,UAAU,UAAW,UAWtB;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,UAMvD"}
1
+ {"version":3,"file":"cleanUrl.d.ts","sourceRoot":"","sources":["../src/cleanUrl.ts"],"names":[],"mappings":"AAqBA,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,UAEjD;AAED,wBAAgB,aAAa,CAC3B,WAAW,EAAE,MAAM,EAEnB,UAAU,UAAW,UAWtB;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,UAKvD"}
@@ -3,6 +3,7 @@ export declare const isWebServer: boolean;
3
3
  export declare const isNative: boolean;
4
4
  export declare const CACHE_KEY: string;
5
5
  export declare const LOADER_JS_POSTFIX_UNCACHED = "_vxrn_loader.js";
6
+ export declare const LOADER_JS_POSTFIX_REGEX: RegExp;
6
7
  export declare const LOADER_JS_POSTFIX: string;
7
8
  export declare const PRELOAD_JS_POSTFIX: string;
8
9
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,SAA2E,CAAA;AACnG,eAAO,MAAM,WAAW,SAA2E,CAAA;AACnG,eAAO,MAAM,QAAQ,SAA0C,CAAA;AAE/D,eAAO,MAAM,SAAS,QAA4E,CAAA;AAElG,eAAO,MAAM,0BAA0B,oBAAoB,CAAA;AAC3D,eAAO,MAAM,iBAAiB,QAA+C,CAAA;AAC7E,eAAO,MAAM,kBAAkB,QAA6B,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,SAA2E,CAAA;AACnG,eAAO,MAAM,WAAW,SAA2E,CAAA;AACnG,eAAO,MAAM,QAAQ,SAA0C,CAAA;AAE/D,eAAO,MAAM,SAAS,QAA4E,CAAA;AAElG,eAAO,MAAM,0BAA0B,oBAAoB,CAAA;AAC3D,eAAO,MAAM,uBAAuB,QAAoD,CAAA;AACxF,eAAO,MAAM,iBAAiB,QAA+C,CAAA;AAC7E,eAAO,MAAM,kBAAkB,QAA6B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"createHandleRequest.d.ts","sourceRoot":"","sources":["../src/createHandleRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAI9D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEvC,KAAK,mBAAmB,CAAC,eAAe,SAAS,MAAM,GAAG,EAAE,IAAI;IAC9D,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EA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,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEtD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,GAAG,CAAC,aAAa,EAC1B,QAAQ,EAAE;IACR,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACxD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAC3D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CACzD;;uBA4BgD,OAAO,KAAG,OAAO,CAAC,sBAAsB,CAAC;EAuJ3F"}
@@ -1 +1 @@
1
- {"version":3,"file":"PreloadLinks.d.ts","sourceRoot":"","sources":["../../src/views/PreloadLinks.tsx"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,SAqB3B"}
1
+ {"version":3,"file":"PreloadLinks.d.ts","sourceRoot":"","sources":["../../src/views/PreloadLinks.tsx"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,SAkC3B"}