@hasna/domains 0.0.45 → 0.0.47
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/README.md +1 -1
- package/dist/cli/index.js +760 -486
- package/dist/db/database.d.ts +5 -3
- package/dist/db/database.d.ts.map +1 -1
- package/dist/generated/storage-kit/index.d.ts +1 -1
- package/dist/generated/storage-kit/migrations.d.ts +21 -0
- package/dist/generated/storage-kit/migrations.d.ts.map +1 -1
- package/dist/index.js +563 -326
- package/dist/lib/app-home.d.ts +60 -0
- package/dist/lib/app-home.d.ts.map +1 -0
- package/dist/lib/config.d.ts +4 -3
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/mcp/index.js +579 -342
- package/dist/sdk/index.js +93 -15
- package/dist/server/migrations.d.ts +35 -0
- package/dist/server/migrations.d.ts.map +1 -1
- package/package.json +7 -5
- package/postinstall.js +42 -0
package/dist/mcp/index.js
CHANGED
|
@@ -4013,7 +4013,7 @@ var init_zod = __esm(() => {
|
|
|
4013
4013
|
init_external();
|
|
4014
4014
|
});
|
|
4015
4015
|
|
|
4016
|
-
// ../../node_modules/.bun/@smithy+types@4.
|
|
4016
|
+
// ../../node_modules/.bun/@smithy+types@4.17.2/node_modules/@smithy/types/dist-cjs/index.js
|
|
4017
4017
|
var require_dist_cjs = __commonJS((exports) => {
|
|
4018
4018
|
var HttpAuthLocation;
|
|
4019
4019
|
(function(HttpAuthLocation2) {
|
|
@@ -4104,7 +4104,7 @@ var require_dist_cjs = __commonJS((exports) => {
|
|
|
4104
4104
|
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
4105
4105
|
});
|
|
4106
4106
|
|
|
4107
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
4107
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js
|
|
4108
4108
|
var require_transport = __commonJS((exports) => {
|
|
4109
4109
|
var { SMITHY_CONTEXT_KEY } = require_dist_cjs();
|
|
4110
4110
|
var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
|
|
@@ -4271,7 +4271,7 @@ var require_transport = __commonJS((exports) => {
|
|
|
4271
4271
|
exports.toEndpointV1 = toEndpointV1;
|
|
4272
4272
|
});
|
|
4273
4273
|
|
|
4274
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
4274
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
|
|
4275
4275
|
var require_schema = __commonJS((exports) => {
|
|
4276
4276
|
var { getSmithyContext, HttpResponse, toEndpointV1 } = require_transport();
|
|
4277
4277
|
var deref = (schemaRef) => {
|
|
@@ -4404,8 +4404,6 @@ var require_schema = __commonJS((exports) => {
|
|
|
4404
4404
|
|
|
4405
4405
|
class ListSchema extends Schema {
|
|
4406
4406
|
static symbol = Symbol.for("@smithy/lis");
|
|
4407
|
-
name;
|
|
4408
|
-
traits;
|
|
4409
4407
|
valueSchema;
|
|
4410
4408
|
symbol = ListSchema.symbol;
|
|
4411
4409
|
}
|
|
@@ -4418,8 +4416,6 @@ var require_schema = __commonJS((exports) => {
|
|
|
4418
4416
|
|
|
4419
4417
|
class MapSchema extends Schema {
|
|
4420
4418
|
static symbol = Symbol.for("@smithy/map");
|
|
4421
|
-
name;
|
|
4422
|
-
traits;
|
|
4423
4419
|
keySchema;
|
|
4424
4420
|
valueSchema;
|
|
4425
4421
|
symbol = MapSchema.symbol;
|
|
@@ -4434,8 +4430,6 @@ var require_schema = __commonJS((exports) => {
|
|
|
4434
4430
|
|
|
4435
4431
|
class OperationSchema extends Schema {
|
|
4436
4432
|
static symbol = Symbol.for("@smithy/ope");
|
|
4437
|
-
name;
|
|
4438
|
-
traits;
|
|
4439
4433
|
input;
|
|
4440
4434
|
output;
|
|
4441
4435
|
symbol = OperationSchema.symbol;
|
|
@@ -4450,8 +4444,6 @@ var require_schema = __commonJS((exports) => {
|
|
|
4450
4444
|
|
|
4451
4445
|
class StructureSchema extends Schema {
|
|
4452
4446
|
static symbol = Symbol.for("@smithy/str");
|
|
4453
|
-
name;
|
|
4454
|
-
traits;
|
|
4455
4447
|
memberNames;
|
|
4456
4448
|
memberList;
|
|
4457
4449
|
symbol = StructureSchema.symbol;
|
|
@@ -4786,9 +4778,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
4786
4778
|
|
|
4787
4779
|
class SimpleSchema extends Schema {
|
|
4788
4780
|
static symbol = Symbol.for("@smithy/sim");
|
|
4789
|
-
name;
|
|
4790
4781
|
schemaRef;
|
|
4791
|
-
traits;
|
|
4792
4782
|
symbol = SimpleSchema.symbol;
|
|
4793
4783
|
}
|
|
4794
4784
|
var sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema, {
|
|
@@ -4950,7 +4940,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
4950
4940
|
exports.translateTraits = translateTraits;
|
|
4951
4941
|
});
|
|
4952
4942
|
|
|
4953
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
4943
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/client/index.js
|
|
4954
4944
|
var require_client = __commonJS((exports) => {
|
|
4955
4945
|
var { getSmithyContext, normalizeProvider } = require_transport();
|
|
4956
4946
|
exports.getSmithyContext = getSmithyContext;
|
|
@@ -5238,7 +5228,7 @@ var require_client = __commonJS((exports) => {
|
|
|
5238
5228
|
};
|
|
5239
5229
|
};
|
|
5240
5230
|
var sleep = (seconds) => {
|
|
5241
|
-
return new Promise((
|
|
5231
|
+
return new Promise((resolve4) => setTimeout(resolve4, seconds * 1000));
|
|
5242
5232
|
};
|
|
5243
5233
|
var waiterServiceDefaults = {
|
|
5244
5234
|
minDelay: 2,
|
|
@@ -5367,8 +5357,8 @@ var require_client = __commonJS((exports) => {
|
|
|
5367
5357
|
};
|
|
5368
5358
|
var abortTimeout = (abortSignal) => {
|
|
5369
5359
|
let onAbort;
|
|
5370
|
-
const promise = new Promise((
|
|
5371
|
-
onAbort = () =>
|
|
5360
|
+
const promise = new Promise((resolve4) => {
|
|
5361
|
+
onAbort = () => resolve4({ state: WaiterState.ABORTED });
|
|
5372
5362
|
if (typeof abortSignal.addEventListener === "function") {
|
|
5373
5363
|
abortSignal.addEventListener("abort", onAbort);
|
|
5374
5364
|
} else {
|
|
@@ -6019,10 +6009,10 @@ var require_client = __commonJS((exports) => {
|
|
|
6019
6009
|
exports.withBaseException = withBaseException;
|
|
6020
6010
|
});
|
|
6021
6011
|
|
|
6022
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
6012
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/config/index.js
|
|
6023
6013
|
var require_config = __commonJS((exports) => {
|
|
6024
|
-
var { homedir:
|
|
6025
|
-
var { sep, join:
|
|
6014
|
+
var { homedir: homedir4 } = __require("os");
|
|
6015
|
+
var { sep, join: join5 } = __require("path");
|
|
6026
6016
|
var { createHash: createHash2 } = __require("crypto");
|
|
6027
6017
|
var { readFile: readFile$1 } = __require("fs/promises");
|
|
6028
6018
|
var { IniSectionType } = require_dist_cjs();
|
|
@@ -6171,7 +6161,7 @@ var require_config = __commonJS((exports) => {
|
|
|
6171
6161
|
return `${HOMEDRIVE}${HOMEPATH}`;
|
|
6172
6162
|
const homeDirCacheKey = getHomeDirCacheKey();
|
|
6173
6163
|
if (!homeDirCache[homeDirCacheKey])
|
|
6174
|
-
homeDirCache[homeDirCacheKey] =
|
|
6164
|
+
homeDirCache[homeDirCacheKey] = homedir4();
|
|
6175
6165
|
return homeDirCache[homeDirCacheKey];
|
|
6176
6166
|
};
|
|
6177
6167
|
var ENV_PROFILE = "AWS_PROFILE";
|
|
@@ -6180,7 +6170,7 @@ var require_config = __commonJS((exports) => {
|
|
|
6180
6170
|
var getSSOTokenFilepath = (id) => {
|
|
6181
6171
|
const hasher = createHash2("sha1");
|
|
6182
6172
|
const cacheName = hasher.update(id).digest("hex");
|
|
6183
|
-
return
|
|
6173
|
+
return join5(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
6184
6174
|
};
|
|
6185
6175
|
var tokenIntercept = {};
|
|
6186
6176
|
var getSSOTokenFromFile = async (id) => {
|
|
@@ -6207,9 +6197,9 @@ var require_config = __commonJS((exports) => {
|
|
|
6207
6197
|
...data.default && { default: data.default }
|
|
6208
6198
|
});
|
|
6209
6199
|
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
6210
|
-
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] ||
|
|
6200
|
+
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join5(getHomeDir(), ".aws", "config");
|
|
6211
6201
|
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
6212
|
-
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] ||
|
|
6202
|
+
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join5(getHomeDir(), ".aws", "credentials");
|
|
6213
6203
|
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;
|
|
6214
6204
|
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
6215
6205
|
var parseIni = (iniData) => {
|
|
@@ -6275,11 +6265,11 @@ var require_config = __commonJS((exports) => {
|
|
|
6275
6265
|
const relativeHomeDirPrefix = "~/";
|
|
6276
6266
|
let resolvedFilepath = filepath;
|
|
6277
6267
|
if (filepath.startsWith(relativeHomeDirPrefix)) {
|
|
6278
|
-
resolvedFilepath =
|
|
6268
|
+
resolvedFilepath = join5(homeDir2, filepath.slice(2));
|
|
6279
6269
|
}
|
|
6280
6270
|
let resolvedConfigFilepath = configFilepath;
|
|
6281
6271
|
if (configFilepath.startsWith(relativeHomeDirPrefix)) {
|
|
6282
|
-
resolvedConfigFilepath =
|
|
6272
|
+
resolvedConfigFilepath = join5(homeDir2, configFilepath.slice(2));
|
|
6283
6273
|
}
|
|
6284
6274
|
const parsedFiles = await Promise.all([
|
|
6285
6275
|
readFile(resolvedConfigFilepath, {
|
|
@@ -6496,7 +6486,7 @@ var require_config = __commonJS((exports) => {
|
|
|
6496
6486
|
};
|
|
6497
6487
|
var imdsRequest = async (options) => {
|
|
6498
6488
|
const { request } = __require("http");
|
|
6499
|
-
return new Promise((
|
|
6489
|
+
return new Promise((resolve4, reject) => {
|
|
6500
6490
|
const req = request({
|
|
6501
6491
|
hostname: options.hostname,
|
|
6502
6492
|
port: options.port,
|
|
@@ -6524,7 +6514,7 @@ var require_config = __commonJS((exports) => {
|
|
|
6524
6514
|
const chunks = [];
|
|
6525
6515
|
res.on("data", (chunk) => chunks.push(chunk));
|
|
6526
6516
|
res.on("end", () => {
|
|
6527
|
-
|
|
6517
|
+
resolve4(Buffer.concat(chunks));
|
|
6528
6518
|
req.destroy();
|
|
6529
6519
|
});
|
|
6530
6520
|
});
|
|
@@ -6714,7 +6704,7 @@ var require_config = __commonJS((exports) => {
|
|
|
6714
6704
|
exports.resolveRegionConfig = resolveRegionConfig;
|
|
6715
6705
|
});
|
|
6716
6706
|
|
|
6717
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
6707
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js
|
|
6718
6708
|
var require_endpoints = __commonJS((exports) => {
|
|
6719
6709
|
var { CONFIG_PREFIX_SEPARATOR, booleanSelector, SelectorType, loadConfig } = require_config();
|
|
6720
6710
|
var { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = require_transport();
|
|
@@ -7526,7 +7516,7 @@ var require_endpoints = __commonJS((exports) => {
|
|
|
7526
7516
|
exports.resolveParams = resolveParams;
|
|
7527
7517
|
});
|
|
7528
7518
|
|
|
7529
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
7519
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
|
|
7530
7520
|
var require_serde = __commonJS((exports) => {
|
|
7531
7521
|
var { createHmac, createHash: createHash2, getRandomValues } = __require("crypto");
|
|
7532
7522
|
var { ReadStream, lstatSync, fstatSync } = __require("fs");
|
|
@@ -8875,7 +8865,7 @@ ${value}\r
|
|
|
8875
8865
|
if (isReadableStream(stream)) {
|
|
8876
8866
|
return headStream$1(stream, bytes);
|
|
8877
8867
|
}
|
|
8878
|
-
return new Promise((
|
|
8868
|
+
return new Promise((resolve4, reject) => {
|
|
8879
8869
|
const collector = new Collector$1;
|
|
8880
8870
|
collector.limit = bytes;
|
|
8881
8871
|
stream.pipe(collector);
|
|
@@ -8886,7 +8876,7 @@ ${value}\r
|
|
|
8886
8876
|
collector.on("error", reject);
|
|
8887
8877
|
collector.on("finish", function() {
|
|
8888
8878
|
const bytes2 = concatBytes(this.buffers);
|
|
8889
|
-
|
|
8879
|
+
resolve4(bytes2);
|
|
8890
8880
|
});
|
|
8891
8881
|
});
|
|
8892
8882
|
};
|
|
@@ -9000,7 +8990,7 @@ ${value}\r
|
|
|
9000
8990
|
if (isReadableStream(stream)) {
|
|
9001
8991
|
return collectReadableStream(stream);
|
|
9002
8992
|
}
|
|
9003
|
-
return new Promise((
|
|
8993
|
+
return new Promise((resolve4, reject) => {
|
|
9004
8994
|
const collector = new Collector;
|
|
9005
8995
|
const nodeStream = stream;
|
|
9006
8996
|
nodeStream.pipe(collector);
|
|
@@ -9011,7 +9001,7 @@ ${value}\r
|
|
|
9011
9001
|
collector.on("error", reject);
|
|
9012
9002
|
collector.on("finish", function() {
|
|
9013
9003
|
const bytes = concatBytes(this.bufferedBytes);
|
|
9014
|
-
|
|
9004
|
+
resolve4(bytes);
|
|
9015
9005
|
});
|
|
9016
9006
|
});
|
|
9017
9007
|
};
|
|
@@ -9164,7 +9154,7 @@ ${value}\r
|
|
|
9164
9154
|
exports.v4 = v4;
|
|
9165
9155
|
});
|
|
9166
9156
|
|
|
9167
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
9157
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js
|
|
9168
9158
|
var require_checksum = __commonJS((exports) => {
|
|
9169
9159
|
var { createReadStream } = __require("fs");
|
|
9170
9160
|
var { Writable } = __require("stream");
|
|
@@ -9203,7 +9193,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
9203
9193
|
callback();
|
|
9204
9194
|
}
|
|
9205
9195
|
}
|
|
9206
|
-
var fileStreamHasher = (hashCtor, fileStream) => new Promise((
|
|
9196
|
+
var fileStreamHasher = (hashCtor, fileStream) => new Promise((resolve4, reject) => {
|
|
9207
9197
|
if (!isReadStream(fileStream)) {
|
|
9208
9198
|
reject(new Error("Unable to calculate hash for non-file streams."));
|
|
9209
9199
|
return;
|
|
@@ -9221,7 +9211,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
9221
9211
|
});
|
|
9222
9212
|
hashCalculator.on("error", reject);
|
|
9223
9213
|
hashCalculator.on("finish", function() {
|
|
9224
|
-
hash.digest().then(
|
|
9214
|
+
hash.digest().then(resolve4).catch(reject);
|
|
9225
9215
|
});
|
|
9226
9216
|
});
|
|
9227
9217
|
var isReadStream = (stream) => typeof stream.path === "string";
|
|
@@ -9232,14 +9222,14 @@ var require_checksum = __commonJS((exports) => {
|
|
|
9232
9222
|
const hash = new hashCtor;
|
|
9233
9223
|
const hashCalculator = new HashCalculator(hash);
|
|
9234
9224
|
readableStream.pipe(hashCalculator);
|
|
9235
|
-
return new Promise((
|
|
9225
|
+
return new Promise((resolve4, reject) => {
|
|
9236
9226
|
readableStream.on("error", (err) => {
|
|
9237
9227
|
hashCalculator.end();
|
|
9238
9228
|
reject(err);
|
|
9239
9229
|
});
|
|
9240
9230
|
hashCalculator.on("error", reject);
|
|
9241
9231
|
hashCalculator.on("finish", () => {
|
|
9242
|
-
hash.digest().then(
|
|
9232
|
+
hash.digest().then(resolve4).catch(reject);
|
|
9243
9233
|
});
|
|
9244
9234
|
});
|
|
9245
9235
|
};
|
|
@@ -9780,7 +9770,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
9780
9770
|
exports.readableStreamHasher = readableStreamHasher;
|
|
9781
9771
|
});
|
|
9782
9772
|
|
|
9783
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
9773
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js
|
|
9784
9774
|
var require_event_streams = __commonJS((exports) => {
|
|
9785
9775
|
var { Crc32 } = require_checksum();
|
|
9786
9776
|
var { toHex, fromHex, toUtf8, fromUtf8 } = require_serde();
|
|
@@ -9855,27 +9845,27 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
9855
9845
|
formatHeaderValue(header) {
|
|
9856
9846
|
switch (header.type) {
|
|
9857
9847
|
case "boolean":
|
|
9858
|
-
return Uint8Array.from([header.value ?
|
|
9848
|
+
return Uint8Array.from([header.value ? 0 : 1]);
|
|
9859
9849
|
case "byte":
|
|
9860
|
-
return Uint8Array.from([
|
|
9850
|
+
return Uint8Array.from([2, header.value]);
|
|
9861
9851
|
case "short":
|
|
9862
9852
|
const shortView = new DataView(new ArrayBuffer(3));
|
|
9863
|
-
shortView.setUint8(0,
|
|
9853
|
+
shortView.setUint8(0, 3);
|
|
9864
9854
|
shortView.setInt16(1, header.value, false);
|
|
9865
9855
|
return new Uint8Array(shortView.buffer);
|
|
9866
9856
|
case "integer":
|
|
9867
9857
|
const intView = new DataView(new ArrayBuffer(5));
|
|
9868
|
-
intView.setUint8(0,
|
|
9858
|
+
intView.setUint8(0, 4);
|
|
9869
9859
|
intView.setInt32(1, header.value, false);
|
|
9870
9860
|
return new Uint8Array(intView.buffer);
|
|
9871
9861
|
case "long":
|
|
9872
9862
|
const longBytes = new Uint8Array(9);
|
|
9873
|
-
longBytes[0] =
|
|
9863
|
+
longBytes[0] = 5;
|
|
9874
9864
|
longBytes.set(header.value.bytes, 1);
|
|
9875
9865
|
return longBytes;
|
|
9876
9866
|
case "binary":
|
|
9877
9867
|
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
9878
|
-
binView.setUint8(0,
|
|
9868
|
+
binView.setUint8(0, 6);
|
|
9879
9869
|
binView.setUint16(1, header.value.byteLength, false);
|
|
9880
9870
|
const binBytes = new Uint8Array(binView.buffer);
|
|
9881
9871
|
binBytes.set(header.value, 3);
|
|
@@ -9883,14 +9873,14 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
9883
9873
|
case "string":
|
|
9884
9874
|
const utf8Bytes = this.fromUtf8(header.value);
|
|
9885
9875
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
9886
|
-
strView.setUint8(0,
|
|
9876
|
+
strView.setUint8(0, 7);
|
|
9887
9877
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
9888
9878
|
const strBytes = new Uint8Array(strView.buffer);
|
|
9889
9879
|
strBytes.set(utf8Bytes, 3);
|
|
9890
9880
|
return strBytes;
|
|
9891
9881
|
case "timestamp":
|
|
9892
9882
|
const tsBytes = new Uint8Array(9);
|
|
9893
|
-
tsBytes[0] =
|
|
9883
|
+
tsBytes[0] = 8;
|
|
9894
9884
|
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
9895
9885
|
return tsBytes;
|
|
9896
9886
|
case "uuid":
|
|
@@ -9898,7 +9888,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
9898
9888
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
9899
9889
|
}
|
|
9900
9890
|
const uuidBytes = new Uint8Array(17);
|
|
9901
|
-
uuidBytes[0] =
|
|
9891
|
+
uuidBytes[0] = 9;
|
|
9902
9892
|
uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
|
|
9903
9893
|
return uuidBytes;
|
|
9904
9894
|
}
|
|
@@ -9911,46 +9901,46 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
9911
9901
|
const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
|
|
9912
9902
|
position += nameLength;
|
|
9913
9903
|
switch (headers.getUint8(position++)) {
|
|
9914
|
-
case
|
|
9904
|
+
case 0:
|
|
9915
9905
|
out[name] = {
|
|
9916
9906
|
type: BOOLEAN_TAG,
|
|
9917
9907
|
value: true
|
|
9918
9908
|
};
|
|
9919
9909
|
break;
|
|
9920
|
-
case
|
|
9910
|
+
case 1:
|
|
9921
9911
|
out[name] = {
|
|
9922
9912
|
type: BOOLEAN_TAG,
|
|
9923
9913
|
value: false
|
|
9924
9914
|
};
|
|
9925
9915
|
break;
|
|
9926
|
-
case
|
|
9916
|
+
case 2:
|
|
9927
9917
|
out[name] = {
|
|
9928
9918
|
type: BYTE_TAG,
|
|
9929
9919
|
value: headers.getInt8(position++)
|
|
9930
9920
|
};
|
|
9931
9921
|
break;
|
|
9932
|
-
case
|
|
9922
|
+
case 3:
|
|
9933
9923
|
out[name] = {
|
|
9934
9924
|
type: SHORT_TAG,
|
|
9935
9925
|
value: headers.getInt16(position, false)
|
|
9936
9926
|
};
|
|
9937
9927
|
position += 2;
|
|
9938
9928
|
break;
|
|
9939
|
-
case
|
|
9929
|
+
case 4:
|
|
9940
9930
|
out[name] = {
|
|
9941
9931
|
type: INT_TAG,
|
|
9942
9932
|
value: headers.getInt32(position, false)
|
|
9943
9933
|
};
|
|
9944
9934
|
position += 4;
|
|
9945
9935
|
break;
|
|
9946
|
-
case
|
|
9936
|
+
case 5:
|
|
9947
9937
|
out[name] = {
|
|
9948
9938
|
type: LONG_TAG,
|
|
9949
9939
|
value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8))
|
|
9950
9940
|
};
|
|
9951
9941
|
position += 8;
|
|
9952
9942
|
break;
|
|
9953
|
-
case
|
|
9943
|
+
case 6:
|
|
9954
9944
|
const binaryLength = headers.getUint16(position, false);
|
|
9955
9945
|
position += 2;
|
|
9956
9946
|
out[name] = {
|
|
@@ -9959,7 +9949,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
9959
9949
|
};
|
|
9960
9950
|
position += binaryLength;
|
|
9961
9951
|
break;
|
|
9962
|
-
case
|
|
9952
|
+
case 7:
|
|
9963
9953
|
const stringLength = headers.getUint16(position, false);
|
|
9964
9954
|
position += 2;
|
|
9965
9955
|
out[name] = {
|
|
@@ -9968,14 +9958,14 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
9968
9958
|
};
|
|
9969
9959
|
position += stringLength;
|
|
9970
9960
|
break;
|
|
9971
|
-
case
|
|
9961
|
+
case 8:
|
|
9972
9962
|
out[name] = {
|
|
9973
9963
|
type: TIMESTAMP_TAG,
|
|
9974
9964
|
value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf())
|
|
9975
9965
|
};
|
|
9976
9966
|
position += 8;
|
|
9977
9967
|
break;
|
|
9978
|
-
case
|
|
9968
|
+
case 9:
|
|
9979
9969
|
const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
|
|
9980
9970
|
position += 16;
|
|
9981
9971
|
out[name] = {
|
|
@@ -10345,7 +10335,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
10345
10335
|
streamEnded = true;
|
|
10346
10336
|
});
|
|
10347
10337
|
while (!generationEnded) {
|
|
10348
|
-
const value = await new Promise((
|
|
10338
|
+
const value = await new Promise((resolve4) => setTimeout(() => resolve4(records.shift()), 0));
|
|
10349
10339
|
if (value) {
|
|
10350
10340
|
yield value;
|
|
10351
10341
|
}
|
|
@@ -10398,7 +10388,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
10398
10388
|
this.defaultContentType = defaultContentType;
|
|
10399
10389
|
this.compositeErrorRegistry = compositeErrorRegistry;
|
|
10400
10390
|
}
|
|
10401
|
-
async serializeEventStream({ eventStream, requestSchema, initialRequest }) {
|
|
10391
|
+
async serializeEventStream({ eventStream, requestSchema, initialRequest, initialMessageType }) {
|
|
10402
10392
|
const marshaller = this.marshaller;
|
|
10403
10393
|
const eventStreamMember = requestSchema.getEventStreamMember();
|
|
10404
10394
|
const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
|
|
@@ -10409,7 +10399,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
10409
10399
|
async* [Symbol.asyncIterator]() {
|
|
10410
10400
|
if (initialRequest) {
|
|
10411
10401
|
const headers = {
|
|
10412
|
-
":event-type": { type: "string", value: "initial-request" },
|
|
10402
|
+
":event-type": { type: "string", value: initialMessageType ?? "initial-request" },
|
|
10413
10403
|
":message-type": { type: "string", value: "event" },
|
|
10414
10404
|
":content-type": { type: "string", value: defaultContentType }
|
|
10415
10405
|
};
|
|
@@ -10453,7 +10443,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
10453
10443
|
};
|
|
10454
10444
|
});
|
|
10455
10445
|
}
|
|
10456
|
-
async deserializeEventStream({ response, responseSchema, initialResponseContainer }) {
|
|
10446
|
+
async deserializeEventStream({ response, responseSchema, initialResponseContainer, initialMessageType }) {
|
|
10457
10447
|
const marshaller = this.marshaller;
|
|
10458
10448
|
const eventStreamMember = responseSchema.getEventStreamMember();
|
|
10459
10449
|
const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
|
|
@@ -10468,7 +10458,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
10468
10458
|
}
|
|
10469
10459
|
}
|
|
10470
10460
|
const body = event[unionMember].body;
|
|
10471
|
-
if (unionMember === "initial-response") {
|
|
10461
|
+
if (unionMember === (initialMessageType ?? "initial-response")) {
|
|
10472
10462
|
const dataObject = await this.deserializer.read(responseSchema, body);
|
|
10473
10463
|
delete dataObject[eventStreamMember];
|
|
10474
10464
|
return {
|
|
@@ -10663,7 +10653,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
10663
10653
|
exports.universalEventStreamSerdeProvider = eventStreamSerdeProvider$1;
|
|
10664
10654
|
});
|
|
10665
10655
|
|
|
10666
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
10656
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
|
|
10667
10657
|
var require_protocols = __commonJS((exports) => {
|
|
10668
10658
|
var { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader } = require_serde();
|
|
10669
10659
|
var { TypeRegistry, NormalizedSchema, translateTraits } = require_schema();
|
|
@@ -11136,10 +11126,9 @@ var require_protocols = __commonJS((exports) => {
|
|
|
11136
11126
|
if (eventStreamMember) {
|
|
11137
11127
|
if (input[eventStreamMember]) {
|
|
11138
11128
|
const initialRequest = {};
|
|
11139
|
-
for (const [memberName
|
|
11140
|
-
if (memberName !== eventStreamMember && input[memberName]) {
|
|
11141
|
-
|
|
11142
|
-
initialRequest[memberName] = serializer.flush();
|
|
11129
|
+
for (const [memberName] of ns.structIterator()) {
|
|
11130
|
+
if (memberName !== eventStreamMember && input[memberName] != null) {
|
|
11131
|
+
initialRequest[memberName] = input[memberName];
|
|
11143
11132
|
}
|
|
11144
11133
|
}
|
|
11145
11134
|
payload = await this.serializeEventStream({
|
|
@@ -11226,8 +11215,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
11226
11215
|
async build() {
|
|
11227
11216
|
const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint();
|
|
11228
11217
|
this.path = basePath;
|
|
11229
|
-
for (const
|
|
11230
|
-
|
|
11218
|
+
for (const resolvePath2 of this.resolvePathStack) {
|
|
11219
|
+
resolvePath2(this.path);
|
|
11231
11220
|
}
|
|
11232
11221
|
return new HttpRequest({
|
|
11233
11222
|
protocol,
|
|
@@ -11548,24 +11537,27 @@ var require_protocols = __commonJS((exports) => {
|
|
|
11548
11537
|
}
|
|
11549
11538
|
}
|
|
11550
11539
|
var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
|
11540
|
+
if (runtimeConfig.logger && runtimeConfig.logger.constructor?.name !== "NoOpLogger") {
|
|
11541
|
+
runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"), runtimeConfig.logger);
|
|
11542
|
+
}
|
|
11551
11543
|
return {
|
|
11552
11544
|
setHttpHandler(handler) {
|
|
11553
|
-
runtimeConfig.
|
|
11545
|
+
runtimeConfig.requestHandler = handler;
|
|
11554
11546
|
},
|
|
11555
11547
|
httpHandler() {
|
|
11556
|
-
return runtimeConfig.
|
|
11548
|
+
return runtimeConfig.requestHandler;
|
|
11557
11549
|
},
|
|
11558
11550
|
updateHttpClientConfig(key, value) {
|
|
11559
|
-
runtimeConfig.
|
|
11551
|
+
runtimeConfig.requestHandler?.updateHttpClientConfig(key, value);
|
|
11560
11552
|
},
|
|
11561
11553
|
httpHandlerConfigs() {
|
|
11562
|
-
return runtimeConfig.
|
|
11554
|
+
return runtimeConfig.requestHandler.httpHandlerConfigs();
|
|
11563
11555
|
}
|
|
11564
11556
|
};
|
|
11565
11557
|
};
|
|
11566
11558
|
var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
|
11567
11559
|
return {
|
|
11568
|
-
|
|
11560
|
+
requestHandler: httpHandlerExtensionConfiguration.httpHandler()
|
|
11569
11561
|
};
|
|
11570
11562
|
};
|
|
11571
11563
|
var CONTENT_LENGTH_HEADER = "content-length";
|
|
@@ -11577,10 +11569,12 @@ var require_protocols = __commonJS((exports) => {
|
|
|
11577
11569
|
if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) {
|
|
11578
11570
|
try {
|
|
11579
11571
|
const length = bodyLengthChecker(body);
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11572
|
+
if (length != null) {
|
|
11573
|
+
request.headers = {
|
|
11574
|
+
...request.headers,
|
|
11575
|
+
[CONTENT_LENGTH_HEADER]: String(length)
|
|
11576
|
+
};
|
|
11577
|
+
}
|
|
11584
11578
|
} catch (ignored) {}
|
|
11585
11579
|
}
|
|
11586
11580
|
}
|
|
@@ -11649,7 +11643,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
11649
11643
|
exports.resolvedPath = resolvedPath;
|
|
11650
11644
|
});
|
|
11651
11645
|
|
|
11652
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
11646
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js
|
|
11653
11647
|
var require_retry = __commonJS((exports) => {
|
|
11654
11648
|
var { Readable } = __require("stream");
|
|
11655
11649
|
var { NoOpLogger, normalizeProvider } = require_client();
|
|
@@ -11836,7 +11830,7 @@ var require_retry = __commonJS((exports) => {
|
|
|
11836
11830
|
}
|
|
11837
11831
|
};
|
|
11838
11832
|
}
|
|
11839
|
-
var cooldown = (ms) => new Promise((
|
|
11833
|
+
var cooldown = (ms) => new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
11840
11834
|
var isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
|
|
11841
11835
|
var getRetryErrorInfo = (error, logger) => {
|
|
11842
11836
|
const errorInfo = {
|
|
@@ -11935,7 +11929,7 @@ var require_retry = __commonJS((exports) => {
|
|
|
11935
11929
|
this.refillTokenBucket();
|
|
11936
11930
|
while (amount > this.availableTokens) {
|
|
11937
11931
|
const delay = (amount - this.availableTokens) / this.fillRate * 1000;
|
|
11938
|
-
await new Promise((
|
|
11932
|
+
await new Promise((resolve4) => DefaultRateLimiter.setTimeoutFn(resolve4, delay));
|
|
11939
11933
|
this.refillTokenBucket();
|
|
11940
11934
|
}
|
|
11941
11935
|
this.availableTokens = this.availableTokens - amount;
|
|
@@ -12277,7 +12271,7 @@ var require_retry = __commonJS((exports) => {
|
|
|
12277
12271
|
const delayFromResponse = getDelayFromRetryAfterHeader(err.$response);
|
|
12278
12272
|
const delay = Math.max(delayFromResponse || 0, delayFromDecider);
|
|
12279
12273
|
totalDelay += delay;
|
|
12280
|
-
await new Promise((
|
|
12274
|
+
await new Promise((resolve4) => setTimeout(resolve4, delay));
|
|
12281
12275
|
continue;
|
|
12282
12276
|
}
|
|
12283
12277
|
if (!err.$metadata) {
|
|
@@ -12575,7 +12569,7 @@ var require_invoke_store = __commonJS((exports) => {
|
|
|
12575
12569
|
exports.InvokeStoreBase = InvokeStoreBase;
|
|
12576
12570
|
});
|
|
12577
12571
|
|
|
12578
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
12572
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/index.js
|
|
12579
12573
|
var require_dist_cjs2 = __commonJS((exports) => {
|
|
12580
12574
|
var { getSmithyContext } = require_transport();
|
|
12581
12575
|
exports.getSmithyContext = getSmithyContext;
|
|
@@ -13741,7 +13735,7 @@ var require_es5 = __commonJS((exports, module) => {
|
|
|
13741
13735
|
});
|
|
13742
13736
|
});
|
|
13743
13737
|
|
|
13744
|
-
// ../../node_modules/.bun/@aws-sdk+core@3.977.
|
|
13738
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.8/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
|
|
13745
13739
|
var require_client2 = __commonJS((exports) => {
|
|
13746
13740
|
var { Retry, RETRY_MODES } = require_retry();
|
|
13747
13741
|
var { HttpRequest, parseUrl } = require_protocols();
|
|
@@ -14679,7 +14673,7 @@ More information can be found at: https://a.co/c895JFp`);
|
|
|
14679
14673
|
exports.userAgentMiddleware = userAgentMiddleware;
|
|
14680
14674
|
});
|
|
14681
14675
|
|
|
14682
|
-
// ../../node_modules/.bun/@smithy+signature-v4@5.
|
|
14676
|
+
// ../../node_modules/.bun/@smithy+signature-v4@5.7.2/node_modules/@smithy/signature-v4/dist-cjs/index.js
|
|
14683
14677
|
var require_dist_cjs3 = __commonJS((exports) => {
|
|
14684
14678
|
var { fromUtf8, fromHex, toHex, toUint8Array, isArrayBuffer } = require_serde();
|
|
14685
14679
|
var { normalizeProvider } = require_client();
|
|
@@ -14703,27 +14697,27 @@ var require_dist_cjs3 = __commonJS((exports) => {
|
|
|
14703
14697
|
formatHeaderValue(header) {
|
|
14704
14698
|
switch (header.type) {
|
|
14705
14699
|
case "boolean":
|
|
14706
|
-
return Uint8Array.from([header.value ?
|
|
14700
|
+
return Uint8Array.from([header.value ? 0 : 1]);
|
|
14707
14701
|
case "byte":
|
|
14708
|
-
return Uint8Array.from([
|
|
14702
|
+
return Uint8Array.from([2, header.value]);
|
|
14709
14703
|
case "short":
|
|
14710
14704
|
const shortView = new DataView(new ArrayBuffer(3));
|
|
14711
|
-
shortView.setUint8(0,
|
|
14705
|
+
shortView.setUint8(0, 3);
|
|
14712
14706
|
shortView.setInt16(1, header.value, false);
|
|
14713
14707
|
return new Uint8Array(shortView.buffer);
|
|
14714
14708
|
case "integer":
|
|
14715
14709
|
const intView = new DataView(new ArrayBuffer(5));
|
|
14716
|
-
intView.setUint8(0,
|
|
14710
|
+
intView.setUint8(0, 4);
|
|
14717
14711
|
intView.setInt32(1, header.value, false);
|
|
14718
14712
|
return new Uint8Array(intView.buffer);
|
|
14719
14713
|
case "long":
|
|
14720
14714
|
const longBytes = new Uint8Array(9);
|
|
14721
|
-
longBytes[0] =
|
|
14715
|
+
longBytes[0] = 5;
|
|
14722
14716
|
longBytes.set(header.value.bytes, 1);
|
|
14723
14717
|
return longBytes;
|
|
14724
14718
|
case "binary":
|
|
14725
14719
|
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
14726
|
-
binView.setUint8(0,
|
|
14720
|
+
binView.setUint8(0, 6);
|
|
14727
14721
|
binView.setUint16(1, header.value.byteLength, false);
|
|
14728
14722
|
const binBytes = new Uint8Array(binView.buffer);
|
|
14729
14723
|
binBytes.set(header.value, 3);
|
|
@@ -14731,14 +14725,14 @@ var require_dist_cjs3 = __commonJS((exports) => {
|
|
|
14731
14725
|
case "string":
|
|
14732
14726
|
const utf8Bytes = fromUtf8(header.value);
|
|
14733
14727
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
14734
|
-
strView.setUint8(0,
|
|
14728
|
+
strView.setUint8(0, 7);
|
|
14735
14729
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
14736
14730
|
const strBytes = new Uint8Array(strView.buffer);
|
|
14737
14731
|
strBytes.set(utf8Bytes, 3);
|
|
14738
14732
|
return strBytes;
|
|
14739
14733
|
case "timestamp":
|
|
14740
14734
|
const tsBytes = new Uint8Array(9);
|
|
14741
|
-
tsBytes[0] =
|
|
14735
|
+
tsBytes[0] = 8;
|
|
14742
14736
|
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
14743
14737
|
return tsBytes;
|
|
14744
14738
|
case "uuid":
|
|
@@ -14746,7 +14740,7 @@ var require_dist_cjs3 = __commonJS((exports) => {
|
|
|
14746
14740
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
14747
14741
|
}
|
|
14748
14742
|
const uuidBytes = new Uint8Array(17);
|
|
14749
|
-
uuidBytes[0] =
|
|
14743
|
+
uuidBytes[0] = 9;
|
|
14750
14744
|
uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
|
|
14751
14745
|
return uuidBytes;
|
|
14752
14746
|
}
|
|
@@ -15219,7 +15213,7 @@ ${toHex(hashedRequest)}`;
|
|
|
15219
15213
|
exports.signatureV4aContainer = signatureV4aContainer;
|
|
15220
15214
|
});
|
|
15221
15215
|
|
|
15222
|
-
// ../../node_modules/.bun/@aws-sdk+core@3.977.
|
|
15216
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.8/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
|
|
15223
15217
|
var require_httpAuthSchemes = __commonJS((exports) => {
|
|
15224
15218
|
var { ProviderError, booleanSelector, SelectorType, loadConfig } = require_config();
|
|
15225
15219
|
var { setCredentialFeature } = require_client2();
|
|
@@ -15549,7 +15543,7 @@ var require_httpAuthSchemes = __commonJS((exports) => {
|
|
|
15549
15543
|
exports.validateSigningProperties = validateSigningProperties;
|
|
15550
15544
|
});
|
|
15551
15545
|
|
|
15552
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.
|
|
15546
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.69/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
15553
15547
|
var import_client3, import_config, ENV_KEY = "AWS_ACCESS_KEY_ID", ENV_SECRET = "AWS_SECRET_ACCESS_KEY", ENV_SESSION = "AWS_SESSION_TOKEN", ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION", ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE", ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID", fromEnv = (init) => async () => {
|
|
15554
15548
|
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
15555
15549
|
const accessKeyId = process.env[ENV_KEY];
|
|
@@ -15577,7 +15571,7 @@ var init_fromEnv = __esm(() => {
|
|
|
15577
15571
|
import_config = __toESM(require_config(), 1);
|
|
15578
15572
|
});
|
|
15579
15573
|
|
|
15580
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.
|
|
15574
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.69/node_modules/@aws-sdk/credential-provider-env/dist-es/index.js
|
|
15581
15575
|
var exports_dist_es = {};
|
|
15582
15576
|
__export(exports_dist_es, {
|
|
15583
15577
|
fromEnv: () => fromEnv,
|
|
@@ -15592,7 +15586,7 @@ var init_dist_es = __esm(() => {
|
|
|
15592
15586
|
init_fromEnv();
|
|
15593
15587
|
});
|
|
15594
15588
|
|
|
15595
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15589
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js
|
|
15596
15590
|
var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string", fromImdsCredentials = (creds) => ({
|
|
15597
15591
|
accessKeyId: creds.AccessKeyId,
|
|
15598
15592
|
secretAccessKey: creds.SecretAccessKey,
|
|
@@ -15601,16 +15595,16 @@ var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && type
|
|
|
15601
15595
|
...creds.AccountId && { accountId: creds.AccountId }
|
|
15602
15596
|
});
|
|
15603
15597
|
|
|
15604
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15598
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js
|
|
15605
15599
|
var DEFAULT_TIMEOUT = 1000, DEFAULT_MAX_RETRIES = 0, providerConfigFromInit = ({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT }) => ({ maxRetries, timeout });
|
|
15606
15600
|
|
|
15607
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15601
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js
|
|
15608
15602
|
import node_http from "http";
|
|
15609
15603
|
var init_node_http = () => {};
|
|
15610
15604
|
|
|
15611
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15605
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js
|
|
15612
15606
|
function httpRequest(options) {
|
|
15613
|
-
return new Promise((
|
|
15607
|
+
return new Promise((resolve4, reject) => {
|
|
15614
15608
|
const req = node_http.request({
|
|
15615
15609
|
method: "GET",
|
|
15616
15610
|
...options,
|
|
@@ -15635,7 +15629,7 @@ function httpRequest(options) {
|
|
|
15635
15629
|
chunks.push(chunk);
|
|
15636
15630
|
});
|
|
15637
15631
|
res.on("end", () => {
|
|
15638
|
-
|
|
15632
|
+
resolve4(Buffer.concat(chunks));
|
|
15639
15633
|
req.destroy();
|
|
15640
15634
|
});
|
|
15641
15635
|
});
|
|
@@ -15648,7 +15642,7 @@ var init_httpRequest = __esm(() => {
|
|
|
15648
15642
|
import_config2 = __toESM(require_config(), 1);
|
|
15649
15643
|
});
|
|
15650
15644
|
|
|
15651
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15645
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js
|
|
15652
15646
|
var retry = (toRetry, maxRetries) => {
|
|
15653
15647
|
let promise = toRetry();
|
|
15654
15648
|
for (let i = 0;i < maxRetries; i++) {
|
|
@@ -15657,7 +15651,7 @@ var retry = (toRetry, maxRetries) => {
|
|
|
15657
15651
|
return promise;
|
|
15658
15652
|
};
|
|
15659
15653
|
|
|
15660
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15654
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js
|
|
15661
15655
|
var import_config3, ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromContainerMetadata = (init = {}) => {
|
|
15662
15656
|
const { timeout, maxRetries } = providerConfigFromInit(init);
|
|
15663
15657
|
return () => retry(async () => {
|
|
@@ -15727,7 +15721,7 @@ var init_fromContainerMetadata = __esm(() => {
|
|
|
15727
15721
|
GREENGRASS_PROTOCOLS = new Set(["http:", "https:"]);
|
|
15728
15722
|
});
|
|
15729
15723
|
|
|
15730
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15724
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js
|
|
15731
15725
|
var import_config4, InstanceMetadataV1FallbackError;
|
|
15732
15726
|
var init_InstanceMetadataV1FallbackError = __esm(() => {
|
|
15733
15727
|
import_config4 = __toESM(require_config(), 1);
|
|
@@ -15742,7 +15736,7 @@ var init_InstanceMetadataV1FallbackError = __esm(() => {
|
|
|
15742
15736
|
};
|
|
15743
15737
|
});
|
|
15744
15738
|
|
|
15745
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15739
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js
|
|
15746
15740
|
var Endpoint;
|
|
15747
15741
|
var init_Endpoint = __esm(() => {
|
|
15748
15742
|
(function(Endpoint2) {
|
|
@@ -15751,7 +15745,7 @@ var init_Endpoint = __esm(() => {
|
|
|
15751
15745
|
})(Endpoint || (Endpoint = {}));
|
|
15752
15746
|
});
|
|
15753
15747
|
|
|
15754
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15748
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js
|
|
15755
15749
|
var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT", CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint", ENDPOINT_CONFIG_OPTIONS;
|
|
15756
15750
|
var init_EndpointConfigOptions = __esm(() => {
|
|
15757
15751
|
ENDPOINT_CONFIG_OPTIONS = {
|
|
@@ -15761,7 +15755,7 @@ var init_EndpointConfigOptions = __esm(() => {
|
|
|
15761
15755
|
};
|
|
15762
15756
|
});
|
|
15763
15757
|
|
|
15764
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15758
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js
|
|
15765
15759
|
var EndpointMode;
|
|
15766
15760
|
var init_EndpointMode = __esm(() => {
|
|
15767
15761
|
(function(EndpointMode2) {
|
|
@@ -15770,7 +15764,7 @@ var init_EndpointMode = __esm(() => {
|
|
|
15770
15764
|
})(EndpointMode || (EndpointMode = {}));
|
|
15771
15765
|
});
|
|
15772
15766
|
|
|
15773
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15767
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js
|
|
15774
15768
|
var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE", CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode", ENDPOINT_MODE_CONFIG_OPTIONS;
|
|
15775
15769
|
var init_EndpointModeConfigOptions = __esm(() => {
|
|
15776
15770
|
init_EndpointMode();
|
|
@@ -15781,7 +15775,7 @@ var init_EndpointModeConfigOptions = __esm(() => {
|
|
|
15781
15775
|
};
|
|
15782
15776
|
});
|
|
15783
15777
|
|
|
15784
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15778
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js
|
|
15785
15779
|
var import_config5, import_protocols, getInstanceMetadataEndpoint = async () => import_protocols.parseUrl(await getFromEndpointConfig() || await getFromEndpointModeConfig()), getFromEndpointConfig = async () => import_config5.loadConfig(ENDPOINT_CONFIG_OPTIONS)(), getFromEndpointModeConfig = async () => {
|
|
15786
15780
|
const endpointMode = await import_config5.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
|
|
15787
15781
|
switch (endpointMode) {
|
|
@@ -15802,7 +15796,7 @@ var init_getInstanceMetadataEndpoint = __esm(() => {
|
|
|
15802
15796
|
import_protocols = __toESM(require_protocols(), 1);
|
|
15803
15797
|
});
|
|
15804
15798
|
|
|
15805
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15799
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js
|
|
15806
15800
|
var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS, STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS, STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html", getExtendedInstanceMetadataCredentials = (credentials, logger) => {
|
|
15807
15801
|
const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
|
|
15808
15802
|
const newExpiration = new Date(Date.now() + refreshInterval * 1000);
|
|
@@ -15820,7 +15814,7 @@ var init_getExtendedInstanceMetadataCredentials = __esm(() => {
|
|
|
15820
15814
|
STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
|
|
15821
15815
|
});
|
|
15822
15816
|
|
|
15823
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15817
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js
|
|
15824
15818
|
var staticStabilityProvider = (provider, options = {}) => {
|
|
15825
15819
|
const logger = options?.logger || console;
|
|
15826
15820
|
let pastCredentials;
|
|
@@ -15847,7 +15841,7 @@ var init_staticStabilityProvider = __esm(() => {
|
|
|
15847
15841
|
init_getExtendedInstanceMetadataCredentials();
|
|
15848
15842
|
});
|
|
15849
15843
|
|
|
15850
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15844
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js
|
|
15851
15845
|
var import_config6, IMDS_PATH = "/latest/meta-data/iam/security-credentials/", IMDS_TOKEN_PATH = "/latest/api/token", AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED", PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled", X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token", fromInstanceMetadata = (init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger }), getInstanceMetadataProvider = (init = {}) => {
|
|
15852
15846
|
let disableFetchToken = false;
|
|
15853
15847
|
const { logger, profile } = init;
|
|
@@ -15859,9 +15853,9 @@ var import_config6, IMDS_PATH = "/latest/meta-data/iam/security-credentials/", I
|
|
|
15859
15853
|
let fallbackBlockedFromProcessEnv = false;
|
|
15860
15854
|
const configValue = await import_config6.loadConfig({
|
|
15861
15855
|
environmentVariableSelector: (env) => {
|
|
15862
|
-
const
|
|
15863
|
-
fallbackBlockedFromProcessEnv = !!
|
|
15864
|
-
if (
|
|
15856
|
+
const envValue2 = env[AWS_EC2_METADATA_V1_DISABLED];
|
|
15857
|
+
fallbackBlockedFromProcessEnv = !!envValue2 && envValue2 !== "false";
|
|
15858
|
+
if (envValue2 === undefined) {
|
|
15865
15859
|
throw new import_config6.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
|
|
15866
15860
|
}
|
|
15867
15861
|
return fallbackBlockedFromProcessEnv;
|
|
@@ -15967,7 +15961,7 @@ var init_fromInstanceMetadata = __esm(() => {
|
|
|
15967
15961
|
import_config6 = __toESM(require_config(), 1);
|
|
15968
15962
|
});
|
|
15969
15963
|
|
|
15970
|
-
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.
|
|
15964
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/index.js
|
|
15971
15965
|
var exports_dist_es2 = {};
|
|
15972
15966
|
__export(exports_dist_es2, {
|
|
15973
15967
|
providerConfigFromInit: () => providerConfigFromInit,
|
|
@@ -15990,7 +15984,7 @@ var init_dist_es2 = __esm(() => {
|
|
|
15990
15984
|
init_Endpoint();
|
|
15991
15985
|
});
|
|
15992
15986
|
|
|
15993
|
-
// ../../node_modules/.bun/@smithy+node-http-handler@4.
|
|
15987
|
+
// ../../node_modules/.bun/@smithy+node-http-handler@4.11.2/node_modules/@smithy/node-http-handler/dist-cjs/index.js
|
|
15994
15988
|
var require_dist_cjs4 = __commonJS((exports) => {
|
|
15995
15989
|
var { buildQueryString, HttpResponse } = require_protocols();
|
|
15996
15990
|
var node_https = __require("https");
|
|
@@ -16129,21 +16123,21 @@ var require_dist_cjs4 = __commonJS((exports) => {
|
|
|
16129
16123
|
let sendBody = true;
|
|
16130
16124
|
if (!externalAgent && expect === "100-continue") {
|
|
16131
16125
|
sendBody = await Promise.race([
|
|
16132
|
-
new Promise((
|
|
16133
|
-
timeoutId = Number(timing.setTimeout(() =>
|
|
16126
|
+
new Promise((resolve4) => {
|
|
16127
|
+
timeoutId = Number(timing.setTimeout(() => resolve4(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
|
|
16134
16128
|
}),
|
|
16135
|
-
new Promise((
|
|
16129
|
+
new Promise((resolve4) => {
|
|
16136
16130
|
httpRequest2.on("continue", () => {
|
|
16137
16131
|
timing.clearTimeout(timeoutId);
|
|
16138
|
-
|
|
16132
|
+
resolve4(true);
|
|
16139
16133
|
});
|
|
16140
16134
|
httpRequest2.on("response", () => {
|
|
16141
16135
|
timing.clearTimeout(timeoutId);
|
|
16142
|
-
|
|
16136
|
+
resolve4(false);
|
|
16143
16137
|
});
|
|
16144
16138
|
httpRequest2.on("error", () => {
|
|
16145
16139
|
timing.clearTimeout(timeoutId);
|
|
16146
|
-
|
|
16140
|
+
resolve4(false);
|
|
16147
16141
|
});
|
|
16148
16142
|
})
|
|
16149
16143
|
]);
|
|
@@ -16218,13 +16212,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16218
16212
|
return socketWarningTimestamp;
|
|
16219
16213
|
}
|
|
16220
16214
|
constructor(options) {
|
|
16221
|
-
this.configProvider = new Promise((
|
|
16215
|
+
this.configProvider = new Promise((resolve4, reject) => {
|
|
16222
16216
|
if (typeof options === "function") {
|
|
16223
16217
|
options().then((_options) => {
|
|
16224
|
-
|
|
16218
|
+
resolve4(this.resolveDefaultConfig(_options));
|
|
16225
16219
|
}).catch(reject);
|
|
16226
16220
|
} else {
|
|
16227
|
-
|
|
16221
|
+
resolve4(this.resolveDefaultConfig(options));
|
|
16228
16222
|
}
|
|
16229
16223
|
});
|
|
16230
16224
|
}
|
|
@@ -16237,6 +16231,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16237
16231
|
this.config = await this.configProvider;
|
|
16238
16232
|
}
|
|
16239
16233
|
const config = this.config;
|
|
16234
|
+
const logger = config.logger;
|
|
16240
16235
|
const isSSL = request.protocol === "https:";
|
|
16241
16236
|
if (!isSSL && !this.config.httpAgent) {
|
|
16242
16237
|
this.config.httpAgent = await this.config.httpAgentProvider();
|
|
@@ -16255,7 +16250,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16255
16250
|
timing.clearTimeout(socketTimeoutId);
|
|
16256
16251
|
timing.clearTimeout(keepAliveTimeoutId);
|
|
16257
16252
|
};
|
|
16258
|
-
const
|
|
16253
|
+
const resolve4 = async (arg) => {
|
|
16259
16254
|
await writeRequestBodyPromise;
|
|
16260
16255
|
clearTimeouts();
|
|
16261
16256
|
_resolve(arg);
|
|
@@ -16280,7 +16275,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16280
16275
|
});
|
|
16281
16276
|
}
|
|
16282
16277
|
socketWarningTimeoutId = timing.setTimeout(() => {
|
|
16283
|
-
this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp,
|
|
16278
|
+
this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, logger);
|
|
16284
16279
|
}, config.socketAcquisitionWarningTimeout ?? (config.requestTimeout ?? 2000) + (config.connectionTimeout ?? 1000));
|
|
16285
16280
|
const queryString = request.query ? buildQueryString(request.query) : "";
|
|
16286
16281
|
let auth = undefined;
|
|
@@ -16319,7 +16314,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16319
16314
|
headers: getTransformedHeaders(res.headers),
|
|
16320
16315
|
body: res
|
|
16321
16316
|
});
|
|
16322
|
-
|
|
16317
|
+
resolve4({ response: httpResponse });
|
|
16323
16318
|
});
|
|
16324
16319
|
req.on("error", (err) => {
|
|
16325
16320
|
if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) {
|
|
@@ -16344,7 +16339,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16344
16339
|
}
|
|
16345
16340
|
const effectiveRequestTimeout = requestTimeout ?? config.requestTimeout;
|
|
16346
16341
|
connectionTimeoutId = setConnectionTimeout(req, reject, config.connectionTimeout);
|
|
16347
|
-
requestTimeoutId = setRequestTimeout(req, reject, effectiveRequestTimeout, config.throwOnRequestTimeout,
|
|
16342
|
+
requestTimeoutId = setRequestTimeout(req, reject, effectiveRequestTimeout, config.throwOnRequestTimeout, logger ?? console);
|
|
16348
16343
|
socketTimeoutId = setSocketTimeout(req, reject, config.socketTimeout);
|
|
16349
16344
|
const httpAgent = nodeHttpsOptions.agent;
|
|
16350
16345
|
if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
|
|
@@ -16362,6 +16357,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16362
16357
|
updateHttpClientConfig(key, value) {
|
|
16363
16358
|
this.config = undefined;
|
|
16364
16359
|
this.configProvider = this.configProvider.then((config) => {
|
|
16360
|
+
if (key === Symbol.for("logger")) {
|
|
16361
|
+
return {
|
|
16362
|
+
...config,
|
|
16363
|
+
logger: config.logger ?? value
|
|
16364
|
+
};
|
|
16365
|
+
}
|
|
16365
16366
|
return {
|
|
16366
16367
|
...config,
|
|
16367
16368
|
[key]: value
|
|
@@ -16645,13 +16646,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16645
16646
|
return new NodeHttp2Handler(instanceOrOptions);
|
|
16646
16647
|
}
|
|
16647
16648
|
constructor(options) {
|
|
16648
|
-
this.configProvider = new Promise((
|
|
16649
|
+
this.configProvider = new Promise((resolve4, reject) => {
|
|
16649
16650
|
if (typeof options === "function") {
|
|
16650
16651
|
options().then((opts) => {
|
|
16651
|
-
|
|
16652
|
+
resolve4(opts || {});
|
|
16652
16653
|
}).catch(reject);
|
|
16653
16654
|
} else {
|
|
16654
|
-
|
|
16655
|
+
resolve4(options || {});
|
|
16655
16656
|
}
|
|
16656
16657
|
});
|
|
16657
16658
|
}
|
|
@@ -16676,7 +16677,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16676
16677
|
return new Promise((_resolve, _reject) => {
|
|
16677
16678
|
let fulfilled = false;
|
|
16678
16679
|
let writeRequestBodyPromise = undefined;
|
|
16679
|
-
const
|
|
16680
|
+
const resolve4 = async (arg) => {
|
|
16680
16681
|
await writeRequestBodyPromise;
|
|
16681
16682
|
_resolve(arg);
|
|
16682
16683
|
};
|
|
@@ -16761,7 +16762,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16761
16762
|
body: clientHttp2Stream
|
|
16762
16763
|
});
|
|
16763
16764
|
fulfilled = true;
|
|
16764
|
-
|
|
16765
|
+
resolve4({ response: httpResponse });
|
|
16765
16766
|
if (useIsolatedSession) {
|
|
16766
16767
|
session.close();
|
|
16767
16768
|
}
|
|
@@ -16797,7 +16798,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
16797
16798
|
exports.NodeHttpHandler = NodeHttpHandler;
|
|
16798
16799
|
});
|
|
16799
16800
|
|
|
16800
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.
|
|
16801
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.71/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
16801
16802
|
var import_config7, ECS_CONTAINER_HOST = "169.254.170.2", EKS_CONTAINER_HOST_IPv4 = "169.254.170.23", EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]", checkUrl = (url, logger) => {
|
|
16802
16803
|
if (url.protocol === "https:") {
|
|
16803
16804
|
return;
|
|
@@ -16831,7 +16832,7 @@ var init_checkUrl = __esm(() => {
|
|
|
16831
16832
|
import_config7 = __toESM(require_config(), 1);
|
|
16832
16833
|
});
|
|
16833
16834
|
|
|
16834
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.
|
|
16835
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.71/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
16835
16836
|
function createGetRequest(url) {
|
|
16836
16837
|
return new import_protocols2.HttpRequest({
|
|
16837
16838
|
protocol: url.protocol,
|
|
@@ -16880,21 +16881,21 @@ var init_requestHelpers = __esm(() => {
|
|
|
16880
16881
|
import_serde2 = __toESM(require_serde(), 1);
|
|
16881
16882
|
});
|
|
16882
16883
|
|
|
16883
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.
|
|
16884
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.71/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
16884
16885
|
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
16885
16886
|
return async () => {
|
|
16886
16887
|
for (let i = 0;i < maxRetries; ++i) {
|
|
16887
16888
|
try {
|
|
16888
16889
|
return await toRetry();
|
|
16889
16890
|
} catch (e) {
|
|
16890
|
-
await new Promise((
|
|
16891
|
+
await new Promise((resolve4) => setTimeout(resolve4, delayMs));
|
|
16891
16892
|
}
|
|
16892
16893
|
}
|
|
16893
16894
|
return await toRetry();
|
|
16894
16895
|
};
|
|
16895
16896
|
};
|
|
16896
16897
|
|
|
16897
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.
|
|
16898
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.71/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
16898
16899
|
import fs from "fs/promises";
|
|
16899
16900
|
var import_client4, import_config9, import_node_http_handler, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2", AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE", AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromHttp = (options = {}) => {
|
|
16900
16901
|
options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
@@ -16960,7 +16961,7 @@ var init_fromHttp = __esm(() => {
|
|
|
16960
16961
|
import_node_http_handler = __toESM(require_dist_cjs4(), 1);
|
|
16961
16962
|
});
|
|
16962
16963
|
|
|
16963
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.
|
|
16964
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.71/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js
|
|
16964
16965
|
var exports_dist_es3 = {};
|
|
16965
16966
|
__export(exports_dist_es3, {
|
|
16966
16967
|
fromHttp: () => fromHttp
|
|
@@ -16969,16 +16970,16 @@ var init_dist_es3 = __esm(() => {
|
|
|
16969
16970
|
init_fromHttp();
|
|
16970
16971
|
});
|
|
16971
16972
|
|
|
16972
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
16973
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.13/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
16973
16974
|
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
16974
16975
|
|
|
16975
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
16976
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1111.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
16976
16977
|
var EXPIRE_WINDOW_MS, REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
16977
16978
|
var init_constants = __esm(() => {
|
|
16978
16979
|
EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
16979
16980
|
});
|
|
16980
16981
|
|
|
16981
|
-
// ../../node_modules/.bun/@smithy+core@3.
|
|
16982
|
+
// ../../node_modules/.bun/@smithy+core@3.33.2/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
|
|
16982
16983
|
var require_cbor = __commonJS((exports) => {
|
|
16983
16984
|
var { nv, NumericValue, calculateBodyLength, generateIdempotencyToken, fromBase64, _parseEpochTimestamp } = require_serde();
|
|
16984
16985
|
var { HttpRequest: HttpRequest2, collectBody, SerdeContext, RpcProtocol } = require_protocols();
|
|
@@ -19072,9 +19073,9 @@ var require_cbor = __commonJS((exports) => {
|
|
|
19072
19073
|
this.serializer.write(15, {});
|
|
19073
19074
|
request.body = this.serializer.flush();
|
|
19074
19075
|
}
|
|
19075
|
-
|
|
19076
|
+
if (request.body instanceof Uint8Array) {
|
|
19076
19077
|
request.headers["content-length"] = String(request.body.byteLength);
|
|
19077
|
-
}
|
|
19078
|
+
}
|
|
19078
19079
|
}
|
|
19079
19080
|
const { service, operation } = getSmithyContext2(context);
|
|
19080
19081
|
const path = `/service/${service}/operation/${operation}`;
|
|
@@ -19346,7 +19347,7 @@ var require_cbor = __commonJS((exports) => {
|
|
|
19346
19347
|
exports.tagSymbol = tagSymbol;
|
|
19347
19348
|
});
|
|
19348
19349
|
|
|
19349
|
-
// ../../node_modules/.bun/@aws-sdk+xml-builder@3.972.
|
|
19350
|
+
// ../../node_modules/.bun/@aws-sdk+xml-builder@3.972.39/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
|
|
19350
19351
|
var require_dist_cjs5 = __commonJS((exports) => {
|
|
19351
19352
|
var ATTR_ESCAPE_RE = /[&<>"]/g;
|
|
19352
19353
|
var ATTR_ESCAPE_MAP = {
|
|
@@ -19714,7 +19715,7 @@ var require_dist_cjs5 = __commonJS((exports) => {
|
|
|
19714
19715
|
exports.parseXML = parseXML;
|
|
19715
19716
|
});
|
|
19716
19717
|
|
|
19717
|
-
// ../../node_modules/.bun/@aws-sdk+core@3.977.
|
|
19718
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.8/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
|
|
19718
19719
|
var require_protocols2 = __commonJS((exports) => {
|
|
19719
19720
|
var { SmithyRpcV2CborProtocol, loadSmithyRpcV2CborErrorCode } = require_cbor();
|
|
19720
19721
|
var { TypeRegistry, NormalizedSchema, deref } = require_schema();
|
|
@@ -22555,7 +22556,7 @@ var require_protocols2 = __commonJS((exports) => {
|
|
|
22555
22556
|
exports.parseXmlErrorBody = parseXmlErrorBody;
|
|
22556
22557
|
});
|
|
22557
22558
|
|
|
22558
|
-
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.
|
|
22559
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.43/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
|
|
22559
22560
|
var require_sso_oidc = __commonJS((exports) => {
|
|
22560
22561
|
var { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require_client2();
|
|
22561
22562
|
var { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require_dist_cjs2();
|
|
@@ -22633,7 +22634,7 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
22633
22634
|
Region: { type: "builtInParams", name: "region" },
|
|
22634
22635
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
22635
22636
|
};
|
|
22636
|
-
var version = "3.997.
|
|
22637
|
+
var version = "3.997.42";
|
|
22637
22638
|
var packageInfo = {
|
|
22638
22639
|
version
|
|
22639
22640
|
};
|
|
@@ -23310,7 +23311,7 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
23310
23311
|
exports.errorTypeRegistries = errorTypeRegistries;
|
|
23311
23312
|
});
|
|
23312
23313
|
|
|
23313
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
23314
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1111.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
23314
23315
|
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
23315
23316
|
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require_sso_oidc(), 1));
|
|
23316
23317
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
@@ -23322,7 +23323,7 @@ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
|
23322
23323
|
return ssoOidcClient;
|
|
23323
23324
|
};
|
|
23324
23325
|
|
|
23325
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
23326
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1111.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
23326
23327
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
23327
23328
|
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM(require_sso_oidc(), 1));
|
|
23328
23329
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
@@ -23335,7 +23336,7 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConf
|
|
|
23335
23336
|
};
|
|
23336
23337
|
var init_getNewSsoOidcToken = () => {};
|
|
23337
23338
|
|
|
23338
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
23339
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1111.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
23339
23340
|
var import_config11, validateTokenExpiry = (token) => {
|
|
23340
23341
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
23341
23342
|
throw new import_config11.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
@@ -23346,7 +23347,7 @@ var init_validateTokenExpiry = __esm(() => {
|
|
|
23346
23347
|
import_config11 = __toESM(require_config(), 1);
|
|
23347
23348
|
});
|
|
23348
23349
|
|
|
23349
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
23350
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1111.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
23350
23351
|
var import_config12, validateTokenKey = (key, value, forRefresh = false) => {
|
|
23351
23352
|
if (typeof value === "undefined") {
|
|
23352
23353
|
throw new import_config12.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
@@ -23357,7 +23358,7 @@ var init_validateTokenKey = __esm(() => {
|
|
|
23357
23358
|
import_config12 = __toESM(require_config(), 1);
|
|
23358
23359
|
});
|
|
23359
23360
|
|
|
23360
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
23361
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1111.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
|
|
23361
23362
|
import { promises as fsPromises } from "fs";
|
|
23362
23363
|
var import_config13, writeFile, writeSSOTokenToFile = (id, ssoToken) => {
|
|
23363
23364
|
const tokenFilepath = import_config13.getSSOTokenFilepath(id);
|
|
@@ -23369,7 +23370,7 @@ var init_writeSSOTokenToFile = __esm(() => {
|
|
|
23369
23370
|
({ writeFile } = fsPromises);
|
|
23370
23371
|
});
|
|
23371
23372
|
|
|
23372
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
23373
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1111.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
23373
23374
|
var import_config14, lastRefreshAttemptTime, fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
23374
23375
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
23375
23376
|
const profiles = await import_config14.parseKnownFiles(init);
|
|
@@ -23448,12 +23449,12 @@ var init_fromSso = __esm(() => {
|
|
|
23448
23449
|
lastRefreshAttemptTime = new Date(0);
|
|
23449
23450
|
});
|
|
23450
23451
|
|
|
23451
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
23452
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1111.0/node_modules/@aws-sdk/token-providers/dist-es/index.js
|
|
23452
23453
|
var init_dist_es4 = __esm(() => {
|
|
23453
23454
|
init_fromSso();
|
|
23454
23455
|
});
|
|
23455
23456
|
|
|
23456
|
-
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.
|
|
23457
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.43/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
|
|
23457
23458
|
function createAwsAuthSigv4HttpAuthOption2(authParameters) {
|
|
23458
23459
|
return {
|
|
23459
23460
|
schemeId: "aws.auth#sigv4",
|
|
@@ -23504,7 +23505,7 @@ var awsEndpointFunctions, emitWarningIfUnsupportedVersion$1, createDefaultUserAg
|
|
|
23504
23505
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
23505
23506
|
defaultSigningName: "awsssoportal"
|
|
23506
23507
|
});
|
|
23507
|
-
}, commonParams2, version = "3.997.
|
|
23508
|
+
}, commonParams2, version = "3.997.42", packageInfo, k = "ref", a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g, h, i, j, _data, root = 2, r = 1e8, nodes, bdd, cache, defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
23508
23509
|
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
23509
23510
|
endpointParams,
|
|
23510
23511
|
logger: context.logger
|
|
@@ -23901,7 +23902,7 @@ var init_sso = __esm(() => {
|
|
|
23901
23902
|
$SSOClient = SSOClient;
|
|
23902
23903
|
});
|
|
23903
23904
|
|
|
23904
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
23905
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.13/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js
|
|
23905
23906
|
var exports_loadSso = {};
|
|
23906
23907
|
__export(exports_loadSso, {
|
|
23907
23908
|
SSOClient: () => $SSOClient,
|
|
@@ -23911,7 +23912,7 @@ var init_loadSso = __esm(() => {
|
|
|
23911
23912
|
init_sso();
|
|
23912
23913
|
});
|
|
23913
23914
|
|
|
23914
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
23915
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.13/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
23915
23916
|
var import_client5, import_config15, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
|
|
23916
23917
|
let token;
|
|
23917
23918
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
@@ -24000,7 +24001,7 @@ var init_resolveSSOCredentials = __esm(() => {
|
|
|
24000
24001
|
import_config15 = __toESM(require_config(), 1);
|
|
24001
24002
|
});
|
|
24002
24003
|
|
|
24003
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
24004
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.13/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
24004
24005
|
var import_config16, validateSsoProfile = (profile, logger) => {
|
|
24005
24006
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
24006
24007
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
@@ -24013,7 +24014,7 @@ var init_validateSsoProfile = __esm(() => {
|
|
|
24013
24014
|
import_config16 = __toESM(require_config(), 1);
|
|
24014
24015
|
});
|
|
24015
24016
|
|
|
24016
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
24017
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.13/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
24017
24018
|
var import_config17, fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
24018
24019
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
24019
24020
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
@@ -24095,7 +24096,7 @@ var init_fromSSO = __esm(() => {
|
|
|
24095
24096
|
import_config17 = __toESM(require_config(), 1);
|
|
24096
24097
|
});
|
|
24097
24098
|
|
|
24098
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
24099
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.13/node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js
|
|
24099
24100
|
var exports_dist_es4 = {};
|
|
24100
24101
|
__export(exports_dist_es4, {
|
|
24101
24102
|
validateSsoProfile: () => validateSsoProfile,
|
|
@@ -24107,7 +24108,7 @@ var init_dist_es5 = __esm(() => {
|
|
|
24107
24108
|
init_validateSsoProfile();
|
|
24108
24109
|
});
|
|
24109
24110
|
|
|
24110
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
24111
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.14/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
24111
24112
|
var import_client6, import_config18, resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
24112
24113
|
const sourceProvidersMap = {
|
|
24113
24114
|
EcsContainer: async (options) => {
|
|
@@ -24138,7 +24139,7 @@ var init_resolveCredentialSource = __esm(() => {
|
|
|
24138
24139
|
import_config18 = __toESM(require_config(), 1);
|
|
24139
24140
|
});
|
|
24140
24141
|
|
|
24141
|
-
// ../../node_modules/.bun/@aws-sdk+signature-v4-multi-region@3.996.
|
|
24142
|
+
// ../../node_modules/.bun/@aws-sdk+signature-v4-multi-region@3.996.45/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
|
|
24142
24143
|
var require_dist_cjs6 = __commonJS((exports) => {
|
|
24143
24144
|
var { SignatureV4, signatureV4aContainer } = require_dist_cjs3();
|
|
24144
24145
|
var signatureV4CrtContainer = {
|
|
@@ -24270,7 +24271,7 @@ var require_dist_cjs6 = __commonJS((exports) => {
|
|
|
24270
24271
|
exports.signatureV4CrtContainer = signatureV4CrtContainer;
|
|
24271
24272
|
});
|
|
24272
24273
|
|
|
24273
|
-
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.
|
|
24274
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.43/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
|
|
24274
24275
|
var require_sts = __commonJS((exports) => {
|
|
24275
24276
|
var { awsEndpointFunctions: awsEndpointFunctions2, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$12, createDefaultUserAgentProvider: createDefaultUserAgentProvider2, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2, getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2, setCredentialFeature: setCredentialFeature5, stsRegionDefaultResolver } = require_client2();
|
|
24276
24277
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
@@ -24601,7 +24602,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
24601
24602
|
Region: { type: "builtInParams", name: "region" },
|
|
24602
24603
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
24603
24604
|
};
|
|
24604
|
-
var version2 = "3.997.
|
|
24605
|
+
var version2 = "3.997.42";
|
|
24605
24606
|
var packageInfo2 = {
|
|
24606
24607
|
version: version2
|
|
24607
24608
|
};
|
|
@@ -25292,7 +25293,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
25292
25293
|
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
|
|
25293
25294
|
});
|
|
25294
25295
|
|
|
25295
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
25296
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.14/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
25296
25297
|
var import_client7, import_config19, isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
25297
25298
|
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
|
|
25298
25299
|
}, isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
|
|
@@ -25360,7 +25361,7 @@ var init_resolveAssumeRoleCredentials = __esm(() => {
|
|
|
25360
25361
|
import_config19 = __toESM(require_config(), 1);
|
|
25361
25362
|
});
|
|
25362
25363
|
|
|
25363
|
-
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.
|
|
25364
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.43/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
|
|
25364
25365
|
var require_signin = __commonJS((exports) => {
|
|
25365
25366
|
var { awsEndpointFunctions: awsEndpointFunctions2, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$12, createDefaultUserAgentProvider: createDefaultUserAgentProvider2, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2, getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2 } = require_client2();
|
|
25366
25367
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
@@ -25438,7 +25439,7 @@ var require_signin = __commonJS((exports) => {
|
|
|
25438
25439
|
Region: { type: "builtInParams", name: "region" },
|
|
25439
25440
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
25440
25441
|
};
|
|
25441
|
-
var version2 = "3.997.
|
|
25442
|
+
var version2 = "3.997.42";
|
|
25442
25443
|
var packageInfo2 = {
|
|
25443
25444
|
version: version2
|
|
25444
25445
|
};
|
|
@@ -26092,11 +26093,11 @@ var require_signin = __commonJS((exports) => {
|
|
|
26092
26093
|
exports.errorTypeRegistries = errorTypeRegistries2;
|
|
26093
26094
|
});
|
|
26094
26095
|
|
|
26095
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.
|
|
26096
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.76/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
26096
26097
|
import { createHash as createHash2, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
26097
26098
|
import { promises as fs2 } from "fs";
|
|
26098
|
-
import { homedir as
|
|
26099
|
-
import { dirname as dirname3, join as
|
|
26099
|
+
import { homedir as homedir4 } from "os";
|
|
26100
|
+
import { dirname as dirname3, join as join5 } from "path";
|
|
26100
26101
|
var import_config20, import_protocols3, LoginCredentialsFetcher;
|
|
26101
26102
|
var init_LoginCredentialsFetcher = __esm(() => {
|
|
26102
26103
|
import_config20 = __toESM(require_config(), 1);
|
|
@@ -26263,10 +26264,10 @@ var init_LoginCredentialsFetcher = __esm(() => {
|
|
|
26263
26264
|
await fs2.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8");
|
|
26264
26265
|
}
|
|
26265
26266
|
getTokenFilePath() {
|
|
26266
|
-
const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ??
|
|
26267
|
+
const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join5(homedir4(), ".aws", "login", "cache");
|
|
26267
26268
|
const loginSessionBytes = Buffer.from(this.loginSession, "utf8");
|
|
26268
26269
|
const loginSessionSha256 = createHash2("sha256").update(loginSessionBytes).digest("hex");
|
|
26269
|
-
return
|
|
26270
|
+
return join5(directory, `${loginSessionSha256}.json`);
|
|
26270
26271
|
}
|
|
26271
26272
|
derToRawSignature(derSignature) {
|
|
26272
26273
|
let offset = 2;
|
|
@@ -26356,7 +26357,7 @@ var init_LoginCredentialsFetcher = __esm(() => {
|
|
|
26356
26357
|
};
|
|
26357
26358
|
});
|
|
26358
26359
|
|
|
26359
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.
|
|
26360
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.76/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
26360
26361
|
var import_client8, import_config21, fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
26361
26362
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
26362
26363
|
const profiles = await import_config21.parseKnownFiles(init || {});
|
|
@@ -26380,7 +26381,7 @@ var init_fromLoginCredentials = __esm(() => {
|
|
|
26380
26381
|
import_config21 = __toESM(require_config(), 1);
|
|
26381
26382
|
});
|
|
26382
26383
|
|
|
26383
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.
|
|
26384
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.76/node_modules/@aws-sdk/credential-provider-login/dist-es/index.js
|
|
26384
26385
|
var exports_dist_es5 = {};
|
|
26385
26386
|
__export(exports_dist_es5, {
|
|
26386
26387
|
fromLoginCredentials: () => fromLoginCredentials
|
|
@@ -26389,7 +26390,7 @@ var init_dist_es6 = __esm(() => {
|
|
|
26389
26390
|
init_fromLoginCredentials();
|
|
26390
26391
|
});
|
|
26391
26392
|
|
|
26392
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
26393
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.14/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
|
|
26393
26394
|
var import_client9, isLoginProfile = (data) => {
|
|
26394
26395
|
return Boolean(data && data.login_session);
|
|
26395
26396
|
}, resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
@@ -26404,7 +26405,7 @@ var init_resolveLoginCredentials = __esm(() => {
|
|
|
26404
26405
|
import_client9 = __toESM(require_client2(), 1);
|
|
26405
26406
|
});
|
|
26406
26407
|
|
|
26407
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.
|
|
26408
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.69/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
26408
26409
|
var import_client10, getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
26409
26410
|
if (data.Version !== 1) {
|
|
26410
26411
|
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
@@ -26438,7 +26439,7 @@ var init_getValidatedProcessCredentials = __esm(() => {
|
|
|
26438
26439
|
import_client10 = __toESM(require_client2(), 1);
|
|
26439
26440
|
});
|
|
26440
26441
|
|
|
26441
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.
|
|
26442
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.69/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
26442
26443
|
import { exec } from "child_process";
|
|
26443
26444
|
import { promisify } from "util";
|
|
26444
26445
|
var import_config22, resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
@@ -26473,7 +26474,7 @@ var init_resolveProcessCredentials = __esm(() => {
|
|
|
26473
26474
|
import_config22 = __toESM(require_config(), 1);
|
|
26474
26475
|
});
|
|
26475
26476
|
|
|
26476
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.
|
|
26477
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.69/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
|
|
26477
26478
|
var import_config23, fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
26478
26479
|
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
26479
26480
|
const profiles = await import_config23.parseKnownFiles(init);
|
|
@@ -26486,7 +26487,7 @@ var init_fromProcess = __esm(() => {
|
|
|
26486
26487
|
import_config23 = __toESM(require_config(), 1);
|
|
26487
26488
|
});
|
|
26488
26489
|
|
|
26489
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.
|
|
26490
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.69/node_modules/@aws-sdk/credential-provider-process/dist-es/index.js
|
|
26490
26491
|
var exports_dist_es6 = {};
|
|
26491
26492
|
__export(exports_dist_es6, {
|
|
26492
26493
|
fromProcess: () => fromProcess
|
|
@@ -26495,7 +26496,7 @@ var init_dist_es7 = __esm(() => {
|
|
|
26495
26496
|
init_fromProcess();
|
|
26496
26497
|
});
|
|
26497
26498
|
|
|
26498
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
26499
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.14/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
26499
26500
|
var import_client11, isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", resolveProcessCredentials2 = async (options, profile) => {
|
|
26500
26501
|
const { fromProcess: fromProcess2 } = await Promise.resolve().then(() => (init_dist_es7(), exports_dist_es6));
|
|
26501
26502
|
const credentials = await fromProcess2({
|
|
@@ -26508,7 +26509,7 @@ var init_resolveProcessCredentials2 = __esm(() => {
|
|
|
26508
26509
|
import_client11 = __toESM(require_client2(), 1);
|
|
26509
26510
|
});
|
|
26510
26511
|
|
|
26511
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
26512
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.14/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
26512
26513
|
var import_client12, resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
26513
26514
|
const { fromSSO: fromSSO2 } = await Promise.resolve().then(() => (init_dist_es5(), exports_dist_es4));
|
|
26514
26515
|
return fromSSO2({
|
|
@@ -26530,7 +26531,7 @@ var init_resolveSsoCredentials = __esm(() => {
|
|
|
26530
26531
|
import_client12 = __toESM(require_client2(), 1);
|
|
26531
26532
|
});
|
|
26532
26533
|
|
|
26533
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
26534
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.14/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
26534
26535
|
var import_client13, isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, resolveStaticCredentials = async (profile, options) => {
|
|
26535
26536
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
26536
26537
|
const credentials = {
|
|
@@ -26546,7 +26547,7 @@ var init_resolveStaticCredentials = __esm(() => {
|
|
|
26546
26547
|
import_client13 = __toESM(require_client2(), 1);
|
|
26547
26548
|
});
|
|
26548
26549
|
|
|
26549
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.
|
|
26550
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.75/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
26550
26551
|
var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
26551
26552
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
26552
26553
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
@@ -26573,7 +26574,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
26573
26574
|
});
|
|
26574
26575
|
};
|
|
26575
26576
|
|
|
26576
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.
|
|
26577
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.75/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
26577
26578
|
import { readFileSync as readFileSync4 } from "fs";
|
|
26578
26579
|
var import_client14, import_config24, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME", fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
|
|
26579
26580
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
@@ -26601,7 +26602,7 @@ var init_fromTokenFile = __esm(() => {
|
|
|
26601
26602
|
import_config24 = __toESM(require_config(), 1);
|
|
26602
26603
|
});
|
|
26603
26604
|
|
|
26604
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.
|
|
26605
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.75/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js
|
|
26605
26606
|
var exports_dist_es7 = {};
|
|
26606
26607
|
__export(exports_dist_es7, {
|
|
26607
26608
|
fromWebToken: () => fromWebToken,
|
|
@@ -26611,7 +26612,7 @@ var init_dist_es8 = __esm(() => {
|
|
|
26611
26612
|
init_fromTokenFile();
|
|
26612
26613
|
});
|
|
26613
26614
|
|
|
26614
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
26615
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.14/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
26615
26616
|
var import_client15, isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
|
|
26616
26617
|
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => (init_dist_es8(), exports_dist_es7));
|
|
26617
26618
|
const credentials = await fromTokenFile2({
|
|
@@ -26630,7 +26631,7 @@ var init_resolveWebIdentityCredentials = __esm(() => {
|
|
|
26630
26631
|
import_client15 = __toESM(require_client2(), 1);
|
|
26631
26632
|
});
|
|
26632
26633
|
|
|
26633
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
26634
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.14/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
26634
26635
|
var import_config25, resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
26635
26636
|
const data = profiles[profileName];
|
|
26636
26637
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
@@ -26666,7 +26667,7 @@ var init_resolveProfileData = __esm(() => {
|
|
|
26666
26667
|
import_config25 = __toESM(require_config(), 1);
|
|
26667
26668
|
});
|
|
26668
26669
|
|
|
26669
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
26670
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.14/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
26670
26671
|
var import_config26, fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
26671
26672
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
26672
26673
|
const profiles = await import_config26.parseKnownFiles(init);
|
|
@@ -26679,7 +26680,7 @@ var init_fromIni = __esm(() => {
|
|
|
26679
26680
|
import_config26 = __toESM(require_config(), 1);
|
|
26680
26681
|
});
|
|
26681
26682
|
|
|
26682
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
26683
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.14/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js
|
|
26683
26684
|
var exports_dist_es8 = {};
|
|
26684
26685
|
__export(exports_dist_es8, {
|
|
26685
26686
|
fromIni: () => fromIni
|
|
@@ -26840,9 +26841,9 @@ async function startMcpHttpServer(buildServer, options) {
|
|
|
26840
26841
|
res.writeHead(404, { "Content-Type": "text/plain" });
|
|
26841
26842
|
res.end("Not Found");
|
|
26842
26843
|
});
|
|
26843
|
-
await new Promise((
|
|
26844
|
+
await new Promise((resolve4, reject) => {
|
|
26844
26845
|
httpServer.once("error", reject);
|
|
26845
|
-
httpServer.listen(requestedPort, host, () =>
|
|
26846
|
+
httpServer.listen(requestedPort, host, () => resolve4());
|
|
26846
26847
|
});
|
|
26847
26848
|
const addr = httpServer.address();
|
|
26848
26849
|
const port = typeof addr === "object" && addr ? addr.port : requestedPort;
|
|
@@ -26850,8 +26851,8 @@ async function startMcpHttpServer(buildServer, options) {
|
|
|
26850
26851
|
return {
|
|
26851
26852
|
port,
|
|
26852
26853
|
host,
|
|
26853
|
-
close: () => new Promise((
|
|
26854
|
-
httpServer.close((err) => err ? reject(err) :
|
|
26854
|
+
close: () => new Promise((resolve4, reject) => {
|
|
26855
|
+
httpServer.close((err) => err ? reject(err) : resolve4());
|
|
26855
26856
|
})
|
|
26856
26857
|
};
|
|
26857
26858
|
}
|
|
@@ -26995,6 +26996,7 @@ import { StdioServerTransport as StdioServerTransport2 } from "@modelcontextprot
|
|
|
26995
26996
|
// ../contracts/dist/client/storage.js
|
|
26996
26997
|
import { isIP } from "net";
|
|
26997
26998
|
import { readFileSync, statSync } from "fs";
|
|
26999
|
+
import { createRequire } from "module";
|
|
26998
27000
|
import { join } from "path";
|
|
26999
27001
|
function envToken(name) {
|
|
27000
27002
|
return name.toUpperCase().replace(/-/g, "_");
|
|
@@ -27010,6 +27012,9 @@ function credentialOverrideEnvKey(name) {
|
|
|
27010
27012
|
return `HASNA_${envToken(name)}_API_KEY_OVERRIDE`;
|
|
27011
27013
|
}
|
|
27012
27014
|
var CREDENTIAL_PROFILE_ENV_KEY = "HASNA_PROFILE";
|
|
27015
|
+
function credentialPointerEnvKey(name) {
|
|
27016
|
+
return `HASNA_${envToken(name)}_API_KEY_REF`;
|
|
27017
|
+
}
|
|
27013
27018
|
|
|
27014
27019
|
class CredentialResolutionError extends Error {
|
|
27015
27020
|
appName;
|
|
@@ -27022,31 +27027,55 @@ class CredentialResolutionError extends Error {
|
|
|
27022
27027
|
}
|
|
27023
27028
|
}
|
|
27024
27029
|
var HASNA_STATE_DIR = ".hasna";
|
|
27025
|
-
var FLEET_CREDENTIAL_DIR = "
|
|
27030
|
+
var FLEET_CREDENTIAL_DIR = "fleet-env";
|
|
27031
|
+
var LEGACY_CLOUD_DIR = "cloud";
|
|
27026
27032
|
var CONFIG_DIR = ".config";
|
|
27027
27033
|
var CONFIG_NAMESPACE = "hasna";
|
|
27034
|
+
var LEGACY_CLOUD_REMOVAL_DEADLINE = "2026-10-01";
|
|
27028
27035
|
var MAX_CREDENTIAL_FILE_BYTES = 64 * 1024;
|
|
27029
27036
|
var SAFE_APP_SLUG = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/;
|
|
27030
27037
|
var SAFE_PROFILE = /^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$/;
|
|
27031
27038
|
var ILLEGAL_IN_HEADER_VALUE = /[^\t\x20-\x7e]/;
|
|
27039
|
+
var VAULT_POINTER_SHAPE = /^[a-z0-9][a-z0-9-]*(?:\/[a-z0-9][a-z0-9-_.]*){2,}$/;
|
|
27032
27040
|
function homeDir(env) {
|
|
27033
27041
|
const home = env.HOME?.trim();
|
|
27034
27042
|
return home ? home : null;
|
|
27035
27043
|
}
|
|
27036
|
-
function
|
|
27037
|
-
return profileDiskSources(name, env, null);
|
|
27038
|
-
}
|
|
27039
|
-
function profileDiskSources(name, env, profile) {
|
|
27044
|
+
function credentialDiskSourceList(name, env, profile = null) {
|
|
27040
27045
|
const home = homeDir(env);
|
|
27041
27046
|
if (!home || !SAFE_APP_SLUG.test(name))
|
|
27042
27047
|
return [];
|
|
27043
27048
|
const stem = profile ? `${name}.${profile}` : name;
|
|
27044
27049
|
const configStem = profile ? `${name}-${profile}` : name;
|
|
27045
27050
|
return [
|
|
27046
|
-
|
|
27047
|
-
|
|
27051
|
+
{
|
|
27052
|
+
path: join(home, HASNA_STATE_DIR, FLEET_CREDENTIAL_DIR, `${stem}.env`),
|
|
27053
|
+
tier: "fleet-env",
|
|
27054
|
+
deprecated: false
|
|
27055
|
+
},
|
|
27056
|
+
{
|
|
27057
|
+
path: join(home, HASNA_STATE_DIR, LEGACY_CLOUD_DIR, `${stem}.env`),
|
|
27058
|
+
tier: "legacy-cloud",
|
|
27059
|
+
deprecated: true
|
|
27060
|
+
},
|
|
27061
|
+
{
|
|
27062
|
+
path: join(home, CONFIG_DIR, CONFIG_NAMESPACE, `${configStem}.env`),
|
|
27063
|
+
tier: "config",
|
|
27064
|
+
deprecated: false
|
|
27065
|
+
},
|
|
27066
|
+
{
|
|
27067
|
+
path: join(home, CONFIG_DIR, CONFIG_NAMESPACE, `${configStem}-cloud.env`),
|
|
27068
|
+
tier: "config-legacy",
|
|
27069
|
+
deprecated: true
|
|
27070
|
+
}
|
|
27048
27071
|
];
|
|
27049
27072
|
}
|
|
27073
|
+
function credentialDiskSources(name, env) {
|
|
27074
|
+
return credentialDiskSourceList(name, env, null).map((s) => s.path);
|
|
27075
|
+
}
|
|
27076
|
+
function profileDiskSources(name, env, profile) {
|
|
27077
|
+
return credentialDiskSourceList(name, env, profile).map((s) => s.path);
|
|
27078
|
+
}
|
|
27050
27079
|
function parseEnvFile(text) {
|
|
27051
27080
|
const values = new Map;
|
|
27052
27081
|
for (const rawLine of text.split(/\r?\n/)) {
|
|
@@ -27114,6 +27143,9 @@ function appConfigDiskValue(name, env, keys) {
|
|
|
27114
27143
|
return null;
|
|
27115
27144
|
}
|
|
27116
27145
|
function assertUsableCredential(appName, source, value) {
|
|
27146
|
+
if (VAULT_POINTER_SHAPE.test(value)) {
|
|
27147
|
+
throw new CredentialResolutionError(appName, `The credential from ${source} looks like a secrets-vault pointer (a path-shaped reference like ` + `'namespace/app/live/api_key'). A vault path is NEVER accepted as a literal API key. ` + `Use ${credentialPointerEnvKey(appName)} to resolve the key through the vault, or provide the actual key value.`, [source]);
|
|
27148
|
+
}
|
|
27117
27149
|
if (!ILLEGAL_IN_HEADER_VALUE.test(value))
|
|
27118
27150
|
return;
|
|
27119
27151
|
throw new CredentialResolutionError(appName, `The credential from ${source} contains characters that cannot be sent in an HTTP header ` + `(a control character or non-ASCII byte). A file written with CR-only line endings is the usual ` + `cause. Rewrite that credential file with one LF-terminated KEY=value line. ` + `The value is not shown here, and is deliberately never logged.`, [source]);
|
|
@@ -27138,6 +27170,14 @@ function sealCredential(fields) {
|
|
|
27138
27170
|
writable: false,
|
|
27139
27171
|
configurable: false
|
|
27140
27172
|
});
|
|
27173
|
+
if (fields.pointerVaultKey !== undefined) {
|
|
27174
|
+
Object.defineProperty(sealed, "pointerVaultKey", {
|
|
27175
|
+
value: fields.pointerVaultKey,
|
|
27176
|
+
enumerable: false,
|
|
27177
|
+
writable: false,
|
|
27178
|
+
configurable: false
|
|
27179
|
+
});
|
|
27180
|
+
}
|
|
27141
27181
|
Object.defineProperty(sealed, INSPECT_CUSTOM, {
|
|
27142
27182
|
value: () => ({ ...visible, apiKey: "[redacted]" }),
|
|
27143
27183
|
enumerable: false,
|
|
@@ -27189,7 +27229,8 @@ function validateAndSealResolvedCredential(appName, credential) {
|
|
|
27189
27229
|
deliberate: credential.deliberate,
|
|
27190
27230
|
deprecated: credential.deprecated,
|
|
27191
27231
|
diskCandidates: credential.diskCandidates,
|
|
27192
|
-
warning: credential.warning
|
|
27232
|
+
warning: credential.warning,
|
|
27233
|
+
...credential.pointerVaultKey !== undefined ? { pointerVaultKey: credential.pointerVaultKey } : {}
|
|
27193
27234
|
});
|
|
27194
27235
|
}
|
|
27195
27236
|
function firstEnvValue(env, keys) {
|
|
@@ -27250,6 +27291,27 @@ function resolveCredential(name, env, options = {}) {
|
|
|
27250
27291
|
warning: null
|
|
27251
27292
|
});
|
|
27252
27293
|
}
|
|
27294
|
+
const pointerKeyName = credentialPointerEnvKey(name);
|
|
27295
|
+
const pointerRaw = env[pointerKeyName];
|
|
27296
|
+
if (pointerRaw !== undefined) {
|
|
27297
|
+
const pointer = pointerRaw.trim();
|
|
27298
|
+
if (!pointer) {
|
|
27299
|
+
throw new CredentialResolutionError(name, `${pointerKeyName} is set but empty. It is a deliberate vault pointer, so it is not resolved around: ` + `either give it a vault item key or unset it to fall back to the credential on disk.`, [pointerKeyName]);
|
|
27300
|
+
}
|
|
27301
|
+
if (!VAULT_POINTER_SHAPE.test(pointer)) {
|
|
27302
|
+
throw new CredentialResolutionError(name, `${pointerKeyName} must name a vault ITEM KEY (a path-shaped reference like ` + `'namespace/app/live/api_key'), not a credential value. A pointer that carries a literal is refused.`, [pointerKeyName]);
|
|
27303
|
+
}
|
|
27304
|
+
return sealCredential({
|
|
27305
|
+
apiKey: "",
|
|
27306
|
+
pointerVaultKey: pointer,
|
|
27307
|
+
tier: "pointer",
|
|
27308
|
+
source: pointerKeyName,
|
|
27309
|
+
deliberate: true,
|
|
27310
|
+
deprecated: false,
|
|
27311
|
+
diskCandidates: diskPaths,
|
|
27312
|
+
warning: null
|
|
27313
|
+
});
|
|
27314
|
+
}
|
|
27253
27315
|
const profile = options.profile?.trim() || env[CREDENTIAL_PROFILE_ENV_KEY]?.trim();
|
|
27254
27316
|
if (profile) {
|
|
27255
27317
|
const profileSource = options.profile?.trim() ? "explicit profile argument" : CREDENTIAL_PROFILE_ENV_KEY;
|
|
@@ -27274,26 +27336,42 @@ function resolveCredential(name, env, options = {}) {
|
|
|
27274
27336
|
}
|
|
27275
27337
|
throw new CredentialResolutionError(name, `Profile '${profile}' (from ${profileSource}) has no ${apiKeyKeys[0]} for '${name}'. ` + `Looked in: ${paths.join(", ") || "<no HOME in this environment>"}. ` + `A profile names WHICH identity to use, so it is never resolved around \u2014 ` + `create the profile's credential file or unset ${CREDENTIAL_PROFILE_ENV_KEY}.`, paths);
|
|
27276
27338
|
}
|
|
27277
|
-
const
|
|
27339
|
+
const diskSourceList = credentialDiskSourceList(name, env, null);
|
|
27340
|
+
const diskHits = diskSourceList.map((src) => ({ src, value: readCredentialFile(src.path, apiKeyKeys) })).filter((hit) => hit.value !== null);
|
|
27278
27341
|
if (diskHits.length > 0) {
|
|
27279
27342
|
const winner = diskHits[0];
|
|
27280
|
-
assertUsableCredential(name, winner.path, winner.value);
|
|
27343
|
+
assertUsableCredential(name, winner.src.path, winner.value);
|
|
27281
27344
|
const divergentSources = [
|
|
27282
|
-
...diskHits.slice(1).filter((hit) => hit.value !== winner.value).map((hit) => hit.path),
|
|
27345
|
+
...diskHits.slice(1).filter((hit) => hit.value !== winner.value).map((hit) => hit.src.path),
|
|
27283
27346
|
...(() => {
|
|
27284
27347
|
const legacyHit = firstEnvValue(env, apiKeyKeys);
|
|
27285
27348
|
return legacyHit && legacyHit.value !== winner.value ? [legacyHit.key] : [];
|
|
27286
27349
|
})()
|
|
27287
27350
|
];
|
|
27288
|
-
const warning = divergentSources.length > 0 ? `Credential sources disagree for '${name}': ${winner.path} and ` + `${divergentSources.join(", ")} hold different keys. ${winner.path} wins, because a file on ` + `disk is re-read on every call while an environment variable is a snapshot. Reconcile them \u2014 ` + `a rotation that updated only one leaves the other to fail 401 wherever it is loaded first.` : null;
|
|
27351
|
+
const warning = divergentSources.length > 0 ? `Credential sources disagree for '${name}': ${winner.src.path} and ` + `${divergentSources.join(", ")} hold different keys. ${winner.src.path} wins, because a file on ` + `disk is re-read on every call while an environment variable is a snapshot. Reconcile them \u2014 ` + `a rotation that updated only one leaves the other to fail 401 wherever it is loaded first.` : null;
|
|
27352
|
+
let deprecated = winner.src.deprecated;
|
|
27353
|
+
let finalWarning = warning;
|
|
27354
|
+
if (winner.src.deprecated) {
|
|
27355
|
+
deprecated = true;
|
|
27356
|
+
const sink = options.onDeprecation ?? defaultDeprecationSink;
|
|
27357
|
+
const notified = deprecationNotified();
|
|
27358
|
+
const noticeKey = `${name}:${winner.src.path}`;
|
|
27359
|
+
if (!notified.has(noticeKey)) {
|
|
27360
|
+
notified.add(noticeKey);
|
|
27361
|
+
const target = diskSourceList[0]?.path ?? "<none>";
|
|
27362
|
+
const message = `[${name}] DEPRECATED: the API key came from ${winner.src.path} \u2014 a legacy credential location. ` + `The primary location is ${target} (~/.hasna/fleet-env/<app>.env). The legacy 'cloud' tiers are ` + `removed after ${LEGACY_CLOUD_REMOVAL_DEADLINE}. Migrate the key to the primary location.`;
|
|
27363
|
+
sink(message);
|
|
27364
|
+
}
|
|
27365
|
+
finalWarning = [warning, `Legacy credential source: ${winner.src.path}. Removed after ${LEGACY_CLOUD_REMOVAL_DEADLINE}.`].filter(Boolean).join(" ") || null;
|
|
27366
|
+
}
|
|
27289
27367
|
return sealCredential({
|
|
27290
27368
|
apiKey: winner.value,
|
|
27291
|
-
tier:
|
|
27292
|
-
source: winner.path,
|
|
27369
|
+
tier: winner.src.tier,
|
|
27370
|
+
source: winner.src.path,
|
|
27293
27371
|
deliberate: false,
|
|
27294
|
-
deprecated
|
|
27372
|
+
deprecated,
|
|
27295
27373
|
diskCandidates: diskPaths,
|
|
27296
|
-
warning
|
|
27374
|
+
warning: finalWarning
|
|
27297
27375
|
});
|
|
27298
27376
|
}
|
|
27299
27377
|
const legacy = firstEnvValue(env, apiKeyKeys);
|
|
@@ -27319,6 +27397,47 @@ function resolveCredential(name, env, options = {}) {
|
|
|
27319
27397
|
}
|
|
27320
27398
|
return null;
|
|
27321
27399
|
}
|
|
27400
|
+
var SECRETS_PACKAGE_SPECIFIER = "@hasna/" + "secrets";
|
|
27401
|
+
var requireSecretsSdk = createRequire(import.meta.url);
|
|
27402
|
+
async function completePointerCredential(name, pointerResolution, env = process.env) {
|
|
27403
|
+
const vaultKey = pointerResolution.pointerVaultKey;
|
|
27404
|
+
const pointerEnvKey = pointerResolution.source;
|
|
27405
|
+
if (!vaultKey) {
|
|
27406
|
+
throw new CredentialResolutionError(name, `Pointer resolution from ${pointerEnvKey} carries no vault item key; this is a defect in the resolver.`, [pointerEnvKey]);
|
|
27407
|
+
}
|
|
27408
|
+
let secretsSdk;
|
|
27409
|
+
try {
|
|
27410
|
+
secretsSdk = requireSecretsSdk(SECRETS_PACKAGE_SPECIFIER);
|
|
27411
|
+
} catch {
|
|
27412
|
+
throw new CredentialResolutionError(name, `${pointerEnvKey} names vault item '${vaultKey}', but the secrets SDK (@hasna/secrets) is not installed ` + `in this process. A vault pointer is TERMINAL: install @hasna/secrets to resolve it, or unset ${pointerEnvKey}.`, [pointerEnvKey]);
|
|
27413
|
+
}
|
|
27414
|
+
let client;
|
|
27415
|
+
try {
|
|
27416
|
+
client = secretsSdk.createSecretsClientFromEnv(env);
|
|
27417
|
+
} catch {
|
|
27418
|
+
throw new CredentialResolutionError(name, `${pointerEnvKey} names vault item '${vaultKey}', but the secrets client could not be configured from this ` + `environment (the secrets service URL and key env are missing or invalid). A vault pointer is TERMINAL and ` + `never falls through to a literal or disk credential.`, [pointerEnvKey]);
|
|
27419
|
+
}
|
|
27420
|
+
let secret;
|
|
27421
|
+
try {
|
|
27422
|
+
secret = await client.getSecret({ key: vaultKey });
|
|
27423
|
+
} catch {
|
|
27424
|
+
throw new CredentialResolutionError(name, `${pointerEnvKey} names vault item '${vaultKey}', but the vault could not be reached or the item is ` + `unavailable. A vault pointer is TERMINAL and never falls through to a literal or disk credential.`, [pointerEnvKey]);
|
|
27425
|
+
}
|
|
27426
|
+
const value = secret.value;
|
|
27427
|
+
if (!value) {
|
|
27428
|
+
throw new CredentialResolutionError(name, `${pointerEnvKey} resolved vault item '${vaultKey}', but it holds no value. A vault pointer is TERMINAL.`, [pointerEnvKey]);
|
|
27429
|
+
}
|
|
27430
|
+
assertUsableCredential(name, `${pointerEnvKey} -> vault:${vaultKey}`, value);
|
|
27431
|
+
return sealCredential({
|
|
27432
|
+
apiKey: value,
|
|
27433
|
+
tier: "pointer",
|
|
27434
|
+
source: `${pointerEnvKey} -> vault:${vaultKey}`,
|
|
27435
|
+
deliberate: true,
|
|
27436
|
+
deprecated: false,
|
|
27437
|
+
diskCandidates: pointerResolution.diskCandidates,
|
|
27438
|
+
warning: null
|
|
27439
|
+
});
|
|
27440
|
+
}
|
|
27322
27441
|
var ASCII_CONTROL_PATTERN = /[\u0000-\u001f\u007f]/;
|
|
27323
27442
|
var DNS_LABEL_PATTERN = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/;
|
|
27324
27443
|
function isValidDnsDomain(value) {
|
|
@@ -27564,6 +27683,13 @@ function currentCredential(name, apiKey) {
|
|
|
27564
27683
|
}
|
|
27565
27684
|
return explicitCredential(name, apiKey);
|
|
27566
27685
|
}
|
|
27686
|
+
async function resolveRequestCredential(name, apiKey, env = process.env) {
|
|
27687
|
+
const resolved = currentCredential(name, apiKey);
|
|
27688
|
+
if (resolved.tier === "pointer") {
|
|
27689
|
+
return completePointerCredential(name, resolved, env);
|
|
27690
|
+
}
|
|
27691
|
+
return resolved;
|
|
27692
|
+
}
|
|
27567
27693
|
function authFailureGuidance(credential) {
|
|
27568
27694
|
const origin = `The API key for this request came from ${credential.source}`;
|
|
27569
27695
|
if (credential.deliberate) {
|
|
@@ -27719,7 +27845,7 @@ function createHasnaHttpTransport(options) {
|
|
|
27719
27845
|
const retry = resolveRetry(opts.retry);
|
|
27720
27846
|
const methodRetryable = IDEMPOTENT_METHODS.has(upper) || Boolean(opts.idempotencyKey);
|
|
27721
27847
|
const maxAttempts = retry && methodRetryable ? retry.retries + 1 : 1;
|
|
27722
|
-
const credential =
|
|
27848
|
+
const credential = await resolveRequestCredential(options.name, options.apiKey);
|
|
27723
27849
|
let last = null;
|
|
27724
27850
|
for (let attempt = 1;attempt <= maxAttempts; attempt++) {
|
|
27725
27851
|
const result = await once(upper, rel, url, body, opts, credential);
|
|
@@ -27884,6 +28010,7 @@ function resolveStorageClient(name, env = process.env, overrides) {
|
|
|
27884
28010
|
}
|
|
27885
28011
|
|
|
27886
28012
|
// ../contracts/dist/client/transport.js
|
|
28013
|
+
import { createRequire as createRequire2 } from "module";
|
|
27887
28014
|
function envToken2(name) {
|
|
27888
28015
|
return name.toUpperCase().replace(/-/g, "_");
|
|
27889
28016
|
}
|
|
@@ -27898,6 +28025,8 @@ var MAX_CREDENTIAL_FILE_BYTES2 = 64 * 1024;
|
|
|
27898
28025
|
var INSPECT_CUSTOM2 = Symbol.for("nodejs.util.inspect.custom");
|
|
27899
28026
|
var CREDENTIAL_SEAL2 = Symbol.for("hasna:contracts:sealedCredential");
|
|
27900
28027
|
var DEPRECATION_REGISTRY2 = Symbol.for("hasna:contracts:credentialDeprecationNotices");
|
|
28028
|
+
var SECRETS_PACKAGE_SPECIFIER2 = "@hasna/" + "secrets";
|
|
28029
|
+
var requireSecretsSdk2 = createRequire2(import.meta.url);
|
|
27901
28030
|
var IDEMPOTENT_METHODS2 = new Set(["GET", "HEAD", "PUT", "DELETE", "OPTIONS"]);
|
|
27902
28031
|
var AUTHORITY_OVERRIDE_HEADERS2 = new Set([
|
|
27903
28032
|
"host",
|
|
@@ -27912,15 +28041,15 @@ import { Database } from "bun:sqlite";
|
|
|
27912
28041
|
import { createHash } from "crypto";
|
|
27913
28042
|
import {
|
|
27914
28043
|
copyFileSync,
|
|
27915
|
-
existsSync,
|
|
28044
|
+
existsSync as existsSync2,
|
|
27916
28045
|
mkdirSync,
|
|
27917
28046
|
readFileSync as readFileSync2,
|
|
27918
28047
|
readdirSync,
|
|
27919
28048
|
statSync as statSync2,
|
|
27920
28049
|
writeFileSync
|
|
27921
28050
|
} from "fs";
|
|
27922
|
-
import { dirname, join as
|
|
27923
|
-
import { homedir } from "os";
|
|
28051
|
+
import { dirname, join as join4, resolve as resolve2 } from "path";
|
|
28052
|
+
import { homedir as homedir3 } from "os";
|
|
27924
28053
|
|
|
27925
28054
|
// src/db/migrations.ts
|
|
27926
28055
|
var MIGRATIONS = [
|
|
@@ -28189,10 +28318,116 @@ var MIGRATIONS = [
|
|
|
28189
28318
|
}
|
|
28190
28319
|
];
|
|
28191
28320
|
|
|
28321
|
+
// src/lib/app-home.ts
|
|
28322
|
+
import { existsSync } from "fs";
|
|
28323
|
+
import { homedir as homedir2 } from "os";
|
|
28324
|
+
import { join as join3, resolve } from "path";
|
|
28325
|
+
|
|
28326
|
+
// ../../node_modules/.bun/@hasna+paths@0.1.0/node_modules/@hasna/paths/dist/index.js
|
|
28327
|
+
import { homedir } from "os";
|
|
28328
|
+
import { join as join2 } from "path";
|
|
28329
|
+
var KIND_ENV = {
|
|
28330
|
+
config: "HASNA_CONFIG_HOME",
|
|
28331
|
+
data: "HASNA_DATA_HOME",
|
|
28332
|
+
state: "HASNA_STATE_HOME",
|
|
28333
|
+
cache: "HASNA_CACHE_HOME"
|
|
28334
|
+
};
|
|
28335
|
+
var APP_SLUG_RE = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
28336
|
+
function assertApp(app) {
|
|
28337
|
+
if (typeof app !== "string" || app.length === 0) {
|
|
28338
|
+
throw new TypeError("paths: app must be a non-empty string");
|
|
28339
|
+
}
|
|
28340
|
+
if (!APP_SLUG_RE.test(app)) {
|
|
28341
|
+
throw new TypeError(`paths: invalid app slug "${app}" \u2014 expected lowercase kebab-case ([a-z0-9]+(-[a-z0-9]+)*)`);
|
|
28342
|
+
}
|
|
28343
|
+
}
|
|
28344
|
+
function envOf(options) {
|
|
28345
|
+
return options.env ?? process.env;
|
|
28346
|
+
}
|
|
28347
|
+
function envValue(options, kind) {
|
|
28348
|
+
const value = envOf(options)[KIND_ENV[kind]];
|
|
28349
|
+
return typeof value === "string" && value.length > 0 ? value : undefined;
|
|
28350
|
+
}
|
|
28351
|
+
function isMacOS(platform) {
|
|
28352
|
+
return platform === "darwin";
|
|
28353
|
+
}
|
|
28354
|
+
function baseDir(kind, options) {
|
|
28355
|
+
const override = envValue(options, kind);
|
|
28356
|
+
if (override)
|
|
28357
|
+
return override;
|
|
28358
|
+
const home = options.home ?? homedir();
|
|
28359
|
+
const platform = options.platform ?? process.platform;
|
|
28360
|
+
if (isMacOS(platform)) {
|
|
28361
|
+
switch (kind) {
|
|
28362
|
+
case "config":
|
|
28363
|
+
case "data":
|
|
28364
|
+
return join2(home, "Library", "Application Support", "Hasna");
|
|
28365
|
+
case "cache":
|
|
28366
|
+
return join2(home, "Library", "Caches", "Hasna");
|
|
28367
|
+
case "state":
|
|
28368
|
+
return join2(home, "Library", "Logs", "Hasna");
|
|
28369
|
+
}
|
|
28370
|
+
}
|
|
28371
|
+
switch (kind) {
|
|
28372
|
+
case "config":
|
|
28373
|
+
return join2(home, ".config", "hasna");
|
|
28374
|
+
case "data":
|
|
28375
|
+
return join2(home, ".local", "share", "hasna");
|
|
28376
|
+
case "state":
|
|
28377
|
+
return join2(home, ".local", "state", "hasna");
|
|
28378
|
+
case "cache":
|
|
28379
|
+
return join2(home, ".cache", "hasna");
|
|
28380
|
+
}
|
|
28381
|
+
}
|
|
28382
|
+
function resolvePath(kind, options) {
|
|
28383
|
+
assertApp(options.app);
|
|
28384
|
+
const appSegment = options.internal === true ? join2("internal", options.app) : options.app;
|
|
28385
|
+
return join2(baseDir(kind, options), appSegment);
|
|
28386
|
+
}
|
|
28387
|
+
function dataDir(options) {
|
|
28388
|
+
return resolvePath("data", options);
|
|
28389
|
+
}
|
|
28390
|
+
|
|
28391
|
+
// src/lib/app-home.ts
|
|
28392
|
+
var APP = "domains";
|
|
28393
|
+
function effectiveHome(env = process.env) {
|
|
28394
|
+
return env["HOME"] || env["USERPROFILE"] || homedir2();
|
|
28395
|
+
}
|
|
28396
|
+
function legacyHomeDir(env = process.env) {
|
|
28397
|
+
return join3(effectiveHome(env), ".hasna", APP);
|
|
28398
|
+
}
|
|
28399
|
+
function resolverHome(env = process.env) {
|
|
28400
|
+
const home = env["HOME"] || env["USERPROFILE"];
|
|
28401
|
+
return dataDir({ app: APP, home, env });
|
|
28402
|
+
}
|
|
28403
|
+
function adoptResolverHome(resolved, env = process.env) {
|
|
28404
|
+
const dataOverride = env.HASNA_DATA_HOME;
|
|
28405
|
+
if (typeof dataOverride === "string" && dataOverride.trim().length > 0)
|
|
28406
|
+
return true;
|
|
28407
|
+
return existsSync(join3(resolved, "domains.db"));
|
|
28408
|
+
}
|
|
28409
|
+
function exactAppOverride(env = process.env) {
|
|
28410
|
+
const override = env["HASNA_DOMAINS_HOME"] ?? env["DOMAINS_HOME"] ?? env["HASNA_DOMAINS_DIR"] ?? env["DOMAINS_DIR"];
|
|
28411
|
+
return override && override.trim() ? override.trim() : undefined;
|
|
28412
|
+
}
|
|
28413
|
+
function appHome(env = process.env) {
|
|
28414
|
+
const override = exactAppOverride(env);
|
|
28415
|
+
if (override)
|
|
28416
|
+
return resolve(override);
|
|
28417
|
+
const resolved = resolverHome(env);
|
|
28418
|
+
return adoptResolverHome(resolved, env) ? resolve(resolved) : resolve(legacyHomeDir(env));
|
|
28419
|
+
}
|
|
28420
|
+
function getDefaultDbPath(env = process.env) {
|
|
28421
|
+
return join3(appHome(env), `${APP}.db`);
|
|
28422
|
+
}
|
|
28423
|
+
function getDefaultConfigPath(env = process.env) {
|
|
28424
|
+
return join3(appHome(env), "config.json");
|
|
28425
|
+
}
|
|
28426
|
+
|
|
28192
28427
|
// src/db/database.ts
|
|
28193
28428
|
var _db = null;
|
|
28194
28429
|
function canonicalHome(env) {
|
|
28195
|
-
return env["HOME"] || env["USERPROFILE"] ||
|
|
28430
|
+
return env["HOME"] || env["USERPROFILE"] || homedir3();
|
|
28196
28431
|
}
|
|
28197
28432
|
function sha256File(path) {
|
|
28198
28433
|
return createHash("sha256").update(readFileSync2(path)).digest("hex");
|
|
@@ -28200,20 +28435,20 @@ function sha256File(path) {
|
|
|
28200
28435
|
function migrateLegacyDataDir(env = process.env, dryRun = false) {
|
|
28201
28436
|
const report = { dryRun, wouldCopy: [], copied: [] };
|
|
28202
28437
|
const home = canonicalHome(env);
|
|
28203
|
-
const xdgData = env["XDG_DATA_HOME"]?.trim() ||
|
|
28204
|
-
const oldDir =
|
|
28205
|
-
const oldDb =
|
|
28206
|
-
if (!
|
|
28438
|
+
const xdgData = env["XDG_DATA_HOME"]?.trim() || join4(home, ".local", "share");
|
|
28439
|
+
const oldDir = join4(xdgData, "open-domains");
|
|
28440
|
+
const oldDb = join4(oldDir, "domains.db");
|
|
28441
|
+
if (!existsSync2(oldDb))
|
|
28207
28442
|
return report;
|
|
28208
|
-
const canonicalDir =
|
|
28209
|
-
const newDb =
|
|
28210
|
-
if (
|
|
28443
|
+
const canonicalDir = join4(home, ".hasna", "domains");
|
|
28444
|
+
const newDb = join4(canonicalDir, "domains.db");
|
|
28445
|
+
if (existsSync2(newDb))
|
|
28211
28446
|
return report;
|
|
28212
|
-
if (
|
|
28447
|
+
if (existsSync2(join4(canonicalDir, ".migrated-from-xdg.receipt.json")))
|
|
28213
28448
|
return report;
|
|
28214
28449
|
if (dryRun) {
|
|
28215
28450
|
for (const name of ["domains.db", "domains.db-wal", "domains.db-shm"]) {
|
|
28216
|
-
if (
|
|
28451
|
+
if (existsSync2(join4(oldDir, name)) && !existsSync2(join4(canonicalDir, name))) {
|
|
28217
28452
|
report.wouldCopy.push(name);
|
|
28218
28453
|
}
|
|
28219
28454
|
}
|
|
@@ -28222,11 +28457,11 @@ function migrateLegacyDataDir(env = process.env, dryRun = false) {
|
|
|
28222
28457
|
mkdirSync(canonicalDir, { recursive: true });
|
|
28223
28458
|
const copied = [];
|
|
28224
28459
|
for (const name of ["domains.db", "domains.db-wal", "domains.db-shm"]) {
|
|
28225
|
-
const from =
|
|
28226
|
-
if (!
|
|
28460
|
+
const from = join4(oldDir, name);
|
|
28461
|
+
if (!existsSync2(from))
|
|
28227
28462
|
continue;
|
|
28228
|
-
const to =
|
|
28229
|
-
if (
|
|
28463
|
+
const to = join4(canonicalDir, name);
|
|
28464
|
+
if (existsSync2(to))
|
|
28230
28465
|
continue;
|
|
28231
28466
|
copyFileSync(from, to);
|
|
28232
28467
|
copied.push({ name, bytes: statSync2(to).size, sha256: sha256File(to) });
|
|
@@ -28235,7 +28470,7 @@ function migrateLegacyDataDir(env = process.env, dryRun = false) {
|
|
|
28235
28470
|
if (statSync2(newDb).size !== statSync2(oldDb).size || sha256File(newDb) !== sha256File(oldDb)) {
|
|
28236
28471
|
throw new Error(`Refusing migration: copied ${newDb} does not byte-match ${oldDb}; the canonical root was not populated.`);
|
|
28237
28472
|
}
|
|
28238
|
-
writeFileSync(
|
|
28473
|
+
writeFileSync(join4(canonicalDir, ".migrated-from-xdg.receipt.json"), `${JSON.stringify({
|
|
28239
28474
|
migratedAt: new Date().toISOString(),
|
|
28240
28475
|
from: oldDir,
|
|
28241
28476
|
to: canonicalDir,
|
|
@@ -28249,26 +28484,26 @@ function getDbPath(env = process.env) {
|
|
|
28249
28484
|
return env["DOMAINS_DB_PATH"];
|
|
28250
28485
|
if (env["HASNA_DOMAINS_DB_PATH"])
|
|
28251
28486
|
return env["HASNA_DOMAINS_DB_PATH"];
|
|
28252
|
-
const explicit = env
|
|
28487
|
+
const explicit = exactAppOverride(env);
|
|
28253
28488
|
if (explicit) {
|
|
28254
|
-
return
|
|
28489
|
+
return join4(explicit, "domains.db");
|
|
28255
28490
|
}
|
|
28256
|
-
|
|
28257
|
-
|
|
28258
|
-
|
|
28259
|
-
|
|
28260
|
-
return
|
|
28491
|
+
if (!adoptResolverHome(resolverHome(env), env)) {
|
|
28492
|
+
migrateLegacyDataDir(env);
|
|
28493
|
+
migrateDotfile("domains", legacyHomeDir(env), env);
|
|
28494
|
+
}
|
|
28495
|
+
return getDefaultDbPath(env);
|
|
28261
28496
|
}
|
|
28262
28497
|
function migrateDotfile(name, newDir, env) {
|
|
28263
28498
|
const home = canonicalHome(env);
|
|
28264
|
-
const oldDir =
|
|
28265
|
-
if (!
|
|
28499
|
+
const oldDir = join4(home, `.${name}`);
|
|
28500
|
+
if (!existsSync2(oldDir) || existsSync2(newDir))
|
|
28266
28501
|
return;
|
|
28267
28502
|
mkdirSync(newDir, { recursive: true });
|
|
28268
28503
|
for (const file of readdirSync(oldDir)) {
|
|
28269
|
-
const oldPath =
|
|
28504
|
+
const oldPath = join4(oldDir, file);
|
|
28270
28505
|
if (statSync2(oldPath).isFile())
|
|
28271
|
-
copyFileSync(oldPath,
|
|
28506
|
+
copyFileSync(oldPath, join4(newDir, file));
|
|
28272
28507
|
}
|
|
28273
28508
|
}
|
|
28274
28509
|
function getDatabase() {
|
|
@@ -28276,7 +28511,7 @@ function getDatabase() {
|
|
|
28276
28511
|
return _db;
|
|
28277
28512
|
const dbPath = getDbPath();
|
|
28278
28513
|
if (dbPath !== ":memory:") {
|
|
28279
|
-
const dir = dirname(
|
|
28514
|
+
const dir = dirname(resolve2(dbPath));
|
|
28280
28515
|
mkdirSync(dir, { recursive: true });
|
|
28281
28516
|
}
|
|
28282
28517
|
_db = new Database(dbPath);
|
|
@@ -29167,7 +29402,7 @@ function deleteDomainReputation(id) {
|
|
|
29167
29402
|
}
|
|
29168
29403
|
|
|
29169
29404
|
// src/db/store.ts
|
|
29170
|
-
var
|
|
29405
|
+
var APP2 = "domains";
|
|
29171
29406
|
var DOMAINS_PAGE_SIZE = 1000;
|
|
29172
29407
|
class LocalStore {
|
|
29173
29408
|
transport = "local";
|
|
@@ -29780,7 +30015,7 @@ function assertNoStoreConflict(env) {
|
|
|
29780
30015
|
throw new Error(`Refusing to resolve the hosted domains store while ${pathVar} is set: that variable ` + `names a local sqlite file, so the configuration asks for BOTH stores at once and ` + `nothing here can tell which you meant. Writing to the wrong one is silent \u2014 a plain ` + `\`bun run\` script that set ${pathVar} put 230 rows into the production portfolio on ` + `2026-08-07 while reporting success. Pick one: unset HASNA_DOMAINS_API_URL and ` + `HASNA_DOMAINS_API_KEY to use ${pathVar}; unset ${pathVar} to use the hosted store; or set ` + `${ALLOW_CLOUD_WITH_LOCAL_PATH}=1 if you really intend the hosted store with that variable present.`);
|
|
29781
30016
|
}
|
|
29782
30017
|
function requireHostedClient(env, flip) {
|
|
29783
|
-
const resolved = resolveStorageClient(
|
|
30018
|
+
const resolved = resolveStorageClient(APP2, withoutRetiredModeKeys(env));
|
|
29784
30019
|
if (resolved.transport !== "http") {
|
|
29785
30020
|
throw new Error(`Hosted domains client was requested (${flip.urlSource} + ${flip.keySource}) but ` + `@hasna/contracts resolved transport '${resolved.transport}'. Refusing to read the wrong dataset.`);
|
|
29786
30021
|
}
|
|
@@ -29801,7 +30036,7 @@ import { domainToASCII } from "url";
|
|
|
29801
30036
|
|
|
29802
30037
|
// src/lib/version.ts
|
|
29803
30038
|
import { readFileSync as readFileSync3 } from "fs";
|
|
29804
|
-
import { dirname as dirname2, resolve as
|
|
30039
|
+
import { dirname as dirname2, resolve as resolve3 } from "path";
|
|
29805
30040
|
import { fileURLToPath } from "url";
|
|
29806
30041
|
var cachedVersion = null;
|
|
29807
30042
|
function getPackageVersion() {
|
|
@@ -29809,7 +30044,7 @@ function getPackageVersion() {
|
|
|
29809
30044
|
return cachedVersion;
|
|
29810
30045
|
try {
|
|
29811
30046
|
const moduleDir = dirname2(fileURLToPath(import.meta.url));
|
|
29812
|
-
const packageJsonPath =
|
|
30047
|
+
const packageJsonPath = resolve3(moduleDir, "../../package.json");
|
|
29813
30048
|
const pkg = JSON.parse(readFileSync3(packageJsonPath, "utf8"));
|
|
29814
30049
|
cachedVersion = pkg.version ?? "0.0.0";
|
|
29815
30050
|
} catch {
|
|
@@ -31005,7 +31240,7 @@ async function syncToLocalDb2(dbFns) {
|
|
|
31005
31240
|
return result;
|
|
31006
31241
|
}
|
|
31007
31242
|
|
|
31008
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31243
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/Route53Client.js
|
|
31009
31244
|
var import_client23 = __toESM(require_client2(), 1);
|
|
31010
31245
|
var import_core = __toESM(require_dist_cjs2(), 1);
|
|
31011
31246
|
var import_client24 = __toESM(require_client(), 1);
|
|
@@ -31015,7 +31250,7 @@ var import_protocols7 = __toESM(require_protocols(), 1);
|
|
|
31015
31250
|
var import_retry4 = __toESM(require_retry(), 1);
|
|
31016
31251
|
var import_schema2 = __toESM(require_schema(), 1);
|
|
31017
31252
|
|
|
31018
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31253
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/auth/httpAuthSchemeProvider.js
|
|
31019
31254
|
var import_httpAuthSchemes = __toESM(require_httpAuthSchemes(), 1);
|
|
31020
31255
|
var import_client2 = __toESM(require_client(), 1);
|
|
31021
31256
|
var defaultRoute53HttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
@@ -31057,7 +31292,7 @@ var resolveHttpAuthSchemeConfig = (config) => {
|
|
|
31057
31292
|
});
|
|
31058
31293
|
};
|
|
31059
31294
|
|
|
31060
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31295
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/endpoint/EndpointParameters.js
|
|
31061
31296
|
var resolveClientEndpointParameters = (options) => {
|
|
31062
31297
|
return Object.assign(options, {
|
|
31063
31298
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
@@ -31071,10 +31306,10 @@ var commonParams = {
|
|
|
31071
31306
|
Region: { type: "builtInParams", name: "region" },
|
|
31072
31307
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
31073
31308
|
};
|
|
31074
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31309
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/package.json
|
|
31075
31310
|
var package_default = {
|
|
31076
31311
|
name: "@aws-sdk/client-route-53",
|
|
31077
|
-
version: "3.
|
|
31312
|
+
version: "3.1112.0",
|
|
31078
31313
|
description: "AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",
|
|
31079
31314
|
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53",
|
|
31080
31315
|
license: "Apache-2.0",
|
|
@@ -31123,13 +31358,13 @@ var package_default = {
|
|
|
31123
31358
|
"test:integration:watch": "yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts",
|
|
31124
31359
|
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
|
|
31125
31360
|
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
|
|
31126
|
-
"test:index": "tsc
|
|
31361
|
+
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
31127
31362
|
},
|
|
31128
31363
|
dependencies: {
|
|
31129
|
-
"@aws-sdk/core": "^3.977.
|
|
31130
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
31131
|
-
"@aws-sdk/middleware-sdk-route53": "^3.972.
|
|
31132
|
-
"@aws-sdk/types": "^3.974.
|
|
31364
|
+
"@aws-sdk/core": "^3.977.8",
|
|
31365
|
+
"@aws-sdk/credential-provider-node": "^3.972.80",
|
|
31366
|
+
"@aws-sdk/middleware-sdk-route53": "^3.972.25",
|
|
31367
|
+
"@aws-sdk/types": "^3.974.4",
|
|
31133
31368
|
"@smithy/core": "^3.31.1",
|
|
31134
31369
|
"@smithy/fetch-http-handler": "^5.6.13",
|
|
31135
31370
|
"@smithy/node-http-handler": "^4.9.13",
|
|
@@ -31143,7 +31378,7 @@ var package_default = {
|
|
|
31143
31378
|
concurrently: "7.0.0",
|
|
31144
31379
|
"downlevel-dts": "0.10.1",
|
|
31145
31380
|
premove: "4.0.0",
|
|
31146
|
-
typescript: "~
|
|
31381
|
+
typescript: "~7.0.2",
|
|
31147
31382
|
vitest: "^4.0.17"
|
|
31148
31383
|
},
|
|
31149
31384
|
engines: {
|
|
@@ -31151,15 +31386,15 @@ var package_default = {
|
|
|
31151
31386
|
}
|
|
31152
31387
|
};
|
|
31153
31388
|
|
|
31154
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31389
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/runtimeConfig.js
|
|
31155
31390
|
var import_client19 = __toESM(require_client2(), 1);
|
|
31156
31391
|
var import_httpAuthSchemes3 = __toESM(require_httpAuthSchemes(), 1);
|
|
31157
31392
|
|
|
31158
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.
|
|
31393
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.80/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
31159
31394
|
init_dist_es();
|
|
31160
31395
|
var import_config27 = __toESM(require_config(), 1);
|
|
31161
31396
|
|
|
31162
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.
|
|
31397
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.80/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
|
|
31163
31398
|
var import_config10 = __toESM(require_config(), 1);
|
|
31164
31399
|
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
31165
31400
|
var remoteProvider = async (init) => {
|
|
@@ -31178,7 +31413,7 @@ var remoteProvider = async (init) => {
|
|
|
31178
31413
|
return fromInstanceMetadata2(init);
|
|
31179
31414
|
};
|
|
31180
31415
|
|
|
31181
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.
|
|
31416
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.80/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js
|
|
31182
31417
|
function memoizeChain(providers, treatAsExpired) {
|
|
31183
31418
|
const chain2 = internalCreateChain(providers);
|
|
31184
31419
|
let activeLock;
|
|
@@ -31242,7 +31477,7 @@ var internalCreateChain = (providers) => async (awsIdentityProperties) => {
|
|
|
31242
31477
|
throw lastProviderError;
|
|
31243
31478
|
};
|
|
31244
31479
|
|
|
31245
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.
|
|
31480
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.80/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
31246
31481
|
var multipleCredentialSourceWarningEmitted = false;
|
|
31247
31482
|
var defaultProvider = (init = {}) => memoizeChain([
|
|
31248
31483
|
async () => {
|
|
@@ -31308,14 +31543,14 @@ var defaultProvider = (init = {}) => memoizeChain([
|
|
|
31308
31543
|
}
|
|
31309
31544
|
], credentialsTreatedAsExpired);
|
|
31310
31545
|
var credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
|
|
31311
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31546
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/runtimeConfig.js
|
|
31312
31547
|
var import_client20 = __toESM(require_client(), 1);
|
|
31313
31548
|
var import_config28 = __toESM(require_config(), 1);
|
|
31314
31549
|
var import_retry3 = __toESM(require_retry(), 1);
|
|
31315
31550
|
var import_serde4 = __toESM(require_serde(), 1);
|
|
31316
31551
|
var import_node_http_handler2 = __toESM(require_dist_cjs4(), 1);
|
|
31317
31552
|
|
|
31318
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31553
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/runtimeConfig.shared.js
|
|
31319
31554
|
var import_httpAuthSchemes2 = __toESM(require_httpAuthSchemes(), 1);
|
|
31320
31555
|
var import_protocols4 = __toESM(require_protocols2(), 1);
|
|
31321
31556
|
var import_checksum = __toESM(require_checksum(), 1);
|
|
@@ -31323,11 +31558,11 @@ var import_client18 = __toESM(require_client(), 1);
|
|
|
31323
31558
|
var import_protocols5 = __toESM(require_protocols(), 1);
|
|
31324
31559
|
var import_serde3 = __toESM(require_serde(), 1);
|
|
31325
31560
|
|
|
31326
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31561
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/endpoint/endpointResolver.js
|
|
31327
31562
|
var import_client16 = __toESM(require_client2(), 1);
|
|
31328
31563
|
var import_endpoints2 = __toESM(require_endpoints(), 1);
|
|
31329
31564
|
|
|
31330
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31565
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/endpoint/bdd.js
|
|
31331
31566
|
var import_endpoints = __toESM(require_endpoints(), 1);
|
|
31332
31567
|
var s = "ref";
|
|
31333
31568
|
var t = "authSchemes";
|
|
@@ -31487,7 +31722,7 @@ var nodes2 = new Int32Array([
|
|
|
31487
31722
|
]);
|
|
31488
31723
|
var bdd2 = import_endpoints.BinaryDecisionDiagram.from(nodes2, root2, _data2.conditions, _data2.results);
|
|
31489
31724
|
|
|
31490
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31725
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/endpoint/endpointResolver.js
|
|
31491
31726
|
var cache2 = new import_endpoints2.EndpointCache({
|
|
31492
31727
|
size: 50,
|
|
31493
31728
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
@@ -31500,10 +31735,10 @@ var defaultEndpointResolver2 = (endpointParams, context = {}) => {
|
|
|
31500
31735
|
};
|
|
31501
31736
|
import_endpoints2.customEndpointFunctions.aws = import_client16.awsEndpointFunctions;
|
|
31502
31737
|
|
|
31503
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31738
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/schemas/schemas_0.js
|
|
31504
31739
|
var import_schema = __toESM(require_schema(), 1);
|
|
31505
31740
|
|
|
31506
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31741
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/models/Route53ServiceException.js
|
|
31507
31742
|
var import_client17 = __toESM(require_client(), 1);
|
|
31508
31743
|
class Route53ServiceException extends import_client17.ServiceException {
|
|
31509
31744
|
constructor(options) {
|
|
@@ -31512,7 +31747,7 @@ class Route53ServiceException extends import_client17.ServiceException {
|
|
|
31512
31747
|
}
|
|
31513
31748
|
}
|
|
31514
31749
|
|
|
31515
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
31750
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/models/errors.js
|
|
31516
31751
|
class ConcurrentModification extends Route53ServiceException {
|
|
31517
31752
|
name = "ConcurrentModification";
|
|
31518
31753
|
$fault = "client";
|
|
@@ -32424,7 +32659,7 @@ class ConflictingTypes extends Route53ServiceException {
|
|
|
32424
32659
|
}
|
|
32425
32660
|
}
|
|
32426
32661
|
|
|
32427
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
32662
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/schemas/schemas_0.js
|
|
32428
32663
|
var _A = "Action";
|
|
32429
32664
|
var _AI = "AlarmIdentifier";
|
|
32430
32665
|
var _AKSK = "ActivateKeySigningKey";
|
|
@@ -36103,7 +36338,7 @@ var UpdateTrafficPolicyInstance$ = [
|
|
|
36103
36338
|
() => UpdateTrafficPolicyInstanceResponse$
|
|
36104
36339
|
];
|
|
36105
36340
|
|
|
36106
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36341
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/runtimeConfig.shared.js
|
|
36107
36342
|
var getRuntimeConfig2 = (config) => {
|
|
36108
36343
|
return {
|
|
36109
36344
|
apiVersion: "2013-04-01",
|
|
@@ -36137,7 +36372,7 @@ var getRuntimeConfig2 = (config) => {
|
|
|
36137
36372
|
};
|
|
36138
36373
|
};
|
|
36139
36374
|
|
|
36140
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36375
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/runtimeConfig.js
|
|
36141
36376
|
var getRuntimeConfig3 = (config) => {
|
|
36142
36377
|
import_client20.emitWarningIfUnsupportedVersion(process.version);
|
|
36143
36378
|
const defaultsMode = import_config28.resolveDefaultsModeConfig(config);
|
|
@@ -36171,12 +36406,12 @@ var getRuntimeConfig3 = (config) => {
|
|
|
36171
36406
|
};
|
|
36172
36407
|
};
|
|
36173
36408
|
|
|
36174
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36409
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/runtimeExtensions.js
|
|
36175
36410
|
var import_client21 = __toESM(require_client2(), 1);
|
|
36176
36411
|
var import_client22 = __toESM(require_client(), 1);
|
|
36177
36412
|
var import_protocols6 = __toESM(require_protocols(), 1);
|
|
36178
36413
|
|
|
36179
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36414
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/auth/httpAuthExtensionConfiguration.js
|
|
36180
36415
|
var getHttpAuthExtensionConfiguration2 = (runtimeConfig) => {
|
|
36181
36416
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36182
36417
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -36215,14 +36450,14 @@ var resolveHttpAuthRuntimeConfig2 = (config) => {
|
|
|
36215
36450
|
};
|
|
36216
36451
|
};
|
|
36217
36452
|
|
|
36218
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36453
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/runtimeExtensions.js
|
|
36219
36454
|
var resolveRuntimeExtensions2 = (runtimeConfig, extensions) => {
|
|
36220
36455
|
const extensionConfiguration = Object.assign(import_client21.getAwsRegionExtensionConfiguration(runtimeConfig), import_client22.getDefaultExtensionConfiguration(runtimeConfig), import_protocols6.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration2(runtimeConfig));
|
|
36221
36456
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
36222
36457
|
return Object.assign(runtimeConfig, import_client21.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_client22.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocols6.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig2(extensionConfiguration));
|
|
36223
36458
|
};
|
|
36224
36459
|
|
|
36225
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36460
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/Route53Client.js
|
|
36226
36461
|
class Route53Client extends import_client24.Client {
|
|
36227
36462
|
config;
|
|
36228
36463
|
constructor(...[configuration]) {
|
|
@@ -36258,10 +36493,10 @@ class Route53Client extends import_client24.Client {
|
|
|
36258
36493
|
}
|
|
36259
36494
|
}
|
|
36260
36495
|
|
|
36261
|
-
// ../../node_modules/.bun/@aws-sdk+middleware-sdk-route53@3.972.
|
|
36496
|
+
// ../../node_modules/.bun/@aws-sdk+middleware-sdk-route53@3.972.25/node_modules/@aws-sdk/middleware-sdk-route53/dist-es/constants.js
|
|
36262
36497
|
var IDENTIFIER_PREFIX_PATTERN = /^\/(hostedzone|change|delegationset)\//;
|
|
36263
36498
|
|
|
36264
|
-
// ../../node_modules/.bun/@aws-sdk+middleware-sdk-route53@3.972.
|
|
36499
|
+
// ../../node_modules/.bun/@aws-sdk+middleware-sdk-route53@3.972.25/node_modules/@aws-sdk/middleware-sdk-route53/dist-es/change-resource-record-sets.js
|
|
36265
36500
|
function changeResourceRecordSetsMiddleware() {
|
|
36266
36501
|
return (next) => async (args) => {
|
|
36267
36502
|
const { ChangeBatch } = args.input;
|
|
@@ -36306,7 +36541,7 @@ var getChangeResourceRecordSetsPlugin = (unused) => ({
|
|
|
36306
36541
|
clientStack.add(changeResourceRecordSetsMiddleware(), changeResourceRecordSetsMiddlewareOptions);
|
|
36307
36542
|
}
|
|
36308
36543
|
});
|
|
36309
|
-
// ../../node_modules/.bun/@aws-sdk+middleware-sdk-route53@3.972.
|
|
36544
|
+
// ../../node_modules/.bun/@aws-sdk+middleware-sdk-route53@3.972.25/node_modules/@aws-sdk/middleware-sdk-route53/dist-es/id-normalizer.js
|
|
36310
36545
|
var IDENTIFIER_PARAMETERS = ["DelegationSetId", "HostedZoneId", "Id"];
|
|
36311
36546
|
function idNormalizerMiddleware() {
|
|
36312
36547
|
return (next) => async (args) => {
|
|
@@ -36334,7 +36569,7 @@ var getIdNormalizerPlugin = (unused) => ({
|
|
|
36334
36569
|
clientStack.add(idNormalizerMiddleware(), idNormalizerMiddlewareOptions);
|
|
36335
36570
|
}
|
|
36336
36571
|
});
|
|
36337
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36572
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/commandBuilder.js
|
|
36338
36573
|
var import_client25 = __toESM(require_client(), 1);
|
|
36339
36574
|
var import_endpoints4 = __toESM(require_endpoints(), 1);
|
|
36340
36575
|
var command2 = import_client25.makeBuilder(commonParams, "AWSDnsV20130401", "Route53Client", import_endpoints4.getEndpointPlugin);
|
|
@@ -36347,31 +36582,31 @@ var _mw1 = (Command, cs, config, o2) => [
|
|
|
36347
36582
|
getIdNormalizerPlugin(config)
|
|
36348
36583
|
];
|
|
36349
36584
|
|
|
36350
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36585
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/commands/ChangeResourceRecordSetsCommand.js
|
|
36351
36586
|
class ChangeResourceRecordSetsCommand extends command2(_ep02, _mw1, "ChangeResourceRecordSets", ChangeResourceRecordSets$) {
|
|
36352
36587
|
}
|
|
36353
36588
|
|
|
36354
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36589
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/commands/CreateHostedZoneCommand.js
|
|
36355
36590
|
class CreateHostedZoneCommand extends command2(_ep02, _mw02, "CreateHostedZone", CreateHostedZone$) {
|
|
36356
36591
|
}
|
|
36357
36592
|
|
|
36358
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36593
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/commands/DeleteHostedZoneCommand.js
|
|
36359
36594
|
class DeleteHostedZoneCommand extends command2(_ep02, _mw02, "DeleteHostedZone", DeleteHostedZone$) {
|
|
36360
36595
|
}
|
|
36361
36596
|
|
|
36362
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36597
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/commands/GetHostedZoneCommand.js
|
|
36363
36598
|
class GetHostedZoneCommand extends command2(_ep02, _mw02, "GetHostedZone", GetHostedZone$) {
|
|
36364
36599
|
}
|
|
36365
36600
|
|
|
36366
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36601
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/commands/ListHostedZonesCommand.js
|
|
36367
36602
|
class ListHostedZonesCommand extends command2(_ep02, _mw02, "ListHostedZones", ListHostedZones$) {
|
|
36368
36603
|
}
|
|
36369
36604
|
|
|
36370
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.
|
|
36605
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53@3.1112.0/node_modules/@aws-sdk/client-route-53/dist-es/commands/ListResourceRecordSetsCommand.js
|
|
36371
36606
|
class ListResourceRecordSetsCommand extends command2(_ep02, _mw02, "ListResourceRecordSets", ListResourceRecordSets$) {
|
|
36372
36607
|
}
|
|
36373
36608
|
|
|
36374
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36609
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/Route53DomainsClient.js
|
|
36375
36610
|
var import_client34 = __toESM(require_client2(), 1);
|
|
36376
36611
|
var import_core2 = __toESM(require_dist_cjs2(), 1);
|
|
36377
36612
|
var import_client35 = __toESM(require_client(), 1);
|
|
@@ -36381,7 +36616,7 @@ var import_protocols11 = __toESM(require_protocols(), 1);
|
|
|
36381
36616
|
var import_retry6 = __toESM(require_retry(), 1);
|
|
36382
36617
|
var import_schema4 = __toESM(require_schema(), 1);
|
|
36383
36618
|
|
|
36384
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36619
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/auth/httpAuthSchemeProvider.js
|
|
36385
36620
|
var import_httpAuthSchemes4 = __toESM(require_httpAuthSchemes(), 1);
|
|
36386
36621
|
var import_client26 = __toESM(require_client(), 1);
|
|
36387
36622
|
var defaultRoute53DomainsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
@@ -36423,7 +36658,7 @@ var resolveHttpAuthSchemeConfig3 = (config) => {
|
|
|
36423
36658
|
});
|
|
36424
36659
|
};
|
|
36425
36660
|
|
|
36426
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36661
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/endpoint/EndpointParameters.js
|
|
36427
36662
|
var resolveClientEndpointParameters3 = (options) => {
|
|
36428
36663
|
return Object.assign(options, {
|
|
36429
36664
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
@@ -36437,10 +36672,10 @@ var commonParams3 = {
|
|
|
36437
36672
|
Region: { type: "builtInParams", name: "region" },
|
|
36438
36673
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
36439
36674
|
};
|
|
36440
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36675
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/package.json
|
|
36441
36676
|
var package_default2 = {
|
|
36442
36677
|
name: "@aws-sdk/client-route-53-domains",
|
|
36443
|
-
version: "3.
|
|
36678
|
+
version: "3.1112.0",
|
|
36444
36679
|
description: "AWS SDK for JavaScript Route 53 Domains Client for Node.js, Browser and React Native",
|
|
36445
36680
|
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53-domains",
|
|
36446
36681
|
license: "Apache-2.0",
|
|
@@ -36485,12 +36720,12 @@ var package_default2 = {
|
|
|
36485
36720
|
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
36486
36721
|
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
|
|
36487
36722
|
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
|
|
36488
|
-
"test:index": "tsc
|
|
36723
|
+
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
36489
36724
|
},
|
|
36490
36725
|
dependencies: {
|
|
36491
|
-
"@aws-sdk/core": "^3.977.
|
|
36492
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
36493
|
-
"@aws-sdk/types": "^3.974.
|
|
36726
|
+
"@aws-sdk/core": "^3.977.8",
|
|
36727
|
+
"@aws-sdk/credential-provider-node": "^3.972.80",
|
|
36728
|
+
"@aws-sdk/types": "^3.974.4",
|
|
36494
36729
|
"@smithy/core": "^3.31.1",
|
|
36495
36730
|
"@smithy/fetch-http-handler": "^5.6.13",
|
|
36496
36731
|
"@smithy/node-http-handler": "^4.9.13",
|
|
@@ -36503,14 +36738,14 @@ var package_default2 = {
|
|
|
36503
36738
|
concurrently: "7.0.0",
|
|
36504
36739
|
"downlevel-dts": "0.10.1",
|
|
36505
36740
|
premove: "4.0.0",
|
|
36506
|
-
typescript: "~
|
|
36741
|
+
typescript: "~7.0.2"
|
|
36507
36742
|
},
|
|
36508
36743
|
engines: {
|
|
36509
36744
|
node: ">=20.0.0"
|
|
36510
36745
|
}
|
|
36511
36746
|
};
|
|
36512
36747
|
|
|
36513
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36748
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/runtimeConfig.js
|
|
36514
36749
|
var import_client30 = __toESM(require_client2(), 1);
|
|
36515
36750
|
var import_httpAuthSchemes6 = __toESM(require_httpAuthSchemes(), 1);
|
|
36516
36751
|
var import_client31 = __toESM(require_client(), 1);
|
|
@@ -36519,7 +36754,7 @@ var import_retry5 = __toESM(require_retry(), 1);
|
|
|
36519
36754
|
var import_serde6 = __toESM(require_serde(), 1);
|
|
36520
36755
|
var import_node_http_handler3 = __toESM(require_dist_cjs4(), 1);
|
|
36521
36756
|
|
|
36522
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36757
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/runtimeConfig.shared.js
|
|
36523
36758
|
var import_httpAuthSchemes5 = __toESM(require_httpAuthSchemes(), 1);
|
|
36524
36759
|
var import_protocols8 = __toESM(require_protocols2(), 1);
|
|
36525
36760
|
var import_checksum2 = __toESM(require_checksum(), 1);
|
|
@@ -36527,11 +36762,11 @@ var import_client29 = __toESM(require_client(), 1);
|
|
|
36527
36762
|
var import_protocols9 = __toESM(require_protocols(), 1);
|
|
36528
36763
|
var import_serde5 = __toESM(require_serde(), 1);
|
|
36529
36764
|
|
|
36530
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36765
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/endpoint/endpointResolver.js
|
|
36531
36766
|
var import_client27 = __toESM(require_client2(), 1);
|
|
36532
36767
|
var import_endpoints6 = __toESM(require_endpoints(), 1);
|
|
36533
36768
|
|
|
36534
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36769
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/endpoint/bdd.js
|
|
36535
36770
|
var import_endpoints5 = __toESM(require_endpoints(), 1);
|
|
36536
36771
|
var k3 = "ref";
|
|
36537
36772
|
var a3 = -1;
|
|
@@ -36614,7 +36849,7 @@ var nodes3 = new Int32Array([
|
|
|
36614
36849
|
]);
|
|
36615
36850
|
var bdd3 = import_endpoints5.BinaryDecisionDiagram.from(nodes3, root3, _data3.conditions, _data3.results);
|
|
36616
36851
|
|
|
36617
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36852
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/endpoint/endpointResolver.js
|
|
36618
36853
|
var cache3 = new import_endpoints6.EndpointCache({
|
|
36619
36854
|
size: 50,
|
|
36620
36855
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
@@ -36627,10 +36862,10 @@ var defaultEndpointResolver3 = (endpointParams, context = {}) => {
|
|
|
36627
36862
|
};
|
|
36628
36863
|
import_endpoints6.customEndpointFunctions.aws = import_client27.awsEndpointFunctions;
|
|
36629
36864
|
|
|
36630
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36865
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/schemas/schemas_0.js
|
|
36631
36866
|
var import_schema3 = __toESM(require_schema(), 1);
|
|
36632
36867
|
|
|
36633
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36868
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/models/Route53DomainsServiceException.js
|
|
36634
36869
|
var import_client28 = __toESM(require_client(), 1);
|
|
36635
36870
|
class Route53DomainsServiceException extends import_client28.ServiceException {
|
|
36636
36871
|
constructor(options) {
|
|
@@ -36639,7 +36874,7 @@ class Route53DomainsServiceException extends import_client28.ServiceException {
|
|
|
36639
36874
|
}
|
|
36640
36875
|
}
|
|
36641
36876
|
|
|
36642
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36877
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/models/errors.js
|
|
36643
36878
|
class DomainLimitExceeded extends Route53DomainsServiceException {
|
|
36644
36879
|
name = "DomainLimitExceeded";
|
|
36645
36880
|
$fault = "client";
|
|
@@ -36748,7 +36983,7 @@ class TLDInMaintenance extends Route53DomainsServiceException {
|
|
|
36748
36983
|
}
|
|
36749
36984
|
}
|
|
36750
36985
|
|
|
36751
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
36986
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/schemas/schemas_0.js
|
|
36752
36987
|
var _A2 = "Availability";
|
|
36753
36988
|
var _ACE = "AbuseContactEmail";
|
|
36754
36989
|
var _ACP = "AbuseContactPhone";
|
|
@@ -37300,7 +37535,7 @@ var UpdateDomainNameservers$ = [
|
|
|
37300
37535
|
() => UpdateDomainNameserversResponse$
|
|
37301
37536
|
];
|
|
37302
37537
|
|
|
37303
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37538
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/runtimeConfig.shared.js
|
|
37304
37539
|
var getRuntimeConfig4 = (config) => {
|
|
37305
37540
|
return {
|
|
37306
37541
|
apiVersion: "2014-05-15",
|
|
@@ -37334,7 +37569,7 @@ var getRuntimeConfig4 = (config) => {
|
|
|
37334
37569
|
};
|
|
37335
37570
|
};
|
|
37336
37571
|
|
|
37337
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37572
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/runtimeConfig.js
|
|
37338
37573
|
var getRuntimeConfig5 = (config) => {
|
|
37339
37574
|
import_client31.emitWarningIfUnsupportedVersion(process.version);
|
|
37340
37575
|
const defaultsMode = import_config30.resolveDefaultsModeConfig(config);
|
|
@@ -37368,12 +37603,12 @@ var getRuntimeConfig5 = (config) => {
|
|
|
37368
37603
|
};
|
|
37369
37604
|
};
|
|
37370
37605
|
|
|
37371
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37606
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/runtimeExtensions.js
|
|
37372
37607
|
var import_client32 = __toESM(require_client2(), 1);
|
|
37373
37608
|
var import_client33 = __toESM(require_client(), 1);
|
|
37374
37609
|
var import_protocols10 = __toESM(require_protocols(), 1);
|
|
37375
37610
|
|
|
37376
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37611
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/auth/httpAuthExtensionConfiguration.js
|
|
37377
37612
|
var getHttpAuthExtensionConfiguration3 = (runtimeConfig) => {
|
|
37378
37613
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37379
37614
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -37412,14 +37647,14 @@ var resolveHttpAuthRuntimeConfig3 = (config) => {
|
|
|
37412
37647
|
};
|
|
37413
37648
|
};
|
|
37414
37649
|
|
|
37415
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37650
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/runtimeExtensions.js
|
|
37416
37651
|
var resolveRuntimeExtensions3 = (runtimeConfig, extensions) => {
|
|
37417
37652
|
const extensionConfiguration = Object.assign(import_client32.getAwsRegionExtensionConfiguration(runtimeConfig), import_client33.getDefaultExtensionConfiguration(runtimeConfig), import_protocols10.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration3(runtimeConfig));
|
|
37418
37653
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
37419
37654
|
return Object.assign(runtimeConfig, import_client32.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_client33.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocols10.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig3(extensionConfiguration));
|
|
37420
37655
|
};
|
|
37421
37656
|
|
|
37422
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37657
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/Route53DomainsClient.js
|
|
37423
37658
|
class Route53DomainsClient extends import_client35.Client {
|
|
37424
37659
|
config;
|
|
37425
37660
|
constructor(...[configuration]) {
|
|
@@ -37455,38 +37690,38 @@ class Route53DomainsClient extends import_client35.Client {
|
|
|
37455
37690
|
}
|
|
37456
37691
|
}
|
|
37457
37692
|
|
|
37458
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37693
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/commandBuilder.js
|
|
37459
37694
|
var import_client36 = __toESM(require_client(), 1);
|
|
37460
37695
|
var import_endpoints8 = __toESM(require_endpoints(), 1);
|
|
37461
37696
|
var command3 = import_client36.makeBuilder(commonParams3, "Route53Domains_v20140515", "Route53DomainsClient", import_endpoints8.getEndpointPlugin);
|
|
37462
37697
|
var _ep03 = {};
|
|
37463
37698
|
var _mw03 = (Command, cs, config, o2) => [];
|
|
37464
37699
|
|
|
37465
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37700
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/commands/CheckDomainAvailabilityCommand.js
|
|
37466
37701
|
class CheckDomainAvailabilityCommand extends command3(_ep03, _mw03, "CheckDomainAvailability", CheckDomainAvailability$) {
|
|
37467
37702
|
}
|
|
37468
37703
|
|
|
37469
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37704
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/commands/GetDomainDetailCommand.js
|
|
37470
37705
|
class GetDomainDetailCommand extends command3(_ep03, _mw03, "GetDomainDetail", GetDomainDetail$) {
|
|
37471
37706
|
}
|
|
37472
37707
|
|
|
37473
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37708
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/commands/GetOperationDetailCommand.js
|
|
37474
37709
|
class GetOperationDetailCommand extends command3(_ep03, _mw03, "GetOperationDetail", GetOperationDetail$) {
|
|
37475
37710
|
}
|
|
37476
37711
|
|
|
37477
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37712
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/commands/ListDomainsCommand.js
|
|
37478
37713
|
class ListDomainsCommand extends command3(_ep03, _mw03, "ListDomains", ListDomains$) {
|
|
37479
37714
|
}
|
|
37480
37715
|
|
|
37481
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37716
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/commands/ListPricesCommand.js
|
|
37482
37717
|
class ListPricesCommand extends command3(_ep03, _mw03, "ListPrices", ListPrices$) {
|
|
37483
37718
|
}
|
|
37484
37719
|
|
|
37485
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37720
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/commands/RegisterDomainCommand.js
|
|
37486
37721
|
class RegisterDomainCommand extends command3(_ep03, _mw03, "RegisterDomain", RegisterDomain$) {
|
|
37487
37722
|
}
|
|
37488
37723
|
|
|
37489
|
-
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.
|
|
37724
|
+
// ../../node_modules/.bun/@aws-sdk+client-route-53-domains@3.1112.0/node_modules/@aws-sdk/client-route-53-domains/dist-es/commands/UpdateDomainNameserversCommand.js
|
|
37490
37725
|
class UpdateDomainNameserversCommand extends command3(_ep03, _mw03, "UpdateDomainNameservers", UpdateDomainNameservers$) {
|
|
37491
37726
|
}
|
|
37492
37727
|
|
|
@@ -39465,24 +39700,24 @@ async function syncAll(dbFns) {
|
|
|
39465
39700
|
|
|
39466
39701
|
// src/lib/config.ts
|
|
39467
39702
|
import { createHash as createHash3 } from "crypto";
|
|
39468
|
-
import { copyFileSync as copyFileSync2, existsSync as
|
|
39469
|
-
import { homedir as
|
|
39470
|
-
import { dirname as dirname4, join as
|
|
39703
|
+
import { copyFileSync as copyFileSync2, existsSync as existsSync3, mkdirSync as mkdirSync2, readFileSync as readFileSync5, writeFileSync as writeFileSync2 } from "fs";
|
|
39704
|
+
import { homedir as homedir5 } from "os";
|
|
39705
|
+
import { dirname as dirname4, join as join6 } from "path";
|
|
39471
39706
|
function canonicalHome2(env) {
|
|
39472
|
-
return env["HOME"] || env["USERPROFILE"] ||
|
|
39707
|
+
return env["HOME"] || env["USERPROFILE"] || homedir5();
|
|
39473
39708
|
}
|
|
39474
39709
|
function migrateLegacyConfig(env = process.env, dryRun = false) {
|
|
39475
39710
|
const report = { dryRun, wouldCopy: false, copied: false };
|
|
39476
39711
|
const home = canonicalHome2(env);
|
|
39477
|
-
const canonicalDir =
|
|
39478
|
-
const newPath =
|
|
39479
|
-
if (
|
|
39712
|
+
const canonicalDir = join6(home, ".hasna", "domains");
|
|
39713
|
+
const newPath = join6(canonicalDir, "config.json");
|
|
39714
|
+
if (existsSync3(newPath))
|
|
39480
39715
|
return report;
|
|
39481
|
-
if (
|
|
39716
|
+
if (existsSync3(join6(canonicalDir, ".migrated-from-xdg-config.receipt.json")))
|
|
39482
39717
|
return report;
|
|
39483
|
-
const xdgConfig = env["XDG_CONFIG_HOME"]?.trim() ||
|
|
39484
|
-
const oldPath =
|
|
39485
|
-
if (!
|
|
39718
|
+
const xdgConfig = env["XDG_CONFIG_HOME"]?.trim() || join6(home, ".config");
|
|
39719
|
+
const oldPath = join6(xdgConfig, "open-domains", "config.json");
|
|
39720
|
+
if (!existsSync3(oldPath))
|
|
39486
39721
|
return report;
|
|
39487
39722
|
report.wouldCopy = true;
|
|
39488
39723
|
if (dryRun)
|
|
@@ -39494,7 +39729,7 @@ function migrateLegacyConfig(env = process.env, dryRun = false) {
|
|
|
39494
39729
|
if (!oldBytes.equals(newBytes)) {
|
|
39495
39730
|
throw new Error(`Refusing migration: copied ${newPath} does not byte-match ${oldPath}; the canonical config was not populated.`);
|
|
39496
39731
|
}
|
|
39497
|
-
writeFileSync2(
|
|
39732
|
+
writeFileSync2(join6(canonicalDir, ".migrated-from-xdg-config.receipt.json"), `${JSON.stringify({
|
|
39498
39733
|
migratedAt: new Date().toISOString(),
|
|
39499
39734
|
from: oldPath,
|
|
39500
39735
|
to: newPath,
|
|
@@ -39510,13 +39745,15 @@ function getConfigPath(env = process.env) {
|
|
|
39510
39745
|
return env["DOMAINS_CONFIG_PATH"];
|
|
39511
39746
|
const dir = env["DOMAINS_CONFIG_DIR"];
|
|
39512
39747
|
if (dir)
|
|
39513
|
-
return
|
|
39514
|
-
|
|
39515
|
-
|
|
39748
|
+
return join6(dir, "config.json");
|
|
39749
|
+
if (!adoptResolverHome(resolverHome(env), env)) {
|
|
39750
|
+
migrateLegacyConfig(env);
|
|
39751
|
+
}
|
|
39752
|
+
return getDefaultConfigPath(env);
|
|
39516
39753
|
}
|
|
39517
39754
|
function loadConfig4(env = process.env) {
|
|
39518
39755
|
const path = getConfigPath(env);
|
|
39519
|
-
if (!
|
|
39756
|
+
if (!existsSync3(path))
|
|
39520
39757
|
return {};
|
|
39521
39758
|
try {
|
|
39522
39759
|
return JSON.parse(readFileSync5(path, "utf-8"));
|