@aws-sdk/client-marketplace-entitlement-service 3.141.0 → 3.150.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 CHANGED
@@ -3,6 +3,33 @@
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.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
9
+
10
+
11
+
12
+
13
+
14
+ # [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-marketplace-entitlement-service
17
+
18
+
19
+
20
+
21
+
22
+ # [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
23
+
24
+
25
+ ### Features
26
+
27
+ * **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
7
34
 
8
35
 
@@ -34,7 +34,6 @@ const deserializeAws_json1_1GetEntitlementsCommandError = async (output, context
34
34
  ...output,
35
35
  body: await parseBody(output.body, context),
36
36
  };
37
- let response;
38
37
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39
38
  switch (errorCode) {
40
39
  case "InternalServiceErrorException":
@@ -48,14 +47,12 @@ const deserializeAws_json1_1GetEntitlementsCommandError = async (output, context
48
47
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
49
48
  default:
50
49
  const parsedBody = parsedOutput.body;
51
- const $metadata = deserializeMetadata(output);
52
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
53
- response = new MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException({
54
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
55
- $fault: "client",
56
- $metadata,
50
+ (0, smithy_client_1.throwDefaultError)({
51
+ output,
52
+ parsedBody,
53
+ exceptionCtor: MarketplaceEntitlementServiceServiceException_1.MarketplaceEntitlementServiceServiceException,
54
+ errorCode,
57
55
  });
58
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
59
56
  }
60
57
  };
61
58
  const deserializeAws_json1_1InternalServiceErrorExceptionResponse = async (parsedOutput, context) => {
@@ -89,9 +86,6 @@ const serializeAws_json1_1FilterValueList = (input, context) => {
89
86
  return input
90
87
  .filter((e) => e != null)
91
88
  .map((entry) => {
92
- if (entry === null) {
93
- return null;
94
- }
95
89
  return entry;
96
90
  });
97
91
  };
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- 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, } from "@aws-sdk/smithy-client";
3
+ 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
4
  import { MarketplaceEntitlementServiceServiceException as __BaseException } from "../models/MarketplaceEntitlementServiceServiceException";
5
5
  import { InternalServiceErrorException, InvalidParameterException, ThrottlingException, } from "../models/models_0";
6
6
  export var serializeAws_json1_1GetEntitlementsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -33,7 +33,7 @@ export var deserializeAws_json1_1GetEntitlementsCommand = function (output, cont
33
33
  });
34
34
  }); };
35
35
  var deserializeAws_json1_1GetEntitlementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
36
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
36
+ var parsedOutput, _a, errorCode, _b, parsedBody;
37
37
  var _c;
38
38
  return __generator(this, function (_d) {
39
39
  switch (_d.label) {
@@ -62,14 +62,14 @@ var deserializeAws_json1_1GetEntitlementsCommandError = function (output, contex
62
62
  case 7: throw _d.sent();
63
63
  case 8:
64
64
  parsedBody = parsedOutput.body;
65
- $metadata = deserializeMetadata(output);
66
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
67
- response = new __BaseException({
68
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
69
- $fault: "client",
70
- $metadata: $metadata,
65
+ throwDefaultError({
66
+ output: output,
67
+ parsedBody: parsedBody,
68
+ exceptionCtor: __BaseException,
69
+ errorCode: errorCode,
71
70
  });
72
- throw __decorateServiceException(response, parsedBody);
71
+ _d.label = 9;
72
+ case 9: return [2];
73
73
  }
74
74
  });
75
75
  }); };
@@ -104,9 +104,6 @@ var serializeAws_json1_1FilterValueList = function (input, context) {
104
104
  return input
105
105
  .filter(function (e) { return e != null; })
106
106
  .map(function (entry) {
107
- if (entry === null) {
108
- return null;
109
- }
110
107
  return entry;
111
108
  });
112
109
  };
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.141.0",
4
+ "version": "3.150.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",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.141.0",
21
+ "@aws-sdk/client-sts": "3.150.0",
22
22
  "@aws-sdk/config-resolver": "3.130.0",
23
- "@aws-sdk/credential-provider-node": "3.141.0",
23
+ "@aws-sdk/credential-provider-node": "3.150.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.131.0",
25
25
  "@aws-sdk/hash-node": "3.127.0",
26
26
  "@aws-sdk/invalid-dependency": "3.127.0",
@@ -36,15 +36,15 @@
36
36
  "@aws-sdk/node-config-provider": "3.127.0",
37
37
  "@aws-sdk/node-http-handler": "3.127.0",
38
38
  "@aws-sdk/protocol-http": "3.127.0",
39
- "@aws-sdk/smithy-client": "3.137.0",
39
+ "@aws-sdk/smithy-client": "3.142.0",
40
40
  "@aws-sdk/types": "3.127.0",
41
41
  "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.137.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.137.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.142.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.142.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.127.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
@@ -61,6 +61,11 @@
61
61
  "typedoc": "0.19.2",
62
62
  "typescript": "~4.6.2"
63
63
  },
64
+ "overrides": {
65
+ "typedoc": {
66
+ "typescript": "~4.6.2"
67
+ }
68
+ },
64
69
  "engines": {
65
70
  "node": ">=12.0.0"
66
71
  },