@aws-sdk/client-codeguru-reviewer 3.215.0 → 3.218.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.
@@ -79,7 +79,7 @@ const serializeAws_restJson1DescribeRecommendationFeedbackCommand = async (input
79
79
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback/{CodeReviewArn}";
80
80
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
81
81
  const query = map({
82
- RecommendationId: [, input.RecommendationId],
82
+ RecommendationId: [, (0, smithy_client_1.expectNonNull)(input.RecommendationId, `RecommendationId`)],
83
83
  UserId: [, input.UserId],
84
84
  });
85
85
  let body;
@@ -143,7 +143,7 @@ const serializeAws_restJson1ListCodeReviewsCommand = async (input, context) => {
143
143
  () => input.RepositoryNames !== void 0,
144
144
  () => (input.RepositoryNames || []).map((_entry) => _entry),
145
145
  ],
146
- Type: [, input.Type],
146
+ Type: [, (0, smithy_client_1.expectNonNull)(input.Type, `Type`)],
147
147
  MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
148
148
  NextToken: [, input.NextToken],
149
149
  });
@@ -307,7 +307,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
307
307
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
308
308
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
309
309
  const query = map({
310
- tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
310
+ tagKeys: [
311
+ (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
312
+ () => (input.TagKeys || []).map((_entry) => _entry),
313
+ ],
311
314
  });
312
315
  let body;
313
316
  return new protocol_http_1.HttpRequest({
@@ -73,7 +73,7 @@ export const serializeAws_restJson1DescribeRecommendationFeedbackCommand = async
73
73
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback/{CodeReviewArn}";
74
74
  resolvedPath = __resolvedPath(resolvedPath, input, "CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
75
75
  const query = map({
76
- RecommendationId: [, input.RecommendationId],
76
+ RecommendationId: [, __expectNonNull(input.RecommendationId, `RecommendationId`)],
77
77
  UserId: [, input.UserId],
78
78
  });
79
79
  let body;
@@ -134,7 +134,7 @@ export const serializeAws_restJson1ListCodeReviewsCommand = async (input, contex
134
134
  () => input.RepositoryNames !== void 0,
135
135
  () => (input.RepositoryNames || []).map((_entry) => _entry),
136
136
  ],
137
- Type: [, input.Type],
137
+ Type: [, __expectNonNull(input.Type, `Type`)],
138
138
  MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
139
139
  NextToken: [, input.NextToken],
140
140
  });
@@ -291,7 +291,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
291
291
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
292
292
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
293
293
  const query = map({
294
- tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
294
+ tagKeys: [
295
+ __expectNonNull(input.TagKeys, `TagKeys`) != null,
296
+ () => (input.TagKeys || []).map((_entry) => _entry),
297
+ ],
295
298
  });
296
299
  let body;
297
300
  return new __HttpRequest({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeguru-reviewer",
3
3
  "description": "AWS SDK for JavaScript Codeguru Reviewer Client for Node.js, Browser and React Native",
4
- "version": "3.215.0",
4
+ "version": "3.218.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,9 +19,9 @@
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.215.0",
22
+ "@aws-sdk/client-sts": "3.218.0",
23
23
  "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.215.0",
24
+ "@aws-sdk/credential-provider-node": "3.218.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.215.0",
26
26
  "@aws-sdk/hash-node": "3.215.0",
27
27
  "@aws-sdk/invalid-dependency": "3.215.0",
@@ -46,7 +46,7 @@
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.215.0",
48
48
  "@aws-sdk/util-defaults-mode-node": "3.215.0",
49
- "@aws-sdk/util-endpoints": "3.215.0",
49
+ "@aws-sdk/util-endpoints": "3.216.0",
50
50
  "@aws-sdk/util-user-agent-browser": "3.215.0",
51
51
  "@aws-sdk/util-user-agent-node": "3.215.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",