vite-uni-dev-tool 1.1.0 → 1.2.1

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 (195) hide show
  1. package/README.md +21 -1
  2. package/dist/const.cjs +1 -1
  3. package/dist/const.d.ts +2 -1
  4. package/dist/const.js +1 -1
  5. package/dist/core-shared.d.ts +2 -3
  6. package/dist/core.d.ts +8 -8
  7. package/dist/core.js +2 -2
  8. package/dist/i18n/index.d.ts +0 -1
  9. package/dist/i18n/instance.d.ts +0 -1
  10. package/dist/i18n/locales/en.cjs +1 -1
  11. package/dist/i18n/locales/en.d.ts +6 -1
  12. package/dist/i18n/locales/en.js +1 -1
  13. package/dist/i18n/locales/zh-Hans.cjs +1 -1
  14. package/dist/i18n/locales/zh-Hans.d.ts +6 -1
  15. package/dist/i18n/locales/zh-Hans.js +1 -1
  16. package/dist/index.d.ts +0 -1
  17. package/dist/modules/devConsole/index.cjs +4 -4
  18. package/dist/modules/devConsole/index.d.ts +6 -107
  19. package/dist/modules/devConsole/index.js +4 -4
  20. package/dist/modules/devEvent/index.cjs +3 -3
  21. package/dist/modules/devEvent/index.d.ts +2 -3
  22. package/dist/modules/devEvent/index.js +3 -3
  23. package/dist/modules/devIntercept/index.cjs +14 -14
  24. package/dist/modules/devIntercept/index.d.ts +34 -6
  25. package/dist/modules/devIntercept/index.js +14 -14
  26. package/dist/modules/devStore/index.cjs +1 -1
  27. package/dist/modules/devStore/index.d.ts +48 -40
  28. package/dist/modules/devStore/index.js +1 -1
  29. package/dist/modules/devToolInfo/index.cjs +1 -1
  30. package/dist/modules/devToolInfo/index.d.ts +6 -25
  31. package/dist/modules/devToolInfo/index.js +1 -1
  32. package/dist/plugins/uniDevTool/transform/transformApp.d.ts +0 -1
  33. package/dist/plugins/uniDevTool/transform/transformMain.cjs +3 -3
  34. package/dist/plugins/uniDevTool/transform/transformMain.d.ts +2 -2
  35. package/dist/plugins/uniDevTool/transform/transformMain.js +3 -3
  36. package/dist/plugins/uniDevTool/transform/transformVue.cjs +31 -25
  37. package/dist/plugins/uniDevTool/transform/transformVue.d.ts +2 -2
  38. package/dist/plugins/uniDevTool/transform/transformVue.js +30 -24
  39. package/dist/plugins/uniDevTool/uniDevTool.cjs +3 -3
  40. package/dist/plugins/uniDevTool/uniDevTool.d.ts +3 -2
  41. package/dist/plugins/uniDevTool/uniDevTool.js +3 -3
  42. package/dist/plugins/uniGlobalComponents/uniGlobalComponents.d.ts +0 -1
  43. package/dist/plugins/utils/index.d.ts +0 -1
  44. package/dist/shims-uni.d.ts +26 -22
  45. package/dist/type.d.ts +47 -43
  46. package/dist/utils/array.d.ts +0 -1
  47. package/dist/utils/date.d.ts +0 -1
  48. package/dist/utils/file.d.ts +0 -1
  49. package/dist/utils/function.d.ts +0 -1
  50. package/dist/utils/index.d.ts +0 -1
  51. package/dist/utils/ip.d.ts +0 -1
  52. package/dist/utils/language.d.ts +14 -15
  53. package/dist/utils/object.cjs +1 -1
  54. package/dist/utils/object.d.ts +7 -8
  55. package/dist/utils/object.js +1 -1
  56. package/dist/utils/openLink.d.ts +0 -1
  57. package/dist/utils/page.d.ts +0 -1
  58. package/dist/utils/platform.d.ts +0 -1
  59. package/dist/utils/string.d.ts +0 -1
  60. package/dist/utils/utils.d.ts +0 -1
  61. package/dist/v3/DevTool/components/BluetoothList/BluetoothItem.vue +199 -199
  62. package/dist/v3/DevTool/components/BluetoothList/BluetoothTool.vue +730 -730
  63. package/dist/v3/DevTool/components/BluetoothList/index.vue +167 -167
  64. package/dist/v3/DevTool/components/CaptureScreen/index.vue +109 -109
  65. package/dist/v3/DevTool/components/ConsoleList/ConsoleItem.vue +230 -225
  66. package/dist/v3/DevTool/components/ConsoleList/RunJSInput.vue +247 -247
  67. package/dist/v3/DevTool/components/ConsoleList/index.vue +171 -171
  68. package/dist/v3/DevTool/components/ConsoleList/staticTips.ts +1145 -1145
  69. package/dist/v3/DevTool/components/DevToolButton/index.vue +42 -6
  70. package/dist/v3/DevTool/components/DevToolTitle/index.vue +24 -24
  71. package/dist/v3/DevTool/components/DevToolWindow/DevToolOverlay.vue +197 -197
  72. package/dist/v3/DevTool/components/DevToolWindow/hooks/dataUtils.ts +48 -48
  73. package/dist/v3/DevTool/components/DevToolWindow/hooks/useDevToolData.ts +411 -387
  74. package/dist/v3/DevTool/components/DevToolWindow/hooks/useDevToolHandlers.ts +644 -629
  75. package/dist/v3/DevTool/components/DevToolWindow/hooks/useDevToolOverlay.ts +201 -197
  76. package/dist/v3/DevTool/components/DevToolWindow/index.vue +27 -64
  77. package/dist/v3/DevTool/components/ElEvent/ElEventItem.vue +105 -105
  78. package/dist/v3/DevTool/components/ElEvent/index.vue +106 -106
  79. package/dist/v3/DevTool/components/Instance/components/InstanceTreeNode.vue +265 -265
  80. package/dist/v3/DevTool/components/Instance/flatten.ts +226 -226
  81. package/dist/v3/DevTool/components/Instance/index.vue +94 -94
  82. package/dist/v3/DevTool/components/Instance/registry.ts +49 -49
  83. package/dist/v3/DevTool/components/Instance/transformTree.ts +393 -375
  84. package/dist/v3/DevTool/components/Instance/transformTreeCtx.ts +268 -268
  85. package/dist/v3/DevTool/components/Instance/typing.d.ts +43 -43
  86. package/dist/v3/DevTool/components/InstanceDetail/index.vue +485 -485
  87. package/dist/v3/DevTool/components/JsonDetail/index.vue +70 -70
  88. package/dist/v3/DevTool/components/NFCList/NFCItem.vue +112 -112
  89. package/dist/v3/DevTool/components/NFCList/NFCTool.vue +454 -454
  90. package/dist/v3/DevTool/components/NFCList/const.ts +56 -56
  91. package/dist/v3/DevTool/components/NFCList/index.vue +94 -94
  92. package/dist/v3/DevTool/components/NetworkList/InterceptConfig.vue +624 -624
  93. package/dist/v3/DevTool/components/NetworkList/InterceptItem.vue +140 -140
  94. package/dist/v3/DevTool/components/NetworkList/NetworkDetail.vue +287 -287
  95. package/dist/v3/DevTool/components/NetworkList/NetworkIntercept.vue +88 -88
  96. package/dist/v3/DevTool/components/NetworkList/NetworkItem.vue +163 -163
  97. package/dist/v3/DevTool/components/NetworkList/NetworkSend.vue +589 -589
  98. package/dist/v3/DevTool/components/NetworkList/const.ts +4 -4
  99. package/dist/v3/DevTool/components/NetworkList/hooks/useNetworkForm.ts +86 -86
  100. package/dist/v3/DevTool/components/NetworkList/index.vue +160 -160
  101. package/dist/v3/DevTool/components/NetworkList/utils.ts +101 -101
  102. package/dist/v3/DevTool/components/Performance/index.vue +498 -498
  103. package/dist/v3/DevTool/components/Performance/modules/PerformanceMetrics.vue +153 -153
  104. package/dist/v3/DevTool/components/Performance/modules/usePerformanceChart.ts +460 -460
  105. package/dist/v3/DevTool/components/Performance/modules/usePerformanceData.ts +258 -258
  106. package/dist/v3/DevTool/components/PiniaList/index.vue +93 -93
  107. package/dist/v3/DevTool/components/RunJS/index.vue +148 -148
  108. package/dist/v3/DevTool/components/ScanCodeList/ScanCodeItem.vue +97 -97
  109. package/dist/v3/DevTool/components/ScanCodeList/index.vue +100 -100
  110. package/dist/v3/DevTool/components/SettingButton/index.vue +45 -45
  111. package/dist/v3/DevTool/components/SettingList/index.vue +226 -218
  112. package/dist/v3/DevTool/components/SettingList/modules/SettingBarrage.vue +320 -304
  113. package/dist/v3/DevTool/components/SettingList/modules/SettingDevTool.vue +212 -212
  114. package/dist/v3/DevTool/components/SettingList/modules/SettingInfo.vue +157 -157
  115. package/dist/v3/DevTool/components/SettingList/modules/SettingLanguage.vue +74 -74
  116. package/dist/v3/DevTool/components/SettingList/modules/SettingLog.vue +230 -230
  117. package/dist/v3/DevTool/components/SettingList/typing.d.ts +2 -2
  118. package/dist/v3/DevTool/components/SourceCode/Line.vue +127 -127
  119. package/dist/v3/DevTool/components/SourceCode/parseCode.ts +609 -609
  120. package/dist/v3/DevTool/components/StorageList/index.vue +174 -174
  121. package/dist/v3/DevTool/components/TransferList/TransferDetail.vue +268 -268
  122. package/dist/v3/DevTool/components/VuexList/index.vue +84 -84
  123. package/dist/v3/DevTool/index.vue +85 -138
  124. package/dist/v3/components/AppTransition/index.vue +156 -176
  125. package/dist/v3/components/AutoSizer/index.vue +192 -192
  126. package/dist/v3/components/AutoSizer/index1.vue +184 -184
  127. package/dist/v3/components/AutoSizer/utils.ts +49 -49
  128. package/dist/v3/components/Barrage/BarrageItem.vue +194 -137
  129. package/dist/v3/components/Barrage/index.vue +205 -202
  130. package/dist/v3/components/CircularButton/index.vue +84 -84
  131. package/dist/v3/components/CustomSwiper/CustomSwiperItem.vue +49 -49
  132. package/dist/v3/components/CustomSwiper/index.vue +104 -104
  133. package/dist/v3/components/DevErrorBoundary/index.vue +388 -0
  134. package/dist/v3/components/DraggableContainer/index.vue +186 -73
  135. package/dist/v3/components/Empty/index.vue +29 -29
  136. package/dist/v3/components/FilterSelect/index.vue +179 -179
  137. package/dist/v3/components/JsonPretty/components/Brackets/index.vue +27 -27
  138. package/dist/v3/components/JsonPretty/components/Carets/index.vue +59 -59
  139. package/dist/v3/components/JsonPretty/components/CheckController/index.vue +136 -136
  140. package/dist/v3/components/JsonPretty/components/TreeNode/index.vue +387 -387
  141. package/dist/v3/components/JsonPretty/hooks/useClipboard.ts +21 -21
  142. package/dist/v3/components/JsonPretty/hooks/useError.ts +21 -21
  143. package/dist/v3/components/JsonPretty/type.ts +127 -127
  144. package/dist/v3/components/JsonPretty/utils/index.ts +169 -169
  145. package/dist/v3/components/MovableContainer/index.vue +10 -4
  146. package/dist/v3/components/Pick/index.vue +321 -322
  147. package/dist/v3/components/Tag/index.vue +113 -113
  148. package/dist/v3/components/VirtualList/AutoSize.vue +40 -40
  149. package/dist/v3/components/VirtualList/index.vue +416 -416
  150. package/dist/v3/hooks/useBluetooth/index.ts +561 -561
  151. package/dist/v3/hooks/useContainerStyle.ts +95 -153
  152. package/dist/v3/hooks/useNFC/index.ts +107 -107
  153. package/dist/v3/hooks/useNFC/typing.d.ts +396 -396
  154. package/dist/v3/hooks/useNFC/useNFCAndroid.ts +966 -966
  155. package/dist/v3/hooks/useNFC/useNFCMpWeiXin.ts +812 -812
  156. package/dist/v3/hooks/useNFC/utils.ts +754 -754
  157. package/dist/v3/hooks/useRequest/index.ts +586 -586
  158. package/dist/v3/hooks/useRequest/utils.ts +267 -267
  159. package/dist/v3/hooks/useScanCode/index.ts +206 -206
  160. package/dist/v3/hooks/useWebsocket/index.ts +253 -253
  161. package/dist/v3/styles/theme.ts +12 -12
  162. package/package.json +70 -59
  163. package/dist/const.d.ts.map +0 -1
  164. package/dist/core-shared.d.ts.map +0 -1
  165. package/dist/core.d.ts.map +0 -1
  166. package/dist/i18n/index.d.ts.map +0 -1
  167. package/dist/i18n/instance.d.ts.map +0 -1
  168. package/dist/i18n/locales/en.d.ts.map +0 -1
  169. package/dist/i18n/locales/zh-Hans.d.ts.map +0 -1
  170. package/dist/index.d.ts.map +0 -1
  171. package/dist/modules/devConsole/index.d.ts.map +0 -1
  172. package/dist/modules/devEvent/index.d.ts.map +0 -1
  173. package/dist/modules/devIntercept/index.d.ts.map +0 -1
  174. package/dist/modules/devStore/index.d.ts.map +0 -1
  175. package/dist/modules/devToolInfo/index.d.ts.map +0 -1
  176. package/dist/plugins/uniDevTool/transform/transformApp.d.ts.map +0 -1
  177. package/dist/plugins/uniDevTool/transform/transformMain.d.ts.map +0 -1
  178. package/dist/plugins/uniDevTool/transform/transformVue.d.ts.map +0 -1
  179. package/dist/plugins/uniDevTool/uniDevTool.d.ts.map +0 -1
  180. package/dist/plugins/uniGlobalComponents/uniGlobalComponents.d.ts.map +0 -1
  181. package/dist/plugins/utils/index.d.ts.map +0 -1
  182. package/dist/type.d.ts.map +0 -1
  183. package/dist/utils/array.d.ts.map +0 -1
  184. package/dist/utils/date.d.ts.map +0 -1
  185. package/dist/utils/file.d.ts.map +0 -1
  186. package/dist/utils/function.d.ts.map +0 -1
  187. package/dist/utils/index.d.ts.map +0 -1
  188. package/dist/utils/ip.d.ts.map +0 -1
  189. package/dist/utils/language.d.ts.map +0 -1
  190. package/dist/utils/object.d.ts.map +0 -1
  191. package/dist/utils/openLink.d.ts.map +0 -1
  192. package/dist/utils/page.d.ts.map +0 -1
  193. package/dist/utils/platform.d.ts.map +0 -1
  194. package/dist/utils/string.d.ts.map +0 -1
  195. package/dist/utils/utils.d.ts.map +0 -1
@@ -28,8 +28,8 @@ declare global {
28
28
 
29
29
  /** 调试工具注入的收集 NFC 监听方法 */
30
30
  __dev_tool_nfc_collection__: (nfcInfo: {
31
- id?: any;
32
- techs: NfcType[];
31
+ id?: unknown;
32
+ techs: string[];
33
33
  /** SAK */
34
34
  sak?: number;
35
35
  /** SAK 类型 */
@@ -43,22 +43,26 @@ declare global {
43
43
  byteArray?: number[];
44
44
  /** 卡片id 16进制字符串 */
45
45
  hexArray?: string[];
46
- /** 卡片id 16进制字符串 */
46
+ /** 卡片 id 16 进制字符串 */
47
47
  hexString?: string;
48
- [key: string]: any;
48
+ [key: string]: unknown;
49
49
  }) => void;
50
50
  }
51
51
 
52
52
  // 定义微信小程序类型
53
53
  interface WX {
54
54
  /** 用户截屏事件 */
55
- onUserCaptureScreen: (callback: (res?: any) => void) => void;
55
+ onUserCaptureScreen: (callback: (res?: unknown) => void) => void;
56
56
  /** 取消用户截屏事件 */
57
57
  offUserCaptureScreen: (callback?: () => void) => void;
58
58
  /** 监听屏幕录制状态变化 */
59
- onScreenRecordingStateChanged: (callback: (state?: any) => void) => void;
59
+ onScreenRecordingStateChanged: (
60
+ callback: (state?: unknown) => void,
61
+ ) => void;
60
62
  /** 取消监听屏幕录制状态变化 */
61
- offScreenRecordingStateChanged: (callback: (state?: any) => void) => void;
63
+ offScreenRecordingStateChanged: (
64
+ callback: (state?: unknown) => void,
65
+ ) => void;
62
66
 
63
67
  /**
64
68
  * 启用 NFC 模块
@@ -66,9 +70,9 @@ declare global {
66
70
  */
67
71
  startHCE: (options: {
68
72
  aid_list: string[];
69
- success?: (data: any) => void;
70
- fail?: (err: any) => void;
71
- complete?: (data: any) => void;
73
+ success?: (data: unknown) => void;
74
+ fail?: (err: unknown) => void;
75
+ complete?: (data: unknown) => void;
72
76
  }) => void;
73
77
  /**
74
78
  * 关闭 NFC 模块。仅在安卓与鸿蒙系统下有效。
@@ -76,9 +80,9 @@ declare global {
76
80
  * @returns
77
81
  */
78
82
  stopHCE: (options: {
79
- success?: (data: any) => void;
80
- fail?: (err: any) => void;
81
- complete?: (data: any) => void;
83
+ success?: (data: unknown) => void;
84
+ fail?: (err: unknown) => void;
85
+ complete?: (data: unknown) => void;
82
86
  }) => void;
83
87
 
84
88
  /**
@@ -88,9 +92,9 @@ declare global {
88
92
  */
89
93
  sendHCEMessage: (options: {
90
94
  data: ArrayBuffer;
91
- success?: (data: any) => void;
92
- fail?: (err: any) => void;
93
- complete?: (data: any) => void;
95
+ success?: (data: unknown) => void;
96
+ fail?: (err: unknown) => void;
97
+ complete?: (data: unknown) => void;
94
98
  }) => void;
95
99
 
96
100
  /**
@@ -112,13 +116,13 @@ declare global {
112
116
  * @memberof WX
113
117
  */
114
118
  getHCEState: (options: {
115
- success?: (data: any) => void;
116
- fail?: (err: any) => void;
117
- complete?: (data: any) => void;
119
+ success?: (data: unknown) => void;
120
+ fail?: (err: unknown) => void;
121
+ complete?: (data: unknown) => void;
118
122
  }) => void;
119
123
 
120
124
  /** 可以根据需要添加其他微信小程序API */
121
- [key: string]: any;
125
+ [key: string]: unknown;
122
126
  }
123
127
 
124
128
  /** 微信小程序 全局对象 */
@@ -128,11 +132,11 @@ declare global {
128
132
  globalEvent: {
129
133
  addEventListener: (
130
134
  eventName: string,
131
- callback: (data: any) => void,
135
+ callback: (data: unknown) => void,
132
136
  ) => void;
133
137
  removeEventListener: (
134
138
  eventName: string,
135
- callback: (data: any) => void,
139
+ callback: (data: unknown) => void,
136
140
  ) => void;
137
141
  };
138
142
  }
package/dist/type.d.ts CHANGED
@@ -24,7 +24,7 @@ export declare namespace DevTool {
24
24
  type: 'receive' | 'send';
25
25
  status: 'success' | 'error';
26
26
  valueType: ValueType;
27
- value: any;
27
+ value: unknown;
28
28
  shortValue?: string;
29
29
  time: number;
30
30
  };
@@ -53,9 +53,9 @@ export declare namespace DevTool {
53
53
  enableInterceptPromiseReject?: boolean;
54
54
  }): void;
55
55
  reset(): void;
56
- interceptVue(vueInstance: any): void;
57
- interceptVuexStorage(store: any): any;
58
- interceptPiniaStore(context: any): any;
56
+ interceptVue(vueInstance: unknown): void;
57
+ interceptVuexStorage(store: unknown): unknown;
58
+ interceptPiniaStore(context: unknown): unknown;
59
59
  }
60
60
  interface DevEventInterface {
61
61
  getDevToolDestroy(): boolean;
@@ -67,7 +67,7 @@ export declare namespace DevTool {
67
67
  getInterceptNetworkMap(): Map<string, NetworkItem> | undefined;
68
68
  updateNetworkList(items: NetworkItem[], index?: number): void;
69
69
  updateWsList(item: WS): void;
70
- addWsTask(url: string, task: any): void;
70
+ addWsTask(url: string, task: unknown): void;
71
71
  removeWsTask(url: string): void;
72
72
  updateStorage(items: StorageItem[]): void;
73
73
  updateTransfer(items: TransferItem[], index?: number): void;
@@ -91,7 +91,7 @@ export declare namespace DevTool {
91
91
  updateConsole: (list: ConsoleItem[]) => void;
92
92
  updateNetwork: (list: NetworkItem[], index?: number) => void;
93
93
  updateWs: (item: WS) => void;
94
- addWsTask: (url: string, task: any) => void;
94
+ addWsTask: (url: string, task: unknown) => void;
95
95
  removeWsTask: (url: string) => void;
96
96
  updateStorage: (list: StorageItem[]) => void;
97
97
  updateTransfer: (list: TransferItem[], index?: number) => void;
@@ -102,15 +102,15 @@ export declare namespace DevTool {
102
102
  updateBluetooth: (list: BluetoothItem[]) => void;
103
103
  updateRoute: (path?: string) => void;
104
104
  updateUniEventCount: (type: EventCountKey) => void;
105
- addTransferTask: (index: number | string, task: any) => void;
105
+ addTransferTask: (index: number | string, task: unknown) => void;
106
106
  removeTransferTask: (index: number | string) => void;
107
107
  clearStorage: () => void;
108
108
  removeStorage: (key: string) => void;
109
109
  closeWindow: () => void;
110
- setVuexList: (list: Record<string, any>) => void;
111
- setVueStore: (store: any) => void;
112
- setPiniaList: (list: Record<string, any>) => void;
113
- setPiniaStore: (store: any) => void;
110
+ setVuexList: (list: Record<string, unknown>) => void;
111
+ setVueStore: (store: unknown) => void;
112
+ setPiniaList: (list: Record<string, unknown>) => void;
113
+ setPiniaStore: (store: unknown) => void;
114
114
  };
115
115
  type DevInterceptOptions = {
116
116
  hooks: DevInterceptHooks;
@@ -136,7 +136,7 @@ export declare namespace DevTool {
136
136
  /** 上传地址 */
137
137
  url: string;
138
138
  /** 请求头 */
139
- header?: Record<string, any>;
139
+ header?: Record<string, unknown>;
140
140
  /** 超时时间 */
141
141
  timerOut?: number;
142
142
  /** 上报间隔 ms 默认 10 * 1000 */
@@ -147,8 +147,8 @@ export declare namespace DevTool {
147
147
  */
148
148
  payload?: {
149
149
  /** 内部 uv 数据, 外部传入无效 */
150
- devUV?: Record<string, any>;
151
- [key: string]: any;
150
+ devUV?: Record<string, unknown>;
151
+ [key: string]: unknown;
152
152
  };
153
153
  };
154
154
  type DevToolOptions = {
@@ -187,7 +187,7 @@ export declare namespace DevTool {
187
187
  /** 用于区分生产环境和开发环境,开发环境下,为了获取 Android 异常栈源码会获取本地源码进行展示 */
188
188
  mode: string;
189
189
  /** 用于捕获 vue 抛出的错误和警告 */
190
- vueInstance?: any;
190
+ vueInstance?: unknown;
191
191
  /**
192
192
  * 该属性处于实验当中,谨慎使用
193
193
  * 读取开发环境 source file,source map,默认 禁用
@@ -222,10 +222,10 @@ export declare namespace DevTool {
222
222
  buttonBackgroundColor: string;
223
223
  }>;
224
224
  type Response = {
225
- data?: any;
225
+ data?: unknown;
226
226
  statusCode?: number | string;
227
- header?: any;
228
- cookies?: any[];
227
+ header?: unknown;
228
+ cookies?: unknown[];
229
229
  errMsg: string;
230
230
  };
231
231
  type NetworkItem = {
@@ -241,15 +241,15 @@ export declare namespace DevTool {
241
241
  headers: {
242
242
  requestHeader: {
243
243
  key: string;
244
- value: any;
244
+ value: unknown;
245
245
  }[];
246
246
  responseHeader: {
247
247
  key: string;
248
- value: any;
248
+ value: unknown;
249
249
  }[];
250
250
  };
251
251
  response: Response;
252
- payload: any;
252
+ payload: unknown;
253
253
  /** 调用栈 */
254
254
  stack?: string;
255
255
  /** 时间线宽度 */
@@ -272,7 +272,7 @@ export declare namespace DevTool {
272
272
  type StorageItem = {
273
273
  key: string;
274
274
  _oldKey: string;
275
- value: string;
275
+ value: unknown;
276
276
  };
277
277
  /** 调试工具目前支持处理的console类型 */
278
278
  type ConsoleType = 'log' | 'info' | 'warn' | 'error' | 'debug' | 'timeEnd' | 'time' | 'clear' | 'count';
@@ -281,8 +281,9 @@ export declare namespace DevTool {
281
281
  type ValueType = 'number' | 'string' | 'boolean' | 'null' | 'undefined' | 'symbol' | 'array' | 'object' | 'link' | 'image';
282
282
  type Arg = {
283
283
  type: ValueType;
284
- value: any;
284
+ value: unknown;
285
285
  shortValue?: string;
286
+ _valueHtml?: string;
286
287
  };
287
288
  type ConsoleItem = {
288
289
  type: string;
@@ -301,14 +302,16 @@ export declare namespace DevTool {
301
302
  executionTime?: number;
302
303
  /** 是否被上传 */
303
304
  hasUpload?: boolean;
305
+ _stackHtml?: string;
306
+ _positionHtml?: string;
304
307
  };
305
308
  type TransferItem = {
306
309
  type: 'upload' | 'download';
307
310
  index: number;
308
311
  url?: string;
309
312
  filePath?: string;
310
- formData?: Record<string, any>;
311
- header?: Record<string, any>;
313
+ formData?: Record<string, unknown>;
314
+ header?: Record<string, unknown>;
312
315
  method?: string;
313
316
  headers?: {
314
317
  requestHeader?: {
@@ -320,8 +323,8 @@ export declare namespace DevTool {
320
323
  value: unknown;
321
324
  }[];
322
325
  };
323
- response?: Record<string, any>;
324
- files?: any[];
326
+ response?: unknown;
327
+ files?: unknown[];
325
328
  fileType?: string;
326
329
  name?: string;
327
330
  status: number | string;
@@ -385,9 +388,9 @@ export declare namespace DevTool {
385
388
  target: {
386
389
  id?: string;
387
390
  /** data- 携带节点属性 */
388
- dataset?: Record<string, any>;
391
+ dataset?: Record<string, unknown>;
389
392
  /** 其他属性 */
390
- [key: string]: any;
393
+ [key: string]: unknown;
391
394
  };
392
395
  /**
393
396
  * 事件的详细坐标信息
@@ -402,7 +405,7 @@ export declare namespace DevTool {
402
405
  /** 代码 */
403
406
  code?: string;
404
407
  /** 结果 */
405
- result?: any;
408
+ result?: unknown;
406
409
  /** 开始时间 */
407
410
  timer?: string;
408
411
  /** 执行用时 */
@@ -427,7 +430,7 @@ export declare namespace DevTool {
427
430
  result: string;
428
431
  scanType: string;
429
432
  errMsg: string;
430
- resultObject?: any;
433
+ resultObject?: unknown;
431
434
  path: string;
432
435
  stack?: string;
433
436
  shortValue?: string;
@@ -440,13 +443,13 @@ export declare namespace DevTool {
440
443
  /** 信号强度 */
441
444
  RSSI: number;
442
445
  /** 广播数据 */
443
- advertisData?: any;
446
+ advertisData?: unknown;
444
447
  /** 广播服务 UUIDs */
445
- advertisServiceUUIDs?: any[];
448
+ advertisServiceUUIDs?: unknown[];
446
449
  /** 本地名称 */
447
450
  localName?: string;
448
451
  /** 广播数据段中的ServiceData数据段 */
449
- serviceData?: any[];
452
+ serviceData?: unknown[];
450
453
  /** 服务征求 UUIDs (部分平台支持) */
451
454
  serviceSolicitationUUIDs?: string[];
452
455
  };
@@ -471,7 +474,7 @@ export declare namespace DevTool {
471
474
  hexArray: string[];
472
475
  /** 卡片id 16进制字符串 */
473
476
  hexString: string;
474
- [key: string]: any;
477
+ [key: string]: unknown;
475
478
  };
476
479
  type WindowData = {
477
480
  devToolVisible?: boolean;
@@ -479,13 +482,13 @@ export declare namespace DevTool {
479
482
  networkList?: NetworkItem[];
480
483
  storageList?: StorageItem[];
481
484
  routeList?: Page[];
482
- vuexList?: Record<string, any>;
483
- piniaList?: Record<string, any>;
484
- systemInfo?: Record<string, any>;
485
- deviceInfo?: Record<string, any>;
486
- windowInfo?: Record<string, any>;
487
- netWorkStatus?: Record<string, any>;
488
- appInfo?: Record<string, any>;
485
+ vuexList?: Record<string, unknown>;
486
+ piniaList?: Record<string, unknown>;
487
+ systemInfo?: Record<string, unknown>;
488
+ deviceInfo?: Record<string, unknown>;
489
+ windowInfo?: Record<string, unknown>;
490
+ netWorkStatus?: Record<string, unknown>;
491
+ appInfo?: Record<string, unknown>;
489
492
  wsList?: WS[];
490
493
  size?: number;
491
494
  sizeFormat?: string;
@@ -550,6 +553,7 @@ export declare namespace DevTool {
550
553
  barrageStartTop?: number;
551
554
  barrageDuration?: number;
552
555
  barrageMaxLength?: number;
556
+ barrageAllowDrag?: boolean;
553
557
  barrageTypes?: string[];
554
558
  barrageShowWhenOpen?: boolean;
555
559
  };
@@ -623,6 +627,7 @@ export declare namespace DevTool {
623
627
  barrageStartTop?: number;
624
628
  barrageDuration?: number;
625
629
  barrageMaxLength?: number;
630
+ barrageAllowDrag?: boolean;
626
631
  barrageTypes?: string[];
627
632
  barrageShowWhenOpen?: boolean;
628
633
  /** 性能面板位置 */
@@ -643,4 +648,3 @@ export declare namespace DevTool {
643
648
  };
644
649
  };
645
650
  }
646
- //# sourceMappingURL=type.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function chunk<T>(array: T[], size?: number): T[][];
2
- //# sourceMappingURL=array.d.ts.map
@@ -17,4 +17,3 @@ export declare function formatDuration(ms: number): string;
17
17
  * @return {*}
18
18
  */
19
19
  export declare function sleep(ms: number): Promise<unknown>;
20
- //# sourceMappingURL=date.d.ts.map
@@ -8,4 +8,3 @@ export declare function getFilePath(): Promise<unknown>;
8
8
  export declare function saveTxtFileApp(data: string, fileName: string): Promise<void>;
9
9
  export declare function saveTextFileH5(data: string, fileName: string): Promise<void>;
10
10
  export declare function saveTextFileMicro(data: string, fileName: string): Promise<void>;
11
- //# sourceMappingURL=file.d.ts.map
@@ -45,4 +45,3 @@ export declare function raf(fn: FrameRequestCallback): number;
45
45
  */
46
46
  export declare function caf(timer: number): void;
47
47
  export {};
48
- //# sourceMappingURL=function.d.ts.map
@@ -9,4 +9,3 @@ export * from './ip';
9
9
  export * from './platform';
10
10
  export * from './array';
11
11
  export * from './openLink';
12
- //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,3 @@ export declare function getWifiIp(): string;
2
2
  export declare function getLanIp(): any;
3
3
  export declare function getMicroAppIp(): Promise<unknown>;
4
4
  export declare function getDeviceMac(): string;
5
- //# sourceMappingURL=ip.d.ts.map
@@ -1,16 +1,16 @@
1
1
  import { DevTool } from '../type';
2
2
 
3
- export declare function isNil(value: any): value is null | undefined;
4
- export declare function isBoolean(value: any): value is boolean;
5
- export declare function isNumber(value: any): value is number;
6
- export declare function isObject(value: any): value is object;
7
- export declare function isArray(value: any): value is any[];
8
- export declare function isString(value: any): value is string;
9
- export declare function isImage(value: any): boolean;
10
- export declare function isNull(value: any): value is null;
11
- export declare function isUndefined(value: any): value is undefined;
12
- export declare function isSymbol(value: any): value is symbol;
13
- export declare function isFunction(value: any): value is (...args: any[]) => any;
3
+ export declare function isNil(value: unknown): value is null | undefined;
4
+ export declare function isBoolean(value: unknown): value is boolean;
5
+ export declare function isNumber(value: unknown): value is number;
6
+ export declare function isObject(value: unknown): value is object;
7
+ export declare function isArray(value: unknown): value is unknown[];
8
+ export declare function isString(value: unknown): value is string;
9
+ export declare function isImage(value: unknown): boolean;
10
+ export declare function isNull(value: unknown): value is null;
11
+ export declare function isUndefined(value: unknown): value is undefined;
12
+ export declare function isSymbol(value: unknown): value is symbol;
13
+ export declare function isFunction(value: unknown): value is (...args: unknown[]) => unknown;
14
14
  /**
15
15
  *
16
16
  *
@@ -18,7 +18,7 @@ export declare function isFunction(value: any): value is (...args: any[]) => any
18
18
  * @param {*} value
19
19
  * @return {*} {DevTool.ValueType}
20
20
  */
21
- export declare function getValueType(value: any): DevTool.ValueType;
21
+ export declare function getValueType(value: unknown): DevTool.ValueType;
22
22
  /**
23
23
  * 将 console 入参转 vue 可视值
24
24
  *
@@ -26,7 +26,6 @@ export declare function getValueType(value: any): DevTool.ValueType;
26
26
  * @param {*} value
27
27
  * @return {*} {DevTool.ValueType}
28
28
  */
29
- export declare function transformValueToView(value: any): DevTool.ValueType;
29
+ export declare function transformValueToView(value: unknown): DevTool.ValueType;
30
30
  /** 对传入的 object 和 array 进行长度截取 返回字符串,多余部分截断为 ... */
31
- export declare function transformValueToShortString(value: any, type: string, maxLength?: number): string;
32
- //# sourceMappingURL=language.d.ts.map
31
+ export declare function transformValueToShortString(value: unknown, type: string, maxLength?: number): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./language.cjs");function p(e,i,r){if(e==null||typeof i!="string")return;const n=i.replace(/\[(\d+)\]/g,".$1").split(".").filter(s=>s!=="");if(n.length===0)return;let t=e;const u=n.length-1;for(let s=0;s<u;s++){const f=n[s];if(!t[f]){const o=n[s+1];t[f]=/^\d+$/.test(o)?[]:{}}t=t[f]}t[n[u]]=r}function m(e,i,r){if(e==null||typeof i!="string")return r;const n=i.replace(/\[(\d+)\]/g,".$1").split(".").filter(u=>u!=="");let t=e;for(const u of n){if(t==null)return r;t=t[u]}return t!==void 0?t:r}function y(e){if(e=g(e),e==null)return 0;const i=typeof e;if(i==="boolean")return 4;if(i==="number")return 8;if(i==="string")return e.length*2;if(i==="symbol"||e instanceof Date)return 8;if(e instanceof RegExp)return y(e.source)+y(e.flags);let r=0;if(r+=24,Array.isArray(e)){r+=4;for(const n of e)r+=8,r+=y(n)}else for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r+=n.length*2,r+=8,r+=y(e[n]));return r}function h(e,i={}){const{precision:r=2,useBinary:n=!0,includeUnit:t=!0}=i;if(e===0)return t?"0 Bytes":"0";const u=n?["B","KiB","MiB","GiB","TiB","PiB"]:["B","KB","MB","GB","TB","PB"],s=n?1024:1e3;let f=0;for(;e>=s&&f<u.length-1;)e/=s,f++;const o=e.toFixed(r);return t?`${o} ${u[f]}`:o}function B(e,i={maxDepth:10}){try{const r=g(e,i.maxDepth||10);return JSON.stringify(r)}catch(r){return`[Serialization Error: ${String(r)}]`}}function g(e,i=6){const r=new WeakMap;function n(t,u,s=[]){if(t===null)return"null";if(t===void 0)return"undefined";if(typeof t=="boolean")return t;if(typeof t=="number")return isNaN(t)?"NaN":t===1/0?"Infinity":t===-1/0?"-Infinity":t;if(typeof t=="bigint")return t.toString()+"n";if(typeof t=="symbol")return t.toString();if(typeof t=="function")return"f(...args) { ... }";if(typeof t=="string")return t.length>2e3?t.slice(0,2e3)+"...":t;if(typeof t!="object")return t;if(t instanceof Error)return{name:t.name,message:t.message,stack:t.stack};if(t._isVue||t.__v_skip||t.$&&t.$.vnode)return"[Vue Component]";if(u<=0)return"[MaxDepth]";if(r.has(t))return`[Circular: ${r.get(t).join(".")||"root"}]`;if(r.set(t,[...s]),Array.isArray(t)){if(t.length>50){const o=t.slice(0,50).map((c,a)=>n(c,u-1,[...s,String(a)]));return o.push(`... ${t.length-50} more items`),o}return t.map((o,c)=>n(o,u-1,[...s,String(c)]))}const f={};try{const o=Object.keys(t);for(const c of o){if(c==="compilerOptions"){f[c]="[Vue Compiler Options]";continue}f[c]=n(t[c],u-1,[...s,c])}}catch{return"[Object Error]"}return f}return n(e,i)}function S(e,i){if(!l.isObject(e))return{};const r={};for(const n of i)n in e&&(r[n]=e[n]);return r}function d(e,i){if(!l.isObject(e))return{};const r={...e};for(const n of i)delete r[n];return r}exports.calculateObjectSize=y;exports.formatStorageSize=h;exports.getValueByPath=m;exports.omit=d;exports.parseValue=g;exports.pick=S;exports.serializeCircular=B;exports.setValueByPath=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./language.cjs");function m(e,i,r){if(e==null||typeof i!="string")return;const n=i.replace(/\[(\d+)\]/g,".$1").split(".").filter(u=>u!=="");if(n.length===0)return;let t=e;const s=n.length-1;for(let u=0;u<s;u++){const o=n[u];if(!t[o]){const c=n[u+1];t[o]=/^\d+$/.test(c)?[]:{}}t=t[o]}t[n[s]]=r}function h(e,i,r){if(e==null||typeof i!="string")return r;const n=i.replace(/\[(\d+)\]/g,".$1").split(".").filter(s=>s!=="");let t=e;for(const s of n){if(t==null)return r;t=t[s]}return t!==void 0?t:r}function g(e){if(e=l(e),e==null)return 0;const i=typeof e;if(i==="boolean")return 4;if(i==="number")return 8;if(i==="string")return e.length*2;if(i==="symbol"||e instanceof Date)return 8;if(e instanceof RegExp)return g(e.source)+g(e.flags);let r=0;if(r+=24,Array.isArray(e)){r+=4;for(const n of e)r+=8,r+=g(n)}else for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r+=n.length*2,r+=8,r+=g(e[n]));return r}function B(e,i={}){const{precision:r=2,useBinary:n=!0,includeUnit:t=!0}=i;if(e===0)return t?"0 Bytes":"0";const s=n?["B","KiB","MiB","GiB","TiB","PiB"]:["B","KB","MB","GB","TB","PB"],u=n?1024:1e3;let o=0;for(;e>=u&&o<s.length-1;)e/=u,o++;const c=e.toFixed(r);return t?`${c} ${s[o]}`:c}function S(e,i={maxDepth:10}){try{const r=l(e,i.maxDepth||10);return JSON.stringify(r)}catch(r){return`[Serialization Error: ${String(r)}]`}}function l(e,i=6){const r=new WeakMap;function n(t,s,u=[]){if(t===null)return"null";if(t===void 0)return"undefined";if(typeof t=="boolean")return t;if(typeof t=="number")return isNaN(t)?"NaN":t===1/0?"Infinity":t===-1/0?"-Infinity":t;if(typeof t=="bigint")return t.toString()+"n";if(typeof t=="symbol")return t.toString();if(typeof t=="function")return"f(...args) { ... }";if(typeof t=="string")return t.length>2e3?t.slice(0,2e3)+"...":t;if(typeof t!="object")return t;if(t instanceof Error)return{name:t.name,message:t.message,stack:t.stack};const o=t;if(o._isVue||o.__v_skip||o.$&&o.$.vnode)return"[Vue Component]";if(s<=0)return"[MaxDepth]";if(r.has(t))return`[Circular: ${r.get(t).join(".")||"root"}]`;if(r.set(t,[...u]),Array.isArray(t)){if(t.length>50){const y=t.slice(0,50).map((f,p)=>n(f,s-1,[...u,String(p)]));return y.push(`... ${t.length-50} more items`),y}return t.map((y,f)=>n(y,s-1,[...u,String(f)]))}const c={};try{const y=Object.keys(t);for(const f of y){if(f==="compilerOptions"){c[f]="[Vue Compiler Options]";continue}c[f]=n(t[f],s-1,[...u,f])}}catch{return"[Object Error]"}return c}return n(e,i)}function d(e,i){if(!a.isObject(e))return{};const r={};for(const n of i)n in e&&(r[n]=e[n]);return r}function k(e,i){if(!a.isObject(e))return{};const r={...e};for(const n of i)delete r[n];return r}exports.calculateObjectSize=g;exports.formatStorageSize=B;exports.getValueByPath=h;exports.omit=k;exports.parseValue=l;exports.pick=d;exports.serializeCircular=S;exports.setValueByPath=m;
@@ -4,14 +4,14 @@
4
4
  * @param path 属性路径数组
5
5
  * @param value 要设置的值
6
6
  */
7
- export declare function setValueByPath(obj: any, path: string, value: any): void;
8
- export declare function getValueByPath(obj: any, path: string, defaultValue?: any): any;
7
+ export declare function setValueByPath(obj: unknown, path: string, value: unknown): void;
8
+ export declare function getValueByPath(obj: unknown, path: string, defaultValue?: unknown): unknown;
9
9
  /**
10
10
  * 计算对象在内存中的近似大小
11
11
  * @param obj 要计算大小的对象
12
12
  * @returns 对象的近似大小(以字节为单位)
13
13
  */
14
- export declare function calculateObjectSize(obj: any): number;
14
+ export declare function calculateObjectSize(obj: unknown): number;
15
15
  /**
16
16
  * 存储单位转换
17
17
  * @param bytes 字节数
@@ -30,7 +30,7 @@ export declare function formatStorageSize(bytes: number, options?: FormatStorage
30
30
  * @param {Object} [options] - 选项
31
31
  * @returns {string} - 序列化后的字符串
32
32
  */
33
- export declare function serializeCircular(obj: any, options?: {
33
+ export declare function serializeCircular(obj: unknown, options?: {
34
34
  maxDepth?: number;
35
35
  }): string;
36
36
  /**
@@ -43,20 +43,19 @@ export declare function serializeCircular(obj: any, options?: {
43
43
  * @param {*} value
44
44
  * @param {number} [deep=6]
45
45
  */
46
- export declare function parseValue(value: any, deep?: number): any;
46
+ export declare function parseValue(value: unknown, deep?: number): unknown;
47
47
  /**
48
48
  * 从对象中提取指定的属性,创建一个只包含这些属性的新对象
49
49
  * @param obj 源对象
50
50
  * @param keys 要提取的属性名数组
51
51
  * @returns 包含指定属性的新对象
52
52
  */
53
- export declare function pick<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
53
+ export declare function pick<T extends Record<string, unknown>, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
54
54
  /**
55
55
  * 从对象中排除指定的属性,创建一个不包含这些属性的新对象
56
56
  * @param obj 源对象
57
57
  * @param keys 要排除的属性名数组
58
58
  * @returns 不包含指定属性的新对象
59
59
  */
60
- export declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
60
+ export declare function omit<T extends Record<string, unknown>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
61
61
  export {};
62
- //# sourceMappingURL=object.d.ts.map
@@ -1 +1 @@
1
- import{isObject as g}from"./language.js";function h(e,i,r){if(e==null||typeof i!="string")return;const n=i.replace(/\[(\d+)\]/g,".$1").split(".").filter(o=>o!=="");if(n.length===0)return;let t=e;const f=n.length-1;for(let o=0;o<f;o++){const u=n[o];if(!t[u]){const s=n[o+1];t[u]=/^\d+$/.test(s)?[]:{}}t=t[u]}t[n[f]]=r}function B(e,i,r){if(e==null||typeof i!="string")return r;const n=i.replace(/\[(\d+)\]/g,".$1").split(".").filter(f=>f!=="");let t=e;for(const f of n){if(t==null)return r;t=t[f]}return t!==void 0?t:r}function y(e){if(e=p(e),e==null)return 0;const i=typeof e;if(i==="boolean")return 4;if(i==="number")return 8;if(i==="string")return e.length*2;if(i==="symbol"||e instanceof Date)return 8;if(e instanceof RegExp)return y(e.source)+y(e.flags);let r=0;if(r+=24,Array.isArray(e)){r+=4;for(const n of e)r+=8,r+=y(n)}else for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r+=n.length*2,r+=8,r+=y(e[n]));return r}function a(e,i={}){const{precision:r=2,useBinary:n=!0,includeUnit:t=!0}=i;if(e===0)return t?"0 Bytes":"0";const f=n?["B","KiB","MiB","GiB","TiB","PiB"]:["B","KB","MB","GB","TB","PB"],o=n?1024:1e3;let u=0;for(;e>=o&&u<f.length-1;)e/=o,u++;const s=e.toFixed(r);return t?`${s} ${f[u]}`:s}function d(e,i={maxDepth:10}){try{const r=p(e,i.maxDepth||10);return JSON.stringify(r)}catch(r){return`[Serialization Error: ${String(r)}]`}}function p(e,i=6){const r=new WeakMap;function n(t,f,o=[]){if(t===null)return"null";if(t===void 0)return"undefined";if(typeof t=="boolean")return t;if(typeof t=="number")return isNaN(t)?"NaN":t===1/0?"Infinity":t===-1/0?"-Infinity":t;if(typeof t=="bigint")return t.toString()+"n";if(typeof t=="symbol")return t.toString();if(typeof t=="function")return"f(...args) { ... }";if(typeof t=="string")return t.length>2e3?t.slice(0,2e3)+"...":t;if(typeof t!="object")return t;if(t instanceof Error)return{name:t.name,message:t.message,stack:t.stack};if(t._isVue||t.__v_skip||t.$&&t.$.vnode)return"[Vue Component]";if(f<=0)return"[MaxDepth]";if(r.has(t))return`[Circular: ${r.get(t).join(".")||"root"}]`;if(r.set(t,[...o]),Array.isArray(t)){if(t.length>50){const s=t.slice(0,50).map((c,m)=>n(c,f-1,[...o,String(m)]));return s.push(`... ${t.length-50} more items`),s}return t.map((s,c)=>n(s,f-1,[...o,String(c)]))}const u={};try{const s=Object.keys(t);for(const c of s){if(c==="compilerOptions"){u[c]="[Vue Compiler Options]";continue}u[c]=n(t[c],f-1,[...o,c])}}catch{return"[Object Error]"}return u}return n(e,i)}function k(e,i){if(!g(e))return{};const r={};for(const n of i)n in e&&(r[n]=e[n]);return r}function S(e,i){if(!g(e))return{};const r={...e};for(const n of i)delete r[n];return r}export{y as calculateObjectSize,a as formatStorageSize,B as getValueByPath,S as omit,p as parseValue,k as pick,d as serializeCircular,h as setValueByPath};
1
+ import{isObject as p}from"./language.js";function h(e,i,n){if(e==null||typeof i!="string")return;const r=i.replace(/\[(\d+)\]/g,".$1").split(".").filter(o=>o!=="");if(r.length===0)return;let t=e;const f=r.length-1;for(let o=0;o<f;o++){const s=r[o];if(!t[s]){const c=r[o+1];t[s]=/^\d+$/.test(c)?[]:{}}t=t[s]}t[r[f]]=n}function B(e,i,n){if(e==null||typeof i!="string")return n;const r=i.replace(/\[(\d+)\]/g,".$1").split(".").filter(f=>f!=="");let t=e;for(const f of r){if(t==null)return n;t=t[f]}return t!==void 0?t:n}function g(e){if(e=m(e),e==null)return 0;const i=typeof e;if(i==="boolean")return 4;if(i==="number")return 8;if(i==="string")return e.length*2;if(i==="symbol"||e instanceof Date)return 8;if(e instanceof RegExp)return g(e.source)+g(e.flags);let n=0;if(n+=24,Array.isArray(e)){n+=4;for(const r of e)n+=8,n+=g(r)}else for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n+=r.length*2,n+=8,n+=g(e[r]));return n}function d(e,i={}){const{precision:n=2,useBinary:r=!0,includeUnit:t=!0}=i;if(e===0)return t?"0 Bytes":"0";const f=r?["B","KiB","MiB","GiB","TiB","PiB"]:["B","KB","MB","GB","TB","PB"],o=r?1024:1e3;let s=0;for(;e>=o&&s<f.length-1;)e/=o,s++;const c=e.toFixed(n);return t?`${c} ${f[s]}`:c}function k(e,i={maxDepth:10}){try{const n=m(e,i.maxDepth||10);return JSON.stringify(n)}catch(n){return`[Serialization Error: ${String(n)}]`}}function m(e,i=6){const n=new WeakMap;function r(t,f,o=[]){if(t===null)return"null";if(t===void 0)return"undefined";if(typeof t=="boolean")return t;if(typeof t=="number")return isNaN(t)?"NaN":t===1/0?"Infinity":t===-1/0?"-Infinity":t;if(typeof t=="bigint")return t.toString()+"n";if(typeof t=="symbol")return t.toString();if(typeof t=="function")return"f(...args) { ... }";if(typeof t=="string")return t.length>2e3?t.slice(0,2e3)+"...":t;if(typeof t!="object")return t;if(t instanceof Error)return{name:t.name,message:t.message,stack:t.stack};const s=t;if(s._isVue||s.__v_skip||s.$&&s.$.vnode)return"[Vue Component]";if(f<=0)return"[MaxDepth]";if(n.has(t))return`[Circular: ${n.get(t).join(".")||"root"}]`;if(n.set(t,[...o]),Array.isArray(t)){if(t.length>50){const y=t.slice(0,50).map((u,l)=>r(u,f-1,[...o,String(l)]));return y.push(`... ${t.length-50} more items`),y}return t.map((y,u)=>r(y,f-1,[...o,String(u)]))}const c={};try{const y=Object.keys(t);for(const u of y){if(u==="compilerOptions"){c[u]="[Vue Compiler Options]";continue}c[u]=r(t[u],f-1,[...o,u])}}catch{return"[Object Error]"}return c}return r(e,i)}function S(e,i){if(!p(e))return{};const n={};for(const r of i)r in e&&(n[r]=e[r]);return n}function $(e,i){if(!p(e))return{};const n={...e};for(const r of i)delete n[r];return n}export{g as calculateObjectSize,d as formatStorageSize,B as getValueByPath,$ as omit,m as parseValue,S as pick,k as serializeCircular,h as setValueByPath};
@@ -1,2 +1 @@
1
1
  export declare function openOutLink(url?: string): void;
2
- //# sourceMappingURL=openLink.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * @return {*}
5
5
  */
6
6
  export declare function getCurrentPagePath(): string;
7
- //# sourceMappingURL=page.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare function isH5(): boolean;
2
2
  export declare function isWX(): boolean;
3
3
  export declare function isAndroid(): boolean;
4
- //# sourceMappingURL=platform.d.ts.map
@@ -67,4 +67,3 @@ export declare function splitStrByUrl(str: string): {
67
67
  * http|https|www
68
68
  */
69
69
  export declare function hasUrl(str: string): boolean;
70
- //# sourceMappingURL=string.d.ts.map
@@ -20,4 +20,3 @@ export declare function deepEqual(a: unknown, b: unknown, options?: DeepEqualOpt
20
20
  * TODO: 是否需要做更多的判断???
21
21
  */
22
22
  export declare function getPlatform(): string;
23
- //# sourceMappingURL=utils.d.ts.map