@onlineapps/conn-base-storage 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -21,8 +21,9 @@ npm install @onlineapps/conn-base-storage
21
21
  const StorageConnector = require('@onlineapps/conn-base-storage');
22
22
 
23
23
  const storage = new StorageConnector({
24
- endpoint: process.env.MINIO_HOST || 'api_services_storage',
25
- port: 9000,
24
+ // FAIL-FAST: topology must be explicit (no defaults for endpoint/credentials)
25
+ endpoint: process.env.MINIO_ENDPOINT,
26
+ port: parseInt(process.env.MINIO_PORT, 10),
26
27
  accessKey: process.env.MINIO_ACCESS_KEY,
27
28
  secretKey: process.env.MINIO_SECRET_KEY
28
29
  });
@@ -192,14 +193,14 @@ describe('StorageConnector', () => {
192
193
 
193
194
  ```env
194
195
  # MinIO Configuration
195
- MINIO_HOST=api_services_storage
196
+ MINIO_ENDPOINT=api_services_storage
196
197
  MINIO_PORT=9000
197
198
  MINIO_ACCESS_KEY=minioadmin
198
199
  MINIO_SECRET_KEY=minioadmin
199
200
  MINIO_USE_SSL=false
200
201
 
201
202
  # From host (for testing)
202
- MINIO_HOST=localhost
203
+ MINIO_ENDPOINT=127.0.0.1
203
204
  MINIO_PORT=33025
204
205
  ```
205
206
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlineapps/conn-base-storage",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "MinIO storage connector with fingerprinting for immutable content storage",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@onlineapps/runtime-config": "1.0.2",
24
- "@onlineapps/storage-core": "1.0.8",
24
+ "@onlineapps/storage-core": "1.0.12",
25
25
  "minio": "^7.1.3",
26
26
  "crypto": "^1.0.1",
27
27
  "winston": "^3.8.2"