@koderlabs/tasks-sdk-web-network 0.1.1 → 0.1.3
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 +5 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,11 @@ By itself this package does not POST anything — it's a passive recorder.
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
+
npm install @koderlabs/tasks-sdk @koderlabs/tasks-sdk-web-network
|
|
13
|
+
# or
|
|
12
14
|
pnpm add @koderlabs/tasks-sdk @koderlabs/tasks-sdk-web-network
|
|
15
|
+
# or
|
|
16
|
+
yarn add @koderlabs/tasks-sdk @koderlabs/tasks-sdk-web-network
|
|
13
17
|
```
|
|
14
18
|
|
|
15
19
|
## Usage
|
|
@@ -66,7 +70,7 @@ Returned integration object also exposes `getEntries()` for manual inspection.
|
|
|
66
70
|
|
|
67
71
|
- Patches `window.fetch` and `XMLHttpRequest` globally — anything that depends on the original references (rare) will see the wrapped versions.
|
|
68
72
|
- Request/response bodies are **off by default**. Turn on per-route only via a sanitizer that strips PII fields.
|
|
69
|
-
- The SDK's own ingest endpoint is **not** auto-excluded — add it to `ignoreUrls` if you don't want to record self-traffic (
|
|
73
|
+
- The SDK's own ingest endpoint is **not** auto-excluded — add it to `ignoreUrls` if you don't want to record self-traffic (e.g. exclude `/sdk/events`).
|
|
70
74
|
- Sanitizers receive the entry **after** body capture decision; returning `null` drops the entry entirely (not just bodies).
|
|
71
75
|
- `getEntries()` returns a snapshot copy. Mutating it does not affect the live buffer.
|
|
72
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koderlabs/tasks-sdk-web-network",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Browser network capture for the InstantTasks SDK — fetch + XMLHttpRequest.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"instanttasks",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@koderlabs/tasks-sdk": "0.1.
|
|
43
|
+
"@koderlabs/tasks-sdk": "0.1.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"tsup": "^8.3.0",
|