@rozenite/network-activity-plugin 1.5.1 → 1.6.0
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/CHANGELOG.md +12 -0
- package/README.md +2 -0
- package/dist/boot-recording.cjs +1 -1
- package/dist/boot-recording.js +3 -1084
- package/dist/rozenite.json +1 -1
- package/dist/src/react-native/agent/__tests__/network-activity-agent-state.test.d.ts +1 -0
- package/dist/src/react-native/agent/state.d.ts +733 -0
- package/dist/src/react-native/agent/tools.d.ts +11 -0
- package/dist/src/react-native/agent/use-network-activity-agent-tools.d.ts +13 -0
- package/dist/useNetworkActivityDevTools.cjs +931 -0
- package/dist/useNetworkActivityDevTools.js +932 -1
- package/package.json +5 -4
- package/src/react-native/agent/__tests__/network-activity-agent-state.test.ts +250 -0
- package/src/react-native/agent/state.ts +869 -0
- package/src/react-native/agent/tools.ts +146 -0
- package/src/react-native/agent/use-network-activity-agent-tools.ts +244 -0
- package/src/react-native/http/http-inspector.ts +0 -1
- package/src/react-native/useNetworkActivityDevTools.ts +11 -0
- package/tsconfig.json +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @rozenite/network-activity-plugin
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#198](https://github.com/callstackincubator/rozenite/pull/198) [`cc97b14`](https://github.com/callstackincubator/rozenite/commit/cc97b1433b0f6a93864060d980e869e08d7242bd) Thanks [@V3RON](https://github.com/V3RON)! - Add agent tools for inspecting HTTP, WebSocket, and SSE activity in the Network Activity plugin.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies []:
|
|
12
|
+
- @rozenite/agent-bridge@1.6.0
|
|
13
|
+
- @rozenite/plugin-bridge@1.6.0
|
|
14
|
+
|
|
3
15
|
## 1.5.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
### A Rozenite plugin that provides comprehensive network activity monitoring for React Native applications.
|
|
4
4
|
|
|
5
|
+
For agents, this plugin is the fallback network domain when the built-in `network` domain is unavailable, such as on older React Native versions. Agents should prefer the built-in `network` domain first, and switch to `@rozenite/network-activity-plugin` only if `network` is missing or fails to initialize.
|
|
6
|
+
|
|
5
7
|
[![mit licence][license-badge]][license] [![npm downloads][npm-downloads-badge]][npm-downloads] [![Chat][chat-badge]][chat] [![PRs Welcome][prs-welcome-badge]][prs-welcome]
|
|
6
8
|
|
|
7
9
|
The Rozenite Network Activity Plugin provides real-time network request monitoring, detailed request/response inspection within your React Native DevTools environment. It offers comprehensive network debugging capabilities similar to browser DevTools Network panel.
|
package/dist/boot-recording.cjs
CHANGED
|
@@ -534,7 +534,6 @@ const getHTTPInspector = () => {
|
|
|
534
534
|
},
|
|
535
535
|
disable: () => {
|
|
536
536
|
XHRInterceptor.disableInterception();
|
|
537
|
-
networkRequestsRegistry.clear();
|
|
538
537
|
},
|
|
539
538
|
isEnabled: () => {
|
|
540
539
|
return XHRInterceptor.isInterceptorEnabled();
|
|
@@ -1083,5 +1082,6 @@ exports.getResponseBody = getResponseBody;
|
|
|
1083
1082
|
exports.isHttpEvent = isHttpEvent;
|
|
1084
1083
|
exports.isSSEEvent = isSSEEvent;
|
|
1085
1084
|
exports.isWebSocketEvent = isWebSocketEvent;
|
|
1085
|
+
exports.safeStringify = safeStringify;
|
|
1086
1086
|
exports.validateConfig = validateConfig;
|
|
1087
1087
|
exports.withOnBootNetworkActivityRecording = withOnBootNetworkActivityRecording;
|