@clipboard-health/execution-context 0.5.0 → 0.6.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 +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,8 +25,9 @@ npm install @clipboard-health/execution-context
|
|
|
25
25
|
|
|
26
26
|
This example demonstrates how to create a logging context, accumulate metadata from various function calls, and then log a single message containing all the gathered metadata.
|
|
27
27
|
|
|
28
|
+
<embedex source="packages/execution-context/examples/executionContext.ts">
|
|
29
|
+
|
|
28
30
|
```ts
|
|
29
|
-
// packages/execution-context/examples/executionContext.ts
|
|
30
31
|
import {
|
|
31
32
|
addMetadataToLocalContext,
|
|
32
33
|
getExecutionContext,
|
|
@@ -77,6 +78,8 @@ function callAnotherFunctionThatAddsContext() {
|
|
|
77
78
|
}
|
|
78
79
|
```
|
|
79
80
|
|
|
81
|
+
</embedex>
|
|
82
|
+
|
|
80
83
|
## Local development commands
|
|
81
84
|
|
|
82
85
|
See [`package.json`](./package.json) `scripts` for a list of commands.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/execution-context",
|
|
3
3
|
"description": "A lightweight Node.js utility for managing execution contexts and metadata aggregation using AsyncLocalStorage.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"bugs": "https://github.com/ClipboardHealth/core-utils/issues",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"tslib": "2.8.0"
|