@myvitalrx/metadata-runtime 1.20.3 → 1.20.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.
- package/README.md +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -54,9 +54,11 @@ The library is designed to:
|
|
|
54
54
|
Install the package from the configured private NPM registry:
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
|
-
npm install @myvitalrx/metadata-runtime
|
|
57
|
+
npm install @myvitalrx/metadata-runtime @myvitalrx/observability
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
`@myvitalrx/observability` is a required peer (`^2.7.0`). The published bundle imports that package for logging and correlation context. Install it in the service and let esbuild bundle it with the handlers. The handler and this SDK then share one `AsyncLocalStorage` when both import `@myvitalrx/observability`.
|
|
61
|
+
|
|
60
62
|
The package should be installed using the same registry/authentication configuration used by the other MyVitalRx internal packages.
|
|
61
63
|
|
|
62
64
|
---
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { createHash } from 'crypto';
|
|
3
|
-
import { createLogger, createOperationalLogger, createPerformanceTimer, getContext } from '@
|
|
3
|
+
import { createLogger, createOperationalLogger, createPerformanceTimer, getContext } from '@myvitalrx/observability';
|
|
4
4
|
import { GetObjectCommand, S3Client } from '@aws-sdk/client-s3';
|
|
5
5
|
|
|
6
6
|
// ../../libs/runtime-metadata/src/lib/constants/RuntimeMetadataConstants.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myvitalrx/metadata-runtime",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.4",
|
|
4
4
|
"description": "MyVitalRx metadata runtime: projection cache, resolution, and refresh without calling the metadata registry",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "tsup && sh scripts/copy-lib-dts.sh",
|
|
23
|
+
"build": "tsup && sh scripts/copy-lib-dts.sh && node scripts/rewrite-observability-import.mjs",
|
|
24
24
|
"build:bundle": "tsup",
|
|
25
25
|
"prepublishOnly": "pnpm run build && node scripts/assert-unpublished-version.mjs",
|
|
26
26
|
"publish": "pnpm run build && node scripts/assert-unpublished-version.mjs && export NPM_TOKEN=\"$(grep '^NPM_TOKEN=' ../../.env | cut -d= -f2- | tr -d '\\r\\n\\\"')\" && npm publish --access public --userconfig=../../.npmrc"
|
|
@@ -33,12 +33,13 @@
|
|
|
33
33
|
"@api-hub/metadata-projection": "workspace:*",
|
|
34
34
|
"@api-hub/runtime-metadata": "workspace:*",
|
|
35
35
|
"@api-hub/observability": "workspace:*",
|
|
36
|
+
"@myvitalrx/observability": "workspace:*",
|
|
36
37
|
"@api-hub/utils": "workspace:*",
|
|
37
38
|
"tsup": "^8.5.0",
|
|
38
39
|
"typescript": "^5.9.0"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"@
|
|
42
|
+
"@myvitalrx/observability": "^2.7.0"
|
|
42
43
|
},
|
|
43
44
|
"engines": {
|
|
44
45
|
"node": ">=18"
|