@myvitalrx/metadata-runtime 1.5.0 → 1.7.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/dist/index.d.ts +1 -24
- package/dist/index.js +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { StructuredLogger } from '@api-hub/observability';
|
|
2
3
|
import { S3Client } from '@aws-sdk/client-s3';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -460,30 +461,6 @@ interface ProjectionCurrentPointer {
|
|
|
460
461
|
projectionVersion: string;
|
|
461
462
|
}
|
|
462
463
|
|
|
463
|
-
interface LogEntry {
|
|
464
|
-
event?: string;
|
|
465
|
-
message?: string;
|
|
466
|
-
err?: unknown;
|
|
467
|
-
error?: unknown;
|
|
468
|
-
[key: string]: unknown;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Structured logger compatible with legacy `@api-hub/logger` {@link LogEntry} call style
|
|
473
|
-
* (`logger.info({ event: 'x', ... } )`), backed by {@link getLogger} and AsyncLocalStorage context.
|
|
474
|
-
*/
|
|
475
|
-
declare class StructuredLogger {
|
|
476
|
-
private readonly persistentKeys;
|
|
477
|
-
constructor(persistentKeys?: Record<string, unknown>);
|
|
478
|
-
getPersistentKeys(): Record<string, unknown>;
|
|
479
|
-
info(entry: LogEntry): void;
|
|
480
|
-
warn(entry: LogEntry): void;
|
|
481
|
-
error(entry: LogEntry): void;
|
|
482
|
-
debug(entry: LogEntry): void;
|
|
483
|
-
http(entry: LogEntry): void;
|
|
484
|
-
verbose(entry: LogEntry): void;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
464
|
declare const PUBLISHED_VALUE_SORT: {
|
|
488
465
|
readonly SORT_ORDER: "sortOrder";
|
|
489
466
|
readonly VALUE_CODE: "valueCode";
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
|
|
3
3
|
import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb';
|
|
4
4
|
import crypto, { createHash } from 'crypto';
|
|
5
|
-
import { createLogger, createPerformanceTimer, getContext } from '@
|
|
5
|
+
import { createLogger, createPerformanceTimer, getContext } from '@api-hub/observability';
|
|
6
6
|
import { AsyncLocalStorage } from 'async_hooks';
|
|
7
7
|
import { GetObjectCommand, S3Client } from '@aws-sdk/client-s3';
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myvitalrx/metadata-runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "MyVitalRx metadata runtime: projection cache, resolution, and refresh without calling the metadata registry",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@aws-sdk/client-s3": "^3.1054.0",
|
|
30
|
+
"@myvitalrx/observability": "^2.6.0",
|
|
30
31
|
"zod": "^4.2.1"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"@api-hub/metadata-projection": "workspace:*",
|
|
37
|
-
|
|
38
|
+
|
|
38
39
|
"@api-hub/runtime-metadata": "workspace:*",
|
|
39
40
|
"@api-hub/utils": "workspace:*",
|
|
40
41
|
"tsup": "^8.5.0",
|