mbkbucket 3.0.0 → 3.1.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/index.js CHANGED
@@ -8,17 +8,22 @@ dotenv.config();
8
8
 
9
9
  const debugServer = createLogger('server');
10
10
  const port = process.env.PORT || 3004;
11
-
12
- // Check for package updates and S3 connectivity on startup
13
- await checkVersion();
14
- await runHealthCheck();
11
+ const isDevMode = process.env.NODE_ENV === "dev";
15
12
 
16
13
  // Create and start the Express application
17
14
  const server = createApp();
18
15
 
19
- server.listen(port, () => {
20
- debugServer("Server running on http://localhost:%s", port);
21
- });
16
+ if (isDevMode) {
17
+
18
+ // Check for package updates and S3 connectivity on startup
19
+ await checkVersion();
20
+ await runHealthCheck();
21
+
22
+ server.listen(port, () => {
23
+ debugServer("Server running on http://localhost:%s", port);
24
+ });
25
+
26
+ }
22
27
 
23
28
  // Re-export the public API for consumers of this package (named exports only)
24
29
  export * from "./src/services/s3.service.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mbkbucket",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Flexible S3/R2 bucket management — library, Express router, and CLI for mbktech.org applications. Provides upload, download, listing, multipart utilities, signed URLs, and a command-line interface with built-in configuration validation and health checks",
5
5
  "author": "Muhammad Bin Khalid",
6
6
  "homepage": "https://github.com/MIbnEKhalid/mbkbucket#readme",
@@ -19,20 +19,20 @@
19
19
  "@aws-sdk/client-s3": "^3.968.0",
20
20
  "@aws-sdk/s3-request-presigner": "^3.1000.0",
21
21
  "compression": "^1.8.0",
22
- "debug": "^2.6.9",
22
+ "debug": "^4.4.3",
23
23
  "dotenv": "^16.6.1",
24
- "express": "^4.22.1",
24
+ "express": "^5.1.0",
25
25
  "express-handlebars": "^8.0.3",
26
- "express-rate-limit": "^7.0.1",
27
- "mbkauthe": "5.3.2",
26
+ "express-rate-limit": "^7.5.0",
27
+ "mbkauthe": "^5.3.6",
28
28
  "multer": "^2.0.2",
29
29
  "pg": "^8.16.3"
30
30
  },
31
31
  "devDependencies": {
32
- "nodemon": "^3.1.14",
33
- "cross-env": "^7.0.3"
32
+ "cross-env": "^7.0.3",
33
+ "nodemon": "^3.1.14"
34
34
  },
35
- "overrides": {
35
+ "overrides": {
36
36
  "csurf": {
37
37
  "cookie": "^0.7.0"
38
38
  }