@aws-sdk/util-endpoints 3.996.8 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var utilEndpoints = require('@smithy/util-endpoints');
4
- var urlParser = require('@smithy/url-parser');
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 (!utilEndpoints.isValidHostLabel(value)) {
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 (utilEndpoints.isIpAddress(value)) {
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
- utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
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) => urlParser.parseUrl(endpoint.url);
395
+ const toEndpointV1 = (endpoint) => protocols.parseUrl(endpoint.url);
396
396
 
397
- exports.EndpointError = utilEndpoints.EndpointError;
398
- exports.isIpAddress = utilEndpoints.isIpAddress;
399
- exports.resolveEndpoint = utilEndpoints.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/util-endpoints";
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/util-endpoints";
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/util-endpoints";
1
+ export { isIpAddress } from "@smithy/core/endpoints";
@@ -1,4 +1,4 @@
1
- import { parseUrl } from "@smithy/url-parser";
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/util-endpoints";
1
+ export { resolveEndpoint } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { EndpointError } from "@smithy/util-endpoints";
1
+ export { EndpointError } from "@smithy/core/endpoints";
@@ -1,2 +1,2 @@
1
- import type { EndpointFunctions } from "@smithy/util-endpoints";
1
+ import type { EndpointFunctions } from "@smithy/core/endpoints";
2
2
  export declare const awsEndpointFunctions: EndpointFunctions;
@@ -1 +1 @@
1
- export { isIpAddress } from "@smithy/util-endpoints";
1
+ export { isIpAddress } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { resolveEndpoint } from "@smithy/util-endpoints";
1
+ export { resolveEndpoint } from "@smithy/core/endpoints";
@@ -1,2 +1,2 @@
1
- import { EndpointFunctions } from "@smithy/util-endpoints";
1
+ import { EndpointFunctions } from "@smithy/core/endpoints";
2
2
  export declare const awsEndpointFunctions: EndpointFunctions;
@@ -1 +1 @@
1
- export { isIpAddress } from "@smithy/util-endpoints";
1
+ export { isIpAddress } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { resolveEndpoint } from "@smithy/util-endpoints";
1
+ export { resolveEndpoint } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { EndpointError } from "@smithy/util-endpoints";
1
+ export { EndpointError } from "@smithy/core/endpoints";
@@ -3,4 +3,4 @@ export {
3
3
  EndpointObjectHeaders,
4
4
  EndpointObject,
5
5
  EndpointRuleObject,
6
- } from "@smithy/util-endpoints";
6
+ } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { ErrorRuleObject } from "@smithy/util-endpoints";
1
+ export { ErrorRuleObject } from "@smithy/core/endpoints";
@@ -2,4 +2,4 @@ export {
2
2
  DeprecatedObject,
3
3
  ParameterObject,
4
4
  RuleSetObject,
5
- } from "@smithy/util-endpoints";
5
+ } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { RuleSetRules, TreeRuleObject } from "@smithy/util-endpoints";
1
+ export { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints";
@@ -9,4 +9,4 @@ export {
9
9
  EndpointResolverOptions,
10
10
  ReferenceRecord,
11
11
  EvaluateOptions,
12
- } from "@smithy/util-endpoints";
12
+ } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { EndpointError } from "@smithy/util-endpoints";
1
+ export { EndpointError } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/util-endpoints";
1
+ export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { ErrorRuleObject } from "@smithy/util-endpoints";
1
+ export { ErrorRuleObject } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/util-endpoints";
1
+ export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { RuleSetRules, TreeRuleObject } from "@smithy/util-endpoints";
1
+ export { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints";
@@ -1 +1 @@
1
- export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/util-endpoints";
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.8",
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.2",
32
31
  "tslib": "^2.6.2"
33
32
  },
34
33
  "engines": {