@social-mail/social-mail-web-server 1.4.930 → 1.4.931

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.4.930",
3
+ "version": "1.4.931",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,7 +1,7 @@
1
1
  import { Readable, Stream } from "stream";
2
2
  import BaseStorage from "../BaseStorage.js";
3
3
 
4
- import { S3Client, GetObjectCommand, PutObjectCommand, DeleteObjectCommand, ListBucketsCommand } from "@aws-sdk/client-s3";
4
+ import { S3Client, GetObjectCommand, PutObjectCommand, DeleteObjectCommand, ListBucketsCommand, ListObjectsV2Command } from "@aws-sdk/client-s3";
5
5
  import { LocalFile } from "@entity-access/server-pages/dist/core/LocalFile.js";
6
6
  import { globalEnv } from "../../../common/globalEnv.js";
7
7
 
@@ -30,8 +30,9 @@ export default class S3Storage extends BaseStorage {
30
30
  }
31
31
 
32
32
  async verify() {
33
- await this.client.send(new ListBucketsCommand({
34
- Bucket
33
+ await this.client.send(new ListObjectsV2Command({
34
+ Bucket,
35
+ MaxKeys: 1
35
36
  }));
36
37
  }
37
38