@agentconnect.md/setup 1.61.0-rc.153 → 1.61.0-rc.155
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/index.js +123 -61
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1376,7 +1376,7 @@ var require_avvio = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1376
1376
|
module.exports = Boot;
|
|
1377
1377
|
}));
|
|
1378
1378
|
//#endregion
|
|
1379
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
1379
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/symbols.js
|
|
1380
1380
|
var require_symbols$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1381
1381
|
module.exports = {
|
|
1382
1382
|
kAvvioBoot: Symbol("fastify.avvioBoot"),
|
|
@@ -1608,7 +1608,7 @@ var require_process_warning$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
1608
1608
|
module.exports.processWarning = out;
|
|
1609
1609
|
}));
|
|
1610
1610
|
//#endregion
|
|
1611
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
1611
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/warnings.js
|
|
1612
1612
|
var require_warnings = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1613
1613
|
const { createWarning } = require_process_warning$1();
|
|
1614
1614
|
module.exports = {
|
|
@@ -1669,7 +1669,7 @@ var require_warnings = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1669
1669
|
};
|
|
1670
1670
|
}));
|
|
1671
1671
|
//#endregion
|
|
1672
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
1672
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/errors.js
|
|
1673
1673
|
var require_errors$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1674
1674
|
const createError = require_error$1();
|
|
1675
1675
|
const codes = {
|
|
@@ -1823,7 +1823,7 @@ var require_errors$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1823
1823
|
};
|
|
1824
1824
|
}));
|
|
1825
1825
|
//#endregion
|
|
1826
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
1826
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/hooks.js
|
|
1827
1827
|
var require_hooks = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1828
1828
|
const applicationHooks = [
|
|
1829
1829
|
"onRoute",
|
|
@@ -2143,7 +2143,7 @@ var require_hooks = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2143
2143
|
};
|
|
2144
2144
|
}));
|
|
2145
2145
|
//#endregion
|
|
2146
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
2146
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/noop-set.js
|
|
2147
2147
|
var require_noop_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2148
2148
|
module.exports = function noopSet() {
|
|
2149
2149
|
return {
|
|
@@ -2157,7 +2157,7 @@ var require_noop_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2157
2157
|
};
|
|
2158
2158
|
}));
|
|
2159
2159
|
//#endregion
|
|
2160
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
2160
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/promise.js
|
|
2161
2161
|
var require_promise = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2162
2162
|
const { kTestInternals } = require_symbols$1();
|
|
2163
2163
|
function withResolvers() {
|
|
@@ -2177,7 +2177,7 @@ var require_promise = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2177
2177
|
};
|
|
2178
2178
|
}));
|
|
2179
2179
|
//#endregion
|
|
2180
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
2180
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/server.js
|
|
2181
2181
|
var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2182
2182
|
const http$2 = __require("node:http");
|
|
2183
2183
|
const https = __require("node:https");
|
|
@@ -2454,7 +2454,7 @@ var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2454
2454
|
}
|
|
2455
2455
|
}));
|
|
2456
2456
|
//#endregion
|
|
2457
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
2457
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/error-status.js
|
|
2458
2458
|
var require_error_status = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2459
2459
|
const { kReplyHasStatusCode } = require_symbols$1();
|
|
2460
2460
|
function setErrorStatusCode(reply, err) {
|
|
@@ -2466,7 +2466,7 @@ var require_error_status = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2466
2466
|
module.exports = { setErrorStatusCode };
|
|
2467
2467
|
}));
|
|
2468
2468
|
//#endregion
|
|
2469
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
2469
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/wrap-thenable.js
|
|
2470
2470
|
var require_wrap_thenable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2471
2471
|
const { kReplyIsError, kReplyHijacked } = require_symbols$1();
|
|
2472
2472
|
const { setErrorStatusCode } = require_error_status();
|
|
@@ -2510,7 +2510,7 @@ var require_wrap_thenable = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
2510
2510
|
module.exports = wrapThenable;
|
|
2511
2511
|
}));
|
|
2512
2512
|
//#endregion
|
|
2513
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
2513
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/validation.js
|
|
2514
2514
|
var require_validation$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2515
2515
|
const { kSchemaHeaders: headersSchema, kSchemaParams: paramsSchema, kSchemaQuerystring: querystringSchema, kSchemaBody: bodySchema, kSchemaResponse: responseSchema } = require_symbols$1();
|
|
2516
2516
|
const scChecker = /^[1-5](?:\d{2}|xx)$|^default$/;
|
|
@@ -2710,15 +2710,16 @@ var require_validation$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2710
2710
|
else if (Object.hasOwn(schema, "params")) FSTWRN001("params", method, url);
|
|
2711
2711
|
}
|
|
2712
2712
|
function validateParam(validatorFunction, request, paramName) {
|
|
2713
|
-
|
|
2713
|
+
if (validatorFunction == null) return false;
|
|
2714
|
+
const value = request[paramName];
|
|
2714
2715
|
let ret;
|
|
2715
2716
|
try {
|
|
2716
|
-
const data =
|
|
2717
|
-
if (validatorFunction
|
|
2717
|
+
const data = value === void 0 ? null : value;
|
|
2718
|
+
if (validatorFunction.schemaEnv) ret = validatorFunction(data, {
|
|
2718
2719
|
parentData: request,
|
|
2719
2720
|
parentDataProperty: paramName
|
|
2720
2721
|
});
|
|
2721
|
-
else ret = validatorFunction
|
|
2722
|
+
else ret = validatorFunction(data);
|
|
2722
2723
|
} catch (err) {
|
|
2723
2724
|
err.statusCode = 500;
|
|
2724
2725
|
return err;
|
|
@@ -3403,7 +3404,7 @@ var require_toad_cache = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3403
3404
|
exports.LruObjectHitStatistics = LruObjectHitStatistics;
|
|
3404
3405
|
}));
|
|
3405
3406
|
//#endregion
|
|
3406
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
3407
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/content-type.js
|
|
3407
3408
|
var require_content_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3408
3409
|
const { LruMap: Lru } = require_toad_cache();
|
|
3409
3410
|
/**
|
|
@@ -3573,7 +3574,7 @@ var require_content_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3573
3574
|
};
|
|
3574
3575
|
}));
|
|
3575
3576
|
//#endregion
|
|
3576
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
3577
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/handle-request.js
|
|
3577
3578
|
var require_handle_request = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3578
3579
|
const diagnostics$1 = __require("node:diagnostics_channel");
|
|
3579
3580
|
const wrapThenable = require_wrap_thenable();
|
|
@@ -3725,7 +3726,7 @@ var require_handle_request = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3725
3726
|
};
|
|
3726
3727
|
}));
|
|
3727
3728
|
//#endregion
|
|
3728
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
3729
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/config-validator.js
|
|
3729
3730
|
/* c8 ignore start */
|
|
3730
3731
|
var require_config_validator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3731
3732
|
module.exports = validate10;
|
|
@@ -5167,7 +5168,7 @@ var require_rfdc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5167
5168
|
}
|
|
5168
5169
|
}));
|
|
5169
5170
|
//#endregion
|
|
5170
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
5171
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/initial-config-validation.js
|
|
5171
5172
|
var require_initial_config_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5172
5173
|
const validate = require_config_validator$1();
|
|
5173
5174
|
const deepClone = require_rfdc()({
|
|
@@ -5198,7 +5199,7 @@ var require_initial_config_validation = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
5198
5199
|
module.exports.utils = { deepFreezeObject };
|
|
5199
5200
|
}));
|
|
5200
5201
|
//#endregion
|
|
5201
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
5202
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/log-controller.js
|
|
5202
5203
|
var require_log_controller = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5203
5204
|
const { defaultInitOptions } = require_initial_config_validation();
|
|
5204
5205
|
/**
|
|
@@ -6860,7 +6861,7 @@ var require_on_exit_leak_free = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
6860
6861
|
};
|
|
6861
6862
|
}));
|
|
6862
6863
|
//#endregion
|
|
6863
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_tsx@4.23.
|
|
6864
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_tsx@4.23.15_typescript@6.0.3/node_modules/tsdown/esm-shims.js
|
|
6864
6865
|
var getFilename, getDirname, __dirname;
|
|
6865
6866
|
var init_esm_shims = __esmMin((() => {
|
|
6866
6867
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -8941,7 +8942,7 @@ var require_pino = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8941
8942
|
module.exports.pino = pino;
|
|
8942
8943
|
}));
|
|
8943
8944
|
//#endregion
|
|
8944
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
8945
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/logger-pino.js
|
|
8945
8946
|
var require_logger_pino = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8946
8947
|
/**
|
|
8947
8948
|
* Code imported from `pino-http`
|
|
@@ -8991,7 +8992,7 @@ var require_logger_pino = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8991
8992
|
};
|
|
8992
8993
|
}));
|
|
8993
8994
|
//#endregion
|
|
8994
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
8995
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/logger-factory.js
|
|
8995
8996
|
var require_logger_factory = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8996
8997
|
const { performance: performance$1 } = __require("node:perf_hooks");
|
|
8997
8998
|
const { FST_ERR_LOG_LOGGER_AND_LOGGER_INSTANCE_PROVIDED, FST_ERR_LOG_INVALID_LOGGER_CONFIG, FST_ERR_LOG_INVALID_LOGGER_INSTANCE, FST_ERR_LOG_INVALID_LOGGER, FST_ERR_LOG_INVALID_LOG_CONTROLLER } = require_errors$3();
|
|
@@ -9110,7 +9111,7 @@ var require_logger_factory = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
9110
9111
|
};
|
|
9111
9112
|
}));
|
|
9112
9113
|
//#endregion
|
|
9113
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
9114
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/schemas.js
|
|
9114
9115
|
var require_schemas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9115
9116
|
const fastClone = require_rfdc()({
|
|
9116
9117
|
circles: false,
|
|
@@ -9340,7 +9341,7 @@ var require_serializer$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9340
9341
|
};
|
|
9341
9342
|
}));
|
|
9342
9343
|
//#endregion
|
|
9343
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
9344
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/error-serializer.js
|
|
9344
9345
|
/* c8 ignore start */
|
|
9345
9346
|
var require_error_serializer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9346
9347
|
module.exports = function anonymous(validator, serializer) {
|
|
@@ -9405,7 +9406,7 @@ var require_error_serializer = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
9405
9406
|
}));
|
|
9406
9407
|
/* c8 ignore stop */
|
|
9407
9408
|
//#endregion
|
|
9408
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
9409
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/error-handler.js
|
|
9409
9410
|
var require_error_handler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9410
9411
|
const statusCodes = __require("node:http").STATUS_CODES;
|
|
9411
9412
|
const wrapThenable = require_wrap_thenable();
|
|
@@ -9513,7 +9514,7 @@ var require_error_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
9513
9514
|
};
|
|
9514
9515
|
}));
|
|
9515
9516
|
//#endregion
|
|
9516
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
9517
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/decorate.js
|
|
9517
9518
|
var require_decorate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9518
9519
|
const { kReply, kRequest, kState, kHasBeenDecorated } = require_symbols$1();
|
|
9519
9520
|
const { FST_ERR_DEC_ALREADY_PRESENT, FST_ERR_DEC_MISSING_DEPENDENCY, FST_ERR_DEC_AFTER_START, FST_ERR_DEC_REFERENCE_TYPE, FST_ERR_DEC_DEPENDENCY_INVALID_TYPE, FST_ERR_DEC_UNDECLARED } = require_errors$3();
|
|
@@ -9612,7 +9613,7 @@ var require_decorate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9612
9613
|
};
|
|
9613
9614
|
}));
|
|
9614
9615
|
//#endregion
|
|
9615
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
9616
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/reply.js
|
|
9616
9617
|
var require_reply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9617
9618
|
const eos = __require("node:stream").finished;
|
|
9618
9619
|
const { kFourOhFourContext, kReplyErrorHandlerCalled, kReplyHijacked, kReplyStartTime, kReplyEndTime, kReplySerializer, kReplySerializerDefault, kReplyIsError, kReplyHeaders, kReplyTrailers, kReplyHasStatusCode, kReplyIsRunningOnErrorHook, kReplyNextErrorHandler, kSchemaResponse, kReplyCacheSerializeFns, kSchemaController, kOptions, kRouteContext, kTimeoutTimer, kOnAbort, kRequestSignal, kLogController } = require_symbols$1();
|
|
@@ -9964,7 +9965,7 @@ var require_reply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9964
9965
|
header += trailerName;
|
|
9965
9966
|
}
|
|
9966
9967
|
if (header !== "") {
|
|
9967
|
-
reply.header("Transfer-Encoding", "chunked");
|
|
9968
|
+
if (!isHttp2Reply(reply)) reply.header("Transfer-Encoding", "chunked");
|
|
9968
9969
|
reply.header("Trailer", header.trim());
|
|
9969
9970
|
} else reply[kReplyTrailers] = null;
|
|
9970
9971
|
}
|
|
@@ -11280,7 +11281,7 @@ var require_ipaddr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11280
11281
|
})(exports);
|
|
11281
11282
|
}));
|
|
11282
11283
|
//#endregion
|
|
11283
|
-
//#region ../../node_modules/.pnpm/@fastify+proxy-addr@5.1.
|
|
11284
|
+
//#region ../../node_modules/.pnpm/@fastify+proxy-addr@5.1.1/node_modules/@fastify/proxy-addr/index.js
|
|
11284
11285
|
/*!
|
|
11285
11286
|
* proxy-addr
|
|
11286
11287
|
* Copyright(c) 2021 Fastify collaborators
|
|
@@ -11445,7 +11446,8 @@ var require_proxy_addr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11445
11446
|
function trustMulti(subnets) {
|
|
11446
11447
|
return function trust(addr) {
|
|
11447
11448
|
if (!isip(addr)) return false;
|
|
11448
|
-
|
|
11449
|
+
let ip = parseip(addr);
|
|
11450
|
+
if (ip.kind() === "ipv6" && ip.isIPv4MappedAddress()) ip = ip.toIPv4Address();
|
|
11449
11451
|
let ipconv;
|
|
11450
11452
|
const kind = ip.kind();
|
|
11451
11453
|
for (let i = 0; i < subnets.length; i++) {
|
|
@@ -11457,9 +11459,10 @@ var require_proxy_addr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11457
11459
|
if (kind !== subnetkind) {
|
|
11458
11460
|
const subnetisipv4 = subnetkind === "ipv4";
|
|
11459
11461
|
if (subnetisipv4 && !ip.isIPv4MappedAddress()) continue;
|
|
11460
|
-
if (!
|
|
11462
|
+
if (!subnetisipv4 && !(subnetrange >= 96 && subnetip.isIPv4MappedAddress())) continue;
|
|
11463
|
+
if (!ipconv) ipconv = ip.toIPv4MappedAddress();
|
|
11461
11464
|
trusted = ipconv;
|
|
11462
|
-
}
|
|
11465
|
+
} else if (kind === "ipv6" && subnetip.isIPv4MappedAddress()) continue;
|
|
11463
11466
|
if (trusted.match(subnetip, subnetrange)) return true;
|
|
11464
11467
|
}
|
|
11465
11468
|
return false;
|
|
@@ -11479,16 +11482,19 @@ var require_proxy_addr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11479
11482
|
return function trust(addr) {
|
|
11480
11483
|
if (!isip(addr)) return false;
|
|
11481
11484
|
let ip = parseip(addr);
|
|
11482
|
-
if (ip.kind()
|
|
11485
|
+
if (ip.kind() === "ipv6" && ip.isIPv4MappedAddress()) ip = ip.toIPv4Address();
|
|
11486
|
+
const kind = ip.kind();
|
|
11487
|
+
if (kind !== subnetkind) {
|
|
11483
11488
|
if (subnetisipv4 && !ip.isIPv4MappedAddress()) return false;
|
|
11484
|
-
|
|
11485
|
-
|
|
11489
|
+
if (!subnetisipv4 && !(subnetrange >= 96 && subnetip.isIPv4MappedAddress())) return false;
|
|
11490
|
+
ip = ip.toIPv4MappedAddress();
|
|
11491
|
+
} else if (kind === "ipv6" && subnetip.isIPv4MappedAddress()) return false;
|
|
11486
11492
|
return ip.match(subnetip, subnetrange);
|
|
11487
11493
|
};
|
|
11488
11494
|
}
|
|
11489
11495
|
}));
|
|
11490
11496
|
//#endregion
|
|
11491
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
11497
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/request.js
|
|
11492
11498
|
var require_request$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11493
11499
|
const proxyAddr = require_proxy_addr();
|
|
11494
11500
|
const { kHasBeenDecorated, kSchemaBody, kSchemaHeaders, kSchemaParams, kSchemaQuerystring, kSchemaController, kOptions, kRequestCacheValidateFns, kRequestContentType, kRouteContext, kRequestOriginalUrl, kRequestSignal, kOnAbort } = require_symbols$1();
|
|
@@ -11734,7 +11740,7 @@ var require_request$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11734
11740
|
module.exports.buildRequest = buildRequest;
|
|
11735
11741
|
}));
|
|
11736
11742
|
//#endregion
|
|
11737
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
11743
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/context.js
|
|
11738
11744
|
var require_context = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11739
11745
|
const { kFourOhFourContext, kReplySerializerDefault, kSchemaErrorFormatter, kErrorHandler, kChildLoggerFactory, kReply, kRequest, kBodyLimit, kLogLevel, kContentTypeParser, kRouteByFastify, kRequestCacheValidateFns, kReplyCacheSerializeFns, kHandlerTimeout } = require_symbols$1();
|
|
11740
11746
|
function Context({ schema, handler, config, childLoggerFactory, errorHandler, bodyLimit, logLevel, logSerializers, attachValidation, validatorCompiler, serializerCompiler, replySerializer, schemaErrorFormatter, exposeHeadRoute, prefixTrailingSlash, server, isFastify, handlerTimeout }) {
|
|
@@ -11898,7 +11904,7 @@ var require_secure_json_parse = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
11898
11904
|
module.exports.scan = filter;
|
|
11899
11905
|
}));
|
|
11900
11906
|
//#endregion
|
|
11901
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
11907
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/content-type-parser.js
|
|
11902
11908
|
var require_content_type_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11903
11909
|
const { AsyncResource } = __require("node:async_hooks");
|
|
11904
11910
|
const { FifoMap: Fifo } = require_toad_cache();
|
|
@@ -11972,7 +11978,10 @@ var require_content_type_parser = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
11972
11978
|
return parser;
|
|
11973
11979
|
}
|
|
11974
11980
|
parser = this.customParsers.get(contentType.mediaType);
|
|
11975
|
-
if (parser !== void 0)
|
|
11981
|
+
if (parser !== void 0) {
|
|
11982
|
+
this.cache.set(ct, parser);
|
|
11983
|
+
return parser;
|
|
11984
|
+
}
|
|
11976
11985
|
for (let j = 0; j !== this.parserRegExpList.length; ++j) {
|
|
11977
11986
|
const parserRegExp = this.parserRegExpList[j];
|
|
11978
11987
|
parserRegExp.lastIndex = 0;
|
|
@@ -12017,7 +12026,9 @@ var require_content_type_parser = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
12017
12026
|
return;
|
|
12018
12027
|
}
|
|
12019
12028
|
const resource = new AsyncResource("content-type-parser:run", request);
|
|
12020
|
-
|
|
12029
|
+
function done(error, body) {
|
|
12030
|
+
resource.runInAsyncScope(onDone, void 0, error, body);
|
|
12031
|
+
}
|
|
12021
12032
|
if (parser.asString === true || parser.asBuffer === true) {
|
|
12022
12033
|
rawBody(request, reply, reply[kRouteContext]._parserOptions, parser, done);
|
|
12023
12034
|
return;
|
|
@@ -20102,7 +20113,7 @@ var require_jtd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20102
20113
|
});
|
|
20103
20114
|
}));
|
|
20104
20115
|
//#endregion
|
|
20105
|
-
//#region ../../node_modules/.pnpm/fast-uri@4.1
|
|
20116
|
+
//#region ../../node_modules/.pnpm/fast-uri@4.2.1/node_modules/fast-uri/lib/utils.js
|
|
20106
20117
|
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20107
20118
|
/** @type {(value: string) => boolean} */
|
|
20108
20119
|
const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
@@ -20702,6 +20713,28 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20702
20713
|
return output;
|
|
20703
20714
|
}
|
|
20704
20715
|
/**
|
|
20716
|
+
* Rebuilds the bracketed form of a zoned IPv6 authority from the current
|
|
20717
|
+
* `component.host` and its zone identifier (`component.ipv6Zone`), but only
|
|
20718
|
+
* when they are consistent and describe a real zoned IPv6 literal that
|
|
20719
|
+
* normalizes back to `component.host`. This validates the zone on use, so a
|
|
20720
|
+
* caller-supplied `ipv6Zone` that does not match the host (or a host
|
|
20721
|
+
* reassigned after `parse`) is never trusted and recomposition falls back to
|
|
20722
|
+
* the normal path.
|
|
20723
|
+
*
|
|
20724
|
+
* @param {import('../types/index').URIComponent} component
|
|
20725
|
+
* @returns {string|undefined}
|
|
20726
|
+
*/
|
|
20727
|
+
function recomposeZonedIPv6Host(component) {
|
|
20728
|
+
const zone = component.ipv6Zone;
|
|
20729
|
+
if (zone === void 0) return void 0;
|
|
20730
|
+
const host = component.host;
|
|
20731
|
+
const separator = host.indexOf("%");
|
|
20732
|
+
if (separator === -1) return void 0;
|
|
20733
|
+
const escaped = host.slice(0, separator) + "%25" + zone;
|
|
20734
|
+
const derived = normalizeIPv6("[" + escaped + "]");
|
|
20735
|
+
if (derived.isIPV6 === true && derived.host === host) return "[" + escaped + "]";
|
|
20736
|
+
}
|
|
20737
|
+
/**
|
|
20705
20738
|
* @param {import('../types/index').URIComponent} component
|
|
20706
20739
|
* @returns {string|undefined}
|
|
20707
20740
|
*/
|
|
@@ -20714,13 +20747,17 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20714
20747
|
if (component.host !== void 0) {
|
|
20715
20748
|
let host = component.host;
|
|
20716
20749
|
if (!isIPv4(host)) {
|
|
20717
|
-
|
|
20718
|
-
if (
|
|
20719
|
-
|
|
20720
|
-
ipV6res = normalizeIPv6(host);
|
|
20750
|
+
const zonedHost = recomposeZonedIPv6Host(component);
|
|
20751
|
+
if (zonedHost !== void 0) host = zonedHost;
|
|
20752
|
+
else {
|
|
20753
|
+
let ipV6res = normalizeIPv6(host);
|
|
20754
|
+
if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
|
|
20755
|
+
host = normalizePercentEncoding(host, true);
|
|
20756
|
+
ipV6res = normalizeIPv6(host);
|
|
20757
|
+
}
|
|
20758
|
+
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) host = `[${ipV6res.escapedHost}]`;
|
|
20759
|
+
else host = reescapeHostDelimiters(host, false);
|
|
20721
20760
|
}
|
|
20722
|
-
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) host = `[${ipV6res.escapedHost}]`;
|
|
20723
|
-
else host = reescapeHostDelimiters(host, false);
|
|
20724
20761
|
}
|
|
20725
20762
|
uriTokens.push(host);
|
|
20726
20763
|
}
|
|
@@ -20755,7 +20792,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20755
20792
|
};
|
|
20756
20793
|
}));
|
|
20757
20794
|
//#endregion
|
|
20758
|
-
//#region ../../node_modules/.pnpm/fast-uri@4.1
|
|
20795
|
+
//#region ../../node_modules/.pnpm/fast-uri@4.2.1/node_modules/fast-uri/lib/schemes.js
|
|
20759
20796
|
var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20760
20797
|
const { isUUID, BYTE_HEX, percentEncodeNonAscii, nonSimpleMailtoDomain } = require_utils$2();
|
|
20761
20798
|
const URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -20967,6 +21004,7 @@ var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20967
21004
|
const HEX_PAIR = /^[\da-f]{2}$/iu;
|
|
20968
21005
|
const MAILTO_DOMAIN_LITERAL = /^\[[\x21-\x5A\x5E-\x7E]*\]$/u;
|
|
20969
21006
|
const MAILTO_DOMAIN_ERROR = "URI mailto has an invalid recipient domain.";
|
|
21007
|
+
const MAILTO_AUTHORITY_ERROR = "URI mailto must not have an authority component.";
|
|
20970
21008
|
const HAS_SURROGATE = /[\uD800-\uDFFF]/u;
|
|
20971
21009
|
/**
|
|
20972
21010
|
* @param {string} str
|
|
@@ -21132,6 +21170,12 @@ var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21132
21170
|
if (headers !== null) mailtoComponent.headers = headers;
|
|
21133
21171
|
}
|
|
21134
21172
|
mailtoComponent.query = void 0;
|
|
21173
|
+
if (to.length > 0 && (mailtoComponent.userinfo !== void 0 || mailtoComponent.host !== void 0 || mailtoComponent.port !== void 0)) {
|
|
21174
|
+
mailtoComponent.userinfo = void 0;
|
|
21175
|
+
mailtoComponent.host = void 0;
|
|
21176
|
+
mailtoComponent.port = void 0;
|
|
21177
|
+
mailtoComponent.error = mailtoComponent.error || MAILTO_AUTHORITY_ERROR;
|
|
21178
|
+
}
|
|
21135
21179
|
for (let i = 0; i < to.length; i++) {
|
|
21136
21180
|
const rawAddr = to[i];
|
|
21137
21181
|
const atIdx = rawAddr.lastIndexOf("@");
|
|
@@ -21180,6 +21224,9 @@ var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21180
21224
|
if (mailtoComponent.body !== void 0) headers.body = mailtoComponent.body;
|
|
21181
21225
|
mailtoComponent.headers = headers;
|
|
21182
21226
|
if (to.length) {
|
|
21227
|
+
mailtoComponent.userinfo = void 0;
|
|
21228
|
+
mailtoComponent.host = void 0;
|
|
21229
|
+
mailtoComponent.port = void 0;
|
|
21183
21230
|
for (let i = 0; i < to.length; i++) {
|
|
21184
21231
|
const addr = String(to[i]);
|
|
21185
21232
|
const atIdx = addr.lastIndexOf("@");
|
|
@@ -21235,7 +21282,7 @@ var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21235
21282
|
};
|
|
21236
21283
|
}));
|
|
21237
21284
|
//#endregion
|
|
21238
|
-
//#region ../../node_modules/.pnpm/fast-uri@4.1
|
|
21285
|
+
//#region ../../node_modules/.pnpm/fast-uri@4.2.1/node_modules/fast-uri/index.js
|
|
21239
21286
|
var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
21240
21287
|
const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils$2();
|
|
21241
21288
|
const { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -21283,6 +21330,19 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21283
21330
|
return serialize(resolved, schemelessOptions);
|
|
21284
21331
|
}
|
|
21285
21332
|
/**
|
|
21333
|
+
* Copies a host component together with its parse-time zone identifier (if
|
|
21334
|
+
* any), so downstream recomposition does not re-derive an IPv6 zone from the
|
|
21335
|
+
* ambiguous single-"%" component form. The zone is validated on use by
|
|
21336
|
+
* `recomposeAuthority` rather than blindly trusted.
|
|
21337
|
+
*
|
|
21338
|
+
* @param {import('./types/index').URIComponent} target
|
|
21339
|
+
* @param {import('./types/index').URIComponent} source
|
|
21340
|
+
*/
|
|
21341
|
+
function copyHost(target, source) {
|
|
21342
|
+
target.host = source.host;
|
|
21343
|
+
if (source.ipv6Zone !== void 0) target.ipv6Zone = source.ipv6Zone;
|
|
21344
|
+
}
|
|
21345
|
+
/**
|
|
21286
21346
|
* @param {import ('./types/index').URIComponent} base
|
|
21287
21347
|
* @param {import ('./types/index').URIComponent} relative
|
|
21288
21348
|
* @param {import('./types/index').Options} [options]
|
|
@@ -21300,14 +21360,14 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21300
21360
|
if (!options.tolerant && relative.scheme) {
|
|
21301
21361
|
target.scheme = relative.scheme;
|
|
21302
21362
|
target.userinfo = relative.userinfo;
|
|
21303
|
-
target
|
|
21363
|
+
copyHost(target, relative);
|
|
21304
21364
|
target.port = relative.port;
|
|
21305
21365
|
target.path = removeDotSegments(relative.path || "");
|
|
21306
21366
|
target.query = relative.query;
|
|
21307
21367
|
} else {
|
|
21308
21368
|
if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
|
|
21309
21369
|
target.userinfo = relative.userinfo;
|
|
21310
|
-
target
|
|
21370
|
+
copyHost(target, relative);
|
|
21311
21371
|
target.port = relative.port;
|
|
21312
21372
|
target.path = removeDotSegments(relative.path || "");
|
|
21313
21373
|
target.query = relative.query;
|
|
@@ -21327,7 +21387,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21327
21387
|
target.query = relative.query;
|
|
21328
21388
|
}
|
|
21329
21389
|
target.userinfo = base.userinfo;
|
|
21330
|
-
target
|
|
21390
|
+
copyHost(target, base);
|
|
21331
21391
|
target.port = base.port;
|
|
21332
21392
|
}
|
|
21333
21393
|
target.scheme = base.scheme;
|
|
@@ -21354,6 +21414,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21354
21414
|
function serialize(cmpts, opts) {
|
|
21355
21415
|
const component = {
|
|
21356
21416
|
host: cmpts.host,
|
|
21417
|
+
ipv6Zone: cmpts.ipv6Zone,
|
|
21357
21418
|
scheme: cmpts.scheme,
|
|
21358
21419
|
userinfo: cmpts.userinfo,
|
|
21359
21420
|
port: cmpts.port,
|
|
@@ -21549,6 +21610,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21549
21610
|
isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
|
|
21550
21611
|
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
21551
21612
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
21613
|
+
if (isIP && ipv6result.isIPV6 === true && parsed.host.indexOf("%") !== -1) parsed.ipv6Zone = parsed.host.slice(parsed.host.indexOf("%") + 1);
|
|
21552
21614
|
if (malformedIPLiteral) {
|
|
21553
21615
|
parsed.error = parsed.error || "URI host is malformed.";
|
|
21554
21616
|
malformedAuthorityOrPort = true;
|
|
@@ -25295,7 +25357,7 @@ var require_fast_json_stringify_compiler = /* @__PURE__ */ __commonJSMin(((expor
|
|
|
25295
25357
|
module.exports.StandaloneSerializer = StandaloneSerializer;
|
|
25296
25358
|
}));
|
|
25297
25359
|
//#endregion
|
|
25298
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
25360
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/schema-controller.js
|
|
25299
25361
|
var require_schema_controller = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
25300
25362
|
const { buildSchemas } = require_schemas();
|
|
25301
25363
|
/**
|
|
@@ -26790,7 +26852,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
26790
26852
|
};
|
|
26791
26853
|
}));
|
|
26792
26854
|
//#endregion
|
|
26793
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
26855
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/plugin-utils.js
|
|
26794
26856
|
var require_plugin_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
26795
26857
|
const semver = require_semver();
|
|
26796
26858
|
const assert$6 = __require("node:assert");
|
|
@@ -26898,7 +26960,7 @@ var require_plugin_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
26898
26960
|
};
|
|
26899
26961
|
}));
|
|
26900
26962
|
//#endregion
|
|
26901
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
26963
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/req-id-gen-factory.js
|
|
26902
26964
|
var require_req_id_gen_factory = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
26903
26965
|
const { kGenReqId } = require_symbols$1();
|
|
26904
26966
|
/**
|
|
@@ -29983,7 +30045,7 @@ var require_find_my_way = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
29983
30045
|
}
|
|
29984
30046
|
}));
|
|
29985
30047
|
//#endregion
|
|
29986
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
30048
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/head-route.js
|
|
29987
30049
|
var require_head_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
29988
30050
|
function headRouteOnSendHandler(req, reply, payload, done) {
|
|
29989
30051
|
if (payload === void 0) {
|
|
@@ -30017,7 +30079,7 @@ var require_head_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
30017
30079
|
module.exports = { parseHeadOnSendHandlers };
|
|
30018
30080
|
}));
|
|
30019
30081
|
//#endregion
|
|
30020
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
30082
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/route.js
|
|
30021
30083
|
var require_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
30022
30084
|
const FindMyWay = require_find_my_way();
|
|
30023
30085
|
const Context = require_context();
|
|
@@ -30447,7 +30509,7 @@ var require_route = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
30447
30509
|
};
|
|
30448
30510
|
}));
|
|
30449
30511
|
//#endregion
|
|
30450
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
30512
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/four-oh-four.js
|
|
30451
30513
|
var require_four_oh_four = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
30452
30514
|
const FindMyWay = require_find_my_way();
|
|
30453
30515
|
const Reply = require_reply();
|
|
@@ -30566,7 +30628,7 @@ var require_four_oh_four = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
30566
30628
|
module.exports = fourOhFour;
|
|
30567
30629
|
}));
|
|
30568
30630
|
//#endregion
|
|
30569
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
30631
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/plugin-override.js
|
|
30570
30632
|
var require_plugin_override = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
30571
30633
|
const { kAvvioBoot, kChildren, kRoutePrefix, kLogLevel, kLogSerializers, kHooks, kSchemaController, kContentTypeParser, kReply, kRequest, kFourOhFour, kPluginNameChain, kErrorHandlerAlreadySet } = require_symbols$1();
|
|
30572
30634
|
const Reply = require_reply();
|
|
@@ -32673,9 +32735,9 @@ var require_light_my_request = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
32673
32735
|
module.exports.isInjection = isInjection;
|
|
32674
32736
|
}));
|
|
32675
32737
|
//#endregion
|
|
32676
|
-
//#region ../../node_modules/.pnpm/fastify@5.12.
|
|
32738
|
+
//#region ../../node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/fastify.js
|
|
32677
32739
|
var require_fastify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
32678
|
-
const VERSION = "5.12.
|
|
32740
|
+
const VERSION = "5.12.5";
|
|
32679
32741
|
const Avvio = require_avvio();
|
|
32680
32742
|
const http = __require("node:http");
|
|
32681
32743
|
const diagnostics = __require("node:diagnostics_channel");
|