nitro-nightly 3.0.1-20260125-215009-8882bc9e → 3.0.1-20260127-164246-ef01b092
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_build/common.mjs +2084 -3212
- package/dist/_build/rolldown.mjs +12 -25
- package/dist/_build/rollup.mjs +11 -27
- package/dist/_build/vite.build.mjs +7 -11
- package/dist/_chunks/dev.mjs +20 -42
- package/dist/_chunks/nitro.mjs +13 -92
- package/dist/_chunks/nitro2.mjs +1 -5
- package/dist/_chunks/utils.mjs +10 -24
- package/dist/_common.mjs +12 -24
- package/dist/_libs/citty.mjs +1 -13
- package/dist/_libs/commondir+is-reference.mjs +12 -22
- package/dist/_libs/compatx.mjs +1 -4
- package/dist/_libs/confbox.mjs +363 -376
- package/dist/_libs/escape-string-regexp.mjs +1 -4
- package/dist/_libs/estree-walker.mjs +4 -92
- package/dist/_libs/hasown+resolve+deepmerge.mjs +144 -230
- package/dist/_libs/httpxy.mjs +5 -21
- package/dist/_libs/klona.mjs +1 -4
- package/dist/_libs/nypm+giget+tinyexec.mjs +874 -926
- package/dist/_libs/plugin-alias.mjs +1 -5
- package/dist/_libs/plugin-inject.mjs +1 -5
- package/dist/_libs/plugin-json.mjs +1 -5
- package/dist/_libs/pluginutils+plugin-commonjs.d.mts +2 -2
- package/dist/_libs/pluginutils.mjs +1 -31
- package/dist/_libs/rc9+c12+dotenv.mjs +43 -83
- package/dist/_libs/readdirp+chokidar.mjs +184 -360
- package/dist/_libs/remapping.mjs +1 -5
- package/dist/_libs/resolve-uri+gen-mapping.mjs +12 -48
- package/dist/_libs/rou3.mjs +1 -32
- package/dist/_libs/tsconfck.mjs +21 -334
- package/dist/_libs/ultrahtml.mjs +3 -16
- package/dist/_libs/unimport+unplugin.mjs +15 -75
- package/dist/_presets.mjs +260 -445
- package/dist/builder.mjs +1 -2
- package/dist/cli/_chunks/build.mjs +1 -5
- package/dist/cli/_chunks/common.mjs +1 -4
- package/dist/cli/_chunks/dev.mjs +1 -5
- package/dist/cli/_chunks/list.mjs +1 -5
- package/dist/cli/_chunks/prepare.mjs +1 -5
- package/dist/cli/_chunks/run.mjs +1 -5
- package/dist/cli/_chunks/task.mjs +1 -5
- package/dist/cli/index.mjs +1 -5
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.mjs +1 -2
- package/dist/vite.mjs +44 -63
- package/package.json +21 -21
package/dist/_libs/httpxy.mjs
CHANGED
|
@@ -2,8 +2,6 @@ import { n as __exportAll } from "../_common.mjs";
|
|
|
2
2
|
import http from "node:http";
|
|
3
3
|
import https from "node:https";
|
|
4
4
|
import { EventEmitter } from "node:events";
|
|
5
|
-
|
|
6
|
-
//#region node_modules/.pnpm/httpxy@0.1.7/node_modules/httpxy/dist/index.mjs
|
|
7
5
|
var dist_exports = /* @__PURE__ */ __exportAll({
|
|
8
6
|
ProxyServer: () => ProxyServer,
|
|
9
7
|
createProxyServer: () => createProxyServer
|
|
@@ -192,10 +190,10 @@ const webIncomingMiddleware = [
|
|
|
192
190
|
defineProxyMiddleware((req, res, options, server, head, callback) => {
|
|
193
191
|
server.emit("start", req, res, options.target || options.forward);
|
|
194
192
|
const agents = nativeAgents;
|
|
195
|
-
const http
|
|
196
|
-
const https
|
|
193
|
+
const http = agents.http;
|
|
194
|
+
const https = agents.https;
|
|
197
195
|
if (options.forward) {
|
|
198
|
-
const forwardReq = (options.forward.protocol === "https:" ? https
|
|
196
|
+
const forwardReq = (options.forward.protocol === "https:" ? https : http).request(setupOutgoing(options.ssl || {}, options, req, "forward"));
|
|
199
197
|
const forwardError = createErrorHandler(forwardReq, options.forward);
|
|
200
198
|
req.on("error", forwardError);
|
|
201
199
|
forwardReq.on("error", forwardError);
|
|
@@ -205,7 +203,7 @@ const webIncomingMiddleware = [
|
|
|
205
203
|
return;
|
|
206
204
|
}
|
|
207
205
|
}
|
|
208
|
-
const proxyReq = (options.target.protocol === "https:" ? https
|
|
206
|
+
const proxyReq = (options.target.protocol === "https:" ? https : http).request(setupOutgoing(options.ssl || {}, options, req));
|
|
209
207
|
proxyReq.on("socket", (socket) => {
|
|
210
208
|
if (server && !proxyReq.getHeader("expect")) server.emit("proxyReq", proxyReq, req, res, options);
|
|
211
209
|
});
|
|
@@ -325,10 +323,6 @@ var ProxyServer = class extends EventEmitter {
|
|
|
325
323
|
options;
|
|
326
324
|
web;
|
|
327
325
|
ws;
|
|
328
|
-
/**
|
|
329
|
-
* Creates the proxy server with specified options.
|
|
330
|
-
* @param options - Config object passed to the proxy
|
|
331
|
-
*/
|
|
332
326
|
constructor(options = {}) {
|
|
333
327
|
super();
|
|
334
328
|
this.options = options || {};
|
|
@@ -336,11 +330,6 @@ var ProxyServer = class extends EventEmitter {
|
|
|
336
330
|
this.web = _createProxyFn("web", this);
|
|
337
331
|
this.ws = _createProxyFn("ws", this);
|
|
338
332
|
}
|
|
339
|
-
/**
|
|
340
|
-
* A function that wraps the object in a webserver, for your convenience
|
|
341
|
-
* @param port - Port to listen on
|
|
342
|
-
* @param hostname - The hostname to listen on
|
|
343
|
-
*/
|
|
344
333
|
listen(port, hostname) {
|
|
345
334
|
const closure = (req, res) => {
|
|
346
335
|
this.web(req, res);
|
|
@@ -352,9 +341,6 @@ var ProxyServer = class extends EventEmitter {
|
|
|
352
341
|
this._server.listen(port, hostname);
|
|
353
342
|
return this;
|
|
354
343
|
}
|
|
355
|
-
/**
|
|
356
|
-
* A function that closes the inner webserver and stops listening on given port
|
|
357
|
-
*/
|
|
358
344
|
close(callback) {
|
|
359
345
|
if (this._server) this._server.close((...args) => {
|
|
360
346
|
this._server = void 0;
|
|
@@ -410,6 +396,4 @@ function _createProxyFn(type, server) {
|
|
|
410
396
|
return callbackPromise;
|
|
411
397
|
};
|
|
412
398
|
}
|
|
413
|
-
|
|
414
|
-
//#endregion
|
|
415
|
-
export { dist_exports as n, createProxyServer as t };
|
|
399
|
+
export { dist_exports as n, createProxyServer as t };
|
package/dist/_libs/klona.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.mjs
|
|
2
1
|
function set(obj, key, val) {
|
|
3
2
|
if (typeof val.value === "object") val.value = klona(val.value);
|
|
4
3
|
if (!val.enumerable || val.get || val.set || !val.configurable || !val.writable || key === "__proto__") Object.defineProperty(obj, key, val);
|
|
@@ -33,6 +32,4 @@ function klona(x) {
|
|
|
33
32
|
}
|
|
34
33
|
return tmp || x;
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
export { klona as t };
|
|
35
|
+
export { klona as t };
|