@aws-sdk/client-marketplace-entitlement-service 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +7 -1
- package/dist-es/MarketplaceEntitlementService.js +6 -13
- package/dist-es/MarketplaceEntitlementServiceClient.js +22 -28
- package/dist-es/commands/GetEntitlementsCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MarketplaceEntitlementServiceServiceException.js +5 -10
- package/dist-es/models/models_0.js +47 -41
- package/dist-es/protocols/Aws_json1_1.js +138 -165
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
|
|
@@ -32,7 +32,7 @@ exports.deserializeAws_json1_1GetEntitlementsCommand = deserializeAws_json1_1Get
|
|
|
32
32
|
const deserializeAws_json1_1GetEntitlementsCommandError = async (output, context) => {
|
|
33
33
|
const parsedOutput = {
|
|
34
34
|
...output,
|
|
35
|
-
body: await
|
|
35
|
+
body: await parseErrorBody(output.body, context),
|
|
36
36
|
};
|
|
37
37
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
38
38
|
switch (errorCode) {
|
|
@@ -206,6 +206,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
206
206
|
}
|
|
207
207
|
return {};
|
|
208
208
|
});
|
|
209
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
210
|
+
var _a;
|
|
211
|
+
const value = await parseBody(errorBody, context);
|
|
212
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
213
|
+
return value;
|
|
214
|
+
};
|
|
209
215
|
const loadRestJsonErrorCode = (output, data) => {
|
|
210
216
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
211
217
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { GetEntitlementsCommand, } from "./commands/GetEntitlementsCommand";
|
|
3
2
|
import { MarketplaceEntitlementServiceClient } from "./MarketplaceEntitlementServiceClient";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
8
|
-
}
|
|
9
|
-
MarketplaceEntitlementService.prototype.getEntitlements = function (args, optionsOrCb, cb) {
|
|
10
|
-
var command = new GetEntitlementsCommand(args);
|
|
3
|
+
export class MarketplaceEntitlementService extends MarketplaceEntitlementServiceClient {
|
|
4
|
+
getEntitlements(args, optionsOrCb, cb) {
|
|
5
|
+
const command = new GetEntitlementsCommand(args);
|
|
11
6
|
if (typeof optionsOrCb === "function") {
|
|
12
7
|
this.send(command, optionsOrCb);
|
|
13
8
|
}
|
|
14
9
|
else if (typeof cb === "function") {
|
|
15
10
|
if (typeof optionsOrCb !== "object")
|
|
16
|
-
throw new Error(
|
|
11
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
17
12
|
this.send(command, optionsOrCb || {}, cb);
|
|
18
13
|
}
|
|
19
14
|
else {
|
|
20
15
|
return this.send(command, optionsOrCb);
|
|
21
16
|
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}(MarketplaceEntitlementServiceClient));
|
|
25
|
-
export { MarketplaceEntitlementService };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class MarketplaceEntitlementServiceClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { MarketplaceEntitlementServiceClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetEntitlementsRequestFilterSensitiveLog, GetEntitlementsResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1GetEntitlementsCommand, serializeAws_json1_1GetEntitlementsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetEntitlementsCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "MarketplaceEntitlementServiceClient";
|
|
15
|
+
const commandName = "GetEntitlementsCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetEntitlementsRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetEntitlementsResultFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetEntitlementsCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_1GetEntitlementsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1GetEntitlementsCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetEntitlementsCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const regionHash = {};
|
|
3
|
+
const partitionHash = {
|
|
5
4
|
aws: {
|
|
6
5
|
regions: [
|
|
7
6
|
"af-south-1",
|
|
@@ -121,8 +120,9 @@ var partitionHash = {
|
|
|
121
120
|
],
|
|
122
121
|
},
|
|
123
122
|
};
|
|
124
|
-
export
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
124
|
+
...options,
|
|
125
|
+
signingService: "aws-marketplace",
|
|
126
|
+
regionHash,
|
|
127
|
+
partitionHash,
|
|
128
|
+
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, MarketplaceEntitlementServiceServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class MarketplaceEntitlementServiceServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, MarketplaceEntitlementServiceServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { MarketplaceEntitlementServiceServiceException };
|
|
7
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { MarketplaceEntitlementServiceServiceException as __BaseException } from "./MarketplaceEntitlementServiceServiceException";
|
|
3
2
|
export var GetEntitlementFilterName;
|
|
4
3
|
(function (GetEntitlementFilterName) {
|
|
@@ -7,7 +6,7 @@ export var GetEntitlementFilterName;
|
|
|
7
6
|
})(GetEntitlementFilterName || (GetEntitlementFilterName = {}));
|
|
8
7
|
export var EntitlementValue;
|
|
9
8
|
(function (EntitlementValue) {
|
|
10
|
-
EntitlementValue.visit =
|
|
9
|
+
EntitlementValue.visit = (value, visitor) => {
|
|
11
10
|
if (value.IntegerValue !== undefined)
|
|
12
11
|
return visitor.IntegerValue(value.IntegerValue);
|
|
13
12
|
if (value.DoubleValue !== undefined)
|
|
@@ -19,45 +18,46 @@ export var EntitlementValue;
|
|
|
19
18
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
20
19
|
};
|
|
21
20
|
})(EntitlementValue || (EntitlementValue = {}));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
export class InternalServiceErrorException extends __BaseException {
|
|
22
|
+
constructor(opts) {
|
|
23
|
+
super({
|
|
24
|
+
name: "InternalServiceErrorException",
|
|
25
|
+
$fault: "server",
|
|
26
|
+
...opts,
|
|
27
|
+
});
|
|
28
|
+
this.name = "InternalServiceErrorException";
|
|
29
|
+
this.$fault = "server";
|
|
30
|
+
Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
}
|
|
33
|
+
export class InvalidParameterException extends __BaseException {
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "InvalidParameterException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
this.name = "InvalidParameterException";
|
|
41
|
+
this.$fault = "client";
|
|
42
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
}
|
|
45
|
+
export class ThrottlingException extends __BaseException {
|
|
46
|
+
constructor(opts) {
|
|
47
|
+
super({
|
|
48
|
+
name: "ThrottlingException",
|
|
49
|
+
$fault: "client",
|
|
50
|
+
...opts,
|
|
51
|
+
});
|
|
52
|
+
this.name = "ThrottlingException";
|
|
53
|
+
this.$fault = "client";
|
|
54
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
54
55
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export
|
|
60
|
-
var _a;
|
|
56
|
+
}
|
|
57
|
+
export const GetEntitlementsRequestFilterSensitiveLog = (obj) => ({
|
|
58
|
+
...obj,
|
|
59
|
+
});
|
|
60
|
+
export const EntitlementValueFilterSensitiveLog = (obj) => {
|
|
61
61
|
if (obj.IntegerValue !== undefined)
|
|
62
62
|
return { IntegerValue: obj.IntegerValue };
|
|
63
63
|
if (obj.DoubleValue !== undefined)
|
|
@@ -67,7 +67,13 @@ export var EntitlementValueFilterSensitiveLog = function (obj) {
|
|
|
67
67
|
if (obj.StringValue !== undefined)
|
|
68
68
|
return { StringValue: obj.StringValue };
|
|
69
69
|
if (obj.$unknown !== undefined)
|
|
70
|
-
return
|
|
70
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
71
71
|
};
|
|
72
|
-
export
|
|
73
|
-
|
|
72
|
+
export const EntitlementFilterSensitiveLog = (obj) => ({
|
|
73
|
+
...obj,
|
|
74
|
+
...(obj.Value && { Value: EntitlementValueFilterSensitiveLog(obj.Value) }),
|
|
75
|
+
});
|
|
76
|
+
export const GetEntitlementsResultFilterSensitiveLog = (obj) => ({
|
|
77
|
+
...obj,
|
|
78
|
+
...(obj.Entitlements && { Entitlements: obj.Entitlements.map((item) => EntitlementFilterSensitiveLog(item)) }),
|
|
79
|
+
});
|
|
@@ -1,126 +1,109 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { MarketplaceEntitlementServiceServiceException as __BaseException } from "../models/MarketplaceEntitlementServiceServiceException";
|
|
5
4
|
import { InternalServiceErrorException, InvalidParameterException, ThrottlingException, } from "../models/models_0";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
case 5: throw _d.sent();
|
|
61
|
-
case 6: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
62
|
-
case 7: throw _d.sent();
|
|
63
|
-
case 8:
|
|
64
|
-
parsedBody = parsedOutput.body;
|
|
65
|
-
throwDefaultError({
|
|
66
|
-
output: output,
|
|
67
|
-
parsedBody: parsedBody,
|
|
68
|
-
exceptionCtor: __BaseException,
|
|
69
|
-
errorCode: errorCode,
|
|
70
|
-
});
|
|
71
|
-
_d.label = 9;
|
|
72
|
-
case 9: return [2];
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}); };
|
|
76
|
-
var deserializeAws_json1_1InternalServiceErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
77
|
-
var body, deserialized, exception;
|
|
78
|
-
return __generator(this, function (_a) {
|
|
79
|
-
body = parsedOutput.body;
|
|
80
|
-
deserialized = deserializeAws_json1_1InternalServiceErrorException(body, context);
|
|
81
|
-
exception = new InternalServiceErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
82
|
-
return [2, __decorateServiceException(exception, body)];
|
|
5
|
+
export const serializeAws_json1_1GetEntitlementsCommand = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.1",
|
|
8
|
+
"x-amz-target": "AWSMPEntitlementService.GetEntitlements",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1GetEntitlementsRequest(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const deserializeAws_json1_1GetEntitlementsCommand = async (output, context) => {
|
|
15
|
+
if (output.statusCode >= 300) {
|
|
16
|
+
return deserializeAws_json1_1GetEntitlementsCommandError(output, context);
|
|
17
|
+
}
|
|
18
|
+
const data = await parseBody(output.body, context);
|
|
19
|
+
let contents = {};
|
|
20
|
+
contents = deserializeAws_json1_1GetEntitlementsResult(data, context);
|
|
21
|
+
const response = {
|
|
22
|
+
$metadata: deserializeMetadata(output),
|
|
23
|
+
...contents,
|
|
24
|
+
};
|
|
25
|
+
return Promise.resolve(response);
|
|
26
|
+
};
|
|
27
|
+
const deserializeAws_json1_1GetEntitlementsCommandError = async (output, context) => {
|
|
28
|
+
const parsedOutput = {
|
|
29
|
+
...output,
|
|
30
|
+
body: await parseErrorBody(output.body, context),
|
|
31
|
+
};
|
|
32
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
33
|
+
switch (errorCode) {
|
|
34
|
+
case "InternalServiceErrorException":
|
|
35
|
+
case "com.amazonaws.marketplaceentitlementservice#InternalServiceErrorException":
|
|
36
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
37
|
+
case "InvalidParameterException":
|
|
38
|
+
case "com.amazonaws.marketplaceentitlementservice#InvalidParameterException":
|
|
39
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
40
|
+
case "ThrottlingException":
|
|
41
|
+
case "com.amazonaws.marketplaceentitlementservice#ThrottlingException":
|
|
42
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
43
|
+
default:
|
|
44
|
+
const parsedBody = parsedOutput.body;
|
|
45
|
+
throwDefaultError({
|
|
46
|
+
output,
|
|
47
|
+
parsedBody,
|
|
48
|
+
exceptionCtor: __BaseException,
|
|
49
|
+
errorCode,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const deserializeAws_json1_1InternalServiceErrorExceptionResponse = async (parsedOutput, context) => {
|
|
54
|
+
const body = parsedOutput.body;
|
|
55
|
+
const deserialized = deserializeAws_json1_1InternalServiceErrorException(body, context);
|
|
56
|
+
const exception = new InternalServiceErrorException({
|
|
57
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
58
|
+
...deserialized,
|
|
83
59
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
60
|
+
return __decorateServiceException(exception, body);
|
|
61
|
+
};
|
|
62
|
+
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
63
|
+
const body = parsedOutput.body;
|
|
64
|
+
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
65
|
+
const exception = new InvalidParameterException({
|
|
66
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
67
|
+
...deserialized,
|
|
92
68
|
});
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
69
|
+
return __decorateServiceException(exception, body);
|
|
70
|
+
};
|
|
71
|
+
const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
72
|
+
const body = parsedOutput.body;
|
|
73
|
+
const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
74
|
+
const exception = new ThrottlingException({
|
|
75
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
76
|
+
...deserialized,
|
|
101
77
|
});
|
|
102
|
-
|
|
103
|
-
|
|
78
|
+
return __decorateServiceException(exception, body);
|
|
79
|
+
};
|
|
80
|
+
const serializeAws_json1_1FilterValueList = (input, context) => {
|
|
104
81
|
return input
|
|
105
|
-
.filter(
|
|
106
|
-
.map(
|
|
82
|
+
.filter((e) => e != null)
|
|
83
|
+
.map((entry) => {
|
|
107
84
|
return entry;
|
|
108
85
|
});
|
|
109
86
|
};
|
|
110
|
-
|
|
111
|
-
return Object.entries(input).reduce(
|
|
112
|
-
var _b;
|
|
113
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
87
|
+
const serializeAws_json1_1GetEntitlementFilters = (input, context) => {
|
|
88
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
114
89
|
if (value === null) {
|
|
115
90
|
return acc;
|
|
116
91
|
}
|
|
117
|
-
return
|
|
92
|
+
return {
|
|
93
|
+
...acc,
|
|
94
|
+
[key]: serializeAws_json1_1FilterValueList(value, context),
|
|
95
|
+
};
|
|
118
96
|
}, {});
|
|
119
97
|
};
|
|
120
|
-
|
|
121
|
-
return
|
|
98
|
+
const serializeAws_json1_1GetEntitlementsRequest = (input, context) => {
|
|
99
|
+
return {
|
|
100
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1GetEntitlementFilters(input.Filter, context) }),
|
|
101
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
102
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
103
|
+
...(input.ProductCode != null && { ProductCode: input.ProductCode }),
|
|
104
|
+
};
|
|
122
105
|
};
|
|
123
|
-
|
|
106
|
+
const deserializeAws_json1_1Entitlement = (output, context) => {
|
|
124
107
|
return {
|
|
125
108
|
CustomerIdentifier: __expectString(output.CustomerIdentifier),
|
|
126
109
|
Dimension: __expectString(output.Dimension),
|
|
@@ -131,10 +114,10 @@ var deserializeAws_json1_1Entitlement = function (output, context) {
|
|
|
131
114
|
Value: output.Value != null ? deserializeAws_json1_1EntitlementValue(__expectUnion(output.Value), context) : undefined,
|
|
132
115
|
};
|
|
133
116
|
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
.filter(
|
|
137
|
-
.map(
|
|
117
|
+
const deserializeAws_json1_1EntitlementList = (output, context) => {
|
|
118
|
+
const retVal = (output || [])
|
|
119
|
+
.filter((e) => e != null)
|
|
120
|
+
.map((entry) => {
|
|
138
121
|
if (entry === null) {
|
|
139
122
|
return null;
|
|
140
123
|
}
|
|
@@ -142,7 +125,7 @@ var deserializeAws_json1_1EntitlementList = function (output, context) {
|
|
|
142
125
|
});
|
|
143
126
|
return retVal;
|
|
144
127
|
};
|
|
145
|
-
|
|
128
|
+
const deserializeAws_json1_1EntitlementValue = (output, context) => {
|
|
146
129
|
if (__expectBoolean(output.BooleanValue) !== undefined) {
|
|
147
130
|
return { BooleanValue: __expectBoolean(output.BooleanValue) };
|
|
148
131
|
}
|
|
@@ -157,83 +140,73 @@ var deserializeAws_json1_1EntitlementValue = function (output, context) {
|
|
|
157
140
|
}
|
|
158
141
|
return { $unknown: Object.entries(output)[0] };
|
|
159
142
|
};
|
|
160
|
-
|
|
143
|
+
const deserializeAws_json1_1GetEntitlementsResult = (output, context) => {
|
|
161
144
|
return {
|
|
162
145
|
Entitlements: output.Entitlements != null ? deserializeAws_json1_1EntitlementList(output.Entitlements, context) : undefined,
|
|
163
146
|
NextToken: __expectString(output.NextToken),
|
|
164
147
|
};
|
|
165
148
|
};
|
|
166
|
-
|
|
149
|
+
const deserializeAws_json1_1InternalServiceErrorException = (output, context) => {
|
|
167
150
|
return {
|
|
168
151
|
message: __expectString(output.message),
|
|
169
152
|
};
|
|
170
153
|
};
|
|
171
|
-
|
|
154
|
+
const deserializeAws_json1_1InvalidParameterException = (output, context) => {
|
|
172
155
|
return {
|
|
173
156
|
message: __expectString(output.message),
|
|
174
157
|
};
|
|
175
158
|
};
|
|
176
|
-
|
|
159
|
+
const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
177
160
|
return {
|
|
178
161
|
message: __expectString(output.message),
|
|
179
162
|
};
|
|
180
163
|
};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
});
|
|
189
|
-
};
|
|
190
|
-
var collectBody = function (streamBody, context) {
|
|
191
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
164
|
+
const deserializeMetadata = (output) => ({
|
|
165
|
+
httpStatusCode: output.statusCode,
|
|
166
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
167
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
168
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
169
|
+
});
|
|
170
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
192
171
|
if (streamBody instanceof Uint8Array) {
|
|
193
172
|
return Promise.resolve(streamBody);
|
|
194
173
|
}
|
|
195
174
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
196
175
|
};
|
|
197
|
-
|
|
198
|
-
|
|
176
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
177
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
178
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
179
|
+
const contents = {
|
|
180
|
+
protocol,
|
|
181
|
+
hostname,
|
|
182
|
+
port,
|
|
183
|
+
method: "POST",
|
|
184
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
185
|
+
headers,
|
|
186
|
+
};
|
|
187
|
+
if (resolvedHostname !== undefined) {
|
|
188
|
+
contents.hostname = resolvedHostname;
|
|
189
|
+
}
|
|
190
|
+
if (body !== undefined) {
|
|
191
|
+
contents.body = body;
|
|
192
|
+
}
|
|
193
|
+
return new __HttpRequest(contents);
|
|
199
194
|
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
port: port,
|
|
211
|
-
method: "POST",
|
|
212
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
213
|
-
headers: headers,
|
|
214
|
-
};
|
|
215
|
-
if (resolvedHostname !== undefined) {
|
|
216
|
-
contents.hostname = resolvedHostname;
|
|
217
|
-
}
|
|
218
|
-
if (body !== undefined) {
|
|
219
|
-
contents.body = body;
|
|
220
|
-
}
|
|
221
|
-
return [2, new __HttpRequest(contents)];
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
}); };
|
|
225
|
-
var parseBody = function (streamBody, context) {
|
|
226
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
227
|
-
if (encoded.length) {
|
|
228
|
-
return JSON.parse(encoded);
|
|
229
|
-
}
|
|
230
|
-
return {};
|
|
231
|
-
});
|
|
195
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
196
|
+
if (encoded.length) {
|
|
197
|
+
return JSON.parse(encoded);
|
|
198
|
+
}
|
|
199
|
+
return {};
|
|
200
|
+
});
|
|
201
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
202
|
+
const value = await parseBody(errorBody, context);
|
|
203
|
+
value.message = value.message ?? value.Message;
|
|
204
|
+
return value;
|
|
232
205
|
};
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
206
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
207
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
208
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
209
|
+
let cleanValue = rawValue;
|
|
237
210
|
if (typeof cleanValue === "number") {
|
|
238
211
|
cleanValue = cleanValue.toString();
|
|
239
212
|
}
|
|
@@ -248,7 +221,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
248
221
|
}
|
|
249
222
|
return cleanValue;
|
|
250
223
|
};
|
|
251
|
-
|
|
224
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
252
225
|
if (headerKey !== undefined) {
|
|
253
226
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
254
227
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import packageInfo from "../package.json";
|
|
3
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
3
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
@@ -12,15 +11,30 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
|
12
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
12
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
13
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
export const getRuntimeConfig = (config) => {
|
|
15
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
+
return {
|
|
19
|
+
...clientSharedValues,
|
|
20
|
+
...config,
|
|
21
|
+
runtime: "browser",
|
|
22
|
+
defaultsMode,
|
|
23
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
30
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
31
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
32
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
33
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
35
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
+
};
|
|
26
40
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import packageInfo from "../package.json";
|
|
3
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
3
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
@@ -15,16 +14,35 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
|
|
|
15
14
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
15
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
17
16
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
18
|
-
export
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
20
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
34
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ??
|
|
37
|
+
loadNodeConfig({
|
|
38
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
39
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
40
|
+
}),
|
|
41
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
42
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
43
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
46
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
47
|
+
};
|
|
30
48
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
1
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
2
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
8
11
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
2
|
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
12
|
-
});
|
|
13
|
-
};
|
|
3
|
+
export const getRuntimeConfig = (config) => ({
|
|
4
|
+
apiVersion: "2017-01-11",
|
|
5
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
|
+
logger: config?.logger ?? {},
|
|
7
|
+
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
8
|
+
serviceId: config?.serviceId ?? "Marketplace Entitlement Service",
|
|
9
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
10
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-entitlement-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Entitlement Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.183.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,41 +19,41 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
30
|
-
"@aws-sdk/middleware-logger": "3.
|
|
31
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
43
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
52
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.183.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.183.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.183.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.183.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.183.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.183.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.183.0",
|
|
29
|
+
"@aws-sdk/middleware-host-header": "3.183.0",
|
|
30
|
+
"@aws-sdk/middleware-logger": "3.183.0",
|
|
31
|
+
"@aws-sdk/middleware-recursion-detection": "3.183.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.183.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.183.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.183.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.183.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.183.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.183.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.183.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.183.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.183.0",
|
|
41
|
+
"@aws-sdk/types": "3.183.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.183.0",
|
|
43
|
+
"@aws-sdk/util-base64-browser": "3.183.0",
|
|
44
|
+
"@aws-sdk/util-base64-node": "3.183.0",
|
|
45
|
+
"@aws-sdk/util-body-length-browser": "3.183.0",
|
|
46
|
+
"@aws-sdk/util-body-length-node": "3.183.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.183.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.183.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-browser": "3.183.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-node": "3.183.0",
|
|
51
|
+
"@aws-sdk/util-utf8-browser": "3.183.0",
|
|
52
|
+
"@aws-sdk/util-utf8-node": "3.183.0",
|
|
53
53
|
"tslib": "^2.3.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
56
|
+
"@aws-sdk/service-client-documentation-generator": "3.183.0",
|
|
57
57
|
"@tsconfig/recommended": "1.0.1",
|
|
58
58
|
"@types/node": "^12.7.5",
|
|
59
59
|
"concurrently": "7.0.0",
|