@aws-sdk/client-codecatalyst 3.1067.0 → 3.1069.0

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.
@@ -1,14 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthSchemeConfig = exports.defaultCodeCatalystHttpAuthSchemeProvider = exports.defaultCodeCatalystHttpAuthSchemeParametersProvider = void 0;
4
- const core_1 = require("@smithy/core");
5
- const client_1 = require("@smithy/core/client");
6
- const defaultCodeCatalystHttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ const { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } = require("@smithy/core");
2
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
+ exports.defaultCodeCatalystHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
4
  return {
8
- operation: (0, client_1.getSmithyContext)(context).operation,
5
+ operation: getSmithyContext(context).operation,
9
6
  };
10
7
  };
11
- exports.defaultCodeCatalystHttpAuthSchemeParametersProvider = defaultCodeCatalystHttpAuthSchemeParametersProvider;
12
8
  function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
13
9
  return {
14
10
  schemeId: "smithy.api#httpBearerAuth",
@@ -22,7 +18,7 @@ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
22
18
  }),
23
19
  };
24
20
  }
25
- const defaultCodeCatalystHttpAuthSchemeProvider = (authParameters) => {
21
+ exports.defaultCodeCatalystHttpAuthSchemeProvider = (authParameters) => {
26
22
  const options = [];
27
23
  switch (authParameters.operation) {
28
24
  default: {
@@ -31,12 +27,10 @@ const defaultCodeCatalystHttpAuthSchemeProvider = (authParameters) => {
31
27
  }
32
28
  return options;
33
29
  };
34
- exports.defaultCodeCatalystHttpAuthSchemeProvider = defaultCodeCatalystHttpAuthSchemeProvider;
35
- const resolveHttpAuthSchemeConfig = (config) => {
36
- const token = (0, core_1.memoizeIdentityProvider)(config.token, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
30
+ exports.resolveHttpAuthSchemeConfig = (config) => {
31
+ const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
37
32
  return Object.assign(config, {
38
- authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
33
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
34
  token,
40
35
  });
41
36
  };
42
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bdd = void 0;
4
- const endpoints_1 = require("@smithy/core/endpoints");
1
+ const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
5
2
  const a = true, b = "isSet", c = "aws.partition", d = (n) => "PartitionResult_ssa_" + n + "", e = "booleanEquals", f = "getAttr", g = "supportsFIPS", h = (n) => "https://codecatalyst-fips.global.{PartitionResult_ssa_" + n + "#dualStackDnsSuffix}", i = (n) => "https://codecatalyst.global.{PartitionResult_ssa_" + n + "#dualStackDnsSuffix}", j = { "ref": "Endpoint" }, k = {}, l = [{ "ref": "Region" }];
6
3
  const _data = {
7
4
  conditions: [
@@ -36,4 +33,4 @@ const nodes = new Int32Array([
36
33
  4, 9, r + 6,
37
34
  6, r + 5, r + 2,
38
35
  ]);
39
- exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
36
+ exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultEndpointResolver = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
5
- const endpoints_1 = require("@smithy/core/endpoints");
6
- const bdd_1 = require("./bdd");
7
- const cache = new endpoints_1.EndpointCache({
1
+ const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
+ const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
+ const { bdd } = require("./bdd");
4
+ const cache = new EndpointCache({
8
5
  size: 50,
9
6
  params: ["Endpoint", "Region", "UseFIPS"],
10
7
  });
11
- const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
8
+ exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
13
10
  endpointParams: endpointParams,
14
11
  logger: context.logger,
15
12
  }));
16
13
  };
17
- exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
14
+ customEndpointFunctions.aws = awsEndpointFunctions;