mbkbucket 4.4.2 → 4.4.3

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.
@@ -19,11 +19,7 @@ export class S3StorageProvider extends StorageProvider {
19
19
  constructor(name, config = {}) {
20
20
  super(name, config);
21
21
  this.bucket = config.BUCKET_NAME;
22
- this.region = config.region || config.Region || 'auto';
23
-
24
- const connectionTimeout = Number(config.connectionTimeout ?? config.CONNECTION_TIMEOUT ?? process.env.S3_CONNECTION_TIMEOUT ?? 15000);
25
- const requestTimeout = Number(config.requestTimeout ?? config.REQUEST_TIMEOUT ?? process.env.S3_REQUEST_TIMEOUT ?? 120000);
26
- const keepAlive = config.keepAlive ?? true;
22
+ this.region = config.region || 'auto';
27
23
 
28
24
  this.client = new S3Client({
29
25
  region: this.region,
@@ -34,15 +30,7 @@ export class S3StorageProvider extends StorageProvider {
34
30
  },
35
31
  maxAttempts: 3,
36
32
  retryMode: 'adaptive',
37
- requestTimeout,
38
- requestHandler: {
39
- connectionTimeout,
40
- requestTimeout,
41
- socketTimeout: requestTimeout,
42
- maxSockets: 50,
43
- keepAlive,
44
- keepAliveMsecs: 1000,
45
- },
33
+ requestTimeout: 120000,
46
34
  useAccelerateEndpoint: false,
47
35
  forcePathStyle: true,
48
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mbkbucket",
3
- "version": "4.4.2",
3
+ "version": "4.4.3",
4
4
  "description": "Flexible S3/R2/Google Drive/Local bucket management — library, Express router, and standalone server CLI for mbktech.org applications. Provides upload, download, listing, multipart utilities, and a standalone server runner with built-in configuration validation and health checks",
5
5
  "author": "Muhammad Bin Khalid",
6
6
  "homepage": "https://github.com/MIbnEKhalid/mbkbucket#readme",
@@ -22,7 +22,7 @@
22
22
  "#logger": "./lib/src/utils/logger.js"
23
23
  },
24
24
  "dependencies": {
25
- "@aws-sdk/client-s3": "^3.1127.0",
25
+ "@aws-sdk/client-s3": "^3.1157.0",
26
26
  "compression": "^1.8.2",
27
27
  "debug": "^4.4.3",
28
28
  "dotenv": "^18.0.5",