@browser-echo/react
Advanced tools
+1
-1
| { | ||
| "name": "@browser-echo/react", | ||
| "version": "1.0.2", | ||
| "version": "1.1.0-alpha.0", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
+19
-0
@@ -72,2 +72,21 @@ # @browser-echo/react | ||
| Note: Network capture (fetch/XHR/WS) is available via `@browser-echo/core` and framework providers (Vite, Next, Nuxt). This React (non-Vite) package does not inject network capture on its own. | ||
| If you use `initBrowserEcho` directly, you can also enable network body snippets via core options: | ||
| ```ts | ||
| initBrowserEcho({ | ||
| route: '/__client-logs', | ||
| networkLogs: { | ||
| enabled: true, | ||
| bodies: { | ||
| request: true, | ||
| response: true, | ||
| maxBytes: 2048, | ||
| allowContentTypes: ['application/json','text/','application/x-www-form-urlencoded'], | ||
| prettyJson: true | ||
| } | ||
| } | ||
| }); | ||
| ``` | ||
| Example Express.js endpoint: | ||
@@ -74,0 +93,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
9893
6.46%260
7.88%2
100%