diff --git a/packages/utils/package.json b/packages/utils/package.json index df80h2n..7467bd8 200654 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -7,9 +7,9 @@ "private": true, "main": "src/index.js", "dependencies": { - "@aws-sdk/client-cognito-identity": "^3.540.0", - "@aws-sdk/client-dynamodb": "^3.540.0", - "@aws-sdk/credential-provider-cognito-identity": "^3.540.0", + "@aws-sdk/client-cognito-identity": "3.575.0", + "@aws-sdk/client-s3": "3.575.0", + "@aws-sdk/credential-provider-cognito-identity": "3.575.0", "aws-sdk": "^2.1588.0" }, "author": { diff --git a/packages/utils/src/utils.js b/packages/utils/src/utils.js index df80h2n..7467bd8 200654 --- a/packages/utils/src/utils.js +++ b/packages/utils/src/utils.js @@ -4,7 +4,7 @@ import AWS from "aws-sdk"; import { fromCognitoIdentityPool } from "@aws-sdk/credential-provider-cognito-identity"; import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity"; -import { DynamoDB } from "@aws-sdk/client-dynamodb"; +import { S3 } from "@aws-sdk/client-s3"; import { REGION, IDENTITY_POOL_ID } from "./config.js"; @@ -2,8 +2,8 @@ export const getV2Response = async (clientParams) => { }; export const getV3Response = async (clientParams) => { - const client = new DynamoDB(clientParams); - return client.listTables({ Limit: 1 }); + const client = new S3(clientParams); + return client.listObjects({ Bucket: "react-native" }); };