@nxgt/shared-storage 1.0.2 → 1.0.4

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 +14 -7
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,15 +1,22 @@
1
1
  # @nxgt/shared-storage
2
2
 
3
- To install dependencies:
3
+ Object storage over MinIO/S3: the storage service, the GridFS bridge, upload
4
+ validation and the file model.
4
5
 
5
- ```bash
6
- bun install
7
- ```
6
+ Its specs skip themselves unless all four of `S3_ENDPOINT`, `S3_BUCKET`,
7
+ `S3_USER` and `S3_PASSWORD` are set — infrastructure that is absent is not a
8
+ failing test.
9
+
10
+ `StorageService`'s constructor fires an unawaited bucket-existence check, so
11
+ construct it lazily rather than at module scope if the process may start before
12
+ the bucket does.
8
13
 
9
- To run:
14
+ ## Install
10
15
 
11
16
  ```bash
12
- bun run src/index.ts
17
+ bun add @nxgt/shared-storage
13
18
  ```
14
19
 
15
- This project was created using `bun init` in bun v1.3.9. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
20
+ Public on npmjs; no token needed to install. TypeScript is a peer, pinned to
21
+ `^6.0.3` across every `@nxgt/*` package — the set is unsatisfiable if one of
22
+ them widens it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/shared-storage",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,11 +38,11 @@
38
38
  ]
39
39
  },
40
40
  "dependencies": {
41
- "@nxgt/i18n": "1.0.0",
42
- "@nxgt/shared": "1.0.0",
43
- "@nxgt/shared-exceptions": "1.0.0",
44
- "@nxgt/shared-logging": "1.0.0",
45
- "@nxgt/shared-mongo": "1.0.0",
41
+ "@nxgt/i18n": "^1.0.1",
42
+ "@nxgt/shared": "^1.0.1",
43
+ "@nxgt/shared-exceptions": "^1.0.1",
44
+ "@nxgt/shared-logging": "^1.0.1",
45
+ "@nxgt/shared-mongo": "^1.1.1",
46
46
  "bson": "^7.3.2",
47
47
  "lodash": "^4.18.1",
48
48
  "minio": "^8.0.7",