@aws-sdk/util-endpoints 3.996.9 → 3.996.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +10 -399
- package/dist-es/index.js +2 -6
- package/dist-types/index.d.ts +8 -6
- package/package.json +4 -18
- package/dist-cjs/lib/aws/partitions.json +0 -267
- package/dist-es/aws.js +0 -10
- package/dist-es/lib/aws/index.js +0 -3
- package/dist-es/lib/aws/isVirtualHostableS3Bucket.js +0 -25
- package/dist-es/lib/aws/parseArn.js +0 -18
- package/dist-es/lib/aws/partition.js +0 -41
- package/dist-es/lib/aws/partitions.json +0 -267
- package/dist-es/lib/isIpAddress.js +0 -1
- package/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +0 -21
- package/dist-es/resolveEndpoint.js +0 -1
- package/dist-es/types/EndpointError.js +0 -1
- package/dist-es/types/EndpointRuleObject.js +0 -1
- package/dist-es/types/ErrorRuleObject.js +0 -1
- package/dist-es/types/RuleSetObject.js +0 -1
- package/dist-es/types/TreeRuleObject.js +0 -1
- package/dist-es/types/index.js +0 -6
- package/dist-es/types/shared.js +0 -1
- package/dist-types/aws.d.ts +0 -2
- package/dist-types/lib/aws/index.d.ts +0 -3
- package/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -5
- package/dist-types/lib/aws/parseArn.d.ts +0 -7
- package/dist-types/lib/aws/partition.d.ts +0 -38
- package/dist-types/lib/isIpAddress.d.ts +0 -1
- package/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -56
- package/dist-types/resolveEndpoint.d.ts +0 -1
- package/dist-types/ts3.4/aws.d.ts +0 -2
- package/dist-types/ts3.4/index.d.ts +0 -6
- package/dist-types/ts3.4/lib/aws/index.d.ts +0 -3
- package/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -4
- package/dist-types/ts3.4/lib/aws/parseArn.d.ts +0 -2
- package/dist-types/ts3.4/lib/aws/partition.d.ts +0 -28
- package/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -1
- package/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -35
- package/dist-types/ts3.4/resolveEndpoint.d.ts +0 -1
- package/dist-types/ts3.4/types/EndpointError.d.ts +0 -1
- package/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -6
- package/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -1
- package/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -5
- package/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -1
- package/dist-types/ts3.4/types/index.d.ts +0 -6
- package/dist-types/ts3.4/types/shared.d.ts +0 -12
- package/dist-types/types/EndpointError.d.ts +0 -1
- package/dist-types/types/EndpointRuleObject.d.ts +0 -1
- package/dist-types/types/ErrorRuleObject.d.ts +0 -1
- package/dist-types/types/RuleSetObject.d.ts +0 -1
- package/dist-types/types/TreeRuleObject.d.ts +0 -1
- package/dist-types/types/index.d.ts +0 -6
- package/dist-types/types/shared.d.ts +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -1,406 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var client = require('@aws-sdk/core/client');
|
|
3
4
|
var endpoints = require('@smithy/core/endpoints');
|
|
4
|
-
var protocols = require('@smithy/core/protocols');
|
|
5
5
|
|
|
6
|
-
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
7
|
-
if (allowSubDomains) {
|
|
8
|
-
for (const label of value.split(".")) {
|
|
9
|
-
if (!isVirtualHostableS3Bucket(label)) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return true;
|
|
14
|
-
}
|
|
15
|
-
if (!endpoints.isValidHostLabel(value)) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
if (value.length < 3 || value.length > 63) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
if (value !== value.toLowerCase()) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
if (endpoints.isIpAddress(value)) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
return true;
|
|
28
|
-
};
|
|
29
6
|
|
|
30
|
-
const ARN_DELIMITER = ":";
|
|
31
|
-
const RESOURCE_DELIMITER = "/";
|
|
32
|
-
const parseArn = (value) => {
|
|
33
|
-
const segments = value.split(ARN_DELIMITER);
|
|
34
|
-
if (segments.length < 6)
|
|
35
|
-
return null;
|
|
36
|
-
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
|
37
|
-
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
38
|
-
return null;
|
|
39
|
-
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
40
|
-
return {
|
|
41
|
-
partition,
|
|
42
|
-
service,
|
|
43
|
-
region,
|
|
44
|
-
accountId,
|
|
45
|
-
resourceId,
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
var partitions = [
|
|
50
|
-
{
|
|
51
|
-
id: "aws",
|
|
52
|
-
outputs: {
|
|
53
|
-
dnsSuffix: "amazonaws.com",
|
|
54
|
-
dualStackDnsSuffix: "api.aws",
|
|
55
|
-
implicitGlobalRegion: "us-east-1",
|
|
56
|
-
name: "aws",
|
|
57
|
-
supportsDualStack: true,
|
|
58
|
-
supportsFIPS: true
|
|
59
|
-
},
|
|
60
|
-
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
|
61
|
-
regions: {
|
|
62
|
-
"af-south-1": {
|
|
63
|
-
description: "Africa (Cape Town)"
|
|
64
|
-
},
|
|
65
|
-
"ap-east-1": {
|
|
66
|
-
description: "Asia Pacific (Hong Kong)"
|
|
67
|
-
},
|
|
68
|
-
"ap-east-2": {
|
|
69
|
-
description: "Asia Pacific (Taipei)"
|
|
70
|
-
},
|
|
71
|
-
"ap-northeast-1": {
|
|
72
|
-
description: "Asia Pacific (Tokyo)"
|
|
73
|
-
},
|
|
74
|
-
"ap-northeast-2": {
|
|
75
|
-
description: "Asia Pacific (Seoul)"
|
|
76
|
-
},
|
|
77
|
-
"ap-northeast-3": {
|
|
78
|
-
description: "Asia Pacific (Osaka)"
|
|
79
|
-
},
|
|
80
|
-
"ap-south-1": {
|
|
81
|
-
description: "Asia Pacific (Mumbai)"
|
|
82
|
-
},
|
|
83
|
-
"ap-south-2": {
|
|
84
|
-
description: "Asia Pacific (Hyderabad)"
|
|
85
|
-
},
|
|
86
|
-
"ap-southeast-1": {
|
|
87
|
-
description: "Asia Pacific (Singapore)"
|
|
88
|
-
},
|
|
89
|
-
"ap-southeast-2": {
|
|
90
|
-
description: "Asia Pacific (Sydney)"
|
|
91
|
-
},
|
|
92
|
-
"ap-southeast-3": {
|
|
93
|
-
description: "Asia Pacific (Jakarta)"
|
|
94
|
-
},
|
|
95
|
-
"ap-southeast-4": {
|
|
96
|
-
description: "Asia Pacific (Melbourne)"
|
|
97
|
-
},
|
|
98
|
-
"ap-southeast-5": {
|
|
99
|
-
description: "Asia Pacific (Malaysia)"
|
|
100
|
-
},
|
|
101
|
-
"ap-southeast-6": {
|
|
102
|
-
description: "Asia Pacific (New Zealand)"
|
|
103
|
-
},
|
|
104
|
-
"ap-southeast-7": {
|
|
105
|
-
description: "Asia Pacific (Thailand)"
|
|
106
|
-
},
|
|
107
|
-
"aws-global": {
|
|
108
|
-
description: "aws global region"
|
|
109
|
-
},
|
|
110
|
-
"ca-central-1": {
|
|
111
|
-
description: "Canada (Central)"
|
|
112
|
-
},
|
|
113
|
-
"ca-west-1": {
|
|
114
|
-
description: "Canada West (Calgary)"
|
|
115
|
-
},
|
|
116
|
-
"eu-central-1": {
|
|
117
|
-
description: "Europe (Frankfurt)"
|
|
118
|
-
},
|
|
119
|
-
"eu-central-2": {
|
|
120
|
-
description: "Europe (Zurich)"
|
|
121
|
-
},
|
|
122
|
-
"eu-north-1": {
|
|
123
|
-
description: "Europe (Stockholm)"
|
|
124
|
-
},
|
|
125
|
-
"eu-south-1": {
|
|
126
|
-
description: "Europe (Milan)"
|
|
127
|
-
},
|
|
128
|
-
"eu-south-2": {
|
|
129
|
-
description: "Europe (Spain)"
|
|
130
|
-
},
|
|
131
|
-
"eu-west-1": {
|
|
132
|
-
description: "Europe (Ireland)"
|
|
133
|
-
},
|
|
134
|
-
"eu-west-2": {
|
|
135
|
-
description: "Europe (London)"
|
|
136
|
-
},
|
|
137
|
-
"eu-west-3": {
|
|
138
|
-
description: "Europe (Paris)"
|
|
139
|
-
},
|
|
140
|
-
"il-central-1": {
|
|
141
|
-
description: "Israel (Tel Aviv)"
|
|
142
|
-
},
|
|
143
|
-
"me-central-1": {
|
|
144
|
-
description: "Middle East (UAE)"
|
|
145
|
-
},
|
|
146
|
-
"me-south-1": {
|
|
147
|
-
description: "Middle East (Bahrain)"
|
|
148
|
-
},
|
|
149
|
-
"mx-central-1": {
|
|
150
|
-
description: "Mexico (Central)"
|
|
151
|
-
},
|
|
152
|
-
"sa-east-1": {
|
|
153
|
-
description: "South America (Sao Paulo)"
|
|
154
|
-
},
|
|
155
|
-
"us-east-1": {
|
|
156
|
-
description: "US East (N. Virginia)"
|
|
157
|
-
},
|
|
158
|
-
"us-east-2": {
|
|
159
|
-
description: "US East (Ohio)"
|
|
160
|
-
},
|
|
161
|
-
"us-west-1": {
|
|
162
|
-
description: "US West (N. California)"
|
|
163
|
-
},
|
|
164
|
-
"us-west-2": {
|
|
165
|
-
description: "US West (Oregon)"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
id: "aws-cn",
|
|
171
|
-
outputs: {
|
|
172
|
-
dnsSuffix: "amazonaws.com.cn",
|
|
173
|
-
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
|
174
|
-
implicitGlobalRegion: "cn-northwest-1",
|
|
175
|
-
name: "aws-cn",
|
|
176
|
-
supportsDualStack: true,
|
|
177
|
-
supportsFIPS: true
|
|
178
|
-
},
|
|
179
|
-
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
180
|
-
regions: {
|
|
181
|
-
"aws-cn-global": {
|
|
182
|
-
description: "aws-cn global region"
|
|
183
|
-
},
|
|
184
|
-
"cn-north-1": {
|
|
185
|
-
description: "China (Beijing)"
|
|
186
|
-
},
|
|
187
|
-
"cn-northwest-1": {
|
|
188
|
-
description: "China (Ningxia)"
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
id: "aws-eusc",
|
|
194
|
-
outputs: {
|
|
195
|
-
dnsSuffix: "amazonaws.eu",
|
|
196
|
-
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
|
197
|
-
implicitGlobalRegion: "eusc-de-east-1",
|
|
198
|
-
name: "aws-eusc",
|
|
199
|
-
supportsDualStack: true,
|
|
200
|
-
supportsFIPS: true
|
|
201
|
-
},
|
|
202
|
-
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
|
203
|
-
regions: {
|
|
204
|
-
"eusc-de-east-1": {
|
|
205
|
-
description: "AWS European Sovereign Cloud (Germany)"
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
id: "aws-iso",
|
|
211
|
-
outputs: {
|
|
212
|
-
dnsSuffix: "c2s.ic.gov",
|
|
213
|
-
dualStackDnsSuffix: "api.aws.ic.gov",
|
|
214
|
-
implicitGlobalRegion: "us-iso-east-1",
|
|
215
|
-
name: "aws-iso",
|
|
216
|
-
supportsDualStack: true,
|
|
217
|
-
supportsFIPS: true
|
|
218
|
-
},
|
|
219
|
-
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
220
|
-
regions: {
|
|
221
|
-
"aws-iso-global": {
|
|
222
|
-
description: "aws-iso global region"
|
|
223
|
-
},
|
|
224
|
-
"us-iso-east-1": {
|
|
225
|
-
description: "US ISO East"
|
|
226
|
-
},
|
|
227
|
-
"us-iso-west-1": {
|
|
228
|
-
description: "US ISO WEST"
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
id: "aws-iso-b",
|
|
234
|
-
outputs: {
|
|
235
|
-
dnsSuffix: "sc2s.sgov.gov",
|
|
236
|
-
dualStackDnsSuffix: "api.aws.scloud",
|
|
237
|
-
implicitGlobalRegion: "us-isob-east-1",
|
|
238
|
-
name: "aws-iso-b",
|
|
239
|
-
supportsDualStack: true,
|
|
240
|
-
supportsFIPS: true
|
|
241
|
-
},
|
|
242
|
-
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
243
|
-
regions: {
|
|
244
|
-
"aws-iso-b-global": {
|
|
245
|
-
description: "aws-iso-b global region"
|
|
246
|
-
},
|
|
247
|
-
"us-isob-east-1": {
|
|
248
|
-
description: "US ISOB East (Ohio)"
|
|
249
|
-
},
|
|
250
|
-
"us-isob-west-1": {
|
|
251
|
-
description: "US ISOB West"
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
id: "aws-iso-e",
|
|
257
|
-
outputs: {
|
|
258
|
-
dnsSuffix: "cloud.adc-e.uk",
|
|
259
|
-
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
|
260
|
-
implicitGlobalRegion: "eu-isoe-west-1",
|
|
261
|
-
name: "aws-iso-e",
|
|
262
|
-
supportsDualStack: true,
|
|
263
|
-
supportsFIPS: true
|
|
264
|
-
},
|
|
265
|
-
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
|
266
|
-
regions: {
|
|
267
|
-
"aws-iso-e-global": {
|
|
268
|
-
description: "aws-iso-e global region"
|
|
269
|
-
},
|
|
270
|
-
"eu-isoe-west-1": {
|
|
271
|
-
description: "EU ISOE West"
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
id: "aws-iso-f",
|
|
277
|
-
outputs: {
|
|
278
|
-
dnsSuffix: "csp.hci.ic.gov",
|
|
279
|
-
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
|
280
|
-
implicitGlobalRegion: "us-isof-south-1",
|
|
281
|
-
name: "aws-iso-f",
|
|
282
|
-
supportsDualStack: true,
|
|
283
|
-
supportsFIPS: true
|
|
284
|
-
},
|
|
285
|
-
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
|
286
|
-
regions: {
|
|
287
|
-
"aws-iso-f-global": {
|
|
288
|
-
description: "aws-iso-f global region"
|
|
289
|
-
},
|
|
290
|
-
"us-isof-east-1": {
|
|
291
|
-
description: "US ISOF EAST"
|
|
292
|
-
},
|
|
293
|
-
"us-isof-south-1": {
|
|
294
|
-
description: "US ISOF SOUTH"
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
id: "aws-us-gov",
|
|
300
|
-
outputs: {
|
|
301
|
-
dnsSuffix: "amazonaws.com",
|
|
302
|
-
dualStackDnsSuffix: "api.aws",
|
|
303
|
-
implicitGlobalRegion: "us-gov-west-1",
|
|
304
|
-
name: "aws-us-gov",
|
|
305
|
-
supportsDualStack: true,
|
|
306
|
-
supportsFIPS: true
|
|
307
|
-
},
|
|
308
|
-
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
309
|
-
regions: {
|
|
310
|
-
"aws-us-gov-global": {
|
|
311
|
-
description: "aws-us-gov global region"
|
|
312
|
-
},
|
|
313
|
-
"us-gov-east-1": {
|
|
314
|
-
description: "AWS GovCloud (US-East)"
|
|
315
|
-
},
|
|
316
|
-
"us-gov-west-1": {
|
|
317
|
-
description: "AWS GovCloud (US-West)"
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
];
|
|
322
|
-
var version = "1.1";
|
|
323
|
-
var partitionsInfo = {
|
|
324
|
-
partitions: partitions,
|
|
325
|
-
version: version
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
let selectedPartitionsInfo = partitionsInfo;
|
|
329
|
-
let selectedUserAgentPrefix = "";
|
|
330
|
-
const partition = (value) => {
|
|
331
|
-
const { partitions } = selectedPartitionsInfo;
|
|
332
|
-
for (const partition of partitions) {
|
|
333
|
-
const { regions, outputs } = partition;
|
|
334
|
-
for (const [region, regionData] of Object.entries(regions)) {
|
|
335
|
-
if (region === value) {
|
|
336
|
-
return {
|
|
337
|
-
...outputs,
|
|
338
|
-
...regionData,
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
for (const partition of partitions) {
|
|
344
|
-
const { regionRegex, outputs } = partition;
|
|
345
|
-
if (new RegExp(regionRegex).test(value)) {
|
|
346
|
-
return {
|
|
347
|
-
...outputs,
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
|
352
|
-
if (!DEFAULT_PARTITION) {
|
|
353
|
-
throw new Error("Provided region was not found in the partition array or regex," +
|
|
354
|
-
" and default partition with id 'aws' doesn't exist.");
|
|
355
|
-
}
|
|
356
|
-
return {
|
|
357
|
-
...DEFAULT_PARTITION.outputs,
|
|
358
|
-
};
|
|
359
|
-
};
|
|
360
|
-
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
|
361
|
-
selectedPartitionsInfo = partitionsInfo;
|
|
362
|
-
selectedUserAgentPrefix = userAgentPrefix;
|
|
363
|
-
};
|
|
364
|
-
const useDefaultPartitionInfo = () => {
|
|
365
|
-
setPartitionInfo(partitionsInfo, "");
|
|
366
|
-
};
|
|
367
|
-
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
|
368
|
-
|
|
369
|
-
const awsEndpointFunctions = {
|
|
370
|
-
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
|
371
|
-
parseArn: parseArn,
|
|
372
|
-
partition: partition,
|
|
373
|
-
};
|
|
374
|
-
endpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
|
375
|
-
|
|
376
|
-
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
|
377
|
-
if (typeof input.endpointProvider !== "function") {
|
|
378
|
-
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
|
379
|
-
}
|
|
380
|
-
const { endpoint } = input;
|
|
381
|
-
if (endpoint === undefined) {
|
|
382
|
-
input.endpoint = async () => {
|
|
383
|
-
return toEndpointV1(input.endpointProvider({
|
|
384
|
-
Region: typeof input.region === "function" ? await input.region() : input.region,
|
|
385
|
-
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
|
386
|
-
? await input.useDualstackEndpoint()
|
|
387
|
-
: input.useDualstackEndpoint,
|
|
388
|
-
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
|
389
|
-
Endpoint: undefined,
|
|
390
|
-
}, { logger: input.logger }));
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
return input;
|
|
394
|
-
};
|
|
395
|
-
const toEndpointV1 = (endpoint) => protocols.parseUrl(endpoint.url);
|
|
396
7
|
|
|
8
|
+
exports.awsEndpointFunctions = client.awsEndpointFunctions;
|
|
9
|
+
exports.getUserAgentPrefix = client.getUserAgentPrefix;
|
|
10
|
+
exports.isIpAddress = client.isIpAddress;
|
|
11
|
+
exports.partition = client.partition;
|
|
12
|
+
exports.resolveDefaultAwsRegionalEndpointsConfig = client.resolveDefaultAwsRegionalEndpointsConfig;
|
|
13
|
+
exports.resolveEndpoint = client.resolveEndpoint;
|
|
14
|
+
exports.setPartitionInfo = client.setPartitionInfo;
|
|
15
|
+
exports.toEndpointV1 = client.toEndpointV1;
|
|
16
|
+
exports.useDefaultPartitionInfo = client.useDefaultPartitionInfo;
|
|
397
17
|
exports.EndpointError = endpoints.EndpointError;
|
|
398
|
-
exports.isIpAddress = endpoints.isIpAddress;
|
|
399
|
-
exports.resolveEndpoint = endpoints.resolveEndpoint;
|
|
400
|
-
exports.awsEndpointFunctions = awsEndpointFunctions;
|
|
401
|
-
exports.getUserAgentPrefix = getUserAgentPrefix;
|
|
402
|
-
exports.partition = partition;
|
|
403
|
-
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
|
404
|
-
exports.setPartitionInfo = setPartitionInfo;
|
|
405
|
-
exports.toEndpointV1 = toEndpointV1;
|
|
406
|
-
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
package/dist-es/index.js
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from "./lib/isIpAddress";
|
|
4
|
-
export * from "./resolveDefaultAwsRegionalEndpointsConfig";
|
|
5
|
-
export * from "./resolveEndpoint";
|
|
6
|
-
export * from "./types";
|
|
1
|
+
export { awsEndpointFunctions, resolveEndpoint, resolveDefaultAwsRegionalEndpointsConfig, toEndpointV1, isIpAddress, partition, setPartitionInfo, useDefaultPartitionInfo, getUserAgentPrefix, } from "@aws-sdk/core/client";
|
|
2
|
+
export { EndpointError } from "@smithy/core/endpoints";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
1
|
+
export { awsEndpointFunctions, resolveEndpoint, resolveDefaultAwsRegionalEndpointsConfig, toEndpointV1, isIpAddress, partition, setPartitionInfo, useDefaultPartitionInfo, getUserAgentPrefix, } from "@aws-sdk/core/client";
|
|
2
|
+
export type { PartitionsInfo, DefaultAwsRegionalEndpointsInputConfig, DefaultAwsRegionalEndpointsResolvedConfig, } from "@aws-sdk/core/client";
|
|
3
|
+
export { EndpointError } from "@smithy/core/endpoints";
|
|
4
|
+
export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/core/endpoints";
|
|
5
|
+
export { ErrorRuleObject } from "@smithy/core/endpoints";
|
|
6
|
+
export { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints";
|
|
7
|
+
export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/core/endpoints";
|
|
8
|
+
export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/core/endpoints";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
|
3
|
-
"version": "3.996.
|
|
3
|
+
"version": "3.996.10",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -11,12 +11,7 @@
|
|
|
11
11
|
"build:es": "tsc -p tsconfig.es.json",
|
|
12
12
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
13
13
|
"build:types": "tsc -p tsconfig.types.json",
|
|
14
|
-
"
|
|
15
|
-
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
16
|
-
"test": "yarn g:vitest run",
|
|
17
|
-
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
18
|
-
"test:watch": "yarn g:vitest watch",
|
|
19
|
-
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo"
|
|
20
15
|
},
|
|
21
16
|
"sideEffects": true,
|
|
22
17
|
"author": {
|
|
@@ -25,21 +20,13 @@
|
|
|
25
20
|
},
|
|
26
21
|
"license": "Apache-2.0",
|
|
27
22
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/
|
|
29
|
-
"@smithy/core": "^3.24.
|
|
30
|
-
"@smithy/types": "^4.14.1",
|
|
23
|
+
"@aws-sdk/core": "^3.974.11",
|
|
24
|
+
"@smithy/core": "^3.24.2",
|
|
31
25
|
"tslib": "^2.6.2"
|
|
32
26
|
},
|
|
33
27
|
"engines": {
|
|
34
28
|
"node": ">=20.0.0"
|
|
35
29
|
},
|
|
36
|
-
"typesVersions": {
|
|
37
|
-
"<4.5": {
|
|
38
|
-
"dist-types/*": [
|
|
39
|
-
"dist-types/ts3.4/*"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
30
|
"files": [
|
|
44
31
|
"dist-*/**"
|
|
45
32
|
],
|
|
@@ -52,7 +39,6 @@
|
|
|
52
39
|
"devDependencies": {
|
|
53
40
|
"@tsconfig/recommended": "1.0.1",
|
|
54
41
|
"concurrently": "7.0.0",
|
|
55
|
-
"downlevel-dts": "0.10.1",
|
|
56
42
|
"premove": "4.0.0",
|
|
57
43
|
"typescript": "~5.8.3"
|
|
58
44
|
}
|