one 1.1.315 → 1.1.317
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/serve.cjs +5 -3
- package/dist/cjs/serve.cjs.map +1 -1
- package/dist/cjs/serve.native.js +5 -3
- package/dist/cjs/serve.native.js.map +2 -2
- package/dist/cjs/vite/createFileSystemRouter.cjs +7 -7
- package/dist/cjs/vite/createFileSystemRouter.cjs.map +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js +12 -12
- package/dist/cjs/vite/createFileSystemRouter.native.js.map +2 -2
- package/dist/cjs/vite/one.cjs +5 -3
- package/dist/cjs/vite/one.cjs.map +1 -1
- package/dist/cjs/vite/one.native.js +9 -8
- package/dist/cjs/vite/one.native.js.map +1 -1
- package/dist/esm/serve.js +5 -3
- package/dist/esm/serve.js.map +1 -1
- package/dist/esm/serve.mjs +5 -3
- package/dist/esm/serve.mjs.map +1 -1
- package/dist/esm/serve.native.js +5 -3
- package/dist/esm/serve.native.js.map +2 -2
- package/dist/esm/vite/createFileSystemRouter.js +9 -9
- package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +7 -7
- package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +12 -12
- package/dist/esm/vite/createFileSystemRouter.native.js.map +2 -2
- package/dist/esm/vite/one.js +9 -8
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs +5 -3
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +9 -8
- package/dist/esm/vite/one.native.js.map +1 -1
- package/package.json +7 -7
- package/src/serve.ts +5 -2
- package/src/vite/createFileSystemRouter.tsx +12 -12
- package/src/vite/one.ts +4 -6
- package/types/vite/one.d.ts.map +1 -1
package/dist/cjs/serve.cjs
CHANGED
@@ -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
|
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");
|
package/dist/cjs/serve.cjs.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/serve.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAO,+BAEP,kBAAoB,iCAEpB,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;AAE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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,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
|
}
|
package/dist/cjs/serve.native.js
CHANGED
@@ -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
|
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,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AMwB,IAAI;;KAEnEjF,aAAAA,OAAAA,OAAAA,SAAAA,IAAM,WAAQ,QAAdA,eAAAA,SAAAA,aAAkBA,GAAAA;;SAEbqF,GAAAA,EAAK;QACJ;MACF;IACF;EACF,CAAA,GAIIa,YAAoC,CAAC;AAC3C,WAAWC,OAAO7C,UAAU;AAC1B,QAAM8C,OAAO5C,iBAAiB2C,GAAAA;AAE9B,KAAIC,QAAAA,OAAAA,SAAAA,KAAMd,UAAS,UAKnBY,UAAUC,GAAAA,IAAO,MAAM5F,gBAAAA,QAAQ8F,aAASrC,uBAAK,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;
|
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;;MAEd,GAAGN,gBAAgB;QACjBO,MAAMhB,KAAKgB,OAAO,CAAChB,KAAKgB,OAAOC;QAC/BC,MAAMlB,KAAKkB;QACXC,UAAUnB,KAAKmB;QACfC,UAAUpB,KAAKoB;QACf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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
|
}
|
@@ -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 ((
|
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
|
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,QAA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AO;AACd,YAAQ,MAAM,6BAA6B,KAAK;AAAA,EAClD,UAAE;AACA,WAAO,YAAY;AAAA,EACrB;AAEA,SAAO;AACT;AAEA,MAAM,kCAAkC,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 ((
|
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,q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T,gBAAI,OAAOmB,SAAU,gBAAYG,8BAAWH,KAAAA,GAAQ;
|
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", "
|
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,WA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AI;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
|
}
|
package/dist/cjs/vite/one.cjs
CHANGED
@@ -208,10 +208,12 @@ function one(options = {}) {
|
|
208
208
|
}), {
|
209
209
|
name: "one-define-environment",
|
210
210
|
config() {
|
211
|
-
|
211
|
+
return {
|
212
212
|
define: {
|
213
|
-
|
214
|
-
|
213
|
+
...(options.app?.key && {
|
214
|
+
"process.env.ONE_APP_NAME": JSON.stringify(options.app.key),
|
215
|
+
"import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key)
|
216
|
+
}),
|
215
217
|
"process.env.ONE_CACHE_KEY": JSON.stringify(import_constants.CACHE_KEY),
|
216
218
|
"import.meta.env.ONE_CACHE_KEY": JSON.stringify(import_constants.CACHE_KEY)
|
217
219
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/one.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA4B,0BAC5B,qBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAA6E,iBAC7E,mBAA0B,yBAC1B,0BAAO,gCACP,qBAA4B,iCAC5B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCAEvC,4BA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A,MACF;AAAA,IACF;AAAA,QAEA,0CAAiB;AAAA,MACf,SAAS,CAAC,wCAAc;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;AAEA,IAAI,aAAuC;AAE3C,eAAe,kBAAkB,SAA6B;AAC5D,MAAI,CAAC,YAAY;AACf,QAAI,CAAC,QAAS,OAAM,IAAI,MAAM,yCAAyC;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
|
}
|
@@ -201,15 +201,16 @@ function one() {
|
|
201
201
|
name: "one-define-environment",
|
202
202
|
config() {
|
203
203
|
var _options_app;
|
204
|
-
|
205
|
-
|
206
|
-
|
204
|
+
return {
|
205
|
+
define: {
|
206
|
+
...((_options_app = options.app) === null || _options_app === void 0 ? void 0 : _options_app.key) && {
|
207
207
|
"process.env.ONE_APP_NAME": JSON.stringify(options.app.key),
|
208
|
-
"import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key)
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
}
|
208
|
+
"import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key)
|
209
|
+
},
|
210
|
+
"process.env.ONE_CACHE_KEY": JSON.stringify(import_constants.CACHE_KEY),
|
211
|
+
"import.meta.env.ONE_CACHE_KEY": JSON.stringify(import_constants.CACHE_KEY)
|
212
|
+
}
|
213
|
+
};
|
213
214
|
}
|
214
215
|
},
|
215
216
|
{
|
@@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,oBAAQC,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
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"]
|
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
|
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 {
|
package/dist/esm/serve.js.map
CHANGED
@@ -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,Q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ildInfo"]
|
6
6
|
}
|
package/dist/esm/serve.mjs
CHANGED
@@ -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
|
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");
|
package/dist/esm/serve.mjs.map
CHANGED
@@ -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","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,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,CAAKe,QAAA;QACfC,QAAA,EAAUhB,IAAA,CAA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A,CAASyC,GAAG,CAAC,GAAG,OAAO;EAGrFlE,GAAA,CAAIoE,GAAA,CAAI,OAAOrD,OAAA,EAASsD,IAAA,KAAS;IAE/B,MAAMC,IAAA,GAAOL,SAAA,CAAUlD,OAAA,CAAQO,GAAA,CAAI0C,IAAI;IACvC,IAAIM,IAAA,EACF,OAAOvD,OAAA,CAAQuD,IAAA,CAAKA,IAAI;IAG1B,IAAI;MACF,MAAM1B,OAAA,GAAU7B,OAAA,CAAQO,GAAA,CAAIiD,GAAA;QACtBC,QAAA,GAAW,MAAM9B,aAAA,CAAc+B,OAAA,CAAQ7B,OAAO;MAEpD,IAAI4B,QAAA,EAAU;QACZ,IAAIpE,UAAA,CAAWoE,QAAQ,GAAG;UACxB,IAAInE,gBAAA,CAAiBmE,QAAA,CAASE,MAAM,GAAG;YACrC,MAAMC,QAAA,GAAW,GAAGH,QAAA,CAASX,OAAA,CAAQhD,GAAA,CAAI,UAAU,KAAK,EAAE;YAC1D,
|
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","forEach","value","header","info","json"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"A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IAEA,MAAM0F,IAAA,CAAK;EACb,CAAC;AACH","ignoreList":[]}
|
package/dist/esm/serve.native.js
CHANGED
@@ -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
|
`), {};
|
@@ -145,7 +145,9 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
|
|
145
145
|
if (isResponse(response)) {
|
146
146
|
if (isStatusRedirect(response.status)) {
|
147
147
|
var location = `${response.headers.get("location") || ""}`;
|
148
|
-
return
|
148
|
+
return response.headers.forEach(function(value, key2) {
|
149
|
+
context.header(key2, value);
|
150
|
+
}), context.redirect(location, response.status);
|
149
151
|
}
|
150
152
|
if (isAPIRequest.get(request))
|
151
153
|
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,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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,YAAUkF,UAErBC,UAAU,IAAIC,QAAAA;AACpBD,yBAAQZ,IAAI,gBAAgB,WAAA,GAErB,IAAIc,SACT,MAAM3B,OAAO;YACXsB;YACAb;YACAmB,MAAMnB,aAAamB,QAAQ;YAC3BJ;UACF,CAAA,GACA;YACEC;UACF,CAAA;QAEJ,SAASxF,KAAK;cAGpBA;AAFQC,kBAAQC,MAAM,mCAAmCmD,OAAMsB,IAAI;;KAEnE3E,aAAAA,KAAM,WAAQ,QAAdA,eAAAA,SAAAA,aAAkBA,GAAAA;;SAEb+E,GAAAA,EAAK;QACJ;MACF;IACF;EACF,CAAA,GAIIa,YAAoC,CAAC;AAC3C,WAAWC,OAAO3C,UAAU;AAC1B,QAAM4C,OAAO1C,iBAAiByC,GAAAA;AAE9B,IAAIC,MAAMd,SAAS,UAKnBY,UAAUC,GAAAA,IAAO,MAAMrG,QAAQuG,SAAStG,KAAK,eAAeyD,SAAS2C,GAAAA,CAAI,GAAG,OAAA;EAC9E;AAEApE,MAAIuE,IAAI,eAAOxD,SAASyD,MAAAA;AAEtB,QAAMC,OAAON,UAAUpD,QAAQO,IAAI4C,IAAI;AACvC,QAAIO;AACF,aAAO1D,QAAQ0D,KAAKA,IAAAA;AAGtB,QAAI;AACF,UAAM3B,UAAU/B,QAAQO,IAAIoD,KACtBC,WAAW,MAAM/B,cAAcgC,QAAQ9B,OAAAA;AAE7C,UAAI6B,UAAU;AACZ,YAAIvE,WAAWuE,QAAAA,GAAW;AACxB,cAAItE,iBAAiBsE,SAASE,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGH,SAASZ,QAAQlD,IAAI,UAAA,KAAe,EAAA;
|
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"]
|
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,GAChC,EAAEC,gBAAe,IAAK,MAAM,OAAO,yBAAA,GACnC,EAAEC,mBAAkB,IAAK,MAAM,OAAO,YAAA;AAE5CF,eAAa,OAAA,GACbhB,QAAQ,YAAA;AAER,MAAMmB,aAAa,MAAMD,mBAAmB,OAAA;AAG5Cf,iBAAQS,IAAIQ,gBAAgB,KAErB,MAAMlB,UAAU;IACrBmB,QAAQ;;MAE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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", "forEach", "value", "header", "json"]
|
6
6
|
}
|
@@ -154,7 +154,14 @@ ${stack}
|
|
154
154
|
if (!reply)
|
155
155
|
return next();
|
156
156
|
if (typeof reply != "string" && isResponse(reply)) {
|
157
|
-
if (
|
157
|
+
if (reply.headers.forEach((value, key) => {
|
158
|
+
if (key === "set-cookie") {
|
159
|
+
const cookies = value.split(", ");
|
160
|
+
for (const cookie of cookies)
|
161
|
+
res.appendHeader("Set-Cookie", cookie);
|
162
|
+
} else
|
163
|
+
res.setHeader(key, value);
|
164
|
+
}), isStatusRedirect(reply.status)) {
|
158
165
|
const location = `${reply.headers.get("location") || ""}`;
|
159
166
|
if (console.info(` \u21A6 Redirect ${location}`), location) {
|
160
167
|
res.writeHead(reply.status, {
|
@@ -164,14 +171,7 @@ ${stack}
|
|
164
171
|
}
|
165
172
|
console.error("No location provided to redirected status reply", reply);
|
166
173
|
}
|
167
|
-
res.statusCode = reply.status, res.statusMessage = reply.statusText
|
168
|
-
if (key === "set-cookie") {
|
169
|
-
const cookies = value.split(", ");
|
170
|
-
for (const cookie of cookies)
|
171
|
-
res.appendHeader("Set-Cookie", cookie);
|
172
|
-
} else
|
173
|
-
res.setHeader(key, value);
|
174
|
-
});
|
174
|
+
res.statusCode = reply.status, res.statusMessage = reply.statusText;
|
175
175
|
let outString = "";
|
176
176
|
reply.body && reply.body.locked && console.warn("Body is locked??");
|
177
177
|
try {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/createFileSystemRouter.tsx"],
|
4
|
-
"mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,gBAAgB;AAEzB,SAAS,gCAAgC;AAEzC,SAAS,2BAA2B;AAEpC,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,yBAAyB;AAElC,SAAS,qBAAqB,sBAAsB;AAGpD,MAAM,iBAAiB;AAAM;AAEtB,SAAS,uBAAuB,SAAoC;AACzE,QAAM,WAAW,CAAC,iBAAiB,mBAAmB;AAEtD,MAAI,QACA,QAEA,gBAAgB,qBAAqB,GAErC,gBAAsC;AAE1C,WAAS,uBAAuB;AAC9B,WAAO,oBAAoB,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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AAA,IAClD;AAAA,EACF,SAAS,OAAO;AACd,YAAQ,MAAM,6BAA6B,KAAK;AAAA,EAClD,UAAE;AACA,WAAO,YAAY;AAAA,EACrB;AAEA,SAAO;AACT;AAEA,MAAM,kCAAkC,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
|
}
|
@@ -167,7 +167,12 @@ ${stack}
|
|
167
167
|
const reply = await handleRequest.handler(await convertIncomingMessageToRequest(req));
|
168
168
|
if (!reply) return next();
|
169
169
|
if (typeof reply != "string" && isResponse(reply)) {
|
170
|
-
if (
|
170
|
+
if (reply.headers.forEach((value, key) => {
|
171
|
+
if (key === "set-cookie") {
|
172
|
+
const cookies = value.split(", ");
|
173
|
+
for (const cookie of cookies) res.appendHeader("Set-Cookie", cookie);
|
174
|
+
} else res.setHeader(key, value);
|
175
|
+
}), isStatusRedirect(reply.status)) {
|
171
176
|
const location = `${reply.headers.get("location") || ""}`;
|
172
177
|
if (console.info(` \u21A6 Redirect ${location}`), location) {
|
173
178
|
res.writeHead(reply.status, {
|
@@ -177,12 +182,7 @@ ${stack}
|
|
177
182
|
}
|
178
183
|
console.error("No location provided to redirected status reply", reply);
|
179
184
|
}
|
180
|
-
res.statusCode = reply.status, res.statusMessage = reply.statusText
|
181
|
-
if (key === "set-cookie") {
|
182
|
-
const cookies = value.split(", ");
|
183
|
-
for (const cookie of cookies) res.appendHeader("Set-Cookie", cookie);
|
184
|
-
} else res.setHeader(key, value);
|
185
|
-
});
|
185
|
+
res.statusCode = reply.status, res.statusMessage = reply.statusText;
|
186
186
|
let outString = "";
|
187
187
|
reply.body && reply.body.locked && console.warn("Body is locked??");
|
188
188
|
try {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","route","url","loaderProps","console","info","type","file","promise","resolve","routeFile","clearCache","globalThis","__vxrnresetState","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","title","pathname","message","Error","stack","handleLoader","request","route2","url2","loaderProps2","routeFile2","transformedJS","transformRequest","code","loaderData2","platform","searchParams","get","environments","JSON","stringify","handleAPI","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","optimizeDeps","entries","Set","flatMap","layouts","map","layout","contextKey","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","redirects","web","URL","host","redirect","regexStr","source","replace","match","RegExp","destination","forEach","param","index","warn","writeHead","permanent","Location","end","reply","handler","convertIncomingMessageToRequest","location","statusCode","statusMessage","statusText","value","key","cookies","split","cookie","appendHeader","setHeader","outString","body","locked","streamToString","write","stream","reader","getReader","decoder","TextDecoder","result","done","read","decode","releaseLock","originalUrl","urlBase","urlString","Headers","append","Request","method","includes","readStream","Promise","resolve2","reject","chunks","on","chunk","push","Buffer","concat"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,oBAAA,QAA4B;AACrC,SAASC,eAAA,QAAuB;AAChC,SAASC,aAAA,QAAqB;AAC9B,SAASC,iBAAA,QAAyB;AAElC,SAASC,mBAAA,EAAqBC,cAAA,QAAsB;AAGpD,MAAMC,cAAA,GAAiB;AAAM;AAEtB,SAASC,uBAAuBC,OAAA,EAAoC;EACzE,MAAMC,QAAA,GAAW,CAAC,iBAAiBL,mBAAmB;EAEtD,IAAIM,MAAA;IACAC,MAAA;IAEAC,aAAA,GAAgBC,oBAAA,CAAqB;IAErCC,aAAA,GAAsC;EAE1C,SAASD,qBAAA,EAAuB;IAC9B,OAAOhB,mBAAA,CAAoBW,OAAA,EAAS;MAClC,MAAMO,UAAU;QAAEC,KAAA;QAAOC,GAAA;QAAKC;MAAY,GAAG;QAG3C,IAFAC,OAAA,CAAQC,IAAA,CAAK,aAAQJ,KAAA,CAAMK,IAAI,KAAKJ,GAAG,gBAAgBD,KAAA,CAAMM,IAAI,EAAE,GAE/DN,KAAA,CAAMK,IAAA,KAAS,OAEjB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;QAcLP,aAA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,CAAG,QAASC,KAAA,IAAsBF,MAAA,CAAOG,IAAA,CAAKD,KAAK,CAAC,GAC3DxB,MAAA,CAAOuB,EAAA,CAAG,OAAO,MAAMH,QAAA,CAAQM,MAAA,CAAOC,MAAA,CAAOL,MAAM,CAAC,CAAC,GACrDtB,MAAA,CAAOuB,EAAA,CAAG,SAASF,MAAM;EAC3B,CAAC;AACH","ignoreList":[]}
|
1
|
+
{"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","route","url","loaderProps","console","info","type","file","promise","resolve","routeFile","clearCache","globalThis","__vxrnresetState","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","title","pathname","message","Error","stack","handleLoader","request","route2","url2","loaderProps2","routeFile2","transformedJS","transformRequest","code","loaderData2","platform","searchParams","get","environments","JSON","stringify","handleAPI","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","optimizeDeps","entries","Set","flatMap","layouts","map","layout","contextKey","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","redirects","web","URL","host","redirect","regexStr","source","replace","match","RegExp","destination","forEach","param","index","warn","writeHead","permanent","Location","end","reply","handler","convertIncomingMessageToRequest","value","key","cookies","split","cookie","appendHeader","setHeader","location","statusCode","statusMessage","statusText","outString","body","locked","streamToString","write","stream","reader","getReader","decoder","TextDecoder","result","done","read","decode","releaseLock","originalUrl","urlBase","urlString","Headers","append","Request","method","includes","readStream","Promise","resolve2","reject","chunks","on","chunk","push","Buffer","concat"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAAS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|
-
var location = `${reply.headers.get("location") || ""}`;
|
224
|
-
if (console.info(` \u21A6 Redirect ${location}`), location) {
|
225
|
-
res.writeHead(reply.status, {
|
226
|
-
Location: location
|
227
|
-
}), res.end();
|
228
|
-
return;
|
229
|
-
}
|
230
|
-
console.error("No location provided to redirected status reply", reply);
|
231
|
-
}
|
232
|
-
res.statusCode = reply.status, res.statusMessage = reply.statusText, reply.headers.forEach(function(value, key) {
|
222
|
+
if (reply.headers.forEach(function(value, key) {
|
233
223
|
if (key === "set-cookie") {
|
234
224
|
var cookies = value.split(", "), _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
235
225
|
try {
|
@@ -249,7 +239,17 @@ ${stack}
|
|
249
239
|
}
|
250
240
|
} else
|
251
241
|
res.setHeader(key, value);
|
252
|
-
})
|
242
|
+
}), isStatusRedirect(reply.status)) {
|
243
|
+
var location = `${reply.headers.get("location") || ""}`;
|
244
|
+
if (console.info(` \u21A6 Redirect ${location}`), location) {
|
245
|
+
res.writeHead(reply.status, {
|
246
|
+
Location: location
|
247
|
+
}), res.end();
|
248
|
+
return;
|
249
|
+
}
|
250
|
+
console.error("No location provided to redirected status reply", reply);
|
251
|
+
}
|
252
|
+
res.statusCode = reply.status, res.statusMessage = reply.statusText;
|
253
253
|
var outString = "";
|
254
254
|
reply.body && reply.body.locked && console.warn("Body is locked??");
|
255
255
|
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,SAASA,YAAY;AACrB,SAASC,gBAAgB;AAEzB,SAASC,gCAAgC;AAEzC,SAASC,2BAA2B;AAEpC,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB;AACjC,SAASC,4BAA4B;AACrC,SAASC,uBAAuB;AAChC,SAASC,qBAAqB;AAC9B,SAASC,yBAAyB;AAElC,SAASC,qBAA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,QAAQ,MAAMxG,cAAcyG,QAAQ,MAAMC,gCAAgCvB,GAAAA,CAAAA;AAEhF,gBAAI,CAACqB;AACH,qBAAOnB,KAAAA;AAGT,gBAAI,OAAOmB,SAAU,YAAYtH,WAAWsH,KAAAA,GAAQ;
|
5
|
-
"names": ["join", "debounce", "createServerModuleRunner", "createHandleRequest", "isResponse", "isStatusRedirect", "promiseWithResolvers", "LoaderDataCache", "replaceLoader", "resolveAPIRequest", "virtalEntryIdClient", "virtualEntryId", "USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "globalThis", "exported", "routeFile", "clearCache", "import", "loaderData", "loader", "eval", "entry", "render", "default", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "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", "
|
4
|
+
"mappings": "AAAA,SAASA,YAAY;AACrB,SAASC,gBAAgB;AAEzB,SAASC,gCAAgC;AAEzC,SAASC,2BAA2B;AAEpC,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB;AACjC,SAASC,4BAA4B;AACrC,SAASC,uBAAuB;AAChC,SAASC,qBAAqB;AAC9B,SAASC,yBAAyB;AAElC,SAASC,qBAAqBC,sBAAsB;;;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;AACpB,WAAWhC,OAAOzB,IAAIrD;AACpB,IAAIqD,IAAIrD,QAAQ8E,GAAAA,KAAM9E,QAAQ+G,OAAOjC,KAAKzB,IAAIrD,QAAQ8E,GAAAA,CAAI;AAG5D,SAAO,IAAIkC,QAAQzI,MAAK;IACtB0I,QAAQ5D,IAAI4D;IACZnB,MAAM;MAAC;MAAQ;MAAO;MAAS;MAAUoB,SAAS7D,IAAI4D,UAAU,EAAA,IAC5D,MAAME,WAAW9D,GAAAA,IACjB;IACJrD;EACF,CAAA;AACF;AAEA,SAASmH,WAAWjB,QAA+B;AACjD,SAAO,IAAIkB,QAAQ,SAACtI,UAASuI,QAAAA;AAC3B,QAAMC,SAAuB,CAAA;AAC7BpB,WAAOqB,GAAG,QAAQ,SAACC,OAAAA;aAAsBF,OAAOG,KAAKD,KAAAA;QACrDtB,OAAOqB,GAAG,OAAO,WAAA;aAAMzI,SAAQ4I,OAAOC,OAAOL,MAAAA,CAAAA;QAC7CpB,OAAOqB,GAAG,SAASF,MAAAA;EACrB,CAAA;AACF;",
|
5
|
+
"names": ["join", "debounce", "createServerModuleRunner", "createHandleRequest", "isResponse", "isStatusRedirect", "promiseWithResolvers", "LoaderDataCache", "replaceLoader", "resolveAPIRequest", "virtalEntryIdClient", "virtualEntryId", "USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "globalThis", "exported", "routeFile", "clearCache", "import", "loaderData", "loader", "eval", "entry", "render", "default", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "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", "value", "key", "cookies", "split", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "cookie", "appendHeader", "setHeader", "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
|
}
|
package/dist/esm/vite/one.js
CHANGED
@@ -184,15 +184,16 @@ function one(options = {}) {
|
|
184
184
|
{
|
185
185
|
name: "one-define-environment",
|
186
186
|
config() {
|
187
|
-
|
188
|
-
|
189
|
-
|
187
|
+
return {
|
188
|
+
define: {
|
189
|
+
...options.app?.key && {
|
190
190
|
"process.env.ONE_APP_NAME": JSON.stringify(options.app.key),
|
191
|
-
"import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key)
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
}
|
191
|
+
"import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key)
|
192
|
+
},
|
193
|
+
"process.env.ONE_CACHE_KEY": JSON.stringify(CACHE_KEY),
|
194
|
+
"import.meta.env.ONE_CACHE_KEY": JSON.stringify(CACHE_KEY)
|
195
|
+
}
|
196
|
+
};
|
196
197
|
}
|
197
198
|
},
|
198
199
|
{
|
package/dist/esm/vite/one.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/one.ts"],
|
4
|
-
"mappings": "AAAA,SAAS,mBAAm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G,EAAE,GAC5C,UAAU,aAAa,QAAQ,WAAW,EAAE,IAAI;AACtD,cAAI,YAAY,GAAI;AACpB,cAAI;AACF,kBAAM,gBAAgB,eAAe;AACrC,gBAAI,MAAM,YAAY,aAAa;AACjC,qBAAO;AAET,gBAAI,MAAM,YAAY,OAAO;AAC3B,qBAAO;AAAA,UAEX,SAAS,KAAK;AACZ,oBAAQ,KAAK,uBAAuB,GAAG;AAAA,UACzC;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IAEA,iBAAiB;AAAA,MACf,SAAS,CAAC,cAAc;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;AAEA,IAAI,aAAuC;AAE3C,eAAe,kBAAkB,SAA6B;AAC5D,MAAI,CAAC,YAAY;AACf,QAAI,CAAC,QAAS,OAAM,IAAI,MAAM,yCAAyC;AACvE,UAAM,mBAAmB,OAAO;AAAA,EAClC;AACA,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,4BAA4B;AAE9C,SAAO;AACT;AAEA,eAAsB,mBAAmB,SAA4B;AAKnE,MAAI,CAJU,MAAM,mBAAmB;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": []
|
6
6
|
}
|
package/dist/esm/vite/one.mjs
CHANGED
@@ -171,10 +171,12 @@ function one(options = {}) {
|
|
171
171
|
}), {
|
172
172
|
name: "one-define-environment",
|
173
173
|
config() {
|
174
|
-
|
174
|
+
return {
|
175
175
|
define: {
|
176
|
-
|
177
|
-
|
176
|
+
...(options.app?.key && {
|
177
|
+
"process.env.ONE_APP_NAME": JSON.stringify(options.app.key),
|
178
|
+
"import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key)
|
179
|
+
}),
|
178
180
|
"process.env.ONE_CACHE_KEY": JSON.stringify(CACHE_KEY),
|
179
181
|
"import.meta.env.ONE_CACHE_KEY": JSON.stringify(CACHE_KEY)
|
180
182
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["resolvePath","events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","loadEnv","CACHE_KEY","existsAsync","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","clientEnvDefine","mode","devAndProdPlugins","name","define","Proxy","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","enforce","alias","tslib","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","relative","root","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","app","sharedNativeConfig","react","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","cwd","foundOptions"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAC5B,OAAOC,MAAA,MAAY;AACnB,OAAOC,IAAA,IAAQC,OAAA,EAASC,OAAA,QAAe;AACvC,SAA0DC,kBAAA,QAA0B;AACpF,OAAOC,aAAA,MAAmB;AAC1B,SAASC,eAAA,EAAiBC,gBAAA,EAAkBC,gBAAA,EAAkBC,OAAA,QAAe;AAC7E,SAASC,SAAA,QAAiB;AAC1B,OAAO;AACP,SAASC,WAA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GdJ,CAAA,CAAEK,kBAAA,GAAqB,mBAAIC,GAAA,CAAI,IAG1BN,CAAA;QACT,CAAC;MACH;IACF,EACF;EAGA,OAAA9D,UAAA,CAAWqE,sBAAA,GAAyB,CAAC9E,qBAAA,CAAsB,CAAC,GAC5DS,UAAA,CAAWsE,uBAAA,GAA0BlD,iBAAA,EAE9B,CACL,GAAGA,iBAAA;EAAA;AAAA;AAAA;EAKH5B,sBAAA,CAAuBW,OAAO,GAE9BR,sBAAA,CAAuBQ,OAAO,GAE9BZ,qBAAA,CAAsB,GAEtBG,qBAAA,CAAsBS,OAAA,CAAQoE,IAAI,GAElC3E,kBAAA,CAAmB;IACjB,GAAGO,OAAA;IACH6D,IAAA,EAAM;EACR,CAAC,GAED;IACE3C,IAAA,EAAM;IACNhB,OAAA,EAAS;MACP,
|
1
|
+
{"version":3,"names":["resolvePath","events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","loadEnv","CACHE_KEY","existsAsync","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","clientEnvDefine","mode","devAndProdPlugins","name","define","Proxy","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","enforce","alias","tslib","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","relative","root","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","app","sharedNativeConfig","react","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","cwd","foundOptions"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAC5B,OAAOC,MAAA,MAAY;AACnB,OAAOC,IAAA,IAAQC,OAAA,EAASC,OAAA,QAAe;AACvC,SAA0DC,kBAAA,QAA0B;AACpF,OAAOC,aAAA,MAAmB;AAC1B,SAASC,eAAA,EAAiBC,gBAAA,EAAkBC,gBAAA,EAAkBC,OAAA,QAAe;AAC7E,SAASC,SAAA,QAAiB;AAC1B,OAAO;AACP,SAASC,WAAA,QAAmB;AAC5B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AAEvC,SAASC,kBAAA,EAAoBC,cAAA,QAAsB;AACnD,SAASC,gBAAA,QAAwB;AAEjCnB,MAAA,CAAOoB,eAAA,CAAgB,GAAK;AAG5BC,UAAA,CAAWC,qBAAA,GAAwB;AAE5B,SAASC,IAAIC,OAAA,GAA6B,CAAC,GAAiB;EACjEC,UAAA,GAAaD,OAAA,EAGTA,OAAA,CAAQE,MAAA,EAAQZ,cAAA,KAAmB,MAChCA,cAAA,CAAe,GAGtBO,UAAA,CAAWM,oBAAA,GAA0BH,OAAA;EAGrC,MAAM;MAAEI;IAAa,IAAItB,eAAA,CAAgB,OAAO;IAC1CuB,WAAA,GAAcD,YAAA,CAAaE,OAAA;IAC3BC,eAAA,GAAkB,IAAIC,MAAA;IAAA;IAAA;IAG1B,GAAGH,WAAA,CAAYI,GAAA,CAAKC,EAAA,IAAOA,EAAA,CAAGC,OAAA,CAAQ,uBAAuB,MAAM,CAAC,EAAEC,IAAA,CAAK,GAAG,CAAC,EACjF;EAEA,IAAIC,mBAAA,GAAqC;EAEzC,MAAMC,WAAA,GAAc/B,gBAAA,CAAiB;IAE/B;MAAEgC;IAAgB,I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AAY;IACf,IAAI,CAACmF,OAAA,EAAS,MAAM,IAAIC,KAAA,CAAM,yCAAyC;IACvE,MAAMC,kBAAA,CAAmBF,OAAO;EAClC;EACA,IAAI,CAACnF,UAAA,EACH,MAAM,IAAIoF,KAAA,CAAM,4BAA4B;EAE9C,OAAOpF,UAAA;AACT;AAEA,eAAsBqF,mBAAmBF,OAAA,EAA4B;EAKnE,IAAI,EAJU,MAAMxG,kBAAA,CAAmB;IACrCoC,IAAA,EAAM;IACNoE;EACF,CAAC,IAEC,MAAM,IAAIC,KAAA,CAAM,sBAAsB1C,OAAA,CAAQ4C,GAAA,CAAI,CAAC,kCAAkC;EAEvF,MAAMC,YAAA,GAAeL,iBAAA,CAAkB;EACvC,IAAI,CAACK,YAAA,EACH,MAAM,IAAIH,KAAA,CAAM,yCAAyC;EAE3D,OAAOG,YAAA;AACT","ignoreList":[]}
|
@@ -187,15 +187,16 @@ function one() {
|
|
187
187
|
name: "one-define-environment",
|
188
188
|
config() {
|
189
189
|
var _options_app;
|
190
|
-
|
191
|
-
|
192
|
-
|
190
|
+
return {
|
191
|
+
define: {
|
192
|
+
...((_options_app = options.app) === null || _options_app === void 0 ? void 0 : _options_app.key) && {
|
193
193
|
"process.env.ONE_APP_NAME": JSON.stringify(options.app.key),
|
194
|
-
"import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key)
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
}
|
194
|
+
"import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key)
|
195
|
+
},
|
196
|
+
"process.env.ONE_CACHE_KEY": JSON.stringify(CACHE_KEY),
|
197
|
+
"import.meta.env.ONE_CACHE_KEY": JSON.stringify(CACHE_KEY)
|
198
|
+
}
|
199
|
+
};
|
199
200
|
}
|
200
201
|
},
|
201
202
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/one.ts"],
|
4
|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EAtF,iBAAiB;MACfyF,SAAS;QAAC1F;;IACZ,CAAA;;AAEJ;AAEA,IAAIO,aAAuC;AAE3C,eAAeoF,kBAAkBC,SAA2B;AAC1D,MAAI,CAACrF,YAAY;AACf,QAAI,CAACqF,QAAS,OAAM,IAAIC,MAAM,yCAAyC;AACvE,UAAMC,mBAAmBF,OAAAA;EAC3B;AACA,MAAI,CAACrF;AACH,UAAM,IAAIsF,MAAM,4BAA4B;AAE9C,SAAOtF;AACT;AAEA,eAAsBuF,mBAAmBF,SAA0B;AACjE,MAAMG,QAAQ,MAAM7G,mBAAmB;IACrCmC,MAAM;IACNuE;EACF,CAAA;AACA,MAAI,CAACG;AACH,UAAM,IAAIF,MAAM,sBAAsB7C,QAAQgD,IAAG,CAAA,kCAAoC;AAEvF,MAAMC,eAAeN,kBAAAA;AACrB,MAAI,CAACM;AACH,UAAM,IAAIJ,MAAM,yCAAyC;AAE3D,SAAOI;AACT;",
|
5
5
|
"names": ["resolvePath", "events", "path", "dirname", "resolve", "loadConfigFromFile", "tsconfigPaths", "getOptimizeDeps", "getOptionsFilled", "isWebEnvironment", "loadEnv", "CACHE_KEY", "existsAsync", "clientTreeShakePlugin", "createFileSystemRouter", "ensureTSConfig", "fixDependenciesPlugin", "generateTypesForRoutes", "createVirtualEntry", "virtualEntryId", "vitePluginSsrCss", "setMaxListeners", "globalThis", "__vxrnEnableNativeEnv", "one", "options", "oneOptions", "config", "optimizeDeps", "optimizeIds", "include", "optimizeIdRegex", "RegExp", "map", "id", "replace", "join", "tsConfigPathsPlugin", "vxrnOptions", "clientEnvDefine", "mode", "devAndProdPlugins", "name", "define", "Proxy", "configIncoming", "pathsConfig", "tsConfigPaths", "plugins", "flat", "some", "p", "configResolved", "resolveId", "get", "target", "key", "thisArg", "Reflect", "enforce", "alias", "tslib", "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", "relative", "root", "rootDir", "split", "sep", "acceptedHmrExports", "Set", "__vxrnAddNativePlugins", "__vxrnAddWebPluginsProd", "deps", "app", "sharedNativeConfig", "react", "applyToEnvironment", "environment", "importer", "shouldOptimize", "test", "absolutePath", "webPath", "directoryPath", "err", "console", "warn", "entries", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "cwd", "foundOptions"]
|
6
6
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "one",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.317",
|
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.
|
95
|
-
"@vxrn/tslib-lite": "1.1.
|
96
|
-
"@vxrn/universal-color-scheme": "1.1.
|
97
|
-
"@vxrn/use-isomorphic-layout-effect": "1.1.
|
94
|
+
"@vxrn/resolve": "1.1.317",
|
95
|
+
"@vxrn/tslib-lite": "1.1.317",
|
96
|
+
"@vxrn/universal-color-scheme": "1.1.317",
|
97
|
+
"@vxrn/use-isomorphic-layout-effect": "1.1.317",
|
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.
|
101
|
+
"create-vxrn": "1.1.317",
|
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.
|
123
|
+
"vxrn": "1.1.317",
|
124
124
|
"ws": "^8.18.0",
|
125
125
|
"xxhashjs": "^0.2.2"
|
126
126
|
},
|
package/src/serve.ts
CHANGED
@@ -131,14 +131,14 @@ async function oneServe(
|
|
131
131
|
return await import(apiFile)
|
132
132
|
} catch (err) {
|
133
133
|
console.error(`\n [one] Error importing API route at ${apiFile}:
|
134
|
-
|
134
|
+
|
135
135
|
${err}
|
136
136
|
|
137
137
|
If this is an import error, you can likely fix this by adding this dependency to
|
138
138
|
the "optimizeDeps.include" array in your vite.config.ts.
|
139
139
|
|
140
140
|
🐞 For a better error message run "node" and enter:
|
141
|
-
|
141
|
+
|
142
142
|
import('${apiFile}')\n\n`)
|
143
143
|
return {}
|
144
144
|
}
|
@@ -216,6 +216,9 @@ async function oneServe(
|
|
216
216
|
if (isResponse(response)) {
|
217
217
|
if (isStatusRedirect(response.status)) {
|
218
218
|
const location = `${response.headers.get('location') || ''}`
|
219
|
+
response.headers.forEach((value, key) => {
|
220
|
+
context.header(key, value)
|
221
|
+
})
|
219
222
|
return context.redirect(location, response.status)
|
220
223
|
}
|
221
224
|
|
@@ -304,6 +304,18 @@ export function createFileSystemRouter(options: One.PluginOptions): Plugin {
|
|
304
304
|
}
|
305
305
|
|
306
306
|
if (typeof reply !== 'string' && isResponse(reply)) {
|
307
|
+
reply.headers.forEach((value, key) => {
|
308
|
+
if (key === 'set-cookie') {
|
309
|
+
// for some reason it wasnt doing working without this?
|
310
|
+
const cookies = value.split(', ')
|
311
|
+
for (const cookie of cookies) {
|
312
|
+
res.appendHeader('Set-Cookie', cookie)
|
313
|
+
}
|
314
|
+
} else {
|
315
|
+
res.setHeader(key, value)
|
316
|
+
}
|
317
|
+
})
|
318
|
+
|
307
319
|
if (isStatusRedirect(reply.status)) {
|
308
320
|
const location = `${reply.headers.get('location') || ''}`
|
309
321
|
console.info(` ↦ Redirect ${location}`)
|
@@ -320,18 +332,6 @@ export function createFileSystemRouter(options: One.PluginOptions): Plugin {
|
|
320
332
|
res.statusCode = reply.status
|
321
333
|
res.statusMessage = reply.statusText
|
322
334
|
|
323
|
-
reply.headers.forEach((value, key) => {
|
324
|
-
if (key === 'set-cookie') {
|
325
|
-
// for some reason it wasnt doing working without this?
|
326
|
-
const cookies = value.split(', ')
|
327
|
-
for (const cookie of cookies) {
|
328
|
-
res.appendHeader('Set-Cookie', cookie)
|
329
|
-
}
|
330
|
-
} else {
|
331
|
-
res.setHeader(key, value)
|
332
|
-
}
|
333
|
-
})
|
334
|
-
|
335
335
|
let outString = ''
|
336
336
|
|
337
337
|
if (reply.body) {
|
package/src/vite/one.ts
CHANGED
@@ -263,14 +263,12 @@ export function one(options: One.PluginOptions = {}): PluginOption {
|
|
263
263
|
{
|
264
264
|
name: 'one-define-environment',
|
265
265
|
config() {
|
266
|
-
if (!options.app?.key) {
|
267
|
-
return
|
268
|
-
}
|
269
|
-
|
270
266
|
return {
|
271
267
|
define: {
|
272
|
-
|
273
|
-
|
268
|
+
...options.app?.key && {
|
269
|
+
'process.env.ONE_APP_NAME': JSON.stringify(options.app.key),
|
270
|
+
'import.meta.env.ONE_APP_NAME': JSON.stringify(options.app.key),
|
271
|
+
},
|
274
272
|
|
275
273
|
'process.env.ONE_CACHE_KEY': JSON.stringify(CACHE_KEY),
|
276
274
|
'import.meta.env.ONE_CACHE_KEY': JSON.stringify(CACHE_KEY),
|
package/types/vite/one.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"one.d.ts","sourceRoot":"","sources":["../../src/vite/one.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,KAAK,YAAY,EAAuC,MAAM,MAAM,CAAA;AAI1F,OAAO,qBAAqB,CAAA;AAO5B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AASlC,wBAAgB,GAAG,CAAC,OAAO,GAAE,GAAG,CAAC,aAAkB,GAAG,YAAY,
|
1
|
+
{"version":3,"file":"one.d.ts","sourceRoot":"","sources":["../../src/vite/one.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,KAAK,YAAY,EAAuC,MAAM,MAAM,CAAA;AAI1F,OAAO,qBAAqB,CAAA;AAO5B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AASlC,wBAAgB,GAAG,CAAC,OAAO,GAAE,GAAG,CAAC,aAAkB,GAAG,YAAY,CA8TjE;AAeD,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,8BAalE"}
|