@aws-sdk/client-macie2 3.958.0 → 3.962.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
@@ -4119,10 +4119,10 @@ const paginateSearchResources = core.createPaginator(Macie2Client, SearchResourc
4119
4119
  const checkState = async (client, input) => {
4120
4120
  let reason;
4121
4121
  try {
4122
- const result = await client.send(new GetSensitiveDataOccurrencesCommand(input));
4122
+ let result = await client.send(new GetSensitiveDataOccurrencesCommand(input));
4123
4123
  reason = result;
4124
4124
  try {
4125
- let returnComparator = () => {
4125
+ const returnComparator = () => {
4126
4126
  return result.status;
4127
4127
  };
4128
4128
  if (returnComparator() === "SUCCESS") {
@@ -4131,7 +4131,7 @@ const checkState = async (client, input) => {
4131
4131
  }
4132
4132
  catch (e) { }
4133
4133
  try {
4134
- let returnComparator = () => {
4134
+ const returnComparator = () => {
4135
4135
  return result.status;
4136
4136
  };
4137
4137
  if (returnComparator() === "ERROR") {
@@ -3,10 +3,10 @@ import { GetSensitiveDataOccurrencesCommand, } from "../commands/GetSensitiveDat
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new GetSensitiveDataOccurrencesCommand(input));
6
+ let result = await client.send(new GetSensitiveDataOccurrencesCommand(input));
7
7
  reason = result;
8
8
  try {
9
- let returnComparator = () => {
9
+ const returnComparator = () => {
10
10
  return result.status;
11
11
  };
12
12
  if (returnComparator() === "SUCCESS") {
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
15
15
  }
16
16
  catch (e) { }
17
17
  try {
18
- let returnComparator = () => {
18
+ const returnComparator = () => {
19
19
  return result.status;
20
20
  };
21
21
  if (returnComparator() === "ERROR") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-macie2",
3
3
  "description": "AWS SDK for JavaScript Macie2 Client for Node.js, Browser and React Native",
4
- "version": "3.958.0",
4
+ "version": "3.962.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-macie2",
@@ -22,7 +22,7 @@
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
24
  "@aws-sdk/core": "3.957.0",
25
- "@aws-sdk/credential-provider-node": "3.958.0",
25
+ "@aws-sdk/credential-provider-node": "3.962.0",
26
26
  "@aws-sdk/middleware-host-header": "3.957.0",
27
27
  "@aws-sdk/middleware-logger": "3.957.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.957.0",