@onekeyfe/react-native-sni-connect 3.0.85 → 3.0.86

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/src/index.tsx CHANGED
@@ -1,4 +1,6 @@
1
1
  import NativeSniConnect, {
2
+ type SniConnectDebugSnapshot,
3
+ type SniConnectDebugTarget,
2
4
  type SniConnectRequest,
3
5
  type SniConnectResponse,
4
6
  } from './NativeSniConnect';
@@ -23,12 +25,20 @@ export function clearDNSCache(): Promise<{ success: boolean }> {
23
25
  return NativeSniConnect.clearDNSCache();
24
26
  }
25
27
 
28
+ export function getDebugSnapshot(
29
+ target: SniConnectDebugTarget
30
+ ): Promise<SniConnectDebugSnapshot> {
31
+ return NativeSniConnect.getDebugSnapshot(target);
32
+ }
33
+
26
34
  export function isProxyActiveForUrl(url: string): Promise<boolean> {
27
35
  return NativeSniConnect.isProxyActiveForUrl(url);
28
36
  }
29
37
 
30
38
  export type {
31
39
  SniConnectBodylessMethod,
40
+ SniConnectDebugSnapshot,
41
+ SniConnectDebugTarget,
32
42
  SniConnectMethod,
33
43
  SniConnectOptionalBodyMethod,
34
44
  SniConnectRequest,