@buoy-gg/network 7.0.78 → 7.0.80

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 (133) hide show
  1. package/README.md +76 -2
  2. package/lib/commonjs/expo-network.js +1 -0
  3. package/lib/commonjs/index.js +1 -1
  4. package/lib/commonjs/index.web.js +1 -1
  5. package/lib/commonjs/netinfo.js +1 -0
  6. package/lib/commonjs/network/components/NetworkEventDetailView.js +2 -2
  7. package/lib/commonjs/network/components/NetworkEventDetailView.web.js +2 -2
  8. package/lib/commonjs/network/components/NetworkEventItemCompact.js +2 -2
  9. package/lib/commonjs/network/components/NetworkEventItemCompact.web.js +1 -1
  10. package/lib/commonjs/network/components/NetworkModal.js +1 -1
  11. package/lib/commonjs/network/components/sockets/NetworkSocketsButton.js +1 -0
  12. package/lib/commonjs/network/components/sockets/NetworkSocketsScreen.js +1 -0
  13. package/lib/commonjs/network/components/sockets/SocketFrameView.js +1 -0
  14. package/lib/commonjs/network/components/sockets/SocketListView.js +1 -0
  15. package/lib/commonjs/network/components/sockets/SocketRows.js +1 -0
  16. package/lib/commonjs/network/components/sockets/SocketTricksView.js +1 -0
  17. package/lib/commonjs/network/conditions/NetworkConditionsControl.js +1 -1
  18. package/lib/commonjs/network/conditions/NetworkConditionsControl.test.js +1 -1
  19. package/lib/commonjs/network/conditions/NetworkConditionsIcon.js +1 -1
  20. package/lib/commonjs/network/conditions/NetworkFloatingTool.js +1 -1
  21. package/lib/commonjs/network/conditions/NetworkFloatingTool.test.js +1 -1
  22. package/lib/commonjs/network/conditions/connectivity/netInfoFacade.js +1 -0
  23. package/lib/commonjs/network/conditions/connectivity/patchNetwork.js +1 -0
  24. package/lib/commonjs/network/conditions/pacer.js +1 -0
  25. package/lib/commonjs/network/conditions/profiles.js +1 -0
  26. package/lib/commonjs/network/conditions/remoteState.js +1 -0
  27. package/lib/commonjs/network/conditions/store.js +1 -1
  28. package/lib/commonjs/network/conditions/wait.js +1 -1
  29. package/lib/commonjs/network/conditions/xhr.js +1 -1
  30. package/lib/commonjs/network/hooks/useSocketsState.js +1 -0
  31. package/lib/commonjs/network/overrides/engine.js +1 -1
  32. package/lib/commonjs/network/overrides/matchRule.js +1 -1
  33. package/lib/commonjs/network/overrides/overrideRulesStore.js +1 -1
  34. package/lib/commonjs/network/sockets/findProblems.js +1 -0
  35. package/lib/commonjs/network/sockets/foldFrames.js +1 -0
  36. package/lib/commonjs/network/sockets/format.js +1 -0
  37. package/lib/commonjs/network/sockets/readMessage.js +1 -0
  38. package/lib/commonjs/network/sockets/socketMoments.js +1 -0
  39. package/lib/commonjs/network/sockets/socketStore.js +1 -0
  40. package/lib/commonjs/network/sockets/socketsSyncAdapter.js +1 -0
  41. package/lib/commonjs/network/sockets/types.js +1 -0
  42. package/lib/commonjs/network/sockets/webSocketPatch.js +1 -0
  43. package/lib/commonjs/network/sync/networkSyncAdapter.js +1 -1
  44. package/lib/commonjs/network/utils/generateNetworkCopyText.js +1 -0
  45. package/lib/commonjs/network/utils/networkEventStore.js +1 -1
  46. package/lib/commonjs/network/utils/networkListener.js +4 -4
  47. package/lib/commonjs/network/utils/startNetworkCapture.js +1 -1
  48. package/lib/commonjs/preset.js +1 -1
  49. package/lib/module/expo-network.js +1 -0
  50. package/lib/module/index.js +1 -1
  51. package/lib/module/index.web.js +1 -1
  52. package/lib/module/netinfo.js +1 -0
  53. package/lib/module/network/components/NetworkEventDetailView.js +2 -2
  54. package/lib/module/network/components/NetworkEventDetailView.web.js +2 -2
  55. package/lib/module/network/components/NetworkEventItemCompact.js +2 -2
  56. package/lib/module/network/components/NetworkEventItemCompact.web.js +1 -1
  57. package/lib/module/network/components/NetworkModal.js +1 -1
  58. package/lib/module/network/components/sockets/NetworkSocketsButton.js +1 -0
  59. package/lib/module/network/components/sockets/NetworkSocketsScreen.js +1 -0
  60. package/lib/module/network/components/sockets/SocketFrameView.js +1 -0
  61. package/lib/module/network/components/sockets/SocketListView.js +1 -0
  62. package/lib/module/network/components/sockets/SocketRows.js +1 -0
  63. package/lib/module/network/components/sockets/SocketTricksView.js +1 -0
  64. package/lib/module/network/conditions/NetworkConditionsControl.js +1 -1
  65. package/lib/module/network/conditions/NetworkConditionsControl.test.js +1 -1
  66. package/lib/module/network/conditions/NetworkConditionsIcon.js +1 -1
  67. package/lib/module/network/conditions/NetworkFloatingTool.js +1 -1
  68. package/lib/module/network/conditions/NetworkFloatingTool.test.js +1 -1
  69. package/lib/module/network/conditions/connectivity/netInfoFacade.js +1 -0
  70. package/lib/module/network/conditions/connectivity/patchNetwork.js +1 -0
  71. package/lib/module/network/conditions/pacer.js +1 -0
  72. package/lib/module/network/conditions/profiles.js +1 -0
  73. package/lib/module/network/conditions/remoteState.js +1 -0
  74. package/lib/module/network/conditions/store.js +1 -1
  75. package/lib/module/network/conditions/wait.js +1 -1
  76. package/lib/module/network/conditions/xhr.js +1 -1
  77. package/lib/module/network/hooks/useSocketsState.js +1 -0
  78. package/lib/module/network/overrides/engine.js +1 -1
  79. package/lib/module/network/overrides/matchRule.js +1 -1
  80. package/lib/module/network/overrides/overrideRulesStore.js +1 -1
  81. package/lib/module/network/sockets/findProblems.js +1 -0
  82. package/lib/module/network/sockets/foldFrames.js +1 -0
  83. package/lib/module/network/sockets/format.js +1 -0
  84. package/lib/module/network/sockets/readMessage.js +1 -0
  85. package/lib/module/network/sockets/socketMoments.js +1 -0
  86. package/lib/module/network/sockets/socketStore.js +1 -0
  87. package/lib/module/network/sockets/socketsSyncAdapter.js +1 -0
  88. package/lib/module/network/sockets/types.js +1 -0
  89. package/lib/module/network/sockets/webSocketPatch.js +1 -0
  90. package/lib/module/network/sync/networkSyncAdapter.js +1 -1
  91. package/lib/module/network/utils/generateNetworkCopyText.js +23 -22
  92. package/lib/module/network/utils/networkEventStore.js +1 -1
  93. package/lib/module/network/utils/networkListener.js +4 -4
  94. package/lib/module/network/utils/startNetworkCapture.js +1 -1
  95. package/lib/module/preset.js +1 -1
  96. package/lib/typescript/expo-network.d.ts +2 -0
  97. package/lib/typescript/index.d.ts +14 -2
  98. package/lib/typescript/index.web.d.ts +7 -2
  99. package/lib/typescript/netinfo.d.ts +3 -0
  100. package/lib/typescript/network/components/sockets/NetworkSocketsButton.d.ts +17 -0
  101. package/lib/typescript/network/components/sockets/NetworkSocketsScreen.d.ts +19 -0
  102. package/lib/typescript/network/components/sockets/SocketFrameView.d.ts +9 -0
  103. package/lib/typescript/network/components/sockets/SocketListView.d.ts +9 -0
  104. package/lib/typescript/network/components/sockets/SocketRows.d.ts +19 -0
  105. package/lib/typescript/network/components/sockets/SocketTricksView.d.ts +23 -0
  106. package/lib/typescript/network/conditions/NetworkConditionsControl.d.ts +5 -2
  107. package/lib/typescript/network/conditions/NetworkFloatingTool.d.ts +4 -3
  108. package/lib/typescript/network/conditions/connectivity/netInfoFacade.d.ts +3 -0
  109. package/lib/typescript/network/conditions/connectivity/patchNetwork.d.ts +24 -0
  110. package/lib/typescript/network/conditions/pacer.d.ts +16 -0
  111. package/lib/typescript/network/conditions/profiles.d.ts +57 -0
  112. package/lib/typescript/network/conditions/remoteState.d.ts +4 -0
  113. package/lib/typescript/network/conditions/store.d.ts +45 -19
  114. package/lib/typescript/network/conditions/xhr.d.ts +1 -1
  115. package/lib/typescript/network/hooks/useSocketsState.d.ts +3 -0
  116. package/lib/typescript/network/overrides/engine.d.ts +14 -0
  117. package/lib/typescript/network/overrides/matchRule.d.ts +3 -0
  118. package/lib/typescript/network/overrides/overrideRulesStore.d.ts +22 -0
  119. package/lib/typescript/network/overrides/types.d.ts +33 -0
  120. package/lib/typescript/network/sockets/findProblems.d.ts +31 -0
  121. package/lib/typescript/network/sockets/foldFrames.d.ts +50 -0
  122. package/lib/typescript/network/sockets/format.d.ts +19 -0
  123. package/lib/typescript/network/sockets/readMessage.d.ts +41 -0
  124. package/lib/typescript/network/sockets/socketMoments.d.ts +24 -0
  125. package/lib/typescript/network/sockets/socketStore.d.ts +94 -0
  126. package/lib/typescript/network/sockets/socketsSyncAdapter.d.ts +66 -0
  127. package/lib/typescript/network/sockets/types.d.ts +139 -0
  128. package/lib/typescript/network/sockets/webSocketPatch.d.ts +57 -0
  129. package/lib/typescript/network/sync/networkSyncAdapter.d.ts +29 -12
  130. package/lib/typescript/network/types/index.d.ts +6 -0
  131. package/lib/typescript/network/utils/networkListener.d.ts +10 -0
  132. package/lib/web/index.mjs +60 -59
  133. package/package.json +26 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/network",
3
- "version": "7.0.78",
3
+ "version": "7.0.80",
4
4
  "description": "In-app network inspector for React Native — requests, responses, timing & errors live, with GraphQL operation parsing. Part of Buoy devtools.",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -27,14 +27,31 @@
27
27
  "./web": {
28
28
  "types": "./lib/typescript/index.d.ts",
29
29
  "default": "./lib/web/index.mjs"
30
+ },
31
+ "./netinfo": {
32
+ "types": "./lib/typescript/netinfo.d.ts",
33
+ "react-native": "./lib/module/netinfo.js",
34
+ "import": "./lib/module/netinfo.js",
35
+ "require": "./lib/commonjs/netinfo.js"
36
+ },
37
+ "./expo-network": {
38
+ "types": "./lib/typescript/expo-network.d.ts",
39
+ "react-native": "./lib/module/expo-network.js",
40
+ "import": "./lib/module/expo-network.js",
41
+ "require": "./lib/commonjs/expo-network.js"
30
42
  }
31
43
  },
32
44
  "files": [
33
45
  "lib"
34
46
  ],
35
- "sideEffects": false,
47
+ "sideEffects": [
48
+ "./lib/module/netinfo.js",
49
+ "./lib/commonjs/netinfo.js",
50
+ "./lib/module/expo-network.js",
51
+ "./lib/commonjs/expo-network.js"
52
+ ],
36
53
  "dependencies": {
37
- "@buoy-gg/shared-ui": "^7.0.78"
54
+ "@buoy-gg/shared-ui": "^7.0.80"
38
55
  },
39
56
  "peerDependencies": {
40
57
  "react": "*"
@@ -103,6 +120,12 @@
103
120
  },
104
121
  "react-dom": {
105
122
  "optional": true
123
+ },
124
+ "@react-native-community/netinfo": {
125
+ "optional": true
126
+ },
127
+ "expo-network": {
128
+ "optional": true
106
129
  }
107
130
  },
108
131
  "scripts": {