@snapfail/browser 0.0.1 → 0.0.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 +24 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @snapfail/browser
|
|
2
|
+
|
|
3
|
+
Browser SDK for [snapfail](https://snapfail.com) — error capture, replay and transport.
|
|
4
|
+
|
|
5
|
+
This package is used internally by the framework adapters (`@snapfail/vite`, `@snapfail/astro`, `@snapfail/next`). You don't need to install it directly unless you're integrating snapfail without an adapter.
|
|
6
|
+
|
|
7
|
+
## Manual setup
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @snapfail/browser
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { initSnapfail } from "@snapfail/browser";
|
|
15
|
+
|
|
16
|
+
initSnapfail({
|
|
17
|
+
projectKey: "proj_xxxxxxxxxxxxxxxxx",
|
|
18
|
+
environment: "prod", // or "dev"
|
|
19
|
+
});
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Documentation
|
|
23
|
+
|
|
24
|
+
Full docs at [snapfail.com](https://snapfail.com)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snapfail/browser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Browser SDK for snapfail — error capture, replay and transport",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"prepublishOnly": "bun run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@snapfail/protocol": "^0.0.
|
|
26
|
+
"@snapfail/protocol": "^0.0.2"
|
|
27
27
|
}
|
|
28
28
|
}
|