one 1.1.316 → 1.1.318

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/dist/cjs/serve.cjs +5 -3
  2. package/dist/cjs/serve.cjs.map +1 -1
  3. package/dist/cjs/serve.native.js +5 -3
  4. package/dist/cjs/serve.native.js.map +2 -2
  5. package/dist/cjs/utils/getPageExport.cjs +19 -7
  6. package/dist/cjs/utils/getPageExport.cjs.map +1 -1
  7. package/dist/cjs/utils/getPageExport.native.js +18 -4
  8. package/dist/cjs/utils/getPageExport.native.js.map +2 -2
  9. package/dist/cjs/vite/createFileSystemRouter.cjs +7 -7
  10. package/dist/cjs/vite/createFileSystemRouter.cjs.map +1 -1
  11. package/dist/cjs/vite/createFileSystemRouter.native.js +12 -12
  12. package/dist/cjs/vite/createFileSystemRouter.native.js.map +2 -2
  13. package/dist/cjs/vite/one.cjs +3 -1
  14. package/dist/cjs/vite/one.cjs.map +1 -1
  15. package/dist/cjs/vite/one.native.js +6 -1
  16. package/dist/cjs/vite/one.native.js.map +2 -2
  17. package/dist/esm/serve.js +5 -3
  18. package/dist/esm/serve.js.map +1 -1
  19. package/dist/esm/serve.mjs +5 -3
  20. package/dist/esm/serve.mjs.map +1 -1
  21. package/dist/esm/serve.native.js +5 -3
  22. package/dist/esm/serve.native.js.map +2 -2
  23. package/dist/esm/utils/getPageExport.js +13 -2
  24. package/dist/esm/utils/getPageExport.js.map +1 -1
  25. package/dist/esm/utils/getPageExport.mjs +19 -7
  26. package/dist/esm/utils/getPageExport.mjs.map +1 -1
  27. package/dist/esm/utils/getPageExport.native.js +18 -4
  28. package/dist/esm/utils/getPageExport.native.js.map +2 -2
  29. package/dist/esm/vite/createFileSystemRouter.js +9 -9
  30. package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
  31. package/dist/esm/vite/createFileSystemRouter.mjs +7 -7
  32. package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
  33. package/dist/esm/vite/createFileSystemRouter.native.js +12 -12
  34. package/dist/esm/vite/createFileSystemRouter.native.js.map +2 -2
  35. package/dist/esm/vite/one.js +12 -1
  36. package/dist/esm/vite/one.js.map +1 -1
  37. package/dist/esm/vite/one.mjs +4 -2
  38. package/dist/esm/vite/one.mjs.map +1 -1
  39. package/dist/esm/vite/one.native.js +7 -2
  40. package/dist/esm/vite/one.native.js.map +2 -2
  41. package/package.json +7 -7
  42. package/src/serve.ts +5 -2
  43. package/src/utils/getPageExport.ts +21 -2
  44. package/src/vite/createFileSystemRouter.tsx +12 -12
  45. package/src/vite/one.ts +17 -3
  46. package/src/vite/types.ts +7 -0
  47. package/types/utils/getPageExport.d.ts +1 -1
  48. package/types/utils/getPageExport.d.ts.map +1 -1
  49. package/types/vite/one.d.ts.map +1 -1
  50. package/types/vite/types.d.ts +6 -0
  51. package/types/vite/types.d.ts.map +1 -1
@@ -126,14 +126,14 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
126
126
  } catch (err) {
127
127
  return console.error(`
128
128
  [one] Error importing API route at ${apiFile}:
129
-
129
+
130
130
  ${err}
131
131
 
132
132
  If this is an import error, you can likely fix this by adding this dependency to
133
133
  the "optimizeDeps.include" array in your vite.config.ts.
134
134
 
135
135
  \u{1F41E} For a better error message run "node" and enter:
136
-
136
+
137
137
  import('${apiFile}')
138
138
 
139
139
  `), {};
@@ -182,7 +182,9 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
182
182
  if (isResponse(response)) {
183
183
  if (isStatusRedirect(response.status)) {
184
184
  const location = `${response.headers.get("location") || ""}`;
185
- return context.redirect(location, response.status);
185
+ return response.headers.forEach((value, key) => {
186
+ context.header(key, value);
187
+ }), context.redirect(location, response.status);
186
188
  }
187
189
  if (isAPIRequest.get(request)) try {
188
190
  response.headers.set("Cache-Control", "no-store");
@@ -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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AAK,EAAE;AAC1D,4BAAS,QAAQ,QAAQ,CAAC,OAAO,QAAQ;AACvC,sBAAQ,OAAO,KAAK,KAAK;AAAA,YAC3B,CAAC,GACM,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
  }
@@ -115,14 +115,14 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
115
115
  } catch (err) {
116
116
  return console.error(`
117
117
  [one] Error importing API route at ${apiFile}:
118
-
118
+
119
119
  ${err}
120
120
 
121
121
  If this is an import error, you can likely fix this by adding this dependency to
122
122
  the "optimizeDeps.include" array in your vite.config.ts.
123
123
 
124
124
  \u{1F41E} For a better error message run "node" and enter:
125
-
125
+
126
126
  import('${apiFile}')
127
127
 
128
128
  `), {};
@@ -170,7 +170,9 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
170
170
  if (isResponse(response)) {
171
171
  if (isStatusRedirect(response.status)) {
172
172
  var location = `${response.headers.get("location") || ""}`;
173
- return context.redirect(location, response.status);
173
+ return response.headers.forEach(function(value, key2) {
174
+ context.header(key2, value);
175
+ }), context.redirect(location, response.status);
174
176
  }
175
177
  if (isAPIRequest.get(request))
176
178
  try {
@@ -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;QACfC,UAAUpB,KAAKoB;QACfC,cAAcrB,KAAKqB;MACrB,CAAA;MAEA,MAAMC,YAAYC,SAASC,KAAG;YACtBZ,gCAAAA;AAAN,gBAAMA,qBAAAA,WAAWG,YAAM,QAAjBH,uBAAAA,WAAAA,iCAAAA,mBAAmBU,iBAAW,QAA9BV,mCAA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AK,eAAeV,SAAS6C,GAAAA,CAAI,GAAG,OAAA;EAC9E;AAEAtE,MAAIyE,IAAI,eAAO1D,SAAS2D,MAAAA;AAEtB,QAAMC,OAAON,UAAUtD,QAAQO,IAAI8C,IAAI;AACvC,QAAIO;AACF,aAAO5D,QAAQ4D,KAAKA,IAAAA;AAGtB,QAAI;AACF,UAAM3B,UAAUjC,QAAQO,IAAIsD,KACtBC,WAAW,MAAM/B,cAAcgC,QAAQ9B,OAAAA;AAE7C,UAAI6B,UAAU;AACZ,YAAIzE,WAAWyE,QAAAA,GAAW;AACxB,cAAIxE,iBAAiBwE,SAASE,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGH,SAASZ,QAAQpD,IAAI,UAAA,KAAe,EAAA;AACxD,mBAAOE,QAAQH,SAASoE,UAAUH,SAASE,MAAM;UACnD;AAEA,cAAIxE,aAAaM,IAAImC,OAAAA;AACnB,gBAAI;AAEF6B,uBAASZ,QAAQZ,IAAI,iBAAiB,UAAA;YACxC,SAASlF,KAAK;AACZC,sBAAQmG,KACN,6CACExD,QAAQO,IAAI8C,IAAI,wBACMS,SAASZ,QAAQpD,IAAI,eAAA,CAAA,cAC7C1C,GAAAA;YAEJ;AAGF,iBAAO0G;QACT;AAEA,eAAO9D,QAAQkE,KACbJ,UACA,KACAtE,aAAaM,IAAImC,OAAAA,IACb;UACE,iBAAiB;QACnB,IACAvD,MAAAA;MAER;IACF,SAAStB,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;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"]
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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,KACAtE,aAAaM,IAAImC,OAAAA,IACb;UACE,iBAAiB;QACnB,IACAvD,MAAAA;MAER;IACF,SAAStB,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;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", "forEach", "value", "header", "json"]
6
6
  }
@@ -23,10 +23,22 @@ __export(getPageExport_exports, {
23
23
  getPageExport: () => getPageExport
24
24
  });
25
25
  module.exports = __toCommonJS(getPageExport_exports);
26
- const getPageExport = exported => exported.default ||
27
- // because HMR fails with default exports, allow exporting something else
28
- // we just find the first non-loader export for now...
29
- (() => {
30
- const nonLoader = Object.keys(exported).find(x => x !== "loader" && x[0].toUpperCase() === x[0]);
31
- if (nonLoader) return exported[nonLoader];
32
- })();
26
+ const getPageLikeExports = x => x !== "loader" && x[0].toUpperCase() === x[0],
27
+ getPageExport = exported => exported.default ||
28
+ // because HMR fails with default exports, allow exporting something else
29
+ // we just find the first non-loader export for now...
30
+ (() => {
31
+ const keys = Object.keys(exported);
32
+ process.env.NODE_ENV === "development" && keys.filter(getPageLikeExports).length > 1 && console.warn(`Warning: You've exported more than one uppercase non-default export.
33
+
34
+ If there is no default export, One uses the first capitalized non-default export.
35
+ This is because React Refresh, the hot reloading library, does not work on default
36
+ exports, so you may prefer to use non-default exports. But exporting multiple can
37
+ cause issues, as browser clients and server runtimes may not sort the export keys
38
+ the same.
39
+
40
+ Be sure to only export a single capitalized non-default export per-route.
41
+ `);
42
+ const nonLoader = keys.find(getPageLikeExports);
43
+ if (nonLoader) return exported[nonLoader];
44
+ })();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/utils/getPageExport.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,gBAAgB,CAAC,aAE1B,SAAS;AAAA;AAAA,CAGR,MAAM;AAEL,QAAM,YADO,OAAO,KAAK,QAAQ,EACV,KAAK,CAAC,MAAM,MAAM,YAAY,EAAE,CAAC,EAAE,YAAY,MAAM,EAAE,CAAC,CAAC;AAChF,MAAI;AACF,WAAO,SAAS,SAAS;AAE7B,GAAG;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,qBAAqB,CAAC,MAAc,MAAM,YAAY,EAAE,CAAC,EAAE,YAAY,MAAM,EAAE,CAAC,GAEzE,gBAAgB,CAAC,aAE1B,SAAS;AAAA;AAAA,CAGR,MAAM;AACL,QAAM,OAAO,OAAO,KAAK,QAAQ;AAEjC,EAAI,QAAQ,IAAI,aAAa,iBACF,KAAK,OAAO,kBAAkB,EAClC,SAAS,KAC5B,QAAQ,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aASV;AAIP,QAAM,YAAY,KAAK,KAAK,kBAAkB;AAC9C,MAAI;AACF,WAAO,SAAS,SAAS;AAE7B,GAAG;",
5
5
  "names": []
6
6
  }
@@ -18,13 +18,27 @@ __export(getPageExport_exports, {
18
18
  getPageExport: () => getPageExport
19
19
  });
20
20
  module.exports = __toCommonJS(getPageExport_exports);
21
- var getPageExport = function(exported) {
21
+ var getPageLikeExports = function(x) {
22
+ return x !== "loader" && x[0].toUpperCase() === x[0];
23
+ }, getPageExport = function(exported) {
22
24
  return exported.default || // because HMR fails with default exports, allow exporting something else
23
25
  // we just find the first non-loader export for now...
24
26
  function() {
25
- var keys = Object.keys(exported), nonLoader = keys.find(function(x) {
26
- return x !== "loader" && x[0].toUpperCase() === x[0];
27
- });
27
+ var keys = Object.keys(exported);
28
+ if (process.env.NODE_ENV === "development") {
29
+ var upperCaseExports = keys.filter(getPageLikeExports);
30
+ upperCaseExports.length > 1 && console.warn(`Warning: You've exported more than one uppercase non-default export.
31
+
32
+ If there is no default export, One uses the first capitalized non-default export.
33
+ This is because React Refresh, the hot reloading library, does not work on default
34
+ exports, so you may prefer to use non-default exports. But exporting multiple can
35
+ cause issues, as browser clients and server runtimes may not sort the export keys
36
+ the same.
37
+
38
+ Be sure to only export a single capitalized non-default export per-route.
39
+ `);
40
+ }
41
+ var nonLoader = keys.find(getPageLikeExports);
28
42
  if (nonLoader)
29
43
  return exported[nonLoader];
30
44
  }();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/getPageExport.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAAO,IAAMA,gBAAgB,SAACC,UAAAA;AAC5B,SACEA,SAASC;;EAGR,WAAA;AACC,QAAMC,OAAOC,OAAOD,KAAKF,QAAAA,GACnBI,YAAYF,KAAKG,KAAK,SAACC,GAAAA;aAAMA,MAAM,YAAYA,EAAE,CAAA,EAAGC,YAAW,MAAOD,EAAE,CAAA;;AAC9E,QAAIF;AACF,aAAOJ,SAASI,SAAAA;EAEpB,EAAA;AAEJ;",
5
- "names": ["getPageExport", "exported", "default", "keys", "Object", "nonLoader", "find", "x", "toUpperCase"]
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;IAAMA,qBAAqB,SAACC,GAAAA;SAAcA,MAAM,YAAYA,EAAE,CAAA,EAAGC,YAAW,MAAOD,EAAE,CAAA;GAExEE,gBAAgB,SAACC,UAAAA;AAC5B,SACEA,SAASC;;EAGR,WAAA;AACC,QAAMC,OAAOC,OAAOD,KAAKF,QAAAA;AAEzB,QAAII,QAAQC,IAAIC,aAAa,eAAe;AAC1C,UAAMC,mBAAmBL,KAAKM,OAAOZ,kBAAAA;AACrC,MAAIW,iBAAiBE,SAAS,KAC5BC,QAAQC,KAAK;;;;;;;;;aASV;IAEP;AAEA,QAAMC,YAAYV,KAAKW,KAAKjB,kBAAAA;AAC5B,QAAIgB;AACF,aAAOZ,SAASY,SAAAA;EAEpB,EAAA;AAEJ;",
5
+ "names": ["getPageLikeExports", "x", "toUpperCase", "getPageExport", "exported", "default", "keys", "Object", "process", "env", "NODE_ENV", "upperCaseExports", "filter", "length", "console", "warn", "nonLoader", "find"]
6
6
  }
@@ -192,7 +192,12 @@ ${stack}
192
192
  const reply = await handleRequest.handler(await convertIncomingMessageToRequest(req));
193
193
  if (!reply) return next();
194
194
  if (typeof reply != "string" && (0, import_isResponse.isResponse)(reply)) {
195
- if ((0, import_isStatus.isStatusRedirect)(reply.status)) {
195
+ if (reply.headers.forEach((value, key) => {
196
+ if (key === "set-cookie") {
197
+ const cookies = value.split(", ");
198
+ for (const cookie of cookies) res.appendHeader("Set-Cookie", cookie);
199
+ } else res.setHeader(key, value);
200
+ }), (0, import_isStatus.isStatusRedirect)(reply.status)) {
196
201
  const location = `${reply.headers.get("location") || ""}`;
197
202
  if (console.info(` \u21A6 Redirect ${location}`), location) {
198
203
  res.writeHead(reply.status, {
@@ -202,12 +207,7 @@ ${stack}
202
207
  }
203
208
  console.error("No location provided to redirected status reply", reply);
204
209
  }
205
- res.statusCode = reply.status, res.statusMessage = reply.statusText, reply.headers.forEach((value, key) => {
206
- if (key === "set-cookie") {
207
- const cookies = value.split(", ");
208
- for (const cookie of cookies) res.appendHeader("Set-Cookie", cookie);
209
- } else res.setHeader(key, value);
210
- });
210
+ res.statusCode = reply.status, res.statusMessage = reply.statusText;
211
211
  let outString = "";
212
212
  reply.body && reply.body.locked && console.warn("Body is locked??");
213
213
  try {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/createFileSystemRouter.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAqB,sBACrB,0BAAyB,6BAEzB,cAAyC,iBAEzC,6BAAoC,mCAEpC,oBAA2B,gCAC3B,kBAAiC,8BACjC,8BAAqC,0CACrC,mBAAgC,wBAChC,uBAA8B,4BAC9B,2BAAkC,gCAElC,4BAAoD;AAGpD,MAAM,iBAAiB;AAAM;AAEtB,SAAS,uBAAuB,SAAoC;AACzE,QAAM,WAAW,CAAC,iBAAiB,6CAAmB;AAEtD,MAAI,QACA,QAEA,gBAAgB,qBAAqB,GAErC,gBAAsC;AAE1C,WAAS,uBAAuB;AAC9B,eAAO,gDAAoB,SAAS;AAAA,MAClC,MAAM,UAAU,EAAE,OAAO,KAAK,YAAY,GAAG;AAG3C,YAFA,QAAQ,KAAK,aAAQ,MAAM,IAAI,KAAK,GAAG,gBAAgB,MAAM,IAAI,EAAE,GAE/D,MAAM,SAAS;AAEjB,iBAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcT,QAAI,iBACF,MAAM;AAGR,cAAM,EAAE,SAAS,QAAQ,QAAI,kDAA2B;AACxD,wBAAgB;AAEhB,YAAI;AACF,gBAAM,gBAAY,uBAAK,OAAO,MAAM,IAAI;AACxC,iBAAO,WAAW,GAEl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kC,OAAO,QAAmD;AAChG,MAAI,CAAC,IAAI;AACP,UAAM,IAAI,MAAM,eAAe;AAGjC,QAAM,UAAU,UAAU,IAAI,QAAQ,IAAI,IACpC,YAAY,IAAI,eAAe,IAC/BA,OAAM,IAAI,IAAI,WAAW,OAAO,GAEhC,UAAU,IAAI,QAAQ;AAC5B,aAAW,OAAO,IAAI;AACpB,IAAI,IAAI,QAAQ,GAAG,KAAG,QAAQ,OAAO,KAAK,IAAI,QAAQ,GAAG,CAAW;AAGtE,SAAO,IAAI,QAAQA,MAAK;AAAA,IACtB,QAAQ,IAAI;AAAA,IACZ,MAAM,CAAC,QAAQ,OAAO,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
  }
@@ -229,17 +229,7 @@ ${stack}
229
229
  if (!reply)
230
230
  return next();
231
231
  if (typeof reply != "string" && (0, import_isResponse.isResponse)(reply)) {
232
- if ((0, import_isStatus.isStatusRedirect)(reply.status)) {
233
- var location = `${reply.headers.get("location") || ""}`;
234
- if (console.info(` \u21A6 Redirect ${location}`), location) {
235
- res.writeHead(reply.status, {
236
- Location: location
237
- }), res.end();
238
- return;
239
- }
240
- console.error("No location provided to redirected status reply", reply);
241
- }
242
- res.statusCode = reply.status, res.statusMessage = reply.statusText, reply.headers.forEach(function(value, key) {
232
+ if (reply.headers.forEach(function(value, key) {
243
233
  if (key === "set-cookie") {
244
234
  var cookies = value.split(", "), _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
245
235
  try {
@@ -259,7 +249,17 @@ ${stack}
259
249
  }
260
250
  } else
261
251
  res.setHeader(key, value);
262
- });
252
+ }), (0, import_isStatus.isStatusRedirect)(reply.status)) {
253
+ var location = `${reply.headers.get("location") || ""}`;
254
+ if (console.info(` \u21A6 Redirect ${location}`), location) {
255
+ res.writeHead(reply.status, {
256
+ Location: location
257
+ }), res.end();
258
+ return;
259
+ }
260
+ console.error("No location provided to redirected status reply", reply);
261
+ }
262
+ res.statusCode = reply.status, res.statusMessage = reply.statusText;
263
263
  var outString = "";
264
264
  reply.body && reply.body.locked && console.warn("Body is locked??");
265
265
  try {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/createFileSystemRouter.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,uBAAqB,sBACrB,0BAAyB,6BAEzB,cAAyC,iBAEzC,6BAAoC,mCAEpC,oBAA2B,gCAC3B,kBAAiC,8BACjC,8BAAqC,0CACrC,mBAAgC,wBAChC,uBAA8B,4BAC9B,2BAAkC,gCAElC,4BAAoD;;;;;AAGpD,IAAMA,iBAAiB;AAAM;AAEtB,SAASC,uBAAuBC,SAA0B;AAC/D,MAAMC,WAAW;IAAC;IAAiBC;KAE/BC,QACAC,QAEAC,gBAAgBC,qBAAAA,GAEhBC,gBAAsC;AAE1C,WAASD,uBAAAA;AACP,eAAOE,gDAAoBR,SAAS;MAClC,MAAMS,UAAU,OAA2B;YAA3B,EAAEC,OAAOC,KAAKC,YAAW,IAAzB;AAGd,YAFAC,QAAQC,KAAK,aAAQJ,MAAMK,IAAI,KAAKJ,GAAAA,gBAAmBD,MAAMM,IAAI,EAAE,GAE/DN,MAAMK,SAAS;AAEjB,iBAAO;;;;;;;;;;;;AAcT,QAAIR,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J,UAASiJ,QAAAA;AAC3B,QAAMC,SAAuB,CAAA;AAC7BpB,WAAOqB,GAAG,QAAQ,SAACC,OAAAA;aAAsBF,OAAOG,KAAKD,KAAAA;QACrDtB,OAAOqB,GAAG,OAAO,WAAA;aAAMnJ,SAAQsJ,OAAOC,OAAOL,MAAAA,CAAAA;QAC7CpB,OAAOqB,GAAG,SAASF,MAAAA;EACrB,CAAA;AACF;",
5
- "names": ["USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "virtalEntryIdClient", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "createHandleRequest", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "promiseWithResolvers", "globalThis", "exported", "routeFile", "join", "clearCache", "import", "loaderData", "loader", "eval", "entry", "virtualEntryId", "render", "default", "LoaderDataCache", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "replaceLoader", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "resolveAPIRequest", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "createServerModuleRunner", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "debounce", "startsWith", "watcher", "addListener", "middlewares", "use", "req", "res", "next", "redirects", "web", "URL", "host", "redirect", "regexStr", "source", "replace", "match", "RegExp", "destination", "forEach", "index", "warn", "writeHead", "permanent", "Location", "end", "reply", "handler", "convertIncomingMessageToRequest", "isResponse", "isStatusRedirect", "location", "statusCode", "statusMessage", "statusText", "value", "key", "cookies", "split", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "cookie", "appendHeader", "setHeader", "outString", "body", "locked", "streamToString", "write", "stream", "reader", "getReader", "decoder", "TextDecoder", "done", "read", "decode", "releaseLock", "originalUrl", "urlBase", "urlString", "Headers", "append", "Request", "method", "includes", "readStream", "Promise", "reject", "chunks", "on", "chunk", "push", "Buffer", "concat"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,uBAAqB,sBACrB,0BAAyB,6BAEzB,cAAyC,iBAEzC,6BAAoC,mCAEpC,oBAA2B,gCAC3B,kBAAiC,8BACjC,8BAAqC,0CACrC,mBAAgC,wBAChC,uBAA8B,4BAC9B,2BAAkC,gCAElC,4BAAoD;;;;;AAGpD,IAAMA,iBAAiB;AAAM;AAEtB,SAASC,uBAAuBC,SAA0B;AAC/D,MAAMC,WAAW;IAAC;IAAiBC;KAE/BC,QACAC,QAEAC,gBAAgBC,qBAAAA,GAEhBC,gBAAsC;AAE1C,WAASD,uBAAAA;AACP,eAAOE,gDAAoBR,SAAS;MAClC,MAAMS,UAAU,OAA2B;YAA3B,EAAEC,OAAOC,KAAKC,YAAW,IAAzB;AAGd,YAFAC,QAAQC,KAAK,aAAQJ,MAAMK,IAAI,KAAKJ,GAAAA,gBAAmBD,MAAMM,IAAI,EAAE,GAE/DN,MAAMK,SAAS;AAEjB,iBAAO;;;;;;;;;;;;AAcT,QAAIR,iBACF,MAAMA;AAGR,YAAM,EAAEU,SAASC,QAAO,QAAKC,kDAAAA;AAC7BZ,wBAAgBU;AAEhB,YAAI;cAIFG,8BAAAA,aAGyBC,kBANnBC,gBAAYC,uBAAK,OAAOb,MAAMM,IAAI;AACxCb,iBAAOqB,WAAU,IAEjBJ,gCAAAA,cAAAA,YAAW,sBAAmB,QAA9BA,iCAAAA,UAAAA,6BAAAA,KAAAA,WAAAA;AAEA,cAAMC,WAAWC,cAAc,KAAK,CAAC,IAAI,MAAMnB,OAAOsB,OAAOH,SAAAA,GACvDI,aAAa,QAAML,mBAAAA,SAASM,YAAM,QAAfN,qBAAAA,SAAAA,SAAAA,iBAAAA,KAAAA,UAAkBT,WAAAA;AAG3CgB,eAAK,qCAAqC;AAE1C,cA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d7B,YAAQ6B,MAAM,6BAA6BA,KAAAA;EAC7C,UAAA;AACEuG,WAAOO,YAAW;EACpB;AAEA,SAAOxF;AACT;AAEA,IAAMwD,kCAAkC,eAAOvB,KAAAA;AAC7C,MAAI,CAACA,IAAIwD;AACP,UAAM,IAAI3G,MAAM,eAAe;AAGjC,MAAM4G,UAAU,UAAUzD,IAAIzD,QAAQ+D,IAAI,IACpCoD,YAAY1D,IAAIwD,eAAe,IAC/B9I,OAAM,IAAI2F,IAAIqD,WAAWD,OAAAA,GAEzBlH,UAAU,IAAIoH,QAAAA;AACpB,WAAWjC,OAAO1B,IAAIzD;AACpB,IAAIyD,IAAIzD,QAAQmF,GAAAA,KAAMnF,QAAQqH,OAAOlC,KAAK1B,IAAIzD,QAAQmF,GAAAA,CAAI;AAG5D,SAAO,IAAImC,QAAQnJ,MAAK;IACtBoJ,QAAQ9D,IAAI8D;IACZnB,MAAM;MAAC;MAAQ;MAAO;MAAS;MAAUoB,SAAS/D,IAAI8D,UAAU,EAAA,IAC5D,MAAME,WAAWhE,GAAAA,IACjB;IACJzD;EACF,CAAA;AACF;AAEA,SAASyH,WAAWjB,QAA+B;AACjD,SAAO,IAAIkB,QAAQ,SAAChJ,UAASiJ,QAAAA;AAC3B,QAAMC,SAAuB,CAAA;AAC7BpB,WAAOqB,GAAG,QAAQ,SAACC,OAAAA;aAAsBF,OAAOG,KAAKD,KAAAA;QACrDtB,OAAOqB,GAAG,OAAO,WAAA;aAAMnJ,SAAQsJ,OAAOC,OAAOL,MAAAA,CAAAA;QAC7CpB,OAAOqB,GAAG,SAASF,MAAAA;EACrB,CAAA;AACF;",
5
+ "names": ["USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "virtalEntryIdClient", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "createHandleRequest", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "promiseWithResolvers", "globalThis", "exported", "routeFile", "join", "clearCache", "import", "loaderData", "loader", "eval", "entry", "virtualEntryId", "render", "default", "LoaderDataCache", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "replaceLoader", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "resolveAPIRequest", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "createServerModuleRunner", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "debounce", "startsWith", "watcher", "addListener", "middlewares", "use", "req", "res", "next", "redirects", "web", "URL", "host", "redirect", "regexStr", "source", "replace", "match", "RegExp", "destination", "forEach", "index", "warn", "writeHead", "permanent", "Location", "end", "reply", "handler", "convertIncomingMessageToRequest", "isResponse", "value", "key", "cookies", "split", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "cookie", "appendHeader", "setHeader", "isStatusRedirect", "location", "statusCode", "statusMessage", "statusText", "outString", "body", "locked", "streamToString", "write", "stream", "reader", "getReader", "decoder", "TextDecoder", "done", "read", "decode", "releaseLock", "originalUrl", "urlBase", "urlString", "Headers", "append", "Request", "method", "includes", "readStream", "Promise", "reject", "chunks", "on", "chunk", "push", "Buffer", "concat"]
6
6
  }
@@ -75,7 +75,9 @@ function one(options = {}) {
75
75
  define: clientEnvDefine
76
76
  };
77
77
  }
78
- },
78
+ }, ...(options.ssr?.disableAutoDepsPreBundling ? [] : [(0, import_vxrn.autoPreBundleDepsForSsrPlugin)({
79
+ root: vxrnOptions?.root || process.cwd()
80
+ })]),
79
81
  // proxy because you cant add a plugin inside a plugin
80
82
  new Proxy({
81
83
  name: "one:tsconfig-paths",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/one.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;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;AACvE,UAAM,mBAAmB,OAAO;AAAA,EAClC;AACA,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,4BAA4B;AAE9C,SAAO;AACT;AAEA,eAAsB,mBAAmB,SAA4B;AAKnE,MAAI,CAJU,UAAM,gCAAmB;AAAA,IACrC,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AAEC,UAAM,IAAI,MAAM,sBAAsB,QAAQ,IAAI,CAAC,kCAAkC;AAEvF,QAAM,eAAe,kBAAkB;AACvC,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,yCAAyC;AAE3D,SAAO;AACT;",
5
5
  "names": ["events", "tsconfigPaths", "path"]
6
6
  }
@@ -31,7 +31,7 @@ var import_resolve = require("@vxrn/resolve"), import_node_events = __toESM(requ
31
31
  import_node_events.default.setMaxListeners(1e3);
32
32
  globalThis.__vxrnEnableNativeEnv = !0;
33
33
  function one() {
34
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _options_config;
34
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _options_config, _options_ssr;
35
35
  oneOptions = options, ((_options_config = options.config) === null || _options_config === void 0 ? void 0 : _options_config.ensureTSConfig) !== !1 && (0, import_ensureTsConfig.ensureTSConfig)(), globalThis.__vxrnPluginConfig__ = options;
36
36
  var { optimizeDeps } = (0, import_vxrn.getOptimizeDeps)("build"), optimizeIds = optimizeDeps.include, optimizeIdRegex = new RegExp(
37
37
  // santize ids for regex
@@ -48,6 +48,11 @@ function one() {
48
48
  };
49
49
  }
50
50
  },
51
+ ...!((_options_ssr = options.ssr) === null || _options_ssr === void 0) && _options_ssr.disableAutoDepsPreBundling ? [] : [
52
+ (0, import_vxrn.autoPreBundleDepsForSsrPlugin)({
53
+ root: (vxrnOptions == null ? void 0 : vxrnOptions.root) || process.cwd()
54
+ })
55
+ ],
51
56
  // proxy because you cant add a plugin inside a plugin
52
57
  new Proxy({
53
58
  name: "one:tsconfig-paths",
@@ -1,6 +1,6 @@
1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BAAQC,KAAK,uBAAuBF,GAAAA;UACtC;QACF;MACF;IACF;QAEAG,0CAAiB;MACfC,SAAS;QAACC;;IACZ,CAAA;;AAEJ;AAEA,IAAItG,aAAuC;AAE3C,eAAeuG,kBAAkBC,SAA2B;AAC1D,MAAI,CAACxG,YAAY;AACf,QAAI,CAACwG,QAAS,OAAM,IAAIC,MAAM,yCAAyC;AACvE,UAAMC,mBAAmBF,OAAAA;EAC3B;AACA,MAAI,CAACxG;AACH,UAAM,IAAIyG,MAAM,4BAA4B;AAE9C,SAAOzG;AACT;AAEA,eAAsB0G,mBAAmBF,SAA0B;AACjE,MAAMG,QAAQ,UAAMC,gCAAmB;IACrC1F,MAAM;IACNsF;EACF,CAAA;AACA,MAAI,CAACG;AACH,UAAM,IAAIF,MAAM,sBAAsBzD,QAAQ6D,IAAG,CAAA,kCAAoC;AAEvF,MAAMC,eAAeP,kBAAAA;AACrB,MAAI,CAACO;AACH,UAAM,IAAIL,MAAM,yCAAyC;AAE3D,SAAOK;AACT;",
5
- "names": ["events", "setMaxListeners", "globalThis", "__vxrnEnableNativeEnv", "one", "options", "oneOptions", "config", "ensureTSConfig", "optimizeDeps", "getOptimizeDeps", "optimizeIds", "include", "optimizeIdRegex", "RegExp", "map", "id", "replace", "join", "tsConfigPathsPlugin", "vxrnOptions", "getOptionsFilled", "clientEnvDefine", "loadEnv", "mode", "devAndProdPlugins", "name", "define", "Proxy", "configIncoming", "pathsConfig", "tsConfigPaths", "plugins", "flat", "some", "p", "tsconfigPaths", "configResolved", "resolveId", "get", "target", "key", "thisArg", "Reflect", "enforce", "resolve", "alias", "tslib", "resolvePath", "web", "defaultRenderMode", "JSON", "stringify", "setupFile", "process", "env", "NODE_ENV", "server", "url", "environments", "client", "ssr", "ios", "android", "zero", "TESTING", "REPLICACHE_VERSION", "ZERO_VERSION", "hotUpdate", "modules", "m", "relativePath", "path", "relative", "root", "rootDir", "split", "sep", "acceptedHmrExports", "Set", "__vxrnAddNativePlugins", "clientTreeShakePlugin", "__vxrnAddWebPluginsProd", "createFileSystemRouter", "generateTypesForRoutes", "fixDependenciesPlugin", "deps", "createVirtualEntry", "app", "CACHE_KEY", "sharedNativeConfig", "react", "applyToEnvironment", "environment", "isWebEnvironment", "importer", "shouldOptimize", "test", "absolutePath", "dirname", "webPath", "directoryPath", "existsAsync", "err", "console", "warn", "vitePluginSsrCss", "entries", "virtualEntryId", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "loadConfigFromFile", "cwd", "foundOptions"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;qBAA4B,0BAC5B,qBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAMO,iBACP,mBAA0B,yBAC1B,0BAAO,gCACP,qBAA4B,iCAC5B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCAEvC,4BAAmD,iCACnD,0BAAiC;AAEjCA,mBAAAA,QAAOC,gBAAgB,GAAA;AAGvBC,WAAWC,wBAAwB;AAE5B,SAASC,MAAAA;MAAIC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA6B,CAAC,GAI5CA,iBA+BEA;AAlCNC,eAAaD,WAGTA,kBAAAA,QAAQE,YAAM,QAAdF,oBAAAA,SAAAA,SAAAA,gBAAgBG,oBAAmB,UAChCA,sCAAAA,GAGPN,WAAW,uBAA0BG;AAGrC,MAAM,EAAEI,aAAY,QAAKC,6BAAgB,OAAA,GACnCC,cAAcF,aAAaG,SAC3BC,kBAAkB,IAAIC;;;IAG1B,GAAGH,YAAYI,IAAI,SAACC,IAAAA;aAAOA,GAAGC,QAAQ,uBAAuB,MAAA;OAASC,KAAK,GAAA,CAAA;EAAM,GAG/EC,sBAAqC,MAEnCC,kBAAcC,8BAAAA,GAEgBD,mBAA9B,EAAEE,gBAAe,QAAKC,sBAAQH,oBAA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A,MAAAA,SAAAA,UAAAA,CAAAA,IAAW,IACvBC,iBAAiBtF,gBAAgBuF,KAAKF,QAAAA;AAE5C,YAAIC,gBAAgB;AAClB,cAAME,mBAAelD,8BAAQmD,0BAAQJ,QAAAA,GAAWlF,EAAAA,GAC1CuF,UAAUF,aAAapF,QAAQ,WAAW,EAAA,IAAM;AACtD,cAAIsF,YAAYvF,GAAI;AACpB,cAAI;AACF,gBAAMwF,gBAAgBH,eAAe;AACrC,gBAAI,UAAMI,gCAAYD,aAAAA;AACpB,qBAAOA;AAET,gBAAI,UAAMC,gCAAYF,OAAAA;AACpB,qBAAOA;UAEX,SAASG,KAAK;AACZC,oBAAQC,KAAK,uBAAuBF,GAAAA;UACtC;QACF;MACF;IACF;QAEAG,0CAAiB;MACfC,SAAS;QAACC;;IACZ,CAAA;;AAEJ;AAEA,IAAIzG,aAAuC;AAE3C,eAAe0G,kBAAkBC,SAA2B;AAC1D,MAAI,CAAC3G,YAAY;AACf,QAAI,CAAC2G,QAAS,OAAM,IAAIC,MAAM,yCAAyC;AACvE,UAAMC,mBAAmBF,OAAAA;EAC3B;AACA,MAAI,CAAC3G;AACH,UAAM,IAAI4G,MAAM,4BAA4B;AAE9C,SAAO5G;AACT;AAEA,eAAsB6G,mBAAmBF,SAA0B;AACjE,MAAMG,QAAQ,UAAMC,gCAAmB;IACrC7F,MAAM;IACNyF;EACF,CAAA;AACA,MAAI,CAACG;AACH,UAAM,IAAIF,MAAM,sBAAsBlF,QAAQC,IAAG,CAAA,kCAAoC;AAEvF,MAAMqF,eAAeN,kBAAAA;AACrB,MAAI,CAACM;AACH,UAAM,IAAIJ,MAAM,yCAAyC;AAE3D,SAAOI;AACT;",
5
+ "names": ["events", "setMaxListeners", "globalThis", "__vxrnEnableNativeEnv", "one", "options", "oneOptions", "config", "ensureTSConfig", "optimizeDeps", "getOptimizeDeps", "optimizeIds", "include", "optimizeIdRegex", "RegExp", "map", "id", "replace", "join", "tsConfigPathsPlugin", "vxrnOptions", "getOptionsFilled", "clientEnvDefine", "loadEnv", "mode", "devAndProdPlugins", "name", "define", "ssr", "disableAutoDepsPreBundling", "autoPreBundleDepsForSsrPlugin", "root", "process", "cwd", "Proxy", "configIncoming", "pathsConfig", "tsConfigPaths", "plugins", "flat", "some", "p", "tsconfigPaths", "configResolved", "resolveId", "get", "target", "key", "thisArg", "Reflect", "enforce", "resolve", "alias", "tslib", "resolvePath", "web", "defaultRenderMode", "JSON", "stringify", "setupFile", "env", "NODE_ENV", "server", "url", "environments", "client", "ios", "android", "zero", "TESTING", "REPLICACHE_VERSION", "ZERO_VERSION", "hotUpdate", "modules", "m", "relativePath", "path", "relative", "rootDir", "split", "sep", "acceptedHmrExports", "Set", "__vxrnAddNativePlugins", "clientTreeShakePlugin", "__vxrnAddWebPluginsProd", "createFileSystemRouter", "generateTypesForRoutes", "fixDependenciesPlugin", "deps", "createVirtualEntry", "app", "CACHE_KEY", "sharedNativeConfig", "react", "applyToEnvironment", "environment", "isWebEnvironment", "importer", "shouldOptimize", "test", "absolutePath", "dirname", "webPath", "directoryPath", "existsAsync", "err", "console", "warn", "vitePluginSsrCss", "entries", "virtualEntryId", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "loadConfigFromFile", "foundOptions"]
6
6
  }
package/dist/esm/serve.js CHANGED
@@ -68,14 +68,14 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
68
68
  } catch (err) {
69
69
  return console.error(`
70
70
  [one] Error importing API route at ${apiFile}:
71
-
71
+
72
72
  ${err}
73
73
 
74
74
  If this is an import error, you can likely fix this by adding this dependency to
75
75
  the "optimizeDeps.include" array in your vite.config.ts.
76
76
 
77
77
  \u{1F41E} For a better error message run "node" and enter:
78
-
78
+
79
79
  import('${apiFile}')
80
80
 
81
81
  `), {};
@@ -128,7 +128,9 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
128
128
  if (isResponse(response)) {
129
129
  if (isStatusRedirect(response.status)) {
130
130
  const location = `${response.headers.get("location") || ""}`;
131
- return context.redirect(location, response.status);
131
+ return response.headers.forEach((value, key) => {
132
+ context.header(key, value);
133
+ }), context.redirect(location, response.status);
132
134
  }
133
135
  if (isAPIRequest.get(request))
134
136
  try {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/serve.ts"],
4
- "mappings": "AAAA,OAAO;AAEP,OAAO,aAAa;AAEpB,SAAS,YAAY;AAErB,SAAS,gBAAgB,SAAS,SAAS,iBAAiB;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,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,GACpB,QAAQ,YAAY;AAEpB,QAAM,aAAa,MAAM,mBAAmB,OAAO;AAGnD,iBAAQ,IAAI,gBAAgB,KAErB,MAAM,UAAU;AAAA,IACrB,QAAQ;AAAA;AAAA,MAEN,GAAG,WAAW;AAAA;AAAA,MAEd,GAAG,gBAAgB;AAAA,QACjB,MAAM,KAAK,OAAO,CAAC,KAAK,OAAO;AAAA,QAC/B,MAAM,KAAK;AAAA,QACX,UAAU,KAAK;AAAA,QACf,UAAU,KAAK;AAAA,QACf,cAAc,KAAK;AAAA,MACrB,CAAC;AAAA,MAED,MAAM,YAAY,SAAS,KAAK;AAC9B,cAAM,WAAW,QAAQ,cAAc,SAAS,GAAG,GACnD,MAAM,SAAS,YAAY,SAAS,WAAW,GAAG;AAAA,MACpD;AAAA,IACF;AAAA,EACF,CAAC;AACH;AAEA,eAAe,SACb,SACA,aACA,WACA,K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,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,4BAAS,QAAQ,QAAQ,CAAC,OAAO,QAAQ;AACvC,sBAAQ,OAAO,KAAK,KAAK;AAAA,YAC3B,CAAC,GACM,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": ["buildInfo"]
6
6
  }
@@ -90,14 +90,14 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
90
90
  } catch (err) {
91
91
  return console.error(`
92
92
  [one] Error importing API route at ${apiFile}:
93
-
93
+
94
94
  ${err}
95
95
 
96
96
  If this is an import error, you can likely fix this by adding this dependency to
97
97
  the "optimizeDeps.include" array in your vite.config.ts.
98
98
 
99
99
  \u{1F41E} For a better error message run "node" and enter:
100
-
100
+
101
101
  import('${apiFile}')
102
102
 
103
103
  `), {};
@@ -146,7 +146,9 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
146
146
  if (isResponse(response)) {
147
147
  if (isStatusRedirect(response.status)) {
148
148
  const location = `${response.headers.get("location") || ""}`;
149
- return context.redirect(location, response.status);
149
+ return response.headers.forEach((value, key) => {
150
+ context.header(key, value);
151
+ }), context.redirect(location, response.status);
150
152
  }
151
153
  if (isAPIRequest.get(request)) try {
152
154
  response.headers.set("Cache-Control", "no-store");