@aws-sdk/client-codeguru-security 3.582.0 → 3.587.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/index.js CHANGED
@@ -489,10 +489,7 @@ var se_GetMetricsSummaryCommand = /* @__PURE__ */ __name(async (input, context)
489
489
  const headers = {};
490
490
  b.bp("/metrics/summary");
491
491
  const query = (0, import_smithy_client.map)({
492
- [_d]: [
493
- (0, import_smithy_client.expectNonNull)(input.date, `date`) != null,
494
- () => (input[_d].toISOString().split(".")[0] + "Z").toString()
495
- ]
492
+ [_d]: [(0, import_smithy_client.expectNonNull)(input.date, `date`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_d]).toString()]
496
493
  });
497
494
  let body;
498
495
  b.m("GET").h(headers).q(query).b(body);
@@ -517,14 +514,8 @@ var se_ListFindingsMetricsCommand = /* @__PURE__ */ __name(async (input, context
517
514
  const query = (0, import_smithy_client.map)({
518
515
  [_nT]: [, input[_nT]],
519
516
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
520
- [_sD]: [
521
- (0, import_smithy_client.expectNonNull)(input.startDate, `startDate`) != null,
522
- () => (input[_sD].toISOString().split(".")[0] + "Z").toString()
523
- ],
524
- [_eD]: [
525
- (0, import_smithy_client.expectNonNull)(input.endDate, `endDate`) != null,
526
- () => (input[_eD].toISOString().split(".")[0] + "Z").toString()
527
- ]
517
+ [_sD]: [(0, import_smithy_client.expectNonNull)(input.startDate, `startDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_sD]).toString()],
518
+ [_eD]: [(0, import_smithy_client.expectNonNull)(input.endDate, `endDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_eD]).toString()]
528
519
  });
529
520
  let body;
530
521
  b.m("GET").h(headers).q(query).b(body);
@@ -1,6 +1,6 @@
1
1
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { CodeGuruSecurityServiceException as __BaseException } from "../models/CodeGuruSecurityServiceException";
6
6
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
@@ -78,10 +78,7 @@ export const se_GetMetricsSummaryCommand = async (input, context) => {
78
78
  const headers = {};
79
79
  b.bp("/metrics/summary");
80
80
  const query = map({
81
- [_d]: [
82
- __expectNonNull(input.date, `date`) != null,
83
- () => (input[_d].toISOString().split(".")[0] + "Z").toString(),
84
- ],
81
+ [_d]: [__expectNonNull(input.date, `date`) != null, () => __serializeDateTime(input[_d]).toString()],
85
82
  });
86
83
  let body;
87
84
  b.m("GET").h(headers).q(query).b(body);
@@ -106,14 +103,8 @@ export const se_ListFindingsMetricsCommand = async (input, context) => {
106
103
  const query = map({
107
104
  [_nT]: [, input[_nT]],
108
105
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
109
- [_sD]: [
110
- __expectNonNull(input.startDate, `startDate`) != null,
111
- () => (input[_sD].toISOString().split(".")[0] + "Z").toString(),
112
- ],
113
- [_eD]: [
114
- __expectNonNull(input.endDate, `endDate`) != null,
115
- () => (input[_eD].toISOString().split(".")[0] + "Z").toString(),
116
- ],
106
+ [_sD]: [__expectNonNull(input.startDate, `startDate`) != null, () => __serializeDateTime(input[_sD]).toString()],
107
+ [_eD]: [__expectNonNull(input.endDate, `endDate`) != null, () => __serializeDateTime(input[_eD]).toString()],
117
108
  });
118
109
  let body;
119
110
  b.m("GET").h(headers).q(query).b(body);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeguru-security",
3
3
  "description": "AWS SDK for JavaScript Codeguru Security Client for Node.js, Browser and React Native",
4
- "version": "3.582.0",
4
+ "version": "3.587.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codeguru-security",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sso-oidc": "3.582.0",
24
- "@aws-sdk/client-sts": "3.582.0",
25
- "@aws-sdk/core": "3.582.0",
26
- "@aws-sdk/credential-provider-node": "3.582.0",
23
+ "@aws-sdk/client-sso-oidc": "3.587.0",
24
+ "@aws-sdk/client-sts": "3.587.0",
25
+ "@aws-sdk/core": "3.587.0",
26
+ "@aws-sdk/credential-provider-node": "3.587.0",
27
27
  "@aws-sdk/middleware-host-header": "3.577.0",
28
28
  "@aws-sdk/middleware-logger": "3.577.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.577.0",
30
- "@aws-sdk/middleware-user-agent": "3.577.0",
31
- "@aws-sdk/region-config-resolver": "3.577.0",
30
+ "@aws-sdk/middleware-user-agent": "3.587.0",
31
+ "@aws-sdk/region-config-resolver": "3.587.0",
32
32
  "@aws-sdk/types": "3.577.0",
33
- "@aws-sdk/util-endpoints": "3.577.0",
33
+ "@aws-sdk/util-endpoints": "3.587.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.577.0",
35
- "@aws-sdk/util-user-agent-node": "3.577.0",
36
- "@smithy/config-resolver": "^3.0.0",
37
- "@smithy/core": "^2.0.1",
35
+ "@aws-sdk/util-user-agent-node": "3.587.0",
36
+ "@smithy/config-resolver": "^3.0.1",
37
+ "@smithy/core": "^2.1.1",
38
38
  "@smithy/fetch-http-handler": "^3.0.1",
39
39
  "@smithy/hash-node": "^3.0.0",
40
40
  "@smithy/invalid-dependency": "^3.0.0",
41
41
  "@smithy/middleware-content-length": "^3.0.0",
42
- "@smithy/middleware-endpoint": "^3.0.0",
43
- "@smithy/middleware-retry": "^3.0.1",
42
+ "@smithy/middleware-endpoint": "^3.0.1",
43
+ "@smithy/middleware-retry": "^3.0.3",
44
44
  "@smithy/middleware-serde": "^3.0.0",
45
45
  "@smithy/middleware-stack": "^3.0.0",
46
- "@smithy/node-config-provider": "^3.0.0",
46
+ "@smithy/node-config-provider": "^3.1.0",
47
47
  "@smithy/node-http-handler": "^3.0.0",
48
48
  "@smithy/protocol-http": "^4.0.0",
49
- "@smithy/smithy-client": "^3.0.1",
49
+ "@smithy/smithy-client": "^3.1.1",
50
50
  "@smithy/types": "^3.0.0",
51
51
  "@smithy/url-parser": "^3.0.0",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.1",
56
- "@smithy/util-defaults-mode-node": "^3.0.1",
57
- "@smithy/util-endpoints": "^2.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.3",
56
+ "@smithy/util-defaults-mode-node": "^3.0.3",
57
+ "@smithy/util-endpoints": "^2.0.1",
58
58
  "@smithy/util-middleware": "^3.0.0",
59
59
  "@smithy/util-retry": "^3.0.0",
60
60
  "@smithy/util-utf8": "^3.0.0",