catchfn 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,9 +1,21 @@
1
+ <!-- Generated by scripts/bare-readme.mjs from front-door.template.md and the READMEs it includes; edit those and run `npm run readmes:bare`. -->
2
+
1
3
  # catchfn
2
4
 
3
5
  Console, network, breadcrumb, error and WebSocket collectors that record what happened in a
4
6
  browser or Node process as versioned **evidence events**. The collectors run on
5
7
  their own: no reporter client, widget or server is needed.
6
8
 
9
+ ## Install
10
+
11
+ ```bash
12
+ npm install catchfn
13
+ ```
14
+
15
+ `catchfn` has no runtime dependencies and runs in browsers and Node.js.
16
+
17
+ ## Quick start
18
+
7
19
  ```ts
8
20
  import { BreadcrumbCollector, ConsoleCollector, ErrorCollector, NetworkCollector, WebSocketCollector, validateEvidenceEvent } from "catchfn";
9
21
 
@@ -313,3 +325,8 @@ together, or `value`), and a websocket event's `url`, are entries.
313
325
  - `redactObject(value)` snapshots a value and redacts keys that name secrets,
314
326
  plus URLs under `url`/`href` keys; the redacted result keeps the 10 KB bound.
315
327
  - `redactString(text)` masks card numbers.
328
+
329
+ ## Packages
330
+
331
+ `catchfn` is the whole product: the collectors, the evidence event schema and validator, and the redaction helpers
332
+ all ship in this one package, with no scoped packages to install alongside it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchfn",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Console, network, breadcrumb, error and WebSocket evidence collectors with redaction and a versioned event schema",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -68,5 +68,5 @@
68
68
  "engines": {
69
69
  "node": ">=18.17.0"
70
70
  },
71
- "gitHead": "9a58a03f108fdb7caf03b1de5260152d8af56848"
71
+ "gitHead": "8eafc61ef385d2fce8b21f38c2e4ec67ef1a28a4"
72
72
  }