react-native-xenon 0.2.0 → 0.3.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/README.md +8 -0
- package/lib/commonjs/assets/icons/bug.png +0 -0
- package/lib/commonjs/assets/icons/record.png +0 -0
- package/lib/commonjs/colors.js +14 -0
- package/lib/commonjs/colors.js.map +1 -0
- package/lib/commonjs/contexts/index.js +1 -1
- package/lib/commonjs/hooks/index.js +2 -9
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/useConsoleInterceptor.js +6 -6
- package/lib/commonjs/hooks/useConsoleInterceptor.js.map +1 -1
- package/lib/commonjs/hooks/useNetworkInterceptor.js +16 -16
- package/lib/commonjs/hooks/useNetworkInterceptor.js.map +1 -1
- package/lib/commonjs/icons.js +15 -0
- package/lib/commonjs/icons.js.map +1 -0
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/interceptors/ConsoleInterceptor.js +12 -13
- package/lib/commonjs/interceptors/ConsoleInterceptor.js.map +1 -1
- package/lib/commonjs/interceptors/FetchInterceptor.js +12 -13
- package/lib/commonjs/interceptors/FetchInterceptor.js.map +1 -1
- package/lib/commonjs/interceptors/HttpInterceptor.js +18 -36
- package/lib/commonjs/interceptors/HttpInterceptor.js.map +1 -1
- package/lib/commonjs/interceptors/Interceptor.js +16 -4
- package/lib/commonjs/interceptors/Interceptor.js.map +1 -1
- package/lib/commonjs/interceptors/NetworkInterceptor.js +1 -1
- package/lib/commonjs/interceptors/NetworkInterceptor.js.map +1 -1
- package/lib/commonjs/interceptors/WebSocketInterceptor.js +40 -64
- package/lib/commonjs/interceptors/WebSocketInterceptor.js.map +1 -1
- package/lib/commonjs/interceptors/XHRInterceptor.js +10 -11
- package/lib/commonjs/interceptors/XHRInterceptor.js.map +1 -1
- package/lib/commonjs/interceptors/index.js +4 -4
- package/lib/commonjs/types/index.js +4 -4
- package/lib/commonjs/ui/Xenon.js +23 -16
- package/lib/commonjs/ui/Xenon.js.map +1 -1
- package/lib/commonjs/ui/components/bubble/Bubble.js +10 -6
- package/lib/commonjs/ui/components/bubble/Bubble.js.map +1 -1
- package/lib/commonjs/ui/components/details/DetailsViewer.js +7 -7
- package/lib/commonjs/ui/components/details/DetailsViewer.js.map +1 -1
- package/lib/commonjs/ui/components/details/LogMessageDetails.js +4 -2
- package/lib/commonjs/ui/components/details/LogMessageDetails.js.map +1 -1
- package/lib/commonjs/ui/components/details/NetworkRequestDetails.js +14 -19
- package/lib/commonjs/ui/components/details/NetworkRequestDetails.js.map +1 -1
- package/lib/commonjs/ui/components/headers/DebuggerHeader.js +17 -15
- package/lib/commonjs/ui/components/headers/DebuggerHeader.js.map +1 -1
- package/lib/commonjs/ui/components/headers/NetworkPanelHeader.js +13 -9
- package/lib/commonjs/ui/components/headers/NetworkPanelHeader.js.map +1 -1
- package/lib/commonjs/ui/components/headers/NetworkRequestDetailsHeader.js +1 -1
- package/lib/commonjs/ui/components/index.js +5 -5
- package/lib/commonjs/ui/components/items/ConsolePanelItem.js +4 -2
- package/lib/commonjs/ui/components/items/ConsolePanelItem.js.map +1 -1
- package/lib/commonjs/ui/components/items/DebuggerHeaderItem.js +17 -10
- package/lib/commonjs/ui/components/items/DebuggerHeaderItem.js.map +1 -1
- package/lib/commonjs/ui/components/items/NetworkPanelItem.js +11 -7
- package/lib/commonjs/ui/components/items/NetworkPanelItem.js.map +1 -1
- package/lib/commonjs/ui/components/items/NetworkRequestDetailsHeaderItem.js +4 -2
- package/lib/commonjs/ui/components/items/NetworkRequestDetailsHeaderItem.js.map +1 -1
- package/lib/commonjs/ui/components/items/NetworkRequestDetailsItem.js +4 -2
- package/lib/commonjs/ui/components/items/NetworkRequestDetailsItem.js.map +1 -1
- package/lib/commonjs/ui/components/panels/ConsolePanel.js +9 -10
- package/lib/commonjs/ui/components/panels/ConsolePanel.js.map +1 -1
- package/lib/commonjs/ui/components/panels/NetworkPanel.js +18 -18
- package/lib/commonjs/ui/components/panels/NetworkPanel.js.map +1 -1
- package/lib/commonjs/utils.js +8 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/assets/icons/bug.png +0 -0
- package/lib/module/assets/icons/record.png +0 -0
- package/lib/module/colors.js +14 -0
- package/lib/module/colors.js.map +1 -0
- package/lib/module/constants.js +5 -1
- package/lib/module/constants.js.map +1 -1
- package/lib/module/contexts/MainContext.js +7 -3
- package/lib/module/contexts/MainContext.js.map +1 -1
- package/lib/module/contexts/index.js +11 -1
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/hooks/index.js +18 -3
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useConsoleInterceptor.js +18 -14
- package/lib/module/hooks/useConsoleInterceptor.js.map +1 -1
- package/lib/module/hooks/useNetworkInterceptor.js +33 -29
- package/lib/module/hooks/useNetworkInterceptor.js.map +1 -1
- package/lib/module/icons.js +15 -0
- package/lib/module/icons.js.map +1 -0
- package/lib/module/index.js +11 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/interceptors/ConsoleInterceptor.js +16 -10
- package/lib/module/interceptors/ConsoleInterceptor.js.map +1 -1
- package/lib/module/interceptors/FetchInterceptor.js +20 -15
- package/lib/module/interceptors/FetchInterceptor.js.map +1 -1
- package/lib/module/interceptors/HttpInterceptor.js +24 -37
- package/lib/module/interceptors/HttpInterceptor.js.map +1 -1
- package/lib/module/interceptors/Interceptor.js +20 -3
- package/lib/module/interceptors/Interceptor.js.map +1 -1
- package/lib/module/interceptors/NetworkInterceptor.js +8 -2
- package/lib/module/interceptors/NetworkInterceptor.js.map +1 -1
- package/lib/module/interceptors/WebSocketInterceptor.js +60 -78
- package/lib/module/interceptors/WebSocketInterceptor.js.map +1 -1
- package/lib/module/interceptors/XHRInterceptor.js +16 -11
- package/lib/module/interceptors/XHRInterceptor.js.map +1 -1
- package/lib/module/interceptors/index.js +32 -4
- package/lib/module/interceptors/index.js.map +1 -1
- package/lib/module/types/common.js +6 -2
- package/lib/module/types/common.js.map +1 -1
- package/lib/module/types/http.js +3 -1
- package/lib/module/types/index.js +47 -4
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/websocket.js +3 -1
- package/lib/module/ui/Xenon.js +47 -35
- package/lib/module/ui/Xenon.js.map +1 -1
- package/lib/module/ui/components/bubble/Bubble.js +24 -16
- package/lib/module/ui/components/bubble/Bubble.js.map +1 -1
- package/lib/module/ui/components/details/DetailsViewer.js +17 -12
- package/lib/module/ui/components/details/DetailsViewer.js.map +1 -1
- package/lib/module/ui/components/details/LogMessageDetails.js +15 -9
- package/lib/module/ui/components/details/LogMessageDetails.js.map +1 -1
- package/lib/module/ui/components/details/NetworkRequestDetails.js +51 -51
- package/lib/module/ui/components/details/NetworkRequestDetails.js.map +1 -1
- package/lib/module/ui/components/headers/DebuggerHeader.js +37 -30
- package/lib/module/ui/components/headers/DebuggerHeader.js.map +1 -1
- package/lib/module/ui/components/headers/NetworkPanelHeader.js +33 -25
- package/lib/module/ui/components/headers/NetworkPanelHeader.js.map +1 -1
- package/lib/module/ui/components/headers/NetworkRequestDetailsHeader.js +14 -9
- package/lib/module/ui/components/headers/NetworkRequestDetailsHeader.js.map +1 -1
- package/lib/module/ui/components/index.js +39 -5
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/items/ConsolePanelItem.js +15 -9
- package/lib/module/ui/components/items/ConsolePanelItem.js.map +1 -1
- package/lib/module/ui/components/items/DebuggerHeaderItem.js +26 -15
- package/lib/module/ui/components/items/DebuggerHeaderItem.js.map +1 -1
- package/lib/module/ui/components/items/NetworkPanelItem.js +35 -27
- package/lib/module/ui/components/items/NetworkPanelItem.js.map +1 -1
- package/lib/module/ui/components/items/NetworkRequestDetailsHeaderItem.js +14 -8
- package/lib/module/ui/components/items/NetworkRequestDetailsHeaderItem.js.map +1 -1
- package/lib/module/ui/components/items/NetworkRequestDetailsItem.js +15 -9
- package/lib/module/ui/components/items/NetworkRequestDetailsItem.js.map +1 -1
- package/lib/module/ui/components/panels/ConsolePanel.js +23 -19
- package/lib/module/ui/components/panels/ConsolePanel.js.map +1 -1
- package/lib/module/ui/components/panels/NetworkPanel.js +31 -26
- package/lib/module/ui/components/panels/NetworkPanel.js.map +1 -1
- package/lib/module/utils.js +27 -8
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/commonjs/src/colors.d.ts +8 -0
- package/lib/typescript/commonjs/src/colors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/index.d.ts +0 -1
- package/lib/typescript/commonjs/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNetworkInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/icons.d.ts +9 -0
- package/lib/typescript/commonjs/src/icons.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/interceptors/ConsoleInterceptor.d.ts +4 -4
- package/lib/typescript/commonjs/src/interceptors/ConsoleInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/interceptors/FetchInterceptor.d.ts +1 -1
- package/lib/typescript/commonjs/src/interceptors/FetchInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/interceptors/HttpInterceptor.d.ts +8 -17
- package/lib/typescript/commonjs/src/interceptors/HttpInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/interceptors/Interceptor.d.ts +6 -2
- package/lib/typescript/commonjs/src/interceptors/Interceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/interceptors/NetworkInterceptor.d.ts +1 -1
- package/lib/typescript/commonjs/src/interceptors/NetworkInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/interceptors/WebSocketInterceptor.d.ts +8 -20
- package/lib/typescript/commonjs/src/interceptors/WebSocketInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/interceptors/XHRInterceptor.d.ts +1 -1
- package/lib/typescript/commonjs/src/interceptors/XHRInterceptor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/console.d.ts +3 -0
- package/lib/typescript/commonjs/src/types/console.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/http.d.ts +13 -5
- package/lib/typescript/commonjs/src/types/http.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/websocket.d.ts +17 -7
- package/lib/typescript/commonjs/src/types/websocket.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/Xenon.d.ts +3 -2
- package/lib/typescript/commonjs/src/ui/Xenon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/bubble/Bubble.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/details/LogMessageDetails.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/details/NetworkRequestDetails.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/headers/DebuggerHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/headers/NetworkPanelHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/items/ConsolePanelItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/items/DebuggerHeaderItem.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/items/DebuggerHeaderItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/items/NetworkPanelItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/items/NetworkRequestDetailsHeaderItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/items/NetworkRequestDetailsItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/panels/ConsolePanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/panels/NetworkPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/colors.d.ts +8 -0
- package/lib/typescript/module/src/colors.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/index.d.ts +0 -1
- package/lib/typescript/module/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNetworkInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/icons.d.ts +9 -0
- package/lib/typescript/module/src/icons.d.ts.map +1 -0
- package/lib/typescript/module/src/interceptors/ConsoleInterceptor.d.ts +4 -4
- package/lib/typescript/module/src/interceptors/ConsoleInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/interceptors/FetchInterceptor.d.ts +1 -1
- package/lib/typescript/module/src/interceptors/FetchInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/interceptors/HttpInterceptor.d.ts +8 -17
- package/lib/typescript/module/src/interceptors/HttpInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/interceptors/Interceptor.d.ts +6 -2
- package/lib/typescript/module/src/interceptors/Interceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/interceptors/NetworkInterceptor.d.ts +1 -1
- package/lib/typescript/module/src/interceptors/NetworkInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/interceptors/WebSocketInterceptor.d.ts +8 -20
- package/lib/typescript/module/src/interceptors/WebSocketInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/interceptors/XHRInterceptor.d.ts +1 -1
- package/lib/typescript/module/src/interceptors/XHRInterceptor.d.ts.map +1 -1
- package/lib/typescript/module/src/types/console.d.ts +3 -0
- package/lib/typescript/module/src/types/console.d.ts.map +1 -1
- package/lib/typescript/module/src/types/http.d.ts +13 -5
- package/lib/typescript/module/src/types/http.d.ts.map +1 -1
- package/lib/typescript/module/src/types/websocket.d.ts +17 -7
- package/lib/typescript/module/src/types/websocket.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/Xenon.d.ts +3 -2
- package/lib/typescript/module/src/ui/Xenon.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/bubble/Bubble.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/details/LogMessageDetails.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/details/NetworkRequestDetails.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/headers/DebuggerHeader.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/headers/NetworkPanelHeader.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/items/ConsolePanelItem.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/items/DebuggerHeaderItem.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/items/DebuggerHeaderItem.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/items/NetworkPanelItem.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/items/NetworkRequestDetailsHeaderItem.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/items/NetworkRequestDetailsItem.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/panels/ConsolePanel.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/panels/NetworkPanel.d.ts.map +1 -1
- package/lib/typescript/module/src/utils.d.ts +1 -0
- package/lib/typescript/module/src/utils.d.ts.map +1 -1
- package/package.json +8 -4
- package/src/assets/icons/bug.png +0 -0
- package/src/assets/icons/record.png +0 -0
- package/src/colors.ts +8 -0
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useConsoleInterceptor.ts +4 -4
- package/src/hooks/useNetworkInterceptor.ts +34 -44
- package/src/icons.ts +9 -0
- package/src/interceptors/ConsoleInterceptor.ts +14 -13
- package/src/interceptors/FetchInterceptor.ts +7 -8
- package/src/interceptors/HttpInterceptor.ts +19 -48
- package/src/interceptors/Interceptor.ts +20 -2
- package/src/interceptors/NetworkInterceptor.ts +1 -1
- package/src/interceptors/WebSocketInterceptor.ts +39 -83
- package/src/interceptors/XHRInterceptor.ts +8 -7
- package/src/types/console.ts +4 -0
- package/src/types/http.ts +13 -5
- package/src/types/websocket.ts +17 -9
- package/src/ui/Xenon.tsx +104 -98
- package/src/ui/components/bubble/Bubble.tsx +6 -8
- package/src/ui/components/details/LogMessageDetails.tsx +2 -1
- package/src/ui/components/details/NetworkRequestDetails.tsx +10 -13
- package/src/ui/components/headers/DebuggerHeader.tsx +9 -13
- package/src/ui/components/headers/NetworkPanelHeader.tsx +12 -9
- package/src/ui/components/items/ConsolePanelItem.tsx +2 -1
- package/src/ui/components/items/DebuggerHeaderItem.tsx +18 -12
- package/src/ui/components/items/NetworkPanelItem.tsx +9 -6
- package/src/ui/components/items/NetworkRequestDetailsHeaderItem.tsx +3 -2
- package/src/ui/components/items/NetworkRequestDetailsItem.tsx +3 -2
- package/src/ui/components/panels/ConsolePanel.tsx +6 -8
- package/src/ui/components/panels/NetworkPanel.tsx +15 -14
- package/src/utils.ts +6 -0
- package/lib/commonjs/assets/code.png +0 -0
- package/lib/commonjs/assets/record.png +0 -0
- package/lib/commonjs/hooks/useScrollToBottom.js +0 -23
- package/lib/commonjs/hooks/useScrollToBottom.js.map +0 -1
- package/lib/module/assets/code.png +0 -0
- package/lib/module/assets/record.png +0 -0
- package/lib/module/hooks/useScrollToBottom.js +0 -19
- package/lib/module/hooks/useScrollToBottom.js.map +0 -1
- package/lib/typescript/commonjs/src/hooks/useScrollToBottom.d.ts +0 -3
- package/lib/typescript/commonjs/src/hooks/useScrollToBottom.d.ts.map +0 -1
- package/lib/typescript/module/src/hooks/useScrollToBottom.d.ts +0 -3
- package/lib/typescript/module/src/hooks/useScrollToBottom.d.ts.map +0 -1
- package/src/assets/code.png +0 -0
- package/src/assets/record.png +0 -0
- package/src/hooks/useScrollToBottom.ts +0 -23
- /package/lib/commonjs/assets/{delete.png → icons/delete.png} +0 -0
- /package/lib/commonjs/assets/{hide.png → icons/hide.png} +0 -0
- /package/lib/commonjs/assets/{move.png → icons/move.png} +0 -0
- /package/lib/module/assets/{delete.png → icons/delete.png} +0 -0
- /package/lib/module/assets/{hide.png → icons/hide.png} +0 -0
- /package/lib/module/assets/{move.png → icons/move.png} +0 -0
- /package/src/assets/{delete.png → icons/delete.png} +0 -0
- /package/src/assets/{hide.png → icons/hide.png} +0 -0
- /package/src/assets/{move.png → icons/move.png} +0 -0
@@ -1,36 +1,41 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = NetworkPanel;
|
7
|
+
var _react = require("react");
|
8
|
+
var _reactNative = require("react-native");
|
9
|
+
var _colors = _interopRequireDefault(require("../../../colors"));
|
10
|
+
var _contexts = require("../../../contexts");
|
11
|
+
var _types = require("../../../types");
|
12
|
+
var _NetworkPanelHeader = _interopRequireDefault(require("../headers/NetworkPanelHeader"));
|
13
|
+
var _NetworkPanelItem = _interopRequireDefault(require("../items/NetworkPanelItem"));
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
16
|
+
const Separator = () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
12
17
|
style: styles.divider
|
13
18
|
});
|
14
|
-
|
19
|
+
function NetworkPanel() {
|
15
20
|
const {
|
16
21
|
networkInterceptor: {
|
17
22
|
networkRequests
|
18
23
|
},
|
19
24
|
setPanelSelected,
|
20
25
|
detailsData
|
21
|
-
} = useContext(MainContext);
|
22
|
-
const
|
23
|
-
const renderItem = useCallback(({
|
26
|
+
} = (0, _react.useContext)(_contexts.MainContext);
|
27
|
+
const data = (0, _react.useMemo)(() => Array.from(networkRequests).reverse(), [networkRequests]);
|
28
|
+
const renderItem = (0, _react.useCallback)(({
|
24
29
|
item: [_, item]
|
25
30
|
}) => {
|
26
|
-
const isWebSocket = item.type === NetworkType.WS;
|
31
|
+
const isWebSocket = item.type === _types.NetworkType.WS;
|
27
32
|
const onPress = () => {
|
28
33
|
detailsData.current = {
|
29
34
|
network: item
|
30
35
|
};
|
31
36
|
setPanelSelected(null);
|
32
37
|
};
|
33
|
-
return /*#__PURE__*/
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkPanelItem.default, {
|
34
39
|
method: isWebSocket ? undefined : item.method,
|
35
40
|
name: item.url,
|
36
41
|
duration: item.duration,
|
@@ -38,25 +43,25 @@ export default function NetworkPanel() {
|
|
38
43
|
onPress: onPress
|
39
44
|
});
|
40
45
|
}, [detailsData, setPanelSelected]);
|
41
|
-
return /*#__PURE__*/
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
47
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_NetworkPanelHeader.default, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.FlatList, {
|
48
|
+
inverted: true,
|
49
|
+
data: data,
|
50
|
+
renderItem: renderItem,
|
51
|
+
keyExtractor: ([key]) => key,
|
52
|
+
ItemSeparatorComponent: Separator,
|
53
|
+
style: styles.container
|
54
|
+
})]
|
50
55
|
});
|
51
56
|
}
|
52
|
-
const styles = StyleSheet.create({
|
57
|
+
const styles = _reactNative.StyleSheet.create({
|
53
58
|
container: {
|
54
59
|
flex: 1,
|
55
60
|
paddingHorizontal: 8
|
56
61
|
},
|
57
62
|
divider: {
|
58
63
|
height: 1,
|
59
|
-
backgroundColor:
|
64
|
+
backgroundColor: _colors.default.gray
|
60
65
|
}
|
61
66
|
});
|
62
67
|
//# sourceMappingURL=NetworkPanel.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_colors","_interopRequireDefault","_contexts","_types","_NetworkPanelHeader","_NetworkPanelItem","_jsxRuntime","e","__esModule","default","Separator","jsx","View","style","styles","divider","NetworkPanel","networkInterceptor","networkRequests","setPanelSelected","detailsData","useContext","MainContext","data","useMemo","Array","from","reverse","renderItem","useCallback","item","_","isWebSocket","type","NetworkType","WS","onPress","current","network","method","undefined","name","url","duration","status","jsxs","Fragment","children","FlatList","inverted","keyExtractor","key","ItemSeparatorComponent","container","StyleSheet","create","flex","paddingHorizontal","height","backgroundColor","colors","gray"],"sourceRoot":"../../../../../src","sources":["ui/components/panels/NetworkPanel.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,iBAAA,GAAAJ,sBAAA,CAAAH,OAAA;AAAyD,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAG,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzD,MAAMG,SAAS,GAAGA,CAAA,kBAAM,IAAAJ,WAAA,CAAAK,GAAA,EAACZ,YAAA,CAAAa,IAAI;EAACC,KAAK,EAAEC,MAAM,CAACC;AAAQ,CAAE,CAAC;AAExC,SAASC,YAAYA,CAAA,EAAG;EACrC,MAAM;IACJC,kBAAkB,EAAE;MAAEC;IAAgB,CAAC;IACvCC,gBAAgB;IAChBC;EACF,CAAC,GAAG,IAAAC,iBAAU,EAACC,qBAAW,CAAE;EAE5B,MAAMC,IAAI,GAAG,IAAAC,cAAO,EAAC,MAAMC,KAAK,CAACC,IAAI,CAACR,eAAe,CAAC,CAACS,OAAO,CAAC,CAAC,EAAE,CAACT,eAAe,CAAC,CAAC;EAEpF,MAAMU,UAAU,GAAG,IAAAC,kBAAW,EAC5B,CAAC;IAAEC,IAAI,EAAE,CAACC,CAAC,EAAED,IAAI;EAAE,CAAC,KAAK;IACvB,MAAME,WAAW,GAAGF,IAAI,CAACG,IAAI,KAAKC,kBAAW,CAACC,EAAE;IAEhD,MAAMC,OAAO,GAAGA,CAAA,KAAM;MACpBhB,WAA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(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.formatRequestStatusCode = exports.formatRequestMethod = exports.formatRequestDuration = exports.formatLogMessage = exports.convertToCurl = void 0;
|
7
|
+
exports.frozen = frozen;
|
8
|
+
exports.limitChar = exports.keyValueToString = exports.getHttpInterceptorId = void 0;
|
9
|
+
const limitChar = (value, limit = 5000) => {
|
4
10
|
const stringValue = typeof value === 'string' ? value : JSON.stringify(value ?? '');
|
5
11
|
return stringValue.length > limit ? `${stringValue.slice(0, limit)}\n---LIMITED TO ${limit} CHARACTERS---` : stringValue;
|
6
12
|
};
|
7
|
-
|
13
|
+
exports.limitChar = limitChar;
|
14
|
+
const getHttpInterceptorId = () => {
|
8
15
|
const timestamp = Date.now().toString(36);
|
9
16
|
const randomNum = Math.random().toString(36).substring(2, 10);
|
10
17
|
return timestamp + randomNum;
|
11
18
|
};
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
19
|
+
exports.getHttpInterceptorId = getHttpInterceptorId;
|
20
|
+
const keyValueToString = (key, value) => `${key}: ${limitChar(value)}\n`;
|
21
|
+
exports.keyValueToString = keyValueToString;
|
22
|
+
const formatRequestMethod = method => method ?? 'GET';
|
23
|
+
exports.formatRequestMethod = formatRequestMethod;
|
24
|
+
const formatRequestDuration = duration => duration ? `${duration}ms` : 'pending';
|
25
|
+
exports.formatRequestDuration = formatRequestDuration;
|
26
|
+
const formatRequestStatusCode = statusCode => `${statusCode ?? 'pending'}`;
|
27
|
+
exports.formatRequestStatusCode = formatRequestStatusCode;
|
28
|
+
const formatLogMessage = (type, values) => {
|
17
29
|
const message = values.reduce((pre, cur, index, array) => {
|
18
30
|
const isLastItem = index === array.length - 1;
|
19
31
|
return pre + limitChar(cur) + (isLastItem ? '' : ', ');
|
20
32
|
}, '');
|
21
33
|
return `${type.toUpperCase()}: ${message}`;
|
22
34
|
};
|
23
|
-
|
35
|
+
exports.formatLogMessage = formatLogMessage;
|
36
|
+
const convertToCurl = (method, url, headers, body) => {
|
24
37
|
let curlCommand = `curl -X ${method.toUpperCase()} "${url}"`;
|
25
38
|
if (headers) {
|
26
39
|
for (const [key, value] of Object.entries(headers)) {
|
@@ -33,4 +46,10 @@ export const convertToCurl = (method, url, headers, body) => {
|
|
33
46
|
}
|
34
47
|
return curlCommand;
|
35
48
|
};
|
49
|
+
exports.convertToCurl = convertToCurl;
|
50
|
+
function frozen(_target) {
|
51
|
+
const descriptor = arguments[2];
|
52
|
+
descriptor.configurable = false;
|
53
|
+
descriptor.writable = false;
|
54
|
+
}
|
36
55
|
//# sourceMappingURL=utils.js.map
|
package/lib/module/utils.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["limitChar","value","limit","stringValue","JSON","stringify","length","slice","getHttpInterceptorId","timestamp","Date","now","toString","randomNum","Math","random","substring","keyValueToString","key","formatRequestMethod","method","formatRequestDuration","duration","formatRequestStatusCode","statusCode","formatLogMessage","type","values","message","reduce","pre","cur","index","array","isLastItem","toUpperCase","convertToCurl","url","headers","body","curlCommand","Object","entries","bodyString"],"sourceRoot":"../../src","sources":["utils.ts"],"mappings":"
|
1
|
+
{"version":3,"names":["limitChar","value","limit","stringValue","JSON","stringify","length","slice","exports","getHttpInterceptorId","timestamp","Date","now","toString","randomNum","Math","random","substring","keyValueToString","key","formatRequestMethod","method","formatRequestDuration","duration","formatRequestStatusCode","statusCode","formatLogMessage","type","values","message","reduce","pre","cur","index","array","isLastItem","toUpperCase","convertToCurl","url","headers","body","curlCommand","Object","entries","bodyString","frozen","_target","descriptor","arguments","configurable","writable"],"sourceRoot":"../../src","sources":["utils.ts"],"mappings":";;;;;;;;AAEO,MAAMA,SAAS,GAAGA,CAACC,KAAU,EAAEC,KAAK,GAAG,IAAI,KAAK;EACrD,MAAMC,WAAW,GAAG,OAAOF,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGG,IAAI,CAACC,SAAS,CAACJ,KAAK,IAAI,EAAE,CAAC;EAEnF,O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;;;;EAKV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useNetworkInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNetworkInterceptor.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"useNetworkInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNetworkInterceptor.ts"],"names":[],"mappings":"AAcA,UAAU,wBAAwB;IAChC,WAAW,EAAE,OAAO,CAAC;CACtB;AAMD,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAAE,WAAW,EAAE,EAAE,wBAAwB;;;;;;EA4OtF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/icons.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK;;;;;;EAMT,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
|
+
import type { ConsoleHandlers } from '../types';
|
1
2
|
import Interceptor from './Interceptor';
|
2
|
-
export default class ConsoleInterceptor extends Interceptor {
|
3
|
-
static instance: ConsoleInterceptor;
|
3
|
+
export default class ConsoleInterceptor extends Interceptor<ConsoleHandlers> {
|
4
|
+
static readonly instance: ConsoleInterceptor;
|
5
|
+
protected readonly handlers: ConsoleHandlers;
|
4
6
|
private constructor();
|
5
|
-
private callback;
|
6
|
-
setCallback(callback: typeof this.callback): this;
|
7
7
|
enableInterception(): void;
|
8
8
|
disableInterception(): void;
|
9
9
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConsoleInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/ConsoleInterceptor.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,eAAe,CAAC;AAaxC,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,WAAW;
|
1
|
+
{"version":3,"file":"ConsoleInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/ConsoleInterceptor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,WAAW,MAAM,eAAe,CAAC;AAaxC,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,WAAW,CAAC,eAAe,CAAC;IAC1E,MAAM,CAAC,QAAQ,CAAC,QAAQ,qBAA4B;IAEpD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAE1C;IAEF,OAAO;IAKP,kBAAkB,IAAI,IAAI;IAqE1B,mBAAmB,IAAI,IAAI;CAkB5B"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import HttpInterceptor from './HttpInterceptor';
|
2
2
|
export default class FetchInterceptor extends HttpInterceptor {
|
3
|
-
static instance: FetchInterceptor;
|
3
|
+
static readonly instance: FetchInterceptor;
|
4
4
|
private constructor();
|
5
5
|
enableInterception(): void;
|
6
6
|
disableInterception(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FetchInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/FetchInterceptor.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAIhD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,eAAe;IAC3D,MAAM,CAAC,QAAQ,mBAA0B;
|
1
|
+
{"version":3,"file":"FetchInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/FetchInterceptor.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAIhD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,eAAe;IAC3D,MAAM,CAAC,QAAQ,CAAC,QAAQ,mBAA0B;IAElD,OAAO;IAKP,kBAAkB;IAgHlB,mBAAmB;CASpB"}
|
@@ -1,22 +1,13 @@
|
|
1
|
-
import type {
|
1
|
+
import type { HttpHandlers } from '../types';
|
2
2
|
import { NetworkInterceptor } from './NetworkInterceptor';
|
3
|
-
export default abstract class HttpInterceptor extends NetworkInterceptor {
|
4
|
-
protected
|
5
|
-
protected requestHeaderCallback: HttpRequestHeaderCallback;
|
6
|
-
protected sendCallback: HttpSendCallback;
|
7
|
-
protected headerReceivedCallback: HttpHeaderReceivedCallback;
|
8
|
-
protected responseCallback: HttpResponseCallback;
|
9
|
-
setOpenCallback(callback: typeof this.openCallback): this;
|
10
|
-
setRequestHeaderCallback(callback: typeof this.requestHeaderCallback): this;
|
11
|
-
setSendCallback(callback: typeof this.sendCallback): this;
|
12
|
-
setHeaderReceivedCallback(callback: typeof this.headerReceivedCallback): this;
|
13
|
-
setResponseCallback(callback: typeof this.responseCallback): this;
|
3
|
+
export default abstract class HttpInterceptor extends NetworkInterceptor<HttpHandlers> {
|
4
|
+
protected handlers: HttpHandlers;
|
14
5
|
protected getCallbacks(): {
|
15
|
-
openCallback: ((id: import("../types").ID, type: import("../types").HttpRequest["type"], method: string, url: string) => void) |
|
16
|
-
requestHeaderCallback: ((id: import("../types").ID, header: string, value: string) => void) |
|
17
|
-
sendCallback: ((id: import("../types").ID, data?: any) => void) |
|
18
|
-
headerReceivedCallback: ((id: import("../types").ID, responseContentType: string | undefined, responseSize: number | undefined, responseHeaders: string) => void) |
|
19
|
-
responseCallback: ((id: import("../types").ID, status: number | undefined, timeout: number | undefined, duration: number, response: any, responseURL: string | undefined, responseType: string | undefined) => void) |
|
6
|
+
openCallback: ((id: import("../types").ID, type: import("../types").HttpRequest["type"], method: string, url: string) => void) | null;
|
7
|
+
requestHeaderCallback: ((id: import("../types").ID, header: string, value: string) => void) | null;
|
8
|
+
sendCallback: ((id: import("../types").ID, data?: any) => void) | null;
|
9
|
+
headerReceivedCallback: ((id: import("../types").ID, responseContentType: string | undefined, responseSize: number | undefined, responseHeaders: string) => void) | null;
|
10
|
+
responseCallback: ((id: import("../types").ID, status: number | undefined, timeout: number | undefined, duration: number, response: any, responseURL: string | undefined, responseType: string | undefined) => void) | null;
|
20
11
|
};
|
21
12
|
protected clearCallbacks(): void;
|
22
13
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HttpInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/HttpInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"HttpInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/HttpInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,eAAgB,SAAQ,kBAAkB,CAAC,YAAY,CAAC;IACpF,SAAS,CAAC,QAAQ,EAAE,YAAY,CAM9B;IAEF,SAAS,CAAC,YAAY;;;;;;;IAgBtB,SAAS,CAAC,cAAc,IAAI,IAAI;CAOjC"}
|
@@ -1,5 +1,9 @@
|
|
1
|
-
export default abstract class Interceptor {
|
2
|
-
|
1
|
+
export default abstract class Interceptor<T extends Object> {
|
2
|
+
#private;
|
3
|
+
get isInterceptorEnabled(): boolean;
|
4
|
+
protected set isInterceptorEnabled(value: boolean);
|
5
|
+
protected abstract handlers: T;
|
6
|
+
set<K extends keyof T>(key: K, handler: T[K]): this;
|
3
7
|
abstract enableInterception(): void;
|
4
8
|
abstract disableInterception(): void;
|
5
9
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Interceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/Interceptor.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Interceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/Interceptor.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,WAAW,CAAC,CAAC,SAAS,MAAM;;IAGxD,IAAI,oBAAoB,IAIkB,OAAO,CAFhD;IAED,SAAS,KAAK,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAEhD;IAED,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IAG/B,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;IAK5C,QAAQ,CAAC,kBAAkB,IAAI,IAAI;IACnC,QAAQ,CAAC,mBAAmB,IAAI,IAAI;CACrC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import Interceptor from './Interceptor';
|
2
|
-
export declare abstract class NetworkInterceptor extends Interceptor {
|
2
|
+
export declare abstract class NetworkInterceptor<T extends Object> extends Interceptor<T> {
|
3
3
|
protected abstract getCallbacks(): any;
|
4
4
|
protected abstract clearCallbacks(): void;
|
5
5
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NetworkInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/NetworkInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,8BAAsB,
|
1
|
+
{"version":3,"file":"NetworkInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/NetworkInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,8BAAsB,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,WAAW,CAAC,CAAC,CAAC;IAC/E,SAAS,CAAC,QAAQ,CAAC,YAAY,IAAI,GAAG;IACtC,SAAS,CAAC,QAAQ,CAAC,cAAc,IAAI,IAAI;CAC1C"}
|
@@ -1,31 +1,19 @@
|
|
1
|
+
import type { WebSocketHandlers } from '../types';
|
1
2
|
import { NetworkInterceptor } from './NetworkInterceptor';
|
2
|
-
export default class WebSocketInterceptor extends NetworkInterceptor {
|
3
|
-
static instance: WebSocketInterceptor;
|
3
|
+
export default class WebSocketInterceptor extends NetworkInterceptor<WebSocketHandlers> {
|
4
|
+
static readonly instance: WebSocketInterceptor;
|
5
|
+
protected handlers: WebSocketHandlers;
|
4
6
|
private constructor();
|
5
|
-
private connectCallback;
|
6
|
-
private sendCallback;
|
7
|
-
private closeCallback;
|
8
|
-
private onOpenCallback;
|
9
|
-
private onMessageCallback;
|
10
|
-
private onErrorCallback;
|
11
|
-
private onCloseCallback;
|
12
|
-
setConnectCallback(callback: typeof this.connectCallback): this;
|
13
|
-
setSendCallback(callback: typeof this.sendCallback): this;
|
14
|
-
setCloseCallback(callback: typeof this.closeCallback): this;
|
15
|
-
setOnOpenCallback(callback: typeof this.onOpenCallback): this;
|
16
|
-
setOnMessageCallback(callback: typeof this.onMessageCallback): this;
|
17
|
-
setOnErrorCallback(callback: typeof this.onErrorCallback): this;
|
18
|
-
setOnCloseCallback(callback: typeof this.onCloseCallback): this;
|
19
7
|
protected getCallbacks(): {
|
20
|
-
|
21
|
-
|
22
|
-
|
8
|
+
connect: ((url: string, protocols?: import("../types").WebSocketRequest["protocols"], options?: import("../types").WebSocketRequest["options"], socketId?: number) => void) | null;
|
9
|
+
send: ((data: string, socketId: number) => void) | null;
|
10
|
+
close: ((code: number, reason: string, socketId: number) => void) | null;
|
23
11
|
arrayBufferToString: (data?: string) => string;
|
24
12
|
};
|
25
13
|
protected clearCallbacks(): void;
|
26
14
|
private eventEmitter;
|
27
15
|
private subscriptions;
|
28
|
-
private timeStart;
|
16
|
+
private readonly timeStart;
|
29
17
|
private arrayBufferToString;
|
30
18
|
private registerEvents;
|
31
19
|
private unregisterEvents;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WebSocketInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/WebSocketInterceptor.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WebSocketInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/WebSocketInterceptor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ1D,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IACrF,MAAM,CAAC,QAAQ,CAAC,QAAQ,uBAA8B;IAEtD,SAAS,CAAC,QAAQ,EAAE,iBAAiB,CAQnC;IAEF,OAAO;IAIP,SAAS,CAAC,YAAY;;;;qCAuBa,MAAM;;IAdzC,SAAS,CAAC,cAAc,IAAI,IAAI;IAUhC,OAAO,CAAC,YAAY,CAAmC;IACvD,OAAO,CAAC,aAAa,CAA6B;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkC;IAE5D,OAAO,CAAC,mBAAmB;IAc3B,OAAO,CAAC,cAAc;IA2BtB,OAAO,CAAC,gBAAgB;IAOxB,kBAAkB,IAAI,IAAI;IAwC1B,mBAAmB,IAAI,IAAI;CAc5B"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import HttpInterceptor from './HttpInterceptor';
|
2
2
|
export default class XHRInterceptor extends HttpInterceptor {
|
3
|
-
static instance: XHRInterceptor;
|
3
|
+
static readonly instance: XHRInterceptor;
|
4
4
|
private constructor();
|
5
5
|
enableInterception(): void;
|
6
6
|
disableInterception(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XHRInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/XHRInterceptor.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAMhD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,eAAe;IACzD,MAAM,CAAC,QAAQ,iBAAwB;
|
1
|
+
{"version":3,"file":"XHRInterceptor.d.ts","sourceRoot":"","sources":["../../../../../src/interceptors/XHRInterceptor.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAMhD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,eAAe;IACzD,MAAM,CAAC,QAAQ,CAAC,QAAQ,iBAAwB;IAEhD,OAAO;IAKP,kBAAkB;IA4ElB,mBAAmB;CAWpB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../../../src/types/console.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,GAAG,EAAE,CAAC;CACf"}
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../../../src/types/console.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,GAAG,EAAE,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;CACxD"}
|
@@ -12,9 +12,17 @@ export interface HttpRequest extends NetworkRequest {
|
|
12
12
|
response?: any;
|
13
13
|
responseType?: string;
|
14
14
|
}
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
type HttpOpenCallback = ((id: ID, type: HttpRequest['type'], method: string, url: string) => void) | null;
|
16
|
+
type HttpRequestHeaderCallback = ((id: ID, header: string, value: string) => void) | null;
|
17
|
+
type HttpSendCallback = ((id: ID, data?: any) => void) | null;
|
18
|
+
type HttpHeaderReceivedCallback = ((id: ID, responseContentType: string | undefined, responseSize: number | undefined, responseHeaders: string) => void) | null;
|
19
|
+
type HttpResponseCallback = ((id: ID, status: number | undefined, timeout: number | undefined, duration: number, response: any, responseURL: string | undefined, responseType: string | undefined) => void) | null;
|
20
|
+
export interface HttpHandlers {
|
21
|
+
open: HttpOpenCallback;
|
22
|
+
requestHeader: HttpRequestHeaderCallback;
|
23
|
+
send: HttpSendCallback;
|
24
|
+
headerReceived: HttpHeaderReceivedCallback;
|
25
|
+
response: HttpResponseCallback;
|
26
|
+
}
|
27
|
+
export {};
|
20
28
|
//# sourceMappingURL=http.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../../src/types/http.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEhE,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,IAAI,EAAE,WAAW,CAAC,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,
|
1
|
+
{"version":3,"file":"http.d.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KACpB,IAAI,CAAC,GACV,IAAI,CAAC;AAET,KAAK,oBAAoB,GACrB,CAAC,CACC,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,GAAG,EACb,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,YAAY,EAAE,MAAM,GAAG,SAAS,KAC7B,IAAI,CAAC,GACV,IAAI,CAAC;AAET,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,gBAAgB,CAAC;IACvB,aAAa,EAAE,yBAAyB,CAAC;IACzC,IAAI,EAAE,gBAAgB,CAAC;IACvB,cAAc,EAAE,0BAA0B,CAAC;IAC3C,QAAQ,EAAE,oBAAoB,CAAC;CAChC"}
|
@@ -18,11 +18,21 @@ export interface WebSocketRequest extends NetworkRequest {
|
|
18
18
|
reason?: string;
|
19
19
|
};
|
20
20
|
}
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
21
|
+
type WebSocketConnectCallback = ((url: string, protocols?: WebSocketRequest['protocols'], options?: WebSocketRequest['options'], socketId?: number) => void) | null;
|
22
|
+
type WebSocketSendCallback = ((data: string, socketId: number) => void) | null;
|
23
|
+
type WebSocketCloseCallback = ((code: number, reason: string, socketId: number) => void) | null;
|
24
|
+
type WebSocketOnOpenCallback = ((socketId: number, duration: number) => void) | null;
|
25
|
+
type WebSocketOnMessageCallback = ((socketId: number, message: any) => void) | null;
|
26
|
+
type WebSocketOnErrorCallback = ((socketId: number, error: WebSocketRequest['serverError']) => void) | null;
|
27
|
+
type WebSocketOnCloseCallback = ((socketId: number, data: WebSocketRequest['serverClose']) => void) | null;
|
28
|
+
export interface WebSocketHandlers {
|
29
|
+
connect: WebSocketConnectCallback;
|
30
|
+
send: WebSocketSendCallback;
|
31
|
+
close: WebSocketCloseCallback;
|
32
|
+
onOpen: WebSocketOnOpenCallback;
|
33
|
+
onMessage: WebSocketOnMessageCallback;
|
34
|
+
onError: WebSocketOnErrorCallback;
|
35
|
+
onClose: WebSocketOnCloseCallback;
|
36
|
+
}
|
37
|
+
export {};
|
28
38
|
//# sourceMappingURL=websocket.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../../../src/types/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,IAAI,EAAE,WAAW,CAAC,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE;QACR,OAAO,EAAE;YAAE,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;QAC1C,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAC;KAC3B,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,WAAW,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAClD;AAED,
|
1
|
+
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../../../src/types/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,IAAI,EAAE,WAAW,CAAC,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE;QACR,OAAO,EA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AI,CAAC;AAET,KAAK,wBAAwB,GACzB,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC,GACnE,IAAI,CAAC;AAET,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,wBAAwB,CAAC;IAClC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,sBAAsB,CAAC;IAC9B,MAAM,EAAE,uBAAuB,CAAC;IAChC,SAAS,EAAE,0BAA0B,CAAC;IACtC,OAAO,EAAE,wBAAwB,CAAC;IAClC,OAAO,EAAE,wBAAwB,CAAC;CACnC"}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { type
|
1
|
+
import { type NamedExoticComponent } from 'react';
|
2
2
|
interface XenonComponentMethods {
|
3
|
+
isVisible(): boolean;
|
3
4
|
show(): void;
|
4
5
|
hide(): void;
|
5
6
|
}
|
@@ -9,7 +10,7 @@ interface XenonComponentProps {
|
|
9
10
|
bubbleSize?: number;
|
10
11
|
}
|
11
12
|
interface ReactNativeXenon extends XenonComponentMethods {
|
12
|
-
Component
|
13
|
+
Component: NamedExoticComponent<XenonComponentProps>;
|
13
14
|
}
|
14
15
|
declare const Xenon: ReactNativeXenon;
|
15
16
|
export default Xenon;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Xenon.d.ts","sourceRoot":"","sources":["../../../../../src/ui/Xenon.tsx"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"Xenon.d.ts","sourceRoot":"","sources":["../../../../../src/ui/Xenon.tsx"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,oBAAoB,EAC1B,MAAM,OAAO,CAAC;AAQf,UAAU,qBAAqB;IAC7B,SAAS,IAAI,OAAO,CAAC;IACrB,IAAI,IAAI,IAAI,CAAC;IACb,IAAI,IAAI,IAAI,CAAC;CACd;AAED,UAAU,mBAAmB;IAC3B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,gBAAiB,SAAQ,qBAAqB;IACtD,SAAS,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;CACtD;AAiHD,QAAA,MAAM,KAAK,EAAE,gBAWZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/bubble/Bubble.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EACL,QAAQ,EAKT,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/bubble/Bubble.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EACL,QAAQ,EAKT,MAAM,cAAc,CAAC;AAKtB,UAAU,WAAW;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,WAAW,2CAgE9D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LogMessageDetails.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/details/LogMessageDetails.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"LogMessageDetails.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/details/LogMessageDetails.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,UAAU,sBAAsB;IAC9B,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE,sBAAsB,2CAMzE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NetworkRequestDetails.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/details/NetworkRequestDetails.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"NetworkRequestDetails.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/details/NetworkRequestDetails.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAYxB,UAAU,0BAA0B;IAClC,IAAI,EAAE,WAAW,GAAG,gBAAgB,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAAE,IAAI,EAAE,EAAE,0BAA0B,2CAuGjF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DebuggerHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/headers/DebuggerHeader.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DebuggerHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/headers/DebuggerHeader.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,cAAc,4CAqFrC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NetworkPanelHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/headers/NetworkPanelHeader.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"NetworkPanelHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/headers/NetworkPanelHeader.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAkCzC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConsolePanelItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/items/ConsolePanelItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"ConsolePanelItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/items/ConsolePanelItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,UAAU,qBAAsB,SAAQ,UAAU;IAChD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,qBAAqB,2CAQxF"}
|
@@ -5,6 +5,6 @@ interface DebuggerHeaderItemProps {
|
|
5
5
|
isActive?: boolean;
|
6
6
|
onPress: () => void;
|
7
7
|
}
|
8
|
-
export default function DebuggerHeaderItem(
|
8
|
+
export default function DebuggerHeaderItem({ content, isLabel, isActive, onPress, }: DebuggerHeaderItemProps): import("react/jsx-runtime").JSX.Element;
|
9
9
|
export {};
|
10
10
|
//# sourceMappingURL=DebuggerHeaderItem.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DebuggerHeaderItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/items/DebuggerHeaderItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6C,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"DebuggerHeaderItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/items/DebuggerHeaderItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6C,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlG,UAAU,uBAAuB;IAC/B,OAAO,CAAC,EAAE,kBAAkB,GAAG,MAAM,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,OAAO,EACP,OAAO,EACP,QAAQ,EACR,OAAO,GACR,EAAE,uBAAuB,2CAuBzB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NetworkPanelItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/items/NetworkPanelItem.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"NetworkPanelItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/items/NetworkPanelItem.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAQlE,UAAU,qBAAqB;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC/B,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,OAAO,GACR,EAAE,qBAAqB,2CA0CvB"}
|