nuxt-error-tracker 0.1.3 → 0.1.4
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 -5
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# nuxt-error-tracker
|
|
2
2
|
|
|
3
3
|
Lightweight frontend error tracker for **Nuxt 3 / 4**. Captures unhandled
|
|
4
4
|
errors, failed requests, and a breadcrumb trail of user actions, then ships them
|
|
@@ -19,8 +19,8 @@ break the host app** — if it isn't configured, it does nothing.
|
|
|
19
19
|
## Install
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npm i
|
|
23
|
-
# or: bun add
|
|
22
|
+
npm i nuxt-error-tracker
|
|
23
|
+
# or: bun add nuxt-error-tracker
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## Setup
|
|
@@ -31,7 +31,7 @@ key:
|
|
|
31
31
|
```ts
|
|
32
32
|
// nuxt.config.ts
|
|
33
33
|
export default defineNuxtConfig({
|
|
34
|
-
modules: ['
|
|
34
|
+
modules: ['nuxt-error-tracker'],
|
|
35
35
|
errorTracker: {
|
|
36
36
|
endpoint: 'https://<your-observer-host>/v1/ingest',
|
|
37
37
|
publicKey: 'pk_xxxxxxxxxxxxxxxxxxxxxxxx',
|
|
@@ -65,7 +65,7 @@ Wire them in `nuxt.config.ts`:
|
|
|
65
65
|
|
|
66
66
|
```ts
|
|
67
67
|
export default defineNuxtConfig({
|
|
68
|
-
modules: ['
|
|
68
|
+
modules: ['nuxt-error-tracker'],
|
|
69
69
|
runtimeConfig: {
|
|
70
70
|
public: {
|
|
71
71
|
errorTracker: {
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED