@probelabs/probe 0.6.0-rc136 → 0.6.0-rc137
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/build/agent/fileSpanExporter.js +1 -3
- package/build/agent/index.js +202 -82310
- package/build/agent/telemetry.js +5 -10
- package/cjs/agent/ProbeAgent.cjs +351 -581
- package/cjs/agent/telemetry.cjs +15 -30
- package/cjs/index.cjs +361 -591
- package/package.json +1 -1
- package/src/agent/fileSpanExporter.js +1 -3
- package/src/agent/telemetry.js +5 -10
package/cjs/index.cjs
CHANGED
|
@@ -8313,36 +8313,9 @@ var require_dist_cjs2 = __commonJS({
|
|
|
8313
8313
|
|
|
8314
8314
|
// node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js
|
|
8315
8315
|
var require_dist_cjs3 = __commonJS({
|
|
8316
|
-
"node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js"(exports2
|
|
8316
|
+
"node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js"(exports2) {
|
|
8317
8317
|
"use strict";
|
|
8318
|
-
var
|
|
8319
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8320
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8321
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8322
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
8323
|
-
var __export2 = (target, all) => {
|
|
8324
|
-
for (var name14 in all)
|
|
8325
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
8326
|
-
};
|
|
8327
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
8328
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8329
|
-
for (let key of __getOwnPropNames2(from))
|
|
8330
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8331
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
8332
|
-
}
|
|
8333
|
-
return to;
|
|
8334
|
-
};
|
|
8335
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8336
|
-
var index_exports2 = {};
|
|
8337
|
-
__export2(index_exports2, {
|
|
8338
|
-
eventStreamHandlingMiddleware: () => eventStreamHandlingMiddleware,
|
|
8339
|
-
eventStreamHandlingMiddlewareOptions: () => eventStreamHandlingMiddlewareOptions,
|
|
8340
|
-
eventStreamHeaderMiddleware: () => eventStreamHeaderMiddleware,
|
|
8341
|
-
eventStreamHeaderMiddlewareOptions: () => eventStreamHeaderMiddlewareOptions,
|
|
8342
|
-
getEventStreamPlugin: () => getEventStreamPlugin,
|
|
8343
|
-
resolveEventStreamConfig: () => resolveEventStreamConfig
|
|
8344
|
-
});
|
|
8345
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
8318
|
+
var protocolHttp = require_dist_cjs2();
|
|
8346
8319
|
function resolveEventStreamConfig(input) {
|
|
8347
8320
|
const eventSigner = input.signer;
|
|
8348
8321
|
const messageSigner = input.signer;
|
|
@@ -8355,13 +8328,12 @@ var require_dist_cjs3 = __commonJS({
|
|
|
8355
8328
|
eventStreamPayloadHandler
|
|
8356
8329
|
});
|
|
8357
8330
|
}
|
|
8358
|
-
|
|
8359
|
-
var import_protocol_http15 = require_dist_cjs2();
|
|
8360
|
-
var eventStreamHandlingMiddleware = /* @__PURE__ */ __name((options) => (next, context3) => async (args) => {
|
|
8331
|
+
var eventStreamHandlingMiddleware = (options) => (next, context3) => async (args) => {
|
|
8361
8332
|
const { request } = args;
|
|
8362
|
-
if (!
|
|
8333
|
+
if (!protocolHttp.HttpRequest.isInstance(request))
|
|
8334
|
+
return next(args);
|
|
8363
8335
|
return options.eventStreamPayloadHandler.handle(next, args, context3);
|
|
8364
|
-
}
|
|
8336
|
+
};
|
|
8365
8337
|
var eventStreamHandlingMiddlewareOptions = {
|
|
8366
8338
|
tags: ["EVENT_STREAM", "SIGNATURE", "HANDLE"],
|
|
8367
8339
|
name: "eventStreamHandlingMiddleware",
|
|
@@ -8369,9 +8341,10 @@ var require_dist_cjs3 = __commonJS({
|
|
|
8369
8341
|
toMiddleware: "awsAuthMiddleware",
|
|
8370
8342
|
override: true
|
|
8371
8343
|
};
|
|
8372
|
-
var eventStreamHeaderMiddleware =
|
|
8344
|
+
var eventStreamHeaderMiddleware = (next) => async (args) => {
|
|
8373
8345
|
const { request } = args;
|
|
8374
|
-
if (!
|
|
8346
|
+
if (!protocolHttp.HttpRequest.isInstance(request))
|
|
8347
|
+
return next(args);
|
|
8375
8348
|
request.headers = {
|
|
8376
8349
|
...request.headers,
|
|
8377
8350
|
"content-type": "application/vnd.amazon.eventstream",
|
|
@@ -8381,59 +8354,39 @@ var require_dist_cjs3 = __commonJS({
|
|
|
8381
8354
|
...args,
|
|
8382
8355
|
request
|
|
8383
8356
|
});
|
|
8384
|
-
}
|
|
8357
|
+
};
|
|
8385
8358
|
var eventStreamHeaderMiddlewareOptions = {
|
|
8386
8359
|
step: "build",
|
|
8387
8360
|
tags: ["EVENT_STREAM", "HEADER", "CONTENT_TYPE", "CONTENT_SHA256"],
|
|
8388
8361
|
name: "eventStreamHeaderMiddleware",
|
|
8389
8362
|
override: true
|
|
8390
8363
|
};
|
|
8391
|
-
var getEventStreamPlugin =
|
|
8392
|
-
applyToStack:
|
|
8364
|
+
var getEventStreamPlugin = (options) => ({
|
|
8365
|
+
applyToStack: (clientStack) => {
|
|
8393
8366
|
clientStack.addRelativeTo(eventStreamHandlingMiddleware(options), eventStreamHandlingMiddlewareOptions);
|
|
8394
8367
|
clientStack.add(eventStreamHeaderMiddleware, eventStreamHeaderMiddlewareOptions);
|
|
8395
|
-
}
|
|
8396
|
-
})
|
|
8368
|
+
}
|
|
8369
|
+
});
|
|
8370
|
+
exports2.eventStreamHandlingMiddleware = eventStreamHandlingMiddleware;
|
|
8371
|
+
exports2.eventStreamHandlingMiddlewareOptions = eventStreamHandlingMiddlewareOptions;
|
|
8372
|
+
exports2.eventStreamHeaderMiddleware = eventStreamHeaderMiddleware;
|
|
8373
|
+
exports2.eventStreamHeaderMiddlewareOptions = eventStreamHeaderMiddlewareOptions;
|
|
8374
|
+
exports2.getEventStreamPlugin = getEventStreamPlugin;
|
|
8375
|
+
exports2.resolveEventStreamConfig = resolveEventStreamConfig;
|
|
8397
8376
|
}
|
|
8398
8377
|
});
|
|
8399
8378
|
|
|
8400
8379
|
// node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js
|
|
8401
8380
|
var require_dist_cjs4 = __commonJS({
|
|
8402
|
-
"node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports2
|
|
8381
|
+
"node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports2) {
|
|
8403
8382
|
"use strict";
|
|
8404
|
-
var
|
|
8405
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8406
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8407
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8408
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
8409
|
-
var __export2 = (target, all) => {
|
|
8410
|
-
for (var name14 in all)
|
|
8411
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
8412
|
-
};
|
|
8413
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
8414
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8415
|
-
for (let key of __getOwnPropNames2(from))
|
|
8416
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8417
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
8418
|
-
}
|
|
8419
|
-
return to;
|
|
8420
|
-
};
|
|
8421
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8422
|
-
var index_exports2 = {};
|
|
8423
|
-
__export2(index_exports2, {
|
|
8424
|
-
getHostHeaderPlugin: () => getHostHeaderPlugin3,
|
|
8425
|
-
hostHeaderMiddleware: () => hostHeaderMiddleware,
|
|
8426
|
-
hostHeaderMiddlewareOptions: () => hostHeaderMiddlewareOptions,
|
|
8427
|
-
resolveHostHeaderConfig: () => resolveHostHeaderConfig3
|
|
8428
|
-
});
|
|
8429
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
8430
|
-
var import_protocol_http15 = require_dist_cjs2();
|
|
8383
|
+
var protocolHttp = require_dist_cjs2();
|
|
8431
8384
|
function resolveHostHeaderConfig3(input) {
|
|
8432
8385
|
return input;
|
|
8433
8386
|
}
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8387
|
+
var hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
8388
|
+
if (!protocolHttp.HttpRequest.isInstance(args.request))
|
|
8389
|
+
return next(args);
|
|
8437
8390
|
const { request } = args;
|
|
8438
8391
|
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
8439
8392
|
if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
|
|
@@ -8441,11 +8394,12 @@ var require_dist_cjs4 = __commonJS({
|
|
|
8441
8394
|
request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
|
|
8442
8395
|
} else if (!request.headers["host"]) {
|
|
8443
8396
|
let host = request.hostname;
|
|
8444
|
-
if (request.port != null)
|
|
8397
|
+
if (request.port != null)
|
|
8398
|
+
host += `:${request.port}`;
|
|
8445
8399
|
request.headers["host"] = host;
|
|
8446
8400
|
}
|
|
8447
8401
|
return next(args);
|
|
8448
|
-
}
|
|
8402
|
+
};
|
|
8449
8403
|
var hostHeaderMiddlewareOptions = {
|
|
8450
8404
|
name: "hostHeaderMiddleware",
|
|
8451
8405
|
step: "build",
|
|
@@ -8453,44 +8407,23 @@ var require_dist_cjs4 = __commonJS({
|
|
|
8453
8407
|
tags: ["HOST"],
|
|
8454
8408
|
override: true
|
|
8455
8409
|
};
|
|
8456
|
-
var getHostHeaderPlugin3 =
|
|
8457
|
-
applyToStack:
|
|
8410
|
+
var getHostHeaderPlugin3 = (options) => ({
|
|
8411
|
+
applyToStack: (clientStack) => {
|
|
8458
8412
|
clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
|
|
8459
|
-
}
|
|
8460
|
-
})
|
|
8413
|
+
}
|
|
8414
|
+
});
|
|
8415
|
+
exports2.getHostHeaderPlugin = getHostHeaderPlugin3;
|
|
8416
|
+
exports2.hostHeaderMiddleware = hostHeaderMiddleware;
|
|
8417
|
+
exports2.hostHeaderMiddlewareOptions = hostHeaderMiddlewareOptions;
|
|
8418
|
+
exports2.resolveHostHeaderConfig = resolveHostHeaderConfig3;
|
|
8461
8419
|
}
|
|
8462
8420
|
});
|
|
8463
8421
|
|
|
8464
8422
|
// node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js
|
|
8465
8423
|
var require_dist_cjs5 = __commonJS({
|
|
8466
|
-
"node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports2
|
|
8424
|
+
"node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports2) {
|
|
8467
8425
|
"use strict";
|
|
8468
|
-
var
|
|
8469
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8470
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8471
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8472
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
8473
|
-
var __export2 = (target, all) => {
|
|
8474
|
-
for (var name14 in all)
|
|
8475
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
8476
|
-
};
|
|
8477
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
8478
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8479
|
-
for (let key of __getOwnPropNames2(from))
|
|
8480
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8481
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
8482
|
-
}
|
|
8483
|
-
return to;
|
|
8484
|
-
};
|
|
8485
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8486
|
-
var index_exports2 = {};
|
|
8487
|
-
__export2(index_exports2, {
|
|
8488
|
-
getLoggerPlugin: () => getLoggerPlugin3,
|
|
8489
|
-
loggerMiddleware: () => loggerMiddleware,
|
|
8490
|
-
loggerMiddlewareOptions: () => loggerMiddlewareOptions
|
|
8491
|
-
});
|
|
8492
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
8493
|
-
var loggerMiddleware = /* @__PURE__ */ __name(() => (next, context3) => async (args) => {
|
|
8426
|
+
var loggerMiddleware = () => (next, context3) => async (args) => {
|
|
8494
8427
|
try {
|
|
8495
8428
|
const response = await next(args);
|
|
8496
8429
|
const { clientName, commandName, logger: logger2, dynamoDbDocumentClientOptions = {} } = context3;
|
|
@@ -8519,18 +8452,21 @@ var require_dist_cjs5 = __commonJS({
|
|
|
8519
8452
|
});
|
|
8520
8453
|
throw error2;
|
|
8521
8454
|
}
|
|
8522
|
-
}
|
|
8455
|
+
};
|
|
8523
8456
|
var loggerMiddlewareOptions = {
|
|
8524
8457
|
name: "loggerMiddleware",
|
|
8525
8458
|
tags: ["LOGGER"],
|
|
8526
8459
|
step: "initialize",
|
|
8527
8460
|
override: true
|
|
8528
8461
|
};
|
|
8529
|
-
var getLoggerPlugin3 =
|
|
8530
|
-
applyToStack:
|
|
8462
|
+
var getLoggerPlugin3 = (options) => ({
|
|
8463
|
+
applyToStack: (clientStack) => {
|
|
8531
8464
|
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
|
|
8532
|
-
}
|
|
8533
|
-
})
|
|
8465
|
+
}
|
|
8466
|
+
});
|
|
8467
|
+
exports2.getLoggerPlugin = getLoggerPlugin3;
|
|
8468
|
+
exports2.loggerMiddleware = loggerMiddleware;
|
|
8469
|
+
exports2.loggerMiddlewareOptions = loggerMiddlewareOptions;
|
|
8534
8470
|
}
|
|
8535
8471
|
});
|
|
8536
8472
|
|
|
@@ -8634,7 +8570,7 @@ var require_recursionDetectionMiddleware = __commonJS({
|
|
|
8634
8570
|
var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
|
|
8635
8571
|
var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
8636
8572
|
var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
8637
|
-
var
|
|
8573
|
+
var recursionDetectionMiddleware = () => (next) => async (args) => {
|
|
8638
8574
|
const { request } = args;
|
|
8639
8575
|
if (!protocol_http_1.HttpRequest.isInstance(request)) {
|
|
8640
8576
|
return next(args);
|
|
@@ -8656,38 +8592,15 @@ var require_recursionDetectionMiddleware = __commonJS({
|
|
|
8656
8592
|
request
|
|
8657
8593
|
});
|
|
8658
8594
|
};
|
|
8659
|
-
exports2.recursionDetectionMiddleware =
|
|
8595
|
+
exports2.recursionDetectionMiddleware = recursionDetectionMiddleware;
|
|
8660
8596
|
}
|
|
8661
8597
|
});
|
|
8662
8598
|
|
|
8663
8599
|
// node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js
|
|
8664
8600
|
var require_dist_cjs6 = __commonJS({
|
|
8665
|
-
"node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports2
|
|
8601
|
+
"node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports2) {
|
|
8666
8602
|
"use strict";
|
|
8667
|
-
var
|
|
8668
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8669
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8670
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8671
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
8672
|
-
var __export2 = (target, all) => {
|
|
8673
|
-
for (var name14 in all)
|
|
8674
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
8675
|
-
};
|
|
8676
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
8677
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8678
|
-
for (let key of __getOwnPropNames2(from))
|
|
8679
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8680
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
8681
|
-
}
|
|
8682
|
-
return to;
|
|
8683
|
-
};
|
|
8684
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
|
|
8685
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8686
|
-
var index_exports2 = {};
|
|
8687
|
-
__export2(index_exports2, {
|
|
8688
|
-
getRecursionDetectionPlugin: () => getRecursionDetectionPlugin3
|
|
8689
|
-
});
|
|
8690
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
8603
|
+
var recursionDetectionMiddleware = require_recursionDetectionMiddleware();
|
|
8691
8604
|
var recursionDetectionMiddlewareOptions = {
|
|
8692
8605
|
step: "build",
|
|
8693
8606
|
tags: ["RECURSION_DETECTION"],
|
|
@@ -8695,13 +8608,20 @@ var require_dist_cjs6 = __commonJS({
|
|
|
8695
8608
|
override: true,
|
|
8696
8609
|
priority: "low"
|
|
8697
8610
|
};
|
|
8698
|
-
var
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8611
|
+
var getRecursionDetectionPlugin3 = (options) => ({
|
|
8612
|
+
applyToStack: (clientStack) => {
|
|
8613
|
+
clientStack.add(recursionDetectionMiddleware.recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
|
|
8614
|
+
}
|
|
8615
|
+
});
|
|
8616
|
+
exports2.getRecursionDetectionPlugin = getRecursionDetectionPlugin3;
|
|
8617
|
+
Object.keys(recursionDetectionMiddleware).forEach(function(k3) {
|
|
8618
|
+
if (k3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k3)) Object.defineProperty(exports2, k3, {
|
|
8619
|
+
enumerable: true,
|
|
8620
|
+
get: function() {
|
|
8621
|
+
return recursionDetectionMiddleware[k3];
|
|
8622
|
+
}
|
|
8623
|
+
});
|
|
8624
|
+
});
|
|
8705
8625
|
}
|
|
8706
8626
|
});
|
|
8707
8627
|
|
|
@@ -14414,7 +14334,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14414
14334
|
}
|
|
14415
14335
|
};
|
|
14416
14336
|
var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
|
|
14417
|
-
var
|
|
14337
|
+
var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
|
|
14418
14338
|
var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
|
|
14419
14339
|
var isValidHostLabel = (value, allowSubDomains = false) => {
|
|
14420
14340
|
if (!allowSubDomains) {
|
|
@@ -14442,7 +14362,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14442
14362
|
}
|
|
14443
14363
|
return JSON.stringify(input, null, 2);
|
|
14444
14364
|
}
|
|
14445
|
-
var
|
|
14365
|
+
var EndpointError = class extends Error {
|
|
14446
14366
|
constructor(message) {
|
|
14447
14367
|
super(message);
|
|
14448
14368
|
this.name = "EndpointError";
|
|
@@ -14456,11 +14376,11 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14456
14376
|
const squareBracketIndex = part.indexOf("[");
|
|
14457
14377
|
if (squareBracketIndex !== -1) {
|
|
14458
14378
|
if (part.indexOf("]") !== part.length - 1) {
|
|
14459
|
-
throw new
|
|
14379
|
+
throw new EndpointError(`Path: '${path7}' does not end with ']'`);
|
|
14460
14380
|
}
|
|
14461
14381
|
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
|
14462
14382
|
if (Number.isNaN(parseInt(arrayIndex))) {
|
|
14463
|
-
throw new
|
|
14383
|
+
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path7}'`);
|
|
14464
14384
|
}
|
|
14465
14385
|
if (squareBracketIndex !== 0) {
|
|
14466
14386
|
pathList.push(part.slice(0, squareBracketIndex));
|
|
@@ -14474,7 +14394,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14474
14394
|
};
|
|
14475
14395
|
var getAttr = (value, path7) => getAttrPathList(path7).reduce((acc, index) => {
|
|
14476
14396
|
if (typeof acc !== "object") {
|
|
14477
|
-
throw new
|
|
14397
|
+
throw new EndpointError(`Index '${index}' in '${path7}' not found in '${JSON.stringify(value)}'`);
|
|
14478
14398
|
} else if (Array.isArray(acc)) {
|
|
14479
14399
|
return acc[parseInt(index)];
|
|
14480
14400
|
}
|
|
@@ -14516,7 +14436,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14516
14436
|
if (!Object.values(types2.EndpointURLScheme).includes(scheme)) {
|
|
14517
14437
|
return null;
|
|
14518
14438
|
}
|
|
14519
|
-
const isIp =
|
|
14439
|
+
const isIp = isIpAddress(hostname);
|
|
14520
14440
|
const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);
|
|
14521
14441
|
const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
|
|
14522
14442
|
return {
|
|
@@ -14598,7 +14518,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14598
14518
|
} else if (obj["ref"]) {
|
|
14599
14519
|
return getReferenceValue(obj, options);
|
|
14600
14520
|
}
|
|
14601
|
-
throw new
|
|
14521
|
+
throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
|
|
14602
14522
|
};
|
|
14603
14523
|
var callFunction = ({ fn, argv }, options) => {
|
|
14604
14524
|
const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
|
|
@@ -14610,7 +14530,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14610
14530
|
};
|
|
14611
14531
|
var evaluateCondition = ({ assign: assign2, ...fnArgs }, options) => {
|
|
14612
14532
|
if (assign2 && assign2 in options.referenceRecord) {
|
|
14613
|
-
throw new
|
|
14533
|
+
throw new EndpointError(`'${assign2}' is already defined in Reference Record.`);
|
|
14614
14534
|
}
|
|
14615
14535
|
const value = callFunction(fnArgs, options);
|
|
14616
14536
|
options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
|
|
@@ -14644,7 +14564,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14644
14564
|
[headerKey]: headerVal.map((headerValEntry) => {
|
|
14645
14565
|
const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
|
|
14646
14566
|
if (typeof processedExpr !== "string") {
|
|
14647
|
-
throw new
|
|
14567
|
+
throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
|
|
14648
14568
|
}
|
|
14649
14569
|
return processedExpr;
|
|
14650
14570
|
})
|
|
@@ -14658,13 +14578,13 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14658
14578
|
return evaluateTemplate(property2, options);
|
|
14659
14579
|
case "object":
|
|
14660
14580
|
if (property2 === null) {
|
|
14661
|
-
throw new
|
|
14581
|
+
throw new EndpointError(`Unexpected endpoint property: ${property2}`);
|
|
14662
14582
|
}
|
|
14663
14583
|
return getEndpointProperties(property2, options);
|
|
14664
14584
|
case "boolean":
|
|
14665
14585
|
return property2;
|
|
14666
14586
|
default:
|
|
14667
|
-
throw new
|
|
14587
|
+
throw new EndpointError(`Unexpected endpoint property type: ${typeof property2}`);
|
|
14668
14588
|
}
|
|
14669
14589
|
};
|
|
14670
14590
|
var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
|
|
@@ -14681,7 +14601,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14681
14601
|
throw error2;
|
|
14682
14602
|
}
|
|
14683
14603
|
}
|
|
14684
|
-
throw new
|
|
14604
|
+
throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
|
|
14685
14605
|
};
|
|
14686
14606
|
var evaluateEndpointRule = (endpointRule, options) => {
|
|
14687
14607
|
const { conditions, endpoint } = endpointRule;
|
|
@@ -14711,7 +14631,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14711
14631
|
if (!result) {
|
|
14712
14632
|
return;
|
|
14713
14633
|
}
|
|
14714
|
-
throw new
|
|
14634
|
+
throw new EndpointError(evaluateExpression(error2, "Error", {
|
|
14715
14635
|
...options,
|
|
14716
14636
|
referenceRecord: { ...options.referenceRecord, ...referenceRecord }
|
|
14717
14637
|
}));
|
|
@@ -14742,12 +14662,12 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14742
14662
|
return endpointOrUndefined;
|
|
14743
14663
|
}
|
|
14744
14664
|
} else {
|
|
14745
|
-
throw new
|
|
14665
|
+
throw new EndpointError(`Unknown endpoint rule: ${rule}`);
|
|
14746
14666
|
}
|
|
14747
14667
|
}
|
|
14748
|
-
throw new
|
|
14668
|
+
throw new EndpointError(`Rules evaluation failed`);
|
|
14749
14669
|
};
|
|
14750
|
-
var
|
|
14670
|
+
var resolveEndpoint3 = (ruleSetObject, options) => {
|
|
14751
14671
|
const { endpointParams, logger: logger2 } = options;
|
|
14752
14672
|
const { parameters, rules } = ruleSetObject;
|
|
14753
14673
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
@@ -14760,7 +14680,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14760
14680
|
const requiredParams = Object.entries(parameters).filter(([, v3]) => v3.required).map(([k3]) => k3);
|
|
14761
14681
|
for (const requiredParam of requiredParams) {
|
|
14762
14682
|
if (endpointParams[requiredParam] == null) {
|
|
14763
|
-
throw new
|
|
14683
|
+
throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
|
|
14764
14684
|
}
|
|
14765
14685
|
}
|
|
14766
14686
|
const endpoint = evaluateRules(rules, { endpointParams, logger: logger2, referenceRecord: {} });
|
|
@@ -14768,11 +14688,11 @@ var require_dist_cjs20 = __commonJS({
|
|
|
14768
14688
|
return endpoint;
|
|
14769
14689
|
};
|
|
14770
14690
|
exports2.EndpointCache = EndpointCache3;
|
|
14771
|
-
exports2.EndpointError =
|
|
14691
|
+
exports2.EndpointError = EndpointError;
|
|
14772
14692
|
exports2.customEndpointFunctions = customEndpointFunctions3;
|
|
14773
|
-
exports2.isIpAddress =
|
|
14693
|
+
exports2.isIpAddress = isIpAddress;
|
|
14774
14694
|
exports2.isValidHostLabel = isValidHostLabel;
|
|
14775
|
-
exports2.resolveEndpoint =
|
|
14695
|
+
exports2.resolveEndpoint = resolveEndpoint3;
|
|
14776
14696
|
}
|
|
14777
14697
|
});
|
|
14778
14698
|
|
|
@@ -14833,62 +14753,11 @@ var require_dist_cjs22 = __commonJS({
|
|
|
14833
14753
|
|
|
14834
14754
|
// node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js
|
|
14835
14755
|
var require_dist_cjs23 = __commonJS({
|
|
14836
|
-
"node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports2
|
|
14756
|
+
"node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports2) {
|
|
14837
14757
|
"use strict";
|
|
14838
|
-
var
|
|
14839
|
-
var
|
|
14840
|
-
var
|
|
14841
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
14842
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
14843
|
-
var __export2 = (target, all) => {
|
|
14844
|
-
for (var name14 in all)
|
|
14845
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
14846
|
-
};
|
|
14847
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
14848
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14849
|
-
for (let key of __getOwnPropNames2(from))
|
|
14850
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
14851
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
14852
|
-
}
|
|
14853
|
-
return to;
|
|
14854
|
-
};
|
|
14855
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
14856
|
-
var index_exports2 = {};
|
|
14857
|
-
__export2(index_exports2, {
|
|
14858
|
-
ConditionObject: () => import_util_endpoints5.ConditionObject,
|
|
14859
|
-
DeprecatedObject: () => import_util_endpoints5.DeprecatedObject,
|
|
14860
|
-
EndpointError: () => import_util_endpoints5.EndpointError,
|
|
14861
|
-
EndpointObject: () => import_util_endpoints5.EndpointObject,
|
|
14862
|
-
EndpointObjectHeaders: () => import_util_endpoints5.EndpointObjectHeaders,
|
|
14863
|
-
EndpointObjectProperties: () => import_util_endpoints5.EndpointObjectProperties,
|
|
14864
|
-
EndpointParams: () => import_util_endpoints5.EndpointParams,
|
|
14865
|
-
EndpointResolverOptions: () => import_util_endpoints5.EndpointResolverOptions,
|
|
14866
|
-
EndpointRuleObject: () => import_util_endpoints5.EndpointRuleObject,
|
|
14867
|
-
ErrorRuleObject: () => import_util_endpoints5.ErrorRuleObject,
|
|
14868
|
-
EvaluateOptions: () => import_util_endpoints5.EvaluateOptions,
|
|
14869
|
-
Expression: () => import_util_endpoints5.Expression,
|
|
14870
|
-
FunctionArgv: () => import_util_endpoints5.FunctionArgv,
|
|
14871
|
-
FunctionObject: () => import_util_endpoints5.FunctionObject,
|
|
14872
|
-
FunctionReturn: () => import_util_endpoints5.FunctionReturn,
|
|
14873
|
-
ParameterObject: () => import_util_endpoints5.ParameterObject,
|
|
14874
|
-
ReferenceObject: () => import_util_endpoints5.ReferenceObject,
|
|
14875
|
-
ReferenceRecord: () => import_util_endpoints5.ReferenceRecord,
|
|
14876
|
-
RuleSetObject: () => import_util_endpoints5.RuleSetObject,
|
|
14877
|
-
RuleSetRules: () => import_util_endpoints5.RuleSetRules,
|
|
14878
|
-
TreeRuleObject: () => import_util_endpoints5.TreeRuleObject,
|
|
14879
|
-
awsEndpointFunctions: () => awsEndpointFunctions3,
|
|
14880
|
-
getUserAgentPrefix: () => getUserAgentPrefix,
|
|
14881
|
-
isIpAddress: () => import_util_endpoints5.isIpAddress,
|
|
14882
|
-
partition: () => partition,
|
|
14883
|
-
resolveDefaultAwsRegionalEndpointsConfig: () => resolveDefaultAwsRegionalEndpointsConfig,
|
|
14884
|
-
resolveEndpoint: () => import_util_endpoints5.resolveEndpoint,
|
|
14885
|
-
setPartitionInfo: () => setPartitionInfo,
|
|
14886
|
-
toEndpointV1: () => toEndpointV1,
|
|
14887
|
-
useDefaultPartitionInfo: () => useDefaultPartitionInfo
|
|
14888
|
-
});
|
|
14889
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
14890
|
-
var import_util_endpoints5 = require_dist_cjs20();
|
|
14891
|
-
var isVirtualHostableS3Bucket = /* @__PURE__ */ __name((value, allowSubDomains = false) => {
|
|
14758
|
+
var utilEndpoints = require_dist_cjs20();
|
|
14759
|
+
var urlParser = require_dist_cjs22();
|
|
14760
|
+
var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
14892
14761
|
if (allowSubDomains) {
|
|
14893
14762
|
for (const label of value.split(".")) {
|
|
14894
14763
|
if (!isVirtualHostableS3Bucket(label)) {
|
|
@@ -14897,7 +14766,7 @@ var require_dist_cjs23 = __commonJS({
|
|
|
14897
14766
|
}
|
|
14898
14767
|
return true;
|
|
14899
14768
|
}
|
|
14900
|
-
if (!
|
|
14769
|
+
if (!utilEndpoints.isValidHostLabel(value)) {
|
|
14901
14770
|
return false;
|
|
14902
14771
|
}
|
|
14903
14772
|
if (value.length < 3 || value.length > 63) {
|
|
@@ -14906,18 +14775,20 @@ var require_dist_cjs23 = __commonJS({
|
|
|
14906
14775
|
if (value !== value.toLowerCase()) {
|
|
14907
14776
|
return false;
|
|
14908
14777
|
}
|
|
14909
|
-
if (
|
|
14778
|
+
if (utilEndpoints.isIpAddress(value)) {
|
|
14910
14779
|
return false;
|
|
14911
14780
|
}
|
|
14912
14781
|
return true;
|
|
14913
|
-
}
|
|
14782
|
+
};
|
|
14914
14783
|
var ARN_DELIMITER = ":";
|
|
14915
14784
|
var RESOURCE_DELIMITER = "/";
|
|
14916
|
-
var parseArn =
|
|
14785
|
+
var parseArn = (value) => {
|
|
14917
14786
|
const segments = value.split(ARN_DELIMITER);
|
|
14918
|
-
if (segments.length < 6)
|
|
14787
|
+
if (segments.length < 6)
|
|
14788
|
+
return null;
|
|
14919
14789
|
const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
|
|
14920
|
-
if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
14790
|
+
if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
14791
|
+
return null;
|
|
14921
14792
|
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
14922
14793
|
return {
|
|
14923
14794
|
partition: partition2,
|
|
@@ -14926,9 +14797,9 @@ var require_dist_cjs23 = __commonJS({
|
|
|
14926
14797
|
accountId,
|
|
14927
14798
|
resourceId
|
|
14928
14799
|
};
|
|
14929
|
-
}
|
|
14930
|
-
var
|
|
14931
|
-
|
|
14800
|
+
};
|
|
14801
|
+
var partitions = [
|
|
14802
|
+
{
|
|
14932
14803
|
id: "aws",
|
|
14933
14804
|
outputs: {
|
|
14934
14805
|
dnsSuffix: "amazonaws.com",
|
|
@@ -15046,7 +14917,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
15046
14917
|
description: "US West (Oregon)"
|
|
15047
14918
|
}
|
|
15048
14919
|
}
|
|
15049
|
-
},
|
|
14920
|
+
},
|
|
14921
|
+
{
|
|
15050
14922
|
id: "aws-cn",
|
|
15051
14923
|
outputs: {
|
|
15052
14924
|
dnsSuffix: "amazonaws.com.cn",
|
|
@@ -15068,7 +14940,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
15068
14940
|
description: "China (Ningxia)"
|
|
15069
14941
|
}
|
|
15070
14942
|
}
|
|
15071
|
-
},
|
|
14943
|
+
},
|
|
14944
|
+
{
|
|
15072
14945
|
id: "aws-eusc",
|
|
15073
14946
|
outputs: {
|
|
15074
14947
|
dnsSuffix: "amazonaws.eu",
|
|
@@ -15084,7 +14957,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
15084
14957
|
description: "EU (Germany)"
|
|
15085
14958
|
}
|
|
15086
14959
|
}
|
|
15087
|
-
},
|
|
14960
|
+
},
|
|
14961
|
+
{
|
|
15088
14962
|
id: "aws-iso",
|
|
15089
14963
|
outputs: {
|
|
15090
14964
|
dnsSuffix: "c2s.ic.gov",
|
|
@@ -15106,7 +14980,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
15106
14980
|
description: "US ISO WEST"
|
|
15107
14981
|
}
|
|
15108
14982
|
}
|
|
15109
|
-
},
|
|
14983
|
+
},
|
|
14984
|
+
{
|
|
15110
14985
|
id: "aws-iso-b",
|
|
15111
14986
|
outputs: {
|
|
15112
14987
|
dnsSuffix: "sc2s.sgov.gov",
|
|
@@ -15125,7 +15000,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
15125
15000
|
description: "US ISOB East (Ohio)"
|
|
15126
15001
|
}
|
|
15127
15002
|
}
|
|
15128
|
-
},
|
|
15003
|
+
},
|
|
15004
|
+
{
|
|
15129
15005
|
id: "aws-iso-e",
|
|
15130
15006
|
outputs: {
|
|
15131
15007
|
dnsSuffix: "cloud.adc-e.uk",
|
|
@@ -15144,7 +15020,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
15144
15020
|
description: "EU ISOE West"
|
|
15145
15021
|
}
|
|
15146
15022
|
}
|
|
15147
|
-
},
|
|
15023
|
+
},
|
|
15024
|
+
{
|
|
15148
15025
|
id: "aws-iso-f",
|
|
15149
15026
|
outputs: {
|
|
15150
15027
|
dnsSuffix: "csp.hci.ic.gov",
|
|
@@ -15166,7 +15043,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
15166
15043
|
description: "US ISOF SOUTH"
|
|
15167
15044
|
}
|
|
15168
15045
|
}
|
|
15169
|
-
},
|
|
15046
|
+
},
|
|
15047
|
+
{
|
|
15170
15048
|
id: "aws-us-gov",
|
|
15171
15049
|
outputs: {
|
|
15172
15050
|
dnsSuffix: "amazonaws.com",
|
|
@@ -15188,14 +15066,18 @@ var require_dist_cjs23 = __commonJS({
|
|
|
15188
15066
|
description: "AWS GovCloud (US-West)"
|
|
15189
15067
|
}
|
|
15190
15068
|
}
|
|
15191
|
-
}
|
|
15192
|
-
|
|
15069
|
+
}
|
|
15070
|
+
];
|
|
15071
|
+
var version = "1.1";
|
|
15072
|
+
var partitionsInfo = {
|
|
15073
|
+
partitions,
|
|
15074
|
+
version
|
|
15193
15075
|
};
|
|
15194
|
-
var selectedPartitionsInfo =
|
|
15076
|
+
var selectedPartitionsInfo = partitionsInfo;
|
|
15195
15077
|
var selectedUserAgentPrefix = "";
|
|
15196
|
-
var partition =
|
|
15197
|
-
const { partitions } = selectedPartitionsInfo;
|
|
15198
|
-
for (const partition2 of
|
|
15078
|
+
var partition = (value) => {
|
|
15079
|
+
const { partitions: partitions2 } = selectedPartitionsInfo;
|
|
15080
|
+
for (const partition2 of partitions2) {
|
|
15199
15081
|
const { regions, outputs } = partition2;
|
|
15200
15082
|
for (const [region, regionData] of Object.entries(regions)) {
|
|
15201
15083
|
if (region === value) {
|
|
@@ -15206,7 +15088,7 @@ var require_dist_cjs23 = __commonJS({
|
|
|
15206
15088
|
}
|
|
15207
15089
|
}
|
|
15208
15090
|
}
|
|
15209
|
-
for (const partition2 of
|
|
15091
|
+
for (const partition2 of partitions2) {
|
|
15210
15092
|
const { regionRegex, outputs } = partition2;
|
|
15211
15093
|
if (new RegExp(regionRegex).test(value)) {
|
|
15212
15094
|
return {
|
|
@@ -15214,54 +15096,71 @@ var require_dist_cjs23 = __commonJS({
|
|
|
15214
15096
|
};
|
|
15215
15097
|
}
|
|
15216
15098
|
}
|
|
15217
|
-
const DEFAULT_PARTITION =
|
|
15099
|
+
const DEFAULT_PARTITION = partitions2.find((partition2) => partition2.id === "aws");
|
|
15218
15100
|
if (!DEFAULT_PARTITION) {
|
|
15219
|
-
throw new Error(
|
|
15220
|
-
"Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist."
|
|
15221
|
-
);
|
|
15101
|
+
throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
|
|
15222
15102
|
}
|
|
15223
15103
|
return {
|
|
15224
15104
|
...DEFAULT_PARTITION.outputs
|
|
15225
15105
|
};
|
|
15226
|
-
}
|
|
15227
|
-
var setPartitionInfo =
|
|
15228
|
-
selectedPartitionsInfo =
|
|
15106
|
+
};
|
|
15107
|
+
var setPartitionInfo = (partitionsInfo2, userAgentPrefix = "") => {
|
|
15108
|
+
selectedPartitionsInfo = partitionsInfo2;
|
|
15229
15109
|
selectedUserAgentPrefix = userAgentPrefix;
|
|
15230
|
-
}
|
|
15231
|
-
var useDefaultPartitionInfo =
|
|
15232
|
-
setPartitionInfo(
|
|
15233
|
-
}
|
|
15234
|
-
var getUserAgentPrefix =
|
|
15110
|
+
};
|
|
15111
|
+
var useDefaultPartitionInfo = () => {
|
|
15112
|
+
setPartitionInfo(partitionsInfo, "");
|
|
15113
|
+
};
|
|
15114
|
+
var getUserAgentPrefix = () => selectedUserAgentPrefix;
|
|
15235
15115
|
var awsEndpointFunctions3 = {
|
|
15236
15116
|
isVirtualHostableS3Bucket,
|
|
15237
15117
|
parseArn,
|
|
15238
15118
|
partition
|
|
15239
15119
|
};
|
|
15240
|
-
|
|
15241
|
-
var
|
|
15242
|
-
var resolveDefaultAwsRegionalEndpointsConfig = /* @__PURE__ */ __name((input) => {
|
|
15120
|
+
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions3;
|
|
15121
|
+
var resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
|
15243
15122
|
if (typeof input.endpointProvider !== "function") {
|
|
15244
15123
|
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
|
15245
15124
|
}
|
|
15246
15125
|
const { endpoint } = input;
|
|
15247
15126
|
if (endpoint === void 0) {
|
|
15248
15127
|
input.endpoint = async () => {
|
|
15249
|
-
return toEndpointV1(
|
|
15250
|
-
input.
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
Endpoint: void 0
|
|
15256
|
-
},
|
|
15257
|
-
{ logger: input.logger }
|
|
15258
|
-
)
|
|
15259
|
-
);
|
|
15128
|
+
return toEndpointV1(input.endpointProvider({
|
|
15129
|
+
Region: typeof input.region === "function" ? await input.region() : input.region,
|
|
15130
|
+
UseDualStack: typeof input.useDualstackEndpoint === "function" ? await input.useDualstackEndpoint() : input.useDualstackEndpoint,
|
|
15131
|
+
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
|
15132
|
+
Endpoint: void 0
|
|
15133
|
+
}, { logger: input.logger }));
|
|
15260
15134
|
};
|
|
15261
15135
|
}
|
|
15262
15136
|
return input;
|
|
15263
|
-
}
|
|
15264
|
-
var toEndpointV1 =
|
|
15137
|
+
};
|
|
15138
|
+
var toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
|
15139
|
+
Object.defineProperty(exports2, "EndpointError", {
|
|
15140
|
+
enumerable: true,
|
|
15141
|
+
get: function() {
|
|
15142
|
+
return utilEndpoints.EndpointError;
|
|
15143
|
+
}
|
|
15144
|
+
});
|
|
15145
|
+
Object.defineProperty(exports2, "isIpAddress", {
|
|
15146
|
+
enumerable: true,
|
|
15147
|
+
get: function() {
|
|
15148
|
+
return utilEndpoints.isIpAddress;
|
|
15149
|
+
}
|
|
15150
|
+
});
|
|
15151
|
+
Object.defineProperty(exports2, "resolveEndpoint", {
|
|
15152
|
+
enumerable: true,
|
|
15153
|
+
get: function() {
|
|
15154
|
+
return utilEndpoints.resolveEndpoint;
|
|
15155
|
+
}
|
|
15156
|
+
});
|
|
15157
|
+
exports2.awsEndpointFunctions = awsEndpointFunctions3;
|
|
15158
|
+
exports2.getUserAgentPrefix = getUserAgentPrefix;
|
|
15159
|
+
exports2.partition = partition;
|
|
15160
|
+
exports2.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
|
15161
|
+
exports2.setPartitionInfo = setPartitionInfo;
|
|
15162
|
+
exports2.toEndpointV1 = toEndpointV1;
|
|
15163
|
+
exports2.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
|
15265
15164
|
}
|
|
15266
15165
|
});
|
|
15267
15166
|
|
|
@@ -17478,7 +17377,7 @@ var init_AwsSmithyRpcV2CborProtocol = __esm({
|
|
|
17478
17377
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata);
|
|
17479
17378
|
const ns = NormalizedSchema.of(errorSchema);
|
|
17480
17379
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
17481
|
-
const ErrorCtor = TypeRegistry.for(errorSchema
|
|
17380
|
+
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
17482
17381
|
const exception = new ErrorCtor(message);
|
|
17483
17382
|
const output = {};
|
|
17484
17383
|
for (const [name14, member2] of ns.structIterator()) {
|
|
@@ -18901,7 +18800,7 @@ var init_AwsJsonRpcProtocol = __esm({
|
|
|
18901
18800
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
18902
18801
|
const ns = NormalizedSchema.of(errorSchema);
|
|
18903
18802
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
18904
|
-
const ErrorCtor = TypeRegistry.for(errorSchema
|
|
18803
|
+
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
18905
18804
|
const exception = new ErrorCtor(message);
|
|
18906
18805
|
const output = {};
|
|
18907
18806
|
for (const [name14, member2] of ns.structIterator()) {
|
|
@@ -19031,7 +18930,7 @@ var init_AwsRestJsonProtocol = __esm({
|
|
|
19031
18930
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
19032
18931
|
const ns = NormalizedSchema.of(errorSchema);
|
|
19033
18932
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
19034
|
-
const ErrorCtor = TypeRegistry.for(errorSchema
|
|
18933
|
+
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
19035
18934
|
const exception = new ErrorCtor(message);
|
|
19036
18935
|
await this.deserializeHttpMessage(errorSchema, context3, response, dataObject);
|
|
19037
18936
|
const output = {};
|
|
@@ -19864,7 +19763,7 @@ var require_xml_parser = __commonJS({
|
|
|
19864
19763
|
"node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js"(exports2) {
|
|
19865
19764
|
"use strict";
|
|
19866
19765
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19867
|
-
exports2.parseXML =
|
|
19766
|
+
exports2.parseXML = parseXML3;
|
|
19868
19767
|
var fast_xml_parser_1 = require_fxp();
|
|
19869
19768
|
var parser = new fast_xml_parser_1.XMLParser({
|
|
19870
19769
|
attributeNamePrefix: "",
|
|
@@ -19877,7 +19776,7 @@ var require_xml_parser = __commonJS({
|
|
|
19877
19776
|
});
|
|
19878
19777
|
parser.addEntity("#xD", "\r");
|
|
19879
19778
|
parser.addEntity("#10", "\n");
|
|
19880
|
-
function
|
|
19779
|
+
function parseXML3(xmlString) {
|
|
19881
19780
|
return parser.parse(xmlString, true);
|
|
19882
19781
|
}
|
|
19883
19782
|
}
|
|
@@ -19885,60 +19784,27 @@ var require_xml_parser = __commonJS({
|
|
|
19885
19784
|
|
|
19886
19785
|
// node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
|
|
19887
19786
|
var require_dist_cjs28 = __commonJS({
|
|
19888
|
-
"node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2
|
|
19787
|
+
"node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2) {
|
|
19889
19788
|
"use strict";
|
|
19890
|
-
var
|
|
19891
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
19892
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
19893
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
19894
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
19895
|
-
var __export2 = (target, all) => {
|
|
19896
|
-
for (var name14 in all)
|
|
19897
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
19898
|
-
};
|
|
19899
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
19900
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
19901
|
-
for (let key of __getOwnPropNames2(from))
|
|
19902
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
19903
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
19904
|
-
}
|
|
19905
|
-
return to;
|
|
19906
|
-
};
|
|
19907
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
19908
|
-
var index_exports2 = {};
|
|
19909
|
-
__export2(index_exports2, {
|
|
19910
|
-
XmlNode: () => XmlNode2,
|
|
19911
|
-
XmlText: () => XmlText2,
|
|
19912
|
-
parseXML: () => import_xml_parser.parseXML
|
|
19913
|
-
});
|
|
19914
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
19789
|
+
var xmlParser = require_xml_parser();
|
|
19915
19790
|
function escapeAttribute(value) {
|
|
19916
19791
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
19917
19792
|
}
|
|
19918
|
-
__name(escapeAttribute, "escapeAttribute");
|
|
19919
19793
|
function escapeElement(value) {
|
|
19920
19794
|
return value.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/\r/g, "
").replace(/\n/g, "
").replace(/\u0085/g, "…").replace(/\u2028/, "
");
|
|
19921
19795
|
}
|
|
19922
|
-
__name(escapeElement, "escapeElement");
|
|
19923
19796
|
var XmlText2 = class {
|
|
19797
|
+
value;
|
|
19924
19798
|
constructor(value) {
|
|
19925
19799
|
this.value = value;
|
|
19926
19800
|
}
|
|
19927
|
-
static {
|
|
19928
|
-
__name(this, "XmlText");
|
|
19929
|
-
}
|
|
19930
19801
|
toString() {
|
|
19931
19802
|
return escapeElement("" + this.value);
|
|
19932
19803
|
}
|
|
19933
19804
|
};
|
|
19934
19805
|
var XmlNode2 = class _XmlNode {
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
this.children = children;
|
|
19938
|
-
}
|
|
19939
|
-
static {
|
|
19940
|
-
__name(this, "XmlNode");
|
|
19941
|
-
}
|
|
19806
|
+
name;
|
|
19807
|
+
children;
|
|
19942
19808
|
attributes = {};
|
|
19943
19809
|
static of(name14, childText, withName) {
|
|
19944
19810
|
const node = new _XmlNode(name14);
|
|
@@ -19950,6 +19816,10 @@ var require_dist_cjs28 = __commonJS({
|
|
|
19950
19816
|
}
|
|
19951
19817
|
return node;
|
|
19952
19818
|
}
|
|
19819
|
+
constructor(name14, children = []) {
|
|
19820
|
+
this.name = name14;
|
|
19821
|
+
this.children = children;
|
|
19822
|
+
}
|
|
19953
19823
|
withName(name14) {
|
|
19954
19824
|
this.name = name14;
|
|
19955
19825
|
return this;
|
|
@@ -19966,47 +19836,26 @@ var require_dist_cjs28 = __commonJS({
|
|
|
19966
19836
|
delete this.attributes[name14];
|
|
19967
19837
|
return this;
|
|
19968
19838
|
}
|
|
19969
|
-
/**
|
|
19970
|
-
* @internal
|
|
19971
|
-
* Alias of {@link XmlNode#withName(string)} for codegen brevity.
|
|
19972
|
-
*/
|
|
19973
19839
|
n(name14) {
|
|
19974
19840
|
this.name = name14;
|
|
19975
19841
|
return this;
|
|
19976
19842
|
}
|
|
19977
|
-
/**
|
|
19978
|
-
* @internal
|
|
19979
|
-
* Alias of {@link XmlNode#addChildNode(string)} for codegen brevity.
|
|
19980
|
-
*/
|
|
19981
19843
|
c(child) {
|
|
19982
19844
|
this.children.push(child);
|
|
19983
19845
|
return this;
|
|
19984
19846
|
}
|
|
19985
|
-
/**
|
|
19986
|
-
* @internal
|
|
19987
|
-
* Checked version of {@link XmlNode#addAttribute(string)} for codegen brevity.
|
|
19988
|
-
*/
|
|
19989
19847
|
a(name14, value) {
|
|
19990
19848
|
if (value != null) {
|
|
19991
19849
|
this.attributes[name14] = value;
|
|
19992
19850
|
}
|
|
19993
19851
|
return this;
|
|
19994
19852
|
}
|
|
19995
|
-
/**
|
|
19996
|
-
* Create a child node.
|
|
19997
|
-
* Used in serialization of string fields.
|
|
19998
|
-
* @internal
|
|
19999
|
-
*/
|
|
20000
19853
|
cc(input, field, withName = field) {
|
|
20001
19854
|
if (input[field] != null) {
|
|
20002
19855
|
const node = _XmlNode.of(field, input[field]).withName(withName);
|
|
20003
19856
|
this.c(node);
|
|
20004
19857
|
}
|
|
20005
19858
|
}
|
|
20006
|
-
/**
|
|
20007
|
-
* Creates list child nodes.
|
|
20008
|
-
* @internal
|
|
20009
|
-
*/
|
|
20010
19859
|
l(input, listName, memberName, valueProvider) {
|
|
20011
19860
|
if (input[listName] != null) {
|
|
20012
19861
|
const nodes = valueProvider();
|
|
@@ -20016,10 +19865,6 @@ var require_dist_cjs28 = __commonJS({
|
|
|
20016
19865
|
});
|
|
20017
19866
|
}
|
|
20018
19867
|
}
|
|
20019
|
-
/**
|
|
20020
|
-
* Creates list child nodes with container.
|
|
20021
|
-
* @internal
|
|
20022
|
-
*/
|
|
20023
19868
|
lc(input, listName, memberName, valueProvider) {
|
|
20024
19869
|
if (input[listName] != null) {
|
|
20025
19870
|
const nodes = valueProvider();
|
|
@@ -20043,7 +19888,14 @@ var require_dist_cjs28 = __commonJS({
|
|
|
20043
19888
|
return xmlText += !hasChildren ? "/>" : `>${this.children.map((c3) => c3.toString()).join("")}</${this.name}>`;
|
|
20044
19889
|
}
|
|
20045
19890
|
};
|
|
20046
|
-
|
|
19891
|
+
Object.defineProperty(exports2, "parseXML", {
|
|
19892
|
+
enumerable: true,
|
|
19893
|
+
get: function() {
|
|
19894
|
+
return xmlParser.parseXML;
|
|
19895
|
+
}
|
|
19896
|
+
});
|
|
19897
|
+
exports2.XmlNode = XmlNode2;
|
|
19898
|
+
exports2.XmlText = XmlText2;
|
|
20047
19899
|
}
|
|
20048
19900
|
});
|
|
20049
19901
|
|
|
@@ -20444,7 +20296,7 @@ var init_AwsQueryProtocol = __esm({
|
|
|
20444
20296
|
};
|
|
20445
20297
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName));
|
|
20446
20298
|
const ns = NormalizedSchema.of(errorSchema);
|
|
20447
|
-
const ErrorCtor = TypeRegistry.for(errorSchema
|
|
20299
|
+
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
20448
20300
|
const exception = new ErrorCtor(message);
|
|
20449
20301
|
const output = {
|
|
20450
20302
|
Error: errorData.Error
|
|
@@ -20907,7 +20759,7 @@ var init_AwsRestXmlProtocol = __esm({
|
|
|
20907
20759
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
20908
20760
|
const ns = NormalizedSchema.of(errorSchema);
|
|
20909
20761
|
const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
20910
|
-
const ErrorCtor = TypeRegistry.for(errorSchema
|
|
20762
|
+
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
20911
20763
|
const exception = new ErrorCtor(message);
|
|
20912
20764
|
await this.deserializeHttpMessage(errorSchema, context3, response, dataObject);
|
|
20913
20765
|
const output = {};
|
|
@@ -22148,32 +22000,9 @@ var require_dist_cjs33 = __commonJS({
|
|
|
22148
22000
|
|
|
22149
22001
|
// node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
|
|
22150
22002
|
var require_dist_cjs34 = __commonJS({
|
|
22151
|
-
"node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports2
|
|
22003
|
+
"node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports2) {
|
|
22152
22004
|
"use strict";
|
|
22153
|
-
var
|
|
22154
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
22155
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
22156
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
22157
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
22158
|
-
var __export2 = (target, all) => {
|
|
22159
|
-
for (var name14 in all)
|
|
22160
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
22161
|
-
};
|
|
22162
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
22163
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22164
|
-
for (let key of __getOwnPropNames2(from))
|
|
22165
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
22166
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
22167
|
-
}
|
|
22168
|
-
return to;
|
|
22169
|
-
};
|
|
22170
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
22171
|
-
var index_exports2 = {};
|
|
22172
|
-
__export2(index_exports2, {
|
|
22173
|
-
formatUrl: () => formatUrl
|
|
22174
|
-
});
|
|
22175
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
22176
|
-
var import_querystring_builder = require_dist_cjs14();
|
|
22005
|
+
var querystringBuilder = require_dist_cjs14();
|
|
22177
22006
|
function formatUrl(request) {
|
|
22178
22007
|
const { port, query: query2 } = request;
|
|
22179
22008
|
let { protocol, path: path7, hostname } = request;
|
|
@@ -22186,7 +22015,7 @@ var require_dist_cjs34 = __commonJS({
|
|
|
22186
22015
|
if (path7 && path7.charAt(0) !== "/") {
|
|
22187
22016
|
path7 = `/${path7}`;
|
|
22188
22017
|
}
|
|
22189
|
-
let queryString = query2 ?
|
|
22018
|
+
let queryString = query2 ? querystringBuilder.buildQueryString(query2) : "";
|
|
22190
22019
|
if (queryString && queryString[0] !== "?") {
|
|
22191
22020
|
queryString = `?${queryString}`;
|
|
22192
22021
|
}
|
|
@@ -22202,7 +22031,7 @@ var require_dist_cjs34 = __commonJS({
|
|
|
22202
22031
|
}
|
|
22203
22032
|
return `${protocol}//${auth}${hostname}${path7}${queryString}${fragment}`;
|
|
22204
22033
|
}
|
|
22205
|
-
|
|
22034
|
+
exports2.formatUrl = formatUrl;
|
|
22206
22035
|
}
|
|
22207
22036
|
});
|
|
22208
22037
|
|
|
@@ -24344,7 +24173,7 @@ var require_package = __commonJS({
|
|
|
24344
24173
|
module2.exports = {
|
|
24345
24174
|
name: "@aws-sdk/client-bedrock-runtime",
|
|
24346
24175
|
description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
24347
|
-
version: "3.
|
|
24176
|
+
version: "3.910.0",
|
|
24348
24177
|
scripts: {
|
|
24349
24178
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
24350
24179
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -24363,49 +24192,49 @@ var require_package = __commonJS({
|
|
|
24363
24192
|
dependencies: {
|
|
24364
24193
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
24365
24194
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24366
|
-
"@aws-sdk/core": "3.
|
|
24367
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24368
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
24369
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
24370
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
24371
|
-
"@aws-sdk/middleware-logger": "3.
|
|
24372
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
24373
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
24374
|
-
"@aws-sdk/middleware-websocket": "3.
|
|
24375
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
24376
|
-
"@aws-sdk/token-providers": "3.
|
|
24377
|
-
"@aws-sdk/types": "3.
|
|
24378
|
-
"@aws-sdk/util-endpoints": "3.
|
|
24379
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
24380
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
24381
|
-
"@smithy/config-resolver": "^4.3.
|
|
24382
|
-
"@smithy/core": "^3.
|
|
24383
|
-
"@smithy/eventstream-serde-browser": "^4.2.
|
|
24384
|
-
"@smithy/eventstream-serde-config-resolver": "^4.3.
|
|
24385
|
-
"@smithy/eventstream-serde-node": "^4.2.
|
|
24386
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
24387
|
-
"@smithy/hash-node": "^4.2.
|
|
24388
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
24389
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
24390
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
24391
|
-
"@smithy/middleware-retry": "^4.4.
|
|
24392
|
-
"@smithy/middleware-serde": "^4.2.
|
|
24393
|
-
"@smithy/middleware-stack": "^4.2.
|
|
24394
|
-
"@smithy/node-config-provider": "^4.3.
|
|
24395
|
-
"@smithy/node-http-handler": "^4.
|
|
24396
|
-
"@smithy/protocol-http": "^5.3.
|
|
24397
|
-
"@smithy/smithy-client": "^4.
|
|
24398
|
-
"@smithy/types": "^4.
|
|
24399
|
-
"@smithy/url-parser": "^4.2.
|
|
24195
|
+
"@aws-sdk/core": "3.910.0",
|
|
24196
|
+
"@aws-sdk/credential-provider-node": "3.910.0",
|
|
24197
|
+
"@aws-sdk/eventstream-handler-node": "3.910.0",
|
|
24198
|
+
"@aws-sdk/middleware-eventstream": "3.910.0",
|
|
24199
|
+
"@aws-sdk/middleware-host-header": "3.910.0",
|
|
24200
|
+
"@aws-sdk/middleware-logger": "3.910.0",
|
|
24201
|
+
"@aws-sdk/middleware-recursion-detection": "3.910.0",
|
|
24202
|
+
"@aws-sdk/middleware-user-agent": "3.910.0",
|
|
24203
|
+
"@aws-sdk/middleware-websocket": "3.910.0",
|
|
24204
|
+
"@aws-sdk/region-config-resolver": "3.910.0",
|
|
24205
|
+
"@aws-sdk/token-providers": "3.910.0",
|
|
24206
|
+
"@aws-sdk/types": "3.910.0",
|
|
24207
|
+
"@aws-sdk/util-endpoints": "3.910.0",
|
|
24208
|
+
"@aws-sdk/util-user-agent-browser": "3.910.0",
|
|
24209
|
+
"@aws-sdk/util-user-agent-node": "3.910.0",
|
|
24210
|
+
"@smithy/config-resolver": "^4.3.2",
|
|
24211
|
+
"@smithy/core": "^3.16.1",
|
|
24212
|
+
"@smithy/eventstream-serde-browser": "^4.2.2",
|
|
24213
|
+
"@smithy/eventstream-serde-config-resolver": "^4.3.2",
|
|
24214
|
+
"@smithy/eventstream-serde-node": "^4.2.2",
|
|
24215
|
+
"@smithy/fetch-http-handler": "^5.3.3",
|
|
24216
|
+
"@smithy/hash-node": "^4.2.2",
|
|
24217
|
+
"@smithy/invalid-dependency": "^4.2.2",
|
|
24218
|
+
"@smithy/middleware-content-length": "^4.2.2",
|
|
24219
|
+
"@smithy/middleware-endpoint": "^4.3.3",
|
|
24220
|
+
"@smithy/middleware-retry": "^4.4.3",
|
|
24221
|
+
"@smithy/middleware-serde": "^4.2.2",
|
|
24222
|
+
"@smithy/middleware-stack": "^4.2.2",
|
|
24223
|
+
"@smithy/node-config-provider": "^4.3.2",
|
|
24224
|
+
"@smithy/node-http-handler": "^4.4.1",
|
|
24225
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
24226
|
+
"@smithy/smithy-client": "^4.8.1",
|
|
24227
|
+
"@smithy/types": "^4.7.1",
|
|
24228
|
+
"@smithy/url-parser": "^4.2.2",
|
|
24400
24229
|
"@smithy/util-base64": "^4.3.0",
|
|
24401
24230
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
24402
24231
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
24403
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
24404
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
24405
|
-
"@smithy/util-endpoints": "^3.2.
|
|
24406
|
-
"@smithy/util-middleware": "^4.2.
|
|
24407
|
-
"@smithy/util-retry": "^4.2.
|
|
24408
|
-
"@smithy/util-stream": "^4.5.
|
|
24232
|
+
"@smithy/util-defaults-mode-browser": "^4.3.2",
|
|
24233
|
+
"@smithy/util-defaults-mode-node": "^4.2.3",
|
|
24234
|
+
"@smithy/util-endpoints": "^3.2.2",
|
|
24235
|
+
"@smithy/util-middleware": "^4.2.2",
|
|
24236
|
+
"@smithy/util-retry": "^4.2.2",
|
|
24237
|
+
"@smithy/util-stream": "^4.5.2",
|
|
24409
24238
|
"@smithy/util-utf8": "^4.2.0",
|
|
24410
24239
|
"@smithy/uuid": "^1.1.0",
|
|
24411
24240
|
tslib: "^2.6.2"
|
|
@@ -25125,7 +24954,7 @@ var init_package = __esm({
|
|
|
25125
24954
|
"node_modules/@aws-sdk/nested-clients/package.json"() {
|
|
25126
24955
|
package_default = {
|
|
25127
24956
|
name: "@aws-sdk/nested-clients",
|
|
25128
|
-
version: "3.
|
|
24957
|
+
version: "3.910.0",
|
|
25129
24958
|
description: "Nested clients for AWS SDK packages.",
|
|
25130
24959
|
main: "./dist-cjs/index.js",
|
|
25131
24960
|
module: "./dist-es/index.js",
|
|
@@ -25154,40 +24983,40 @@ var init_package = __esm({
|
|
|
25154
24983
|
dependencies: {
|
|
25155
24984
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25156
24985
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
25157
|
-
"@aws-sdk/core": "3.
|
|
25158
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
25159
|
-
"@aws-sdk/middleware-logger": "3.
|
|
25160
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
25161
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
25162
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
25163
|
-
"@aws-sdk/types": "3.
|
|
25164
|
-
"@aws-sdk/util-endpoints": "3.
|
|
25165
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
25166
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
25167
|
-
"@smithy/config-resolver": "^4.3.
|
|
25168
|
-
"@smithy/core": "^3.
|
|
25169
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
25170
|
-
"@smithy/hash-node": "^4.2.
|
|
25171
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
25172
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
25173
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
25174
|
-
"@smithy/middleware-retry": "^4.4.
|
|
25175
|
-
"@smithy/middleware-serde": "^4.2.
|
|
25176
|
-
"@smithy/middleware-stack": "^4.2.
|
|
25177
|
-
"@smithy/node-config-provider": "^4.3.
|
|
25178
|
-
"@smithy/node-http-handler": "^4.
|
|
25179
|
-
"@smithy/protocol-http": "^5.3.
|
|
25180
|
-
"@smithy/smithy-client": "^4.
|
|
25181
|
-
"@smithy/types": "^4.
|
|
25182
|
-
"@smithy/url-parser": "^4.2.
|
|
24986
|
+
"@aws-sdk/core": "3.910.0",
|
|
24987
|
+
"@aws-sdk/middleware-host-header": "3.910.0",
|
|
24988
|
+
"@aws-sdk/middleware-logger": "3.910.0",
|
|
24989
|
+
"@aws-sdk/middleware-recursion-detection": "3.910.0",
|
|
24990
|
+
"@aws-sdk/middleware-user-agent": "3.910.0",
|
|
24991
|
+
"@aws-sdk/region-config-resolver": "3.910.0",
|
|
24992
|
+
"@aws-sdk/types": "3.910.0",
|
|
24993
|
+
"@aws-sdk/util-endpoints": "3.910.0",
|
|
24994
|
+
"@aws-sdk/util-user-agent-browser": "3.910.0",
|
|
24995
|
+
"@aws-sdk/util-user-agent-node": "3.910.0",
|
|
24996
|
+
"@smithy/config-resolver": "^4.3.2",
|
|
24997
|
+
"@smithy/core": "^3.16.1",
|
|
24998
|
+
"@smithy/fetch-http-handler": "^5.3.3",
|
|
24999
|
+
"@smithy/hash-node": "^4.2.2",
|
|
25000
|
+
"@smithy/invalid-dependency": "^4.2.2",
|
|
25001
|
+
"@smithy/middleware-content-length": "^4.2.2",
|
|
25002
|
+
"@smithy/middleware-endpoint": "^4.3.3",
|
|
25003
|
+
"@smithy/middleware-retry": "^4.4.3",
|
|
25004
|
+
"@smithy/middleware-serde": "^4.2.2",
|
|
25005
|
+
"@smithy/middleware-stack": "^4.2.2",
|
|
25006
|
+
"@smithy/node-config-provider": "^4.3.2",
|
|
25007
|
+
"@smithy/node-http-handler": "^4.4.1",
|
|
25008
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
25009
|
+
"@smithy/smithy-client": "^4.8.1",
|
|
25010
|
+
"@smithy/types": "^4.7.1",
|
|
25011
|
+
"@smithy/url-parser": "^4.2.2",
|
|
25183
25012
|
"@smithy/util-base64": "^4.3.0",
|
|
25184
25013
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
25185
25014
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
25186
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
25187
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
25188
|
-
"@smithy/util-endpoints": "^3.2.
|
|
25189
|
-
"@smithy/util-middleware": "^4.2.
|
|
25190
|
-
"@smithy/util-retry": "^4.2.
|
|
25015
|
+
"@smithy/util-defaults-mode-browser": "^4.3.2",
|
|
25016
|
+
"@smithy/util-defaults-mode-node": "^4.2.3",
|
|
25017
|
+
"@smithy/util-endpoints": "^3.2.2",
|
|
25018
|
+
"@smithy/util-middleware": "^4.2.2",
|
|
25019
|
+
"@smithy/util-retry": "^4.2.2",
|
|
25191
25020
|
"@smithy/util-utf8": "^4.2.0",
|
|
25192
25021
|
tslib: "^2.6.2"
|
|
25193
25022
|
},
|
|
@@ -25598,38 +25427,9 @@ var init_runtimeConfig = __esm({
|
|
|
25598
25427
|
|
|
25599
25428
|
// node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
|
|
25600
25429
|
var require_dist_cjs55 = __commonJS({
|
|
25601
|
-
"node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2
|
|
25430
|
+
"node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2) {
|
|
25602
25431
|
"use strict";
|
|
25603
|
-
var
|
|
25604
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
25605
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
25606
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
25607
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
25608
|
-
var __export2 = (target, all) => {
|
|
25609
|
-
for (var name14 in all)
|
|
25610
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
25611
|
-
};
|
|
25612
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
25613
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
25614
|
-
for (let key of __getOwnPropNames2(from))
|
|
25615
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
25616
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
25617
|
-
}
|
|
25618
|
-
return to;
|
|
25619
|
-
};
|
|
25620
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
25621
|
-
var index_exports2 = {};
|
|
25622
|
-
__export2(index_exports2, {
|
|
25623
|
-
NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS3,
|
|
25624
|
-
NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS3,
|
|
25625
|
-
REGION_ENV_NAME: () => REGION_ENV_NAME,
|
|
25626
|
-
REGION_INI_NAME: () => REGION_INI_NAME,
|
|
25627
|
-
getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration3,
|
|
25628
|
-
resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration3,
|
|
25629
|
-
resolveRegionConfig: () => resolveRegionConfig3
|
|
25630
|
-
});
|
|
25631
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
25632
|
-
var getAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
25432
|
+
var getAwsRegionExtensionConfiguration3 = (runtimeConfig) => {
|
|
25633
25433
|
return {
|
|
25634
25434
|
setRegion(region) {
|
|
25635
25435
|
runtimeConfig.region = region;
|
|
@@ -25638,48 +25438,55 @@ var require_dist_cjs55 = __commonJS({
|
|
|
25638
25438
|
return runtimeConfig.region;
|
|
25639
25439
|
}
|
|
25640
25440
|
};
|
|
25641
|
-
}
|
|
25642
|
-
var resolveAwsRegionExtensionConfiguration3 =
|
|
25441
|
+
};
|
|
25442
|
+
var resolveAwsRegionExtensionConfiguration3 = (awsRegionExtensionConfiguration) => {
|
|
25643
25443
|
return {
|
|
25644
25444
|
region: awsRegionExtensionConfiguration.region()
|
|
25645
25445
|
};
|
|
25646
|
-
}
|
|
25446
|
+
};
|
|
25647
25447
|
var REGION_ENV_NAME = "AWS_REGION";
|
|
25648
25448
|
var REGION_INI_NAME = "region";
|
|
25649
25449
|
var NODE_REGION_CONFIG_OPTIONS3 = {
|
|
25650
|
-
environmentVariableSelector:
|
|
25651
|
-
configFileSelector:
|
|
25652
|
-
default:
|
|
25450
|
+
environmentVariableSelector: (env) => env[REGION_ENV_NAME],
|
|
25451
|
+
configFileSelector: (profile) => profile[REGION_INI_NAME],
|
|
25452
|
+
default: () => {
|
|
25653
25453
|
throw new Error("Region is missing");
|
|
25654
|
-
}
|
|
25454
|
+
}
|
|
25655
25455
|
};
|
|
25656
25456
|
var NODE_REGION_CONFIG_FILE_OPTIONS3 = {
|
|
25657
25457
|
preferredFile: "credentials"
|
|
25658
25458
|
};
|
|
25659
|
-
var isFipsRegion =
|
|
25660
|
-
var getRealRegion =
|
|
25661
|
-
var resolveRegionConfig3 =
|
|
25459
|
+
var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
|
|
25460
|
+
var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
|
|
25461
|
+
var resolveRegionConfig3 = (input) => {
|
|
25662
25462
|
const { region, useFipsEndpoint } = input;
|
|
25663
25463
|
if (!region) {
|
|
25664
25464
|
throw new Error("Region is missing");
|
|
25665
25465
|
}
|
|
25666
25466
|
return Object.assign(input, {
|
|
25667
|
-
region:
|
|
25467
|
+
region: async () => {
|
|
25668
25468
|
if (typeof region === "string") {
|
|
25669
25469
|
return getRealRegion(region);
|
|
25670
25470
|
}
|
|
25671
25471
|
const providedRegion = await region();
|
|
25672
25472
|
return getRealRegion(providedRegion);
|
|
25673
|
-
},
|
|
25674
|
-
useFipsEndpoint:
|
|
25473
|
+
},
|
|
25474
|
+
useFipsEndpoint: async () => {
|
|
25675
25475
|
const providedRegion = typeof region === "string" ? region : await region();
|
|
25676
25476
|
if (isFipsRegion(providedRegion)) {
|
|
25677
25477
|
return true;
|
|
25678
25478
|
}
|
|
25679
25479
|
return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
|
|
25680
|
-
}
|
|
25480
|
+
}
|
|
25681
25481
|
});
|
|
25682
|
-
}
|
|
25482
|
+
};
|
|
25483
|
+
exports2.NODE_REGION_CONFIG_FILE_OPTIONS = NODE_REGION_CONFIG_FILE_OPTIONS3;
|
|
25484
|
+
exports2.NODE_REGION_CONFIG_OPTIONS = NODE_REGION_CONFIG_OPTIONS3;
|
|
25485
|
+
exports2.REGION_ENV_NAME = REGION_ENV_NAME;
|
|
25486
|
+
exports2.REGION_INI_NAME = REGION_INI_NAME;
|
|
25487
|
+
exports2.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration3;
|
|
25488
|
+
exports2.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration3;
|
|
25489
|
+
exports2.resolveRegionConfig = resolveRegionConfig3;
|
|
25683
25490
|
}
|
|
25684
25491
|
});
|
|
25685
25492
|
|
|
@@ -26600,7 +26407,7 @@ var require_package2 = __commonJS({
|
|
|
26600
26407
|
module2.exports = {
|
|
26601
26408
|
name: "@aws-sdk/client-sso",
|
|
26602
26409
|
description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
26603
|
-
version: "3.
|
|
26410
|
+
version: "3.910.0",
|
|
26604
26411
|
scripts: {
|
|
26605
26412
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
26606
26413
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
@@ -26619,40 +26426,40 @@ var require_package2 = __commonJS({
|
|
|
26619
26426
|
dependencies: {
|
|
26620
26427
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
26621
26428
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26622
|
-
"@aws-sdk/core": "3.
|
|
26623
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26624
|
-
"@aws-sdk/middleware-logger": "3.
|
|
26625
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
26626
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
26627
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
26628
|
-
"@aws-sdk/types": "3.
|
|
26629
|
-
"@aws-sdk/util-endpoints": "3.
|
|
26630
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
26631
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
26632
|
-
"@smithy/config-resolver": "^4.3.
|
|
26633
|
-
"@smithy/core": "^3.
|
|
26634
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
26635
|
-
"@smithy/hash-node": "^4.2.
|
|
26636
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
26637
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
26638
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
26639
|
-
"@smithy/middleware-retry": "^4.4.
|
|
26640
|
-
"@smithy/middleware-serde": "^4.2.
|
|
26641
|
-
"@smithy/middleware-stack": "^4.2.
|
|
26642
|
-
"@smithy/node-config-provider": "^4.3.
|
|
26643
|
-
"@smithy/node-http-handler": "^4.
|
|
26644
|
-
"@smithy/protocol-http": "^5.3.
|
|
26645
|
-
"@smithy/smithy-client": "^4.
|
|
26646
|
-
"@smithy/types": "^4.
|
|
26647
|
-
"@smithy/url-parser": "^4.2.
|
|
26429
|
+
"@aws-sdk/core": "3.910.0",
|
|
26430
|
+
"@aws-sdk/middleware-host-header": "3.910.0",
|
|
26431
|
+
"@aws-sdk/middleware-logger": "3.910.0",
|
|
26432
|
+
"@aws-sdk/middleware-recursion-detection": "3.910.0",
|
|
26433
|
+
"@aws-sdk/middleware-user-agent": "3.910.0",
|
|
26434
|
+
"@aws-sdk/region-config-resolver": "3.910.0",
|
|
26435
|
+
"@aws-sdk/types": "3.910.0",
|
|
26436
|
+
"@aws-sdk/util-endpoints": "3.910.0",
|
|
26437
|
+
"@aws-sdk/util-user-agent-browser": "3.910.0",
|
|
26438
|
+
"@aws-sdk/util-user-agent-node": "3.910.0",
|
|
26439
|
+
"@smithy/config-resolver": "^4.3.2",
|
|
26440
|
+
"@smithy/core": "^3.16.1",
|
|
26441
|
+
"@smithy/fetch-http-handler": "^5.3.3",
|
|
26442
|
+
"@smithy/hash-node": "^4.2.2",
|
|
26443
|
+
"@smithy/invalid-dependency": "^4.2.2",
|
|
26444
|
+
"@smithy/middleware-content-length": "^4.2.2",
|
|
26445
|
+
"@smithy/middleware-endpoint": "^4.3.3",
|
|
26446
|
+
"@smithy/middleware-retry": "^4.4.3",
|
|
26447
|
+
"@smithy/middleware-serde": "^4.2.2",
|
|
26448
|
+
"@smithy/middleware-stack": "^4.2.2",
|
|
26449
|
+
"@smithy/node-config-provider": "^4.3.2",
|
|
26450
|
+
"@smithy/node-http-handler": "^4.4.1",
|
|
26451
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
26452
|
+
"@smithy/smithy-client": "^4.8.1",
|
|
26453
|
+
"@smithy/types": "^4.7.1",
|
|
26454
|
+
"@smithy/url-parser": "^4.2.2",
|
|
26648
26455
|
"@smithy/util-base64": "^4.3.0",
|
|
26649
26456
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
26650
26457
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
26651
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
26652
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
26653
|
-
"@smithy/util-endpoints": "^3.2.
|
|
26654
|
-
"@smithy/util-middleware": "^4.2.
|
|
26655
|
-
"@smithy/util-retry": "^4.2.
|
|
26458
|
+
"@smithy/util-defaults-mode-browser": "^4.3.2",
|
|
26459
|
+
"@smithy/util-defaults-mode-node": "^4.2.3",
|
|
26460
|
+
"@smithy/util-endpoints": "^3.2.2",
|
|
26461
|
+
"@smithy/util-middleware": "^4.2.2",
|
|
26462
|
+
"@smithy/util-retry": "^4.2.2",
|
|
26656
26463
|
"@smithy/util-utf8": "^4.2.0",
|
|
26657
26464
|
tslib: "^2.6.2"
|
|
26658
26465
|
},
|
|
@@ -29262,37 +29069,11 @@ var require_dist_cjs62 = __commonJS({
|
|
|
29262
29069
|
|
|
29263
29070
|
// node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js
|
|
29264
29071
|
var require_dist_cjs63 = __commonJS({
|
|
29265
|
-
"node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js"(exports2
|
|
29072
|
+
"node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js"(exports2) {
|
|
29266
29073
|
"use strict";
|
|
29267
|
-
var
|
|
29268
|
-
var
|
|
29269
|
-
var
|
|
29270
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
29271
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
29272
|
-
var __export2 = (target, all) => {
|
|
29273
|
-
for (var name14 in all)
|
|
29274
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
29275
|
-
};
|
|
29276
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
29277
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
29278
|
-
for (let key of __getOwnPropNames2(from))
|
|
29279
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
29280
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
29281
|
-
}
|
|
29282
|
-
return to;
|
|
29283
|
-
};
|
|
29284
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
29285
|
-
var index_exports2 = {};
|
|
29286
|
-
__export2(index_exports2, {
|
|
29287
|
-
eventStreamPayloadHandlerProvider: () => eventStreamPayloadHandlerProvider
|
|
29288
|
-
});
|
|
29289
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
29290
|
-
var import_eventstream_codec = require_dist_cjs33();
|
|
29291
|
-
var import_stream = require("stream");
|
|
29292
|
-
var EventSigningStream = class extends import_stream.Transform {
|
|
29293
|
-
static {
|
|
29294
|
-
__name(this, "EventSigningStream");
|
|
29295
|
-
}
|
|
29074
|
+
var eventstreamCodec = require_dist_cjs33();
|
|
29075
|
+
var stream2 = require("stream");
|
|
29076
|
+
var EventSigningStream = class extends stream2.Transform {
|
|
29296
29077
|
priorSignature;
|
|
29297
29078
|
messageSigner;
|
|
29298
29079
|
eventStreamCodec;
|
|
@@ -29315,18 +29096,15 @@ var require_dist_cjs63 = __commonJS({
|
|
|
29315
29096
|
const dateHeader = {
|
|
29316
29097
|
":date": { type: "timestamp", value: now }
|
|
29317
29098
|
};
|
|
29318
|
-
const signedMessage = await this.messageSigner.sign(
|
|
29319
|
-
{
|
|
29320
|
-
|
|
29321
|
-
|
|
29322
|
-
headers: dateHeader
|
|
29323
|
-
},
|
|
29324
|
-
priorSignature: this.priorSignature
|
|
29099
|
+
const signedMessage = await this.messageSigner.sign({
|
|
29100
|
+
message: {
|
|
29101
|
+
body: chunk,
|
|
29102
|
+
headers: dateHeader
|
|
29325
29103
|
},
|
|
29326
|
-
|
|
29327
|
-
|
|
29328
|
-
|
|
29329
|
-
);
|
|
29104
|
+
priorSignature: this.priorSignature
|
|
29105
|
+
}, {
|
|
29106
|
+
signingDate: now
|
|
29107
|
+
});
|
|
29330
29108
|
this.priorSignature = signedMessage.signature;
|
|
29331
29109
|
const serializedSigned = this.eventStreamCodec.encode({
|
|
29332
29110
|
headers: {
|
|
@@ -29349,27 +29127,23 @@ var require_dist_cjs63 = __commonJS({
|
|
|
29349
29127
|
const buf = Buffer.from(signature, "hex");
|
|
29350
29128
|
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
29351
29129
|
}
|
|
29352
|
-
__name(getSignatureBinary, "getSignatureBinary");
|
|
29353
29130
|
var EventStreamPayloadHandler = class {
|
|
29354
|
-
static {
|
|
29355
|
-
__name(this, "EventStreamPayloadHandler");
|
|
29356
|
-
}
|
|
29357
29131
|
messageSigner;
|
|
29358
29132
|
eventStreamCodec;
|
|
29359
29133
|
systemClockOffsetProvider;
|
|
29360
29134
|
constructor(options) {
|
|
29361
29135
|
this.messageSigner = options.messageSigner;
|
|
29362
|
-
this.eventStreamCodec = new
|
|
29136
|
+
this.eventStreamCodec = new eventstreamCodec.EventStreamCodec(options.utf8Encoder, options.utf8Decoder);
|
|
29363
29137
|
this.systemClockOffsetProvider = async () => options.systemClockOffset ?? 0;
|
|
29364
29138
|
}
|
|
29365
29139
|
async handle(next, args, context3 = {}) {
|
|
29366
29140
|
const request = args.request;
|
|
29367
29141
|
const { body: payload2, query: query2 } = request;
|
|
29368
|
-
if (!(payload2 instanceof
|
|
29142
|
+
if (!(payload2 instanceof stream2.Readable)) {
|
|
29369
29143
|
throw new Error("Eventstream payload must be a Readable stream.");
|
|
29370
29144
|
}
|
|
29371
29145
|
const payloadStream = payload2;
|
|
29372
|
-
request.body = new
|
|
29146
|
+
request.body = new stream2.PassThrough({
|
|
29373
29147
|
objectMode: true
|
|
29374
29148
|
});
|
|
29375
29149
|
const match2 = request.headers?.authorization?.match(/Signature=([\w]+)$/);
|
|
@@ -29380,7 +29154,7 @@ var require_dist_cjs63 = __commonJS({
|
|
|
29380
29154
|
messageSigner: await this.messageSigner(),
|
|
29381
29155
|
systemClockOffsetProvider: this.systemClockOffsetProvider
|
|
29382
29156
|
});
|
|
29383
|
-
|
|
29157
|
+
stream2.pipeline(payloadStream, signingStream, request.body, (err) => {
|
|
29384
29158
|
if (err) {
|
|
29385
29159
|
throw err;
|
|
29386
29160
|
}
|
|
@@ -29395,7 +29169,8 @@ var require_dist_cjs63 = __commonJS({
|
|
|
29395
29169
|
return result;
|
|
29396
29170
|
}
|
|
29397
29171
|
};
|
|
29398
|
-
var eventStreamPayloadHandlerProvider =
|
|
29172
|
+
var eventStreamPayloadHandlerProvider = (options) => new EventStreamPayloadHandler(options);
|
|
29173
|
+
exports2.eventStreamPayloadHandlerProvider = eventStreamPayloadHandlerProvider;
|
|
29399
29174
|
}
|
|
29400
29175
|
});
|
|
29401
29176
|
|
|
@@ -76111,13 +75886,12 @@ var init_simpleTelemetry = __esm({
|
|
|
76111
75886
|
});
|
|
76112
75887
|
|
|
76113
75888
|
// src/agent/fileSpanExporter.js
|
|
76114
|
-
var import_fs9, import_core17,
|
|
75889
|
+
var import_fs9, import_core17, FileSpanExporter;
|
|
76115
75890
|
var init_fileSpanExporter = __esm({
|
|
76116
75891
|
"src/agent/fileSpanExporter.js"() {
|
|
76117
75892
|
"use strict";
|
|
76118
75893
|
import_fs9 = require("fs");
|
|
76119
|
-
import_core17 =
|
|
76120
|
-
({ ExportResultCode } = import_core17.default);
|
|
75894
|
+
import_core17 = require("@opentelemetry/core");
|
|
76121
75895
|
FileSpanExporter = class {
|
|
76122
75896
|
constructor(filePath = "./traces.jsonl") {
|
|
76123
75897
|
this.filePath = filePath;
|
|
@@ -76133,7 +75907,7 @@ var init_fileSpanExporter = __esm({
|
|
|
76133
75907
|
*/
|
|
76134
75908
|
export(spans, resultCallback) {
|
|
76135
75909
|
if (!spans || spans.length === 0) {
|
|
76136
|
-
resultCallback({ code: ExportResultCode.SUCCESS });
|
|
75910
|
+
resultCallback({ code: import_core17.ExportResultCode.SUCCESS });
|
|
76137
75911
|
return;
|
|
76138
75912
|
}
|
|
76139
75913
|
try {
|
|
@@ -76184,11 +75958,11 @@ var init_fileSpanExporter = __esm({
|
|
|
76184
75958
|
};
|
|
76185
75959
|
this.stream.write(JSON.stringify(spanData) + "\n");
|
|
76186
75960
|
});
|
|
76187
|
-
resultCallback({ code: ExportResultCode.SUCCESS });
|
|
75961
|
+
resultCallback({ code: import_core17.ExportResultCode.SUCCESS });
|
|
76188
75962
|
} catch (error2) {
|
|
76189
75963
|
console.error(`[FileSpanExporter] Export error: ${error2.message}`);
|
|
76190
75964
|
resultCallback({
|
|
76191
|
-
code: ExportResultCode.FAILED,
|
|
75965
|
+
code: import_core17.ExportResultCode.FAILED,
|
|
76192
75966
|
error: error2
|
|
76193
75967
|
});
|
|
76194
75968
|
}
|
|
@@ -76274,23 +76048,19 @@ function initializeTelemetryFromOptions(options) {
|
|
|
76274
76048
|
config.initialize();
|
|
76275
76049
|
return config;
|
|
76276
76050
|
}
|
|
76277
|
-
var import_sdk_node, import_resources, import_semantic_conventions, import_api, import_exporter_trace_otlp_http, import_sdk_trace_base, import_fs10, import_path11,
|
|
76051
|
+
var import_sdk_node, import_resources, import_semantic_conventions, import_api, import_exporter_trace_otlp_http, import_sdk_trace_base, import_fs10, import_path11, TelemetryConfig;
|
|
76278
76052
|
var init_telemetry = __esm({
|
|
76279
76053
|
"src/agent/telemetry.js"() {
|
|
76280
76054
|
"use strict";
|
|
76281
|
-
import_sdk_node =
|
|
76282
|
-
import_resources =
|
|
76055
|
+
import_sdk_node = require("@opentelemetry/sdk-node");
|
|
76056
|
+
import_resources = require("@opentelemetry/resources");
|
|
76283
76057
|
import_semantic_conventions = require("@opentelemetry/semantic-conventions");
|
|
76284
76058
|
import_api = require("@opentelemetry/api");
|
|
76285
|
-
import_exporter_trace_otlp_http =
|
|
76286
|
-
import_sdk_trace_base =
|
|
76059
|
+
import_exporter_trace_otlp_http = require("@opentelemetry/exporter-trace-otlp-http");
|
|
76060
|
+
import_sdk_trace_base = require("@opentelemetry/sdk-trace-base");
|
|
76287
76061
|
import_fs10 = require("fs");
|
|
76288
76062
|
import_path11 = require("path");
|
|
76289
76063
|
init_fileSpanExporter();
|
|
76290
|
-
({ NodeSDK } = import_sdk_node.default);
|
|
76291
|
-
({ Resource } = import_resources.default);
|
|
76292
|
-
({ OTLPTraceExporter } = import_exporter_trace_otlp_http.default);
|
|
76293
|
-
({ BatchSpanProcessor, ConsoleSpanExporter } = import_sdk_trace_base.default);
|
|
76294
76064
|
TelemetryConfig = class {
|
|
76295
76065
|
constructor(options = {}) {
|
|
76296
76066
|
this.serviceName = options.serviceName || "probe-agent";
|
|
@@ -76311,7 +76081,7 @@ var init_telemetry = __esm({
|
|
|
76311
76081
|
console.warn("Telemetry already initialized");
|
|
76312
76082
|
return;
|
|
76313
76083
|
}
|
|
76314
|
-
const resource =
|
|
76084
|
+
const resource = (0, import_resources.resourceFromAttributes)({
|
|
76315
76085
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: this.serviceName,
|
|
76316
76086
|
[import_semantic_conventions.ATTR_SERVICE_VERSION]: this.serviceVersion
|
|
76317
76087
|
});
|
|
@@ -76323,7 +76093,7 @@ var init_telemetry = __esm({
|
|
|
76323
76093
|
(0, import_fs10.mkdirSync)(dir, { recursive: true });
|
|
76324
76094
|
}
|
|
76325
76095
|
const fileExporter = new FileSpanExporter(this.filePath);
|
|
76326
|
-
spanProcessors.push(new BatchSpanProcessor(fileExporter, {
|
|
76096
|
+
spanProcessors.push(new import_sdk_trace_base.BatchSpanProcessor(fileExporter, {
|
|
76327
76097
|
maxQueueSize: 2048,
|
|
76328
76098
|
maxExportBatchSize: 512,
|
|
76329
76099
|
scheduledDelayMillis: 500,
|
|
@@ -76336,10 +76106,10 @@ var init_telemetry = __esm({
|
|
|
76336
76106
|
}
|
|
76337
76107
|
if (this.enableRemote) {
|
|
76338
76108
|
try {
|
|
76339
|
-
const remoteExporter = new OTLPTraceExporter({
|
|
76109
|
+
const remoteExporter = new import_exporter_trace_otlp_http.OTLPTraceExporter({
|
|
76340
76110
|
url: this.remoteEndpoint
|
|
76341
76111
|
});
|
|
76342
|
-
spanProcessors.push(new BatchSpanProcessor(remoteExporter, {
|
|
76112
|
+
spanProcessors.push(new import_sdk_trace_base.BatchSpanProcessor(remoteExporter, {
|
|
76343
76113
|
maxQueueSize: 2048,
|
|
76344
76114
|
maxExportBatchSize: 512,
|
|
76345
76115
|
scheduledDelayMillis: 500,
|
|
@@ -76351,8 +76121,8 @@ var init_telemetry = __esm({
|
|
|
76351
76121
|
}
|
|
76352
76122
|
}
|
|
76353
76123
|
if (this.enableConsole) {
|
|
76354
|
-
const consoleExporter = new ConsoleSpanExporter();
|
|
76355
|
-
spanProcessors.push(new BatchSpanProcessor(consoleExporter, {
|
|
76124
|
+
const consoleExporter = new import_sdk_trace_base.ConsoleSpanExporter();
|
|
76125
|
+
spanProcessors.push(new import_sdk_trace_base.BatchSpanProcessor(consoleExporter, {
|
|
76356
76126
|
maxQueueSize: 2048,
|
|
76357
76127
|
maxExportBatchSize: 512,
|
|
76358
76128
|
scheduledDelayMillis: 500,
|
|
@@ -76364,7 +76134,7 @@ var init_telemetry = __esm({
|
|
|
76364
76134
|
console.log("[Telemetry] No exporters configured, telemetry will not be collected");
|
|
76365
76135
|
return;
|
|
76366
76136
|
}
|
|
76367
|
-
this.sdk = new NodeSDK({
|
|
76137
|
+
this.sdk = new import_sdk_node.NodeSDK({
|
|
76368
76138
|
resource,
|
|
76369
76139
|
spanProcessors
|
|
76370
76140
|
});
|