@aws-sdk/util-endpoints 3.996.7 → 3.996.9
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 +9 -9
- package/dist-es/aws.js +1 -1
- package/dist-es/lib/aws/isVirtualHostableS3Bucket.js +1 -1
- package/dist-es/lib/isIpAddress.js +1 -1
- package/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +1 -1
- package/dist-es/resolveEndpoint.js +1 -1
- package/dist-es/types/EndpointError.js +1 -1
- package/dist-types/aws.d.ts +1 -1
- package/dist-types/lib/isIpAddress.d.ts +1 -1
- package/dist-types/resolveEndpoint.d.ts +1 -1
- package/dist-types/ts3.4/aws.d.ts +1 -1
- package/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -1
- package/dist-types/ts3.4/resolveEndpoint.d.ts +1 -1
- package/dist-types/ts3.4/types/EndpointError.d.ts +1 -1
- package/dist-types/ts3.4/types/EndpointRuleObject.d.ts +1 -1
- package/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -1
- package/dist-types/ts3.4/types/RuleSetObject.d.ts +1 -1
- package/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -1
- package/dist-types/ts3.4/types/shared.d.ts +1 -1
- package/dist-types/types/EndpointError.d.ts +1 -1
- package/dist-types/types/EndpointRuleObject.d.ts +1 -1
- package/dist-types/types/ErrorRuleObject.d.ts +1 -1
- package/dist-types/types/RuleSetObject.d.ts +1 -1
- package/dist-types/types/TreeRuleObject.d.ts +1 -1
- package/dist-types/types/shared.d.ts +1 -1
- package/package.json +2 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var endpoints = require('@smithy/core/endpoints');
|
|
4
|
+
var protocols = require('@smithy/core/protocols');
|
|
5
5
|
|
|
6
6
|
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
7
7
|
if (allowSubDomains) {
|
|
@@ -12,7 +12,7 @@ const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
|
12
12
|
}
|
|
13
13
|
return true;
|
|
14
14
|
}
|
|
15
|
-
if (!
|
|
15
|
+
if (!endpoints.isValidHostLabel(value)) {
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
18
18
|
if (value.length < 3 || value.length > 63) {
|
|
@@ -21,7 +21,7 @@ const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
|
21
21
|
if (value !== value.toLowerCase()) {
|
|
22
22
|
return false;
|
|
23
23
|
}
|
|
24
|
-
if (
|
|
24
|
+
if (endpoints.isIpAddress(value)) {
|
|
25
25
|
return false;
|
|
26
26
|
}
|
|
27
27
|
return true;
|
|
@@ -371,7 +371,7 @@ const awsEndpointFunctions = {
|
|
|
371
371
|
parseArn: parseArn,
|
|
372
372
|
partition: partition,
|
|
373
373
|
};
|
|
374
|
-
|
|
374
|
+
endpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
|
375
375
|
|
|
376
376
|
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
|
377
377
|
if (typeof input.endpointProvider !== "function") {
|
|
@@ -392,11 +392,11 @@ const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
|
|
392
392
|
}
|
|
393
393
|
return input;
|
|
394
394
|
};
|
|
395
|
-
const toEndpointV1 = (endpoint) =>
|
|
395
|
+
const toEndpointV1 = (endpoint) => protocols.parseUrl(endpoint.url);
|
|
396
396
|
|
|
397
|
-
exports.EndpointError =
|
|
398
|
-
exports.isIpAddress =
|
|
399
|
-
exports.resolveEndpoint =
|
|
397
|
+
exports.EndpointError = endpoints.EndpointError;
|
|
398
|
+
exports.isIpAddress = endpoints.isIpAddress;
|
|
399
|
+
exports.resolveEndpoint = endpoints.resolveEndpoint;
|
|
400
400
|
exports.awsEndpointFunctions = awsEndpointFunctions;
|
|
401
401
|
exports.getUserAgentPrefix = getUserAgentPrefix;
|
|
402
402
|
exports.partition = partition;
|
package/dist-es/aws.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { customEndpointFunctions } from "@smithy/
|
|
1
|
+
import { customEndpointFunctions } from "@smithy/core/endpoints";
|
|
2
2
|
import { isVirtualHostableS3Bucket } from "./lib/aws/isVirtualHostableS3Bucket";
|
|
3
3
|
import { parseArn } from "./lib/aws/parseArn";
|
|
4
4
|
import { partition } from "./lib/aws/partition";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isValidHostLabel } from "@smithy/
|
|
1
|
+
import { isValidHostLabel } from "@smithy/core/endpoints";
|
|
2
2
|
import { isIpAddress } from "../isIpAddress";
|
|
3
3
|
export const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
4
4
|
if (allowSubDomains) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { isIpAddress } from "@smithy/
|
|
1
|
+
export { isIpAddress } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parseUrl } from "@smithy/
|
|
1
|
+
import { parseUrl } from "@smithy/core/protocols";
|
|
2
2
|
export const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
|
3
3
|
if (typeof input.endpointProvider !== "function") {
|
|
4
4
|
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { resolveEndpoint } from "@smithy/
|
|
1
|
+
export { resolveEndpoint } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EndpointError } from "@smithy/
|
|
1
|
+
export { EndpointError } from "@smithy/core/endpoints";
|
package/dist-types/aws.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EndpointFunctions } from "@smithy/
|
|
1
|
+
import type { EndpointFunctions } from "@smithy/core/endpoints";
|
|
2
2
|
export declare const awsEndpointFunctions: EndpointFunctions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { isIpAddress } from "@smithy/
|
|
1
|
+
export { isIpAddress } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { resolveEndpoint } from "@smithy/
|
|
1
|
+
export { resolveEndpoint } from "@smithy/core/endpoints";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EndpointFunctions } from "@smithy/
|
|
1
|
+
import { EndpointFunctions } from "@smithy/core/endpoints";
|
|
2
2
|
export declare const awsEndpointFunctions: EndpointFunctions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { isIpAddress } from "@smithy/
|
|
1
|
+
export { isIpAddress } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { resolveEndpoint } from "@smithy/
|
|
1
|
+
export { resolveEndpoint } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EndpointError } from "@smithy/
|
|
1
|
+
export { EndpointError } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ErrorRuleObject } from "@smithy/
|
|
1
|
+
export { ErrorRuleObject } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RuleSetRules, TreeRuleObject } from "@smithy/
|
|
1
|
+
export { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EndpointError } from "@smithy/
|
|
1
|
+
export { EndpointError } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/
|
|
1
|
+
export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ErrorRuleObject } from "@smithy/
|
|
1
|
+
export { ErrorRuleObject } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/
|
|
1
|
+
export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RuleSetRules, TreeRuleObject } from "@smithy/
|
|
1
|
+
export { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/
|
|
1
|
+
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.9",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,9 +26,8 @@
|
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-sdk/types": "^3.973.8",
|
|
29
|
+
"@smithy/core": "^3.24.1",
|
|
29
30
|
"@smithy/types": "^4.14.1",
|
|
30
|
-
"@smithy/url-parser": "^4.2.14",
|
|
31
|
-
"@smithy/util-endpoints": "^3.4.1",
|
|
32
31
|
"tslib": "^2.6.2"
|
|
33
32
|
},
|
|
34
33
|
"engines": {
|