@anchor-secrets/nestjs 0.4.0 → 0.5.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/README.md +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -51,7 +51,8 @@ export class Database {
|
|
|
51
51
|
fetches now. Typed values are decoded: a `number` secret is a number, `json` and `list` are
|
|
52
52
|
parsed.
|
|
53
53
|
- Values refresh in the background: a read of values older than `cache.ttlMs` (default one
|
|
54
|
-
minute) returns them at once and starts one refresh
|
|
54
|
+
minute) returns them at once and starts one refresh, a conditional request (`If-None-Match`)
|
|
55
|
+
that Anchor answers with `304` when nothing changed. If Anchor is down, the app keeps its
|
|
55
56
|
values and `onEvent` receives `refresh_failed`; with `cache.maxStaleMs` set, reads throw
|
|
56
57
|
`AnchorError` code `stale` once that limit is passed.
|
|
57
58
|
- The module is global unless you pass `isGlobal: false`. `ANCHOR_OPTIONS` injects the options.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anchor-secrets/nestjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "NestJS module that loads configuration and secrets from Anchor at startup",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nestjs",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"node": ">=20"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@anchor-secrets/sdk": "0.
|
|
51
|
+
"@anchor-secrets/sdk": "0.5.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
|