@aws-sdk/client-codecatalyst 3.1068.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.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +8 -14
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +164 -184
- package/dist-cjs/models/CodeCatalystServiceException.js +4 -8
- package/dist-cjs/models/errors.js +13 -22
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +32 -36
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +303 -197
- package/package.json +8 -8
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
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:
|
|
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
|
-
|
|
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.
|
|
35
|
-
const
|
|
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:
|
|
33
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
34
|
token,
|
|
40
35
|
});
|
|
41
36
|
};
|
|
42
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
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 =
|
|
36
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
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
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
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
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|