@clipboard-health/execution-context 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 -2
- package/package.json +12 -4
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
## Table of Contents <!-- omit from toc -->
|
|
12
12
|
|
|
13
|
+
- [Features](#features)
|
|
13
14
|
- [Install](#install)
|
|
14
15
|
- [Usage](#usage)
|
|
15
16
|
- [Local development commands](#local-development-commands)
|
|
@@ -25,8 +26,7 @@ npm install @clipboard-health/execution-context
|
|
|
25
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.
|
|
26
27
|
|
|
27
28
|
```ts
|
|
28
|
-
//
|
|
29
|
-
|
|
29
|
+
// packages/execution-context/examples/executionContext.ts
|
|
30
30
|
import {
|
|
31
31
|
addMetadataToLocalContext,
|
|
32
32
|
getExecutionContext,
|
package/package.json
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
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.5.0",
|
|
5
|
+
"bugs": "https://github.com/ClipboardHealth/core-utils/issues",
|
|
5
6
|
"dependencies": {
|
|
6
7
|
"tslib": "2.8.0"
|
|
7
8
|
},
|
|
8
|
-
"keywords": [
|
|
9
|
+
"keywords": [
|
|
10
|
+
"async-local-storage",
|
|
11
|
+
"execution-context",
|
|
12
|
+
"metadata",
|
|
13
|
+
"typescript"
|
|
14
|
+
],
|
|
9
15
|
"license": "MIT",
|
|
10
16
|
"main": "./src/index.js",
|
|
11
17
|
"publishConfig": {
|
|
12
18
|
"access": "public"
|
|
13
19
|
},
|
|
14
|
-
"
|
|
15
|
-
"
|
|
20
|
+
"repository": {
|
|
21
|
+
"directory": "packages/execution-context",
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/ClipboardHealth/core-utils.git"
|
|
16
24
|
},
|
|
17
25
|
"type": "commonjs",
|
|
18
26
|
"typings": "./src/index.d.ts",
|