vite-uni-dev-tool 0.0.23 → 0.0.24

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 (40) hide show
  1. package/README.md +10 -3
  2. package/dist/core.d.ts +3 -3
  3. package/dist/core.d.ts.map +1 -1
  4. package/dist/core.js +47 -50
  5. package/dist/devEvent/index.d.ts.map +1 -1
  6. package/dist/devEvent/index.js +15 -7
  7. package/dist/devIntercept/index.d.ts.map +1 -1
  8. package/dist/devIntercept/index.js +56 -55
  9. package/dist/devStore/index.d.ts +5 -1
  10. package/dist/devStore/index.d.ts.map +1 -1
  11. package/dist/devStore/index.js +16 -14
  12. package/dist/type.d.ts +4 -0
  13. package/dist/type.d.ts.map +1 -1
  14. package/dist/v2/AutoSizer/index.vue +1 -1
  15. package/dist/v2/ConsoleList/ConsoleItem.vue +1 -1
  16. package/dist/v2/DevToolButton/index.vue +2 -2
  17. package/dist/v3/AutoSizer/index.vue +1 -1
  18. package/dist/v3/CaptureScreen/index.vue +5 -1
  19. package/dist/v3/ConsoleList/ConsoleItem.vue +1 -1
  20. package/dist/v3/ConsoleList/RunJSInput.vue +1 -0
  21. package/dist/v3/DevToolButton/index.vue +3 -2
  22. package/dist/v3/DevToolWindow/index.vue +16 -0
  23. package/dist/v3/JsonPretty/components/Brackets/index.vue +3 -0
  24. package/dist/v3/JsonPretty/components/Carets/index.vue +2 -3
  25. package/dist/v3/NetworkList/InterceptConfig.vue +13 -34
  26. package/dist/v3/NetworkList/NetworkDetail.vue +11 -16
  27. package/dist/v3/NetworkList/NetworkSend.vue +20 -29
  28. package/dist/v3/RunJS/index.vue +1 -1
  29. package/dist/v3/SettingList/const.d.ts +2 -0
  30. package/dist/v3/SettingList/const.d.ts.map +1 -0
  31. package/dist/v3/SettingList/index.vue +7 -3
  32. package/dist/v3/SourceCode/Line.vue +2 -1
  33. package/dist/v3/Tabs/index.vue +4 -0
  34. package/dist/v3/Tag/index.vue +1 -1
  35. package/dist/v3/UniEvent/index.vue +7 -6
  36. package/dist/v3/UploadList/UploadDetail.vue +2 -2
  37. package/dist/v3/UploadList/index.vue +3 -3
  38. package/dist/v3/WebSocket/WebSocketDetail.vue +9 -15
  39. package/dist/v3/WebSocket/WebSocketItem.vue +6 -7
  40. package/package.json +1 -1
package/README.md CHANGED
@@ -121,9 +121,9 @@ optimizeDeps: {
121
121
  | ---- | ---- |
122
122
  | N | Y |
123
123
 
124
- | 微信小程序 | 安卓 | 其他 |
125
- | ---------- | ---- | ------ |
126
- | Y | Y | 未测试 |
124
+ | 微信小程序 | 安卓 | h5 | 其他 |
125
+ | ---------- | ---- | --- | ------ |
126
+ | Y | Y | Y | 未测试 |
127
127
 
128
128
  ### 安全性声明
129
129
 
@@ -198,6 +198,13 @@ optimizeDeps: {
198
198
 
199
199
  ## 更新日志
200
200
 
201
+ ### 0.0.24
202
+
203
+ - 修复缺失的key
204
+ - 优化版本信息
205
+ - 优化插件初始化逻辑
206
+ - 解决部分控制台 warn
207
+
201
208
  ### 0.0.23
202
209
 
203
210
  - 兼容微信小程序 拦截store
package/dist/core.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { DevConsole } from './devConsole';
1
2
  import { DevTool } from './type';
2
3
  import { EventBus } from './devEventBus';
3
4
 
@@ -34,10 +35,9 @@ declare const backup: {
34
35
  $emit: (eventName: string, param?: any) => void;
35
36
  $off: (eventName?: string | string[] | undefined, callback?: ((result: any) => void) | undefined) => void;
36
37
  __log__: any;
37
- originalConsole: Console;
38
38
  };
39
39
  declare const eventBus: EventBus;
40
- declare const consoleProxy: any;
40
+ declare const console: DevConsole;
41
41
  declare function getDevToolOptions(): DevTool.DevToolOptions | undefined;
42
42
  declare function initDevTool(options?: DevTool.DevToolOptions): void;
43
43
  declare function showDevToolButton(): void;
@@ -48,5 +48,5 @@ declare function createDevTool(): void;
48
48
  declare function destroyDevTool(): void;
49
49
  declare function interceptVuexStorage(store: any): void;
50
50
  declare function interceptPiniaStore(context: any): any;
51
- export { backup, consoleProxy as console, initDevTool, createDevTool, destroyDevTool, showDevToolButton, hideDevToolButton, openDevToolWindow, closeDevToolWindow, getDevToolOptions, interceptVuexStorage, interceptPiniaStore, eventBus, };
51
+ export { backup, console, initDevTool, createDevTool, destroyDevTool, showDevToolButton, hideDevToolButton, openDevToolWindow, closeDevToolWindow, getDevToolOptions, interceptVuexStorage, interceptPiniaStore, eventBus, };
52
52
  //# sourceMappingURL=core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../dev/core.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC;;;;;GAKG;AACH,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBX,CAAC;AAEF,QAAA,MAAM,QAAQ,UAAiB,CAAC;AAShC,QAAA,MAAM,YAAY,EAAE,GAkBnB,CAAC;AAEF,iBAAS,iBAAiB,uCAEzB;AAED,iBAAS,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,QAsBpD;AAED,iBAAS,iBAAiB,SAMzB;AAED,iBAAS,iBAAiB,SAMzB;AAED,iBAAS,iBAAiB,SAMzB;AAED,iBAAS,kBAAkB,SAM1B;AAED,iBAAS,aAAa,SAUrB;AAED,iBAAS,cAAc,SAMtB;AAED,iBAAS,oBAAoB,CAAC,KAAK,EAAE,GAAG,QAMvC;AAED,iBAAS,mBAAmB,CAAC,OAAO,EAAE,GAAG,OAMxC;AAED,OAAO,EACL,MAAM,EACN,YAAY,IAAI,OAAO,EACvB,WAAW,EACX,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,QAAQ,GACT,CAAC"}
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../dev/core.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKzC;;;;;GAKG;AACH,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBX,CAAC;AAEF,QAAA,MAAM,QAAQ,UAAiB,CAAC;AAOhC,QAAA,MAAM,OAAO,YAAwB,CAAC;AAOtC,iBAAS,iBAAiB,uCAEzB;AAED,iBAAS,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,QAqBpD;AAED,iBAAS,iBAAiB,SAMzB;AAED,iBAAS,iBAAiB,SAMzB;AAED,iBAAS,iBAAiB,SAMzB;AAED,iBAAS,kBAAkB,SAM1B;AAED,iBAAS,aAAa,SAUrB;AAED,iBAAS,cAAc,SAMtB;AAED,iBAAS,oBAAoB,CAAC,KAAK,EAAE,GAAG,QAMvC;AAED,iBAAS,mBAAmB,CAAC,OAAO,EAAE,GAAG,OAMxC;AAED,OAAO,EACL,MAAM,EACN,OAAO,EACP,WAAW,EACX,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,QAAQ,GACT,CAAC"}
package/dist/core.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { DevStore as c } from "./devStore/index.js";
2
- import { DevEvent as f } from "./devEvent/index.js";
3
- import { DevIntercept as D } from "./devIntercept/index.js";
2
+ import { DevEvent as u } from "./devEvent/index.js";
3
+ import { DevIntercept as a } from "./devIntercept/index.js";
4
4
  import { DevConsole as v } from "./devConsole/index.js";
5
- import { EventBus as m } from "./devEventBus/index.js";
6
- const a = {
5
+ import { EventBus as D } from "./devEventBus/index.js";
6
+ const i = "0.0.24", l = "2025/12/24 10:51:44", g = {
7
7
  // log: console.log,
8
8
  // info: console.info,
9
9
  // warn: console.warn,
@@ -21,100 +21,97 @@ const a = {
21
21
  $once: uni.$once,
22
22
  $emit: uni.$emit,
23
23
  $off: uni.$off,
24
- __log__: uni.__log__,
25
- originalConsole: console
26
- }, S = new m();
27
- let r, e, i, n;
28
- const t = new Proxy(
29
- {},
30
- {
31
- get(o, l) {
32
- return i && l in i ? i[l] : a.originalConsole[l];
33
- },
34
- apply(o, l, u) {
35
- return i ? i.apply(l, u) : a.originalConsole.apply(l, u);
36
- }
37
- }
38
- );
39
- function p() {
40
- return r.getDevToolOptions();
24
+ __log__: uni.__log__
25
+ }, m = new D(), t = new c(), e = new u({
26
+ store: t,
27
+ eventBus: m
28
+ }), r = new v(e), n = new a({
29
+ event: e,
30
+ enableInterceptPromiseReject: t == null ? void 0 : t.enableInterceptPromiseReject
31
+ });
32
+ uni.__dev__console = r;
33
+ function s() {
34
+ return t.getDevToolOptions();
41
35
  }
42
36
  function _(o) {
43
- o != null && o.mode || i.error("[DevTool] 请传入 mode: import.meta.env.MODE"), r = new c(), e = new f({
44
- store: r,
45
- eventBus: S
46
- }), i = new v(e), uni.__dev__console = i, r.setDevToolOptions(o || { mode: "" }), n = new D({
37
+ o != null && o.mode || r.error("[DevTool] 请传入 mode: import.meta.env.MODE"), t.setDevToolOptions({
38
+ ...o || { mode: "" },
39
+ devToolVersion: i,
40
+ devToolBuildTime: l
41
+ }), n.interceptVue(o == null ? void 0 : o.vueInstance), n.init({
47
42
  event: e,
48
- enableInterceptPromiseReject: r == null ? void 0 : r.enableInterceptPromiseReject
49
- }), n.interceptVue(o == null ? void 0 : o.vueInstance);
43
+ enableInterceptPromiseReject: o == null ? void 0 : o.enableInterceptPromiseReject
44
+ }), r.warn(
45
+ `[DevTool] 初始化成功 ,当前版本:${i} 构建时间:${l},有问题前往反馈:https://gitee.com/cloud_l/vite-uni-dev-tool`
46
+ );
50
47
  }
51
- function y() {
48
+ function p() {
52
49
  if (!e) {
53
- t.warn("[DevTool] 请先初始化调试工具");
50
+ r.warn("[DevTool] 请先初始化调试工具1");
54
51
  return;
55
52
  }
56
53
  e == null || e.showDevToolButton();
57
54
  }
58
- function P() {
55
+ function $() {
59
56
  if (!e) {
60
- t.warn("[DevTool] 请先初始化调试工具");
57
+ r.warn("[DevTool] 请先初始化调试工具2");
61
58
  return;
62
59
  }
63
60
  e == null || e.hideDevToolButton();
64
61
  }
65
- function $() {
62
+ function P() {
66
63
  if (!e) {
67
- t.warn("[DevTool] 请先初始化调试工具");
64
+ r.warn("[DevTool] 请先初始化调试工具3");
68
65
  return;
69
66
  }
70
67
  e == null || e.openDevToolWindow();
71
68
  }
72
69
  function j() {
73
70
  if (!e) {
74
- t.warn("[DevTool] 请先初始化调试工具");
71
+ r.warn("[DevTool] 请先初始化调试工具4");
75
72
  return;
76
73
  }
77
74
  e == null || e.closeDevToolWindow();
78
75
  }
79
- function B() {
76
+ function y() {
80
77
  if (!e) {
81
- t.warn("[DevTool] 请先初始化调试工具");
78
+ r.warn("[DevTool] 请先初始化调试工具5");
82
79
  return;
83
80
  }
84
81
  e == null || e.createDevTool(), n == null || n.init({
85
82
  event: e,
86
- enableInterceptPromiseReject: r == null ? void 0 : r.enableInterceptPromiseReject
83
+ enableInterceptPromiseReject: t == null ? void 0 : t.enableInterceptPromiseReject
87
84
  });
88
85
  }
89
86
  function I() {
90
87
  if (!e) {
91
- t.warn("[DevTool] 请先初始化调试工具");
88
+ r.warn("[DevTool] 请先初始化调试工具6");
92
89
  return;
93
90
  }
94
91
  e == null || e.destroyDevTool();
95
92
  }
96
93
  function b(o) {
97
94
  if (!n) {
98
- t.warn("[DevTool] 请先初始化调试工具");
95
+ r.warn("[DevTool] 请先初始化调试工具7");
99
96
  return;
100
97
  }
101
98
  return n == null ? void 0 : n.interceptVuexStorage(o);
102
99
  }
103
- function C(o) {
104
- return n ? (n == null ? void 0 : n.interceptPiniaStore(o)) ?? (() => o == null ? void 0 : o.pinia) : (t.warn("[DevTool] 请先初始化调试工具"), () => o == null ? void 0 : o.pinia);
100
+ function B(o) {
101
+ return n ? (n == null ? void 0 : n.interceptPiniaStore(o)) ?? (() => o == null ? void 0 : o.pinia) : (r.warn("[DevTool] 请先初始化调试工具8"), () => o == null ? void 0 : o.pinia);
105
102
  }
106
103
  export {
107
- a as backup,
104
+ g as backup,
108
105
  j as closeDevToolWindow,
109
- t as console,
110
- B as createDevTool,
106
+ r as console,
107
+ y as createDevTool,
111
108
  I as destroyDevTool,
112
- S as eventBus,
113
- p as getDevToolOptions,
114
- P as hideDevToolButton,
109
+ m as eventBus,
110
+ s as getDevToolOptions,
111
+ $ as hideDevToolButton,
115
112
  _ as initDevTool,
116
- C as interceptPiniaStore,
113
+ B as interceptPiniaStore,
117
114
  b as interceptVuexStorage,
118
- $ as openDevToolWindow,
119
- y as showDevToolButton
115
+ P as openDevToolWindow,
116
+ p as showDevToolButton
120
117
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../dev/devEvent/index.ts"],"names":[],"mappings":";AAsCA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAavC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;;GAKG;AACH,qBAAa,QAAQ;IACnB,OAAO,CAAC,KAAK,CAAW;IAExB,OAAO,CAAC,QAAQ,CAAW;gBAEf,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;QAAE,KAAK,EAAE,QAAQ,CAAC;QAAC,QAAQ,EAAE,QAAQ,CAAA;KAAE;IAMxE;;;;;OAKG;IACG,aAAa;IAkBnB;;;;OAIG;IACH,WAAW,kCAAsC;IAEjD;;;;;OAKG;IACH,aAAa;IAUb;;;;;OAKG;IACH,cAAc;IA0Cd;;;;OAIG;IACH,cAAc;IAQd;;;;OAIG;IACH,iB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, DEV_WEBSOCKET_CLEAR_MESSAGE as g, DEV_UPLOAD_CLEAR as D, DEV_STORAGE_CLEAR as v, DEV_STORAGE_REFRESH as T, DEV_STORAGE_REMOVE as _, DEV_STORAGE_ADD as S, DEV_STORAGE_UPDATE as f, DEV_PAGE_JUMP as d, DEV_BUTTON_SHOW_OR_HIDE as I, DEV_RESTART_DEBUGGER as y, DEV_RESTART_APP as m, DEV_EXPORT_LOG as L, DEV_VUEX_CHANGE as C, DEV_PINIA_CHANGE as R, DEV_LOG_CACHE_CLEAR as M, DEV_DESTROY as V, DEV_WINDOW_OPEN as A, DEV_WINDOW_CLOSE as N, DEV_ROUTE_REFRESH as w, DEV_OPTION_GET as O, DEV_UNI_EVENT_CLEAR as P, DEV_RUN_JS as U, DEV_CAPTURE_SCREEN_CLEAR as W, DEV_INTERCEPT_NETWORK_UPDATE as x, DEV_INTERCEPT_NETWORK_REMOVE as k, DEV_CHANGE_CACHE_INTERCEPT_CONFIG as B } from "../const.js";
2
+ import { DEV_APP_MESSAGE as a, DEV_WINDOW_VISIBLE as n, DEV_BUTTON_VISIBLE as p, DEV_OPTION_SEND as l, DEV_WINDOW_MESSAGE as h, DEV_CONSOLE_CLEAR as c, DEV_NETWORK_CLEAR as u, DEV_WEBSOCKET_CLEAR as E, DEV_WEBSOCKET_CLEAR_MESSAGE as g, DEV_UPLOAD_CLEAR as D, DEV_STORAGE_CLEAR as v, DEV_STORAGE_REFRESH as T, DEV_STORAGE_REMOVE as _, DEV_STORAGE_ADD as S, DEV_STORAGE_UPDATE as f, DEV_PAGE_JUMP as d, DEV_BUTTON_SHOW_OR_HIDE as I, DEV_RESTART_DEBUGGER as y, DEV_RESTART_APP as m, DEV_EXPORT_LOG as L, DEV_VUEX_CHANGE as C, DEV_PINIA_CHANGE as R, DEV_LOG_CACHE_CLEAR as M, DEV_DESTROY as V, DEV_WINDOW_OPEN as w, DEV_WINDOW_CLOSE as A, DEV_ROUTE_REFRESH as N, DEV_OPTION_GET as O, DEV_UNI_EVENT_CLEAR as P, DEV_RUN_JS as U, DEV_CAPTURE_SCREEN_CLEAR as W, DEV_INTERCEPT_NETWORK_UPDATE as x, DEV_INTERCEPT_NETWORK_REMOVE as k, DEV_CHANGE_CACHE_INTERCEPT_CONFIG as B } from "../const.js";
3
3
  import "../utils/index.js";
4
4
  import { throttle as G } from "../utils/function.js";
5
5
  import { calculateObjectSize as F, formatStorageSize as b, parseValue as H } from "../utils/object.js";
@@ -34,7 +34,7 @@ class te {
34
34
  console.warn("[DevTool] 调试器已存在,不在重新创建");
35
35
  return;
36
36
  }
37
- this.store.setDevToolDestroy(!1), console.log("[DevTool] 调试器创建成功");
37
+ this.store.setDevToolDestroy(!1), console.warn("[DevTool] 调试器创建成功");
38
38
  }
39
39
  /**
40
40
  * 销毁调试器
@@ -44,7 +44,7 @@ class te {
44
44
  */
45
45
  destroyDevTool() {
46
46
  if (this.getDevToolDestroy()) {
47
- console.warn("[DevTool] 调试器已经销毁了,不在重新销毁");
47
+ console.warn("[DevTool] 调试器已经销毁了,不再重新销毁");
48
48
  return;
49
49
  }
50
50
  this.store.setRequestIndex(-1), this.store.setUploadIndex(-1), this.store.clearAll(), this.hideDevToolButton(), this.closeDevToolWindow(), this.resetInterceptAppConsole(), this.resetInterceptPromiseReject(), this.resetInterceptErrorApp(), this.resetInterceptWarnApp(), this.resetInterceptStorage(), this.resetInterceptUpload(), this.resetInterceptRequest(), this.resetInterceptNavigateTo(), this.resetInterceptSwitchTab(), this.resetUniEvent(), this.store.setDevToolDestroy(!0), console.warn("[DevTool] 调试器已销毁");
@@ -63,9 +63,13 @@ class te {
63
63
  * @memberof DevEvent
64
64
  */
65
65
  openDevToolWindow() {
66
- this.getDevToolDestroy() || (setTimeout(async () => {
66
+ if (this.getDevToolDestroy()) {
67
+ console.warn("[DevTool] 调试器已销毁");
68
+ return;
69
+ }
70
+ setTimeout(async () => {
67
71
  this.postMessage();
68
- }, 100), this.eventBus.emit(n, !0));
72
+ }, 100), this.eventBus.emit(n, !0);
69
73
  }
70
74
  /**
71
75
  * 关闭调试器窗口
@@ -73,7 +77,11 @@ class te {
73
77
  * @memberof DevEvent
74
78
  */
75
79
  closeDevToolWindow() {
76
- this.getDevToolDestroy() || this.eventBus.emit(n, !1);
80
+ if (this.getDevToolDestroy()) {
81
+ console.warn("[DevTool] 调试器已销毁");
82
+ return;
83
+ }
84
+ this.eventBus.emit(n, !1);
77
85
  }
78
86
  /**
79
87
  * 显示调试按钮
@@ -142,7 +150,7 @@ class te {
142
150
  h,
143
151
  (e) => {
144
152
  var t;
145
- e.type === c ? this.store.clearConsoleList() : e.type === u ? (this.store.clearNetworkList(), this.postMessage()) : e.type === E ? (this.store.clearWsList(), this.postMessage()) : e.type === g ? (console.log("data: ", e), this.store.clearWsMessage(e.data.url), this.postMessage()) : e.type === D ? (this.store.clearUploadList(), this.postMessage()) : e.type === v ? (this.store.clearStorageList(!0), this.postMessage()) : e.type === T ? (this.store.refreshStore(), this.postMessage()) : e.type === _ ? (this.store.removeStorage(e.data.key + "", !0), this.postMessage()) : e.type === S ? (this.store.addStorage(e.data, !0), this.postMessage()) : e.type === f ? (this.store.updateStore(e.data), this.postMessage()) : e.type === d ? ((t = e.data) == null ? void 0 : t.type) === "nav" ? this.switchTo(e.data.path ?? "") : this.navigateTo(e.data.path ?? "") : e.type === I ? (e.data.show ? this.showDevToolButton() : this.hideDevToolButton(), this.postMessage()) : e.type === y ? this.restartDevTool() : e.type === m ? this.restartApp() : e.type === L ? this.exportLog(e.data) : e.type === C ? (this.store.updateVuexStore(e.data), this.postMessage()) : e.type === R ? (this.store.updatePiniaStore(e.data), this.postMessage()) : e.type === M ? this.store.clearDevCache() : e.type === V ? this.destroyDevTool() : e.type === A ? this.openDevToolWindow() : e.type === N ? this.closeDevToolWindow() : e.type === w ? this.refreshRouteList() : e.type === O ? this.sendDevToolOption() : e.type === P ? this.uniEventClear() : e.type === U ? this.devRunJS(e.data.code) : e.type === W ? this.store.clearCaptureScreenList() : e.type === x ? this.updateInterceptNetworkList(e.data) : e.type === k ? this.removeInterceptNetwork(e.data) : e.type === B && this.changeCacheInterceptConfig(e.data);
153
+ e.type === c ? this.store.clearConsoleList() : e.type === u ? (this.store.clearNetworkList(), this.postMessage()) : e.type === E ? (this.store.clearWsList(), this.postMessage()) : e.type === g ? (console.log("data: ", e), this.store.clearWsMessage(e.data.url), this.postMessage()) : e.type === D ? (this.store.clearUploadList(), this.postMessage()) : e.type === v ? (this.store.clearStorageList(!0), this.postMessage()) : e.type === T ? (this.store.refreshStore(), this.postMessage()) : e.type === _ ? (this.store.removeStorage(e.data.key + "", !0), this.postMessage()) : e.type === S ? (this.store.addStorage(e.data, !0), this.postMessage()) : e.type === f ? (this.store.updateStore(e.data), this.postMessage()) : e.type === d ? ((t = e.data) == null ? void 0 : t.type) === "nav" ? this.switchTo(e.data.path ?? "") : this.navigateTo(e.data.path ?? "") : e.type === I ? (e.data.show ? this.showDevToolButton() : this.hideDevToolButton(), this.postMessage()) : e.type === y ? this.restartDevTool() : e.type === m ? this.restartApp() : e.type === L ? this.exportLog(e.data) : e.type === C ? (this.store.updateVuexStore(e.data), this.postMessage()) : e.type === R ? (this.store.updatePiniaStore(e.data), this.postMessage()) : e.type === M ? this.store.clearDevCache() : e.type === V ? this.destroyDevTool() : e.type === w ? this.openDevToolWindow() : e.type === A ? this.closeDevToolWindow() : e.type === N ? this.refreshRouteList() : e.type === O ? this.sendDevToolOption() : e.type === P ? this.uniEventClear() : e.type === U ? this.devRunJS(e.data.code) : e.type === W ? this.store.clearCaptureScreenList() : e.type === x ? this.updateInterceptNetworkList(e.data) : e.type === k ? this.removeInterceptNetwork(e.data) : e.type === B && this.changeCacheInterceptConfig(e.data);
146
154
  }
147
155
  );
148
156
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../dev/devIntercept/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AASvC;;;;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gBAAa;IACvB,UAAU,gBAAa;IACvB,SAAS,gBAAa;gBAEV,OAAO,EAAE,OAAO,CAAC,mBAAmB;IAIhD,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,mBAAmB;IAqBzC;;;;OAIG;IACH,mBAAmB;IA8BnB;;;;OAIG;IACH,YAAY,CAAC,WAAW,EAAE,GAAG;IA+B7B;;;;OAIG;IACH,iBAAiB;IA0BjB;;;;;OAKG;IACH,iBAAiB,CAAC,KAAK,EAAE,KAAK;IAuB9B,OAAO,EAAE,GAAG,CAAC;IACb;;;;;;OAMG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM;IAgC7B;;;;OAIG;IACH,sBAAsB;IAUtB;;;;OAIG;IACH,kBAAkB;IAelB;;;;OAIG;IACH,mBAAmB;IAcnB;;;;OAIG;IACH,gBAAgB;IAkLhB;;;;OAIG;IACH,eAAe;IAwKf;;;;OAIG;IACH,mBAAmB;IAoCnB;;;;OAIG;IACH,qBAAqB;IAkBrB;;;;OAIG;IACH,sBAAsB;IAuBtB,aAAa;IACb,oBAAoB,CAAC,KAAK,EAAE,GAAG;IAW/B,cAAc;IACd,mBAAmB,CAAC,OAAO,EAAE,GAAG;IAmBhC;;;;OAIG;IACH,mBAAmB;IA8FnB,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,aAAa;IAqBpD,iBAAiB;IAQjB;;;;OAIG;IACH,sBAAsB;CAYvB"}
@@ -1,13 +1,13 @@
1
1
  import { backup as y } from "../core.js";
2
2
  import "../utils/index.js";
3
3
  import { transformValueToView as x } from "../utils/language.js";
4
- import { getCurrentPagePath as w } from "../utils/page.js";
4
+ import { getCurrentPagePath as D } from "../utils/page.js";
5
5
  import { getCurrentDate as T } from "../utils/date.js";
6
6
  import { parseValue as F } from "../utils/object.js";
7
7
  import { escapeHTML as V } from "../utils/string.js";
8
8
  class K {
9
9
  constructor(e) {
10
- this.initPinia = !1, this.cache$on = /* @__PURE__ */ new Map(), this.cache$once = /* @__PURE__ */ new Map(), this.cache$emit = /* @__PURE__ */ new Map(), this.cache$off = /* @__PURE__ */ new Map(), this.event = e.event, this.init(e);
10
+ this.initPinia = !1, this.cache$on = /* @__PURE__ */ new Map(), this.cache$once = /* @__PURE__ */ new Map(), this.cache$emit = /* @__PURE__ */ new Map(), this.cache$off = /* @__PURE__ */ new Map(), this.event = e.event;
11
11
  }
12
12
  init(e) {
13
13
  this.interceptAppError(), this.interceptAppConsole(), this.interceptSetStorage(), this.interceptRemoveStorage(), this.interceptClearStorage(), this.interceptUploadFile(), this.interceptRequest(), this.interceptSocket(), this.interceptSwitchTab(), this.interceptNavigateTo(), this.interceptUniEvent(), e.enableInterceptPromiseReject && this.interceptPromiseReject();
@@ -22,7 +22,7 @@ class K {
22
22
  return;
23
23
  const e = this;
24
24
  uni.__log__ = function(r, t, ...n) {
25
- const a = w();
25
+ const a = D();
26
26
  y.__log__(r, t, ...n), e.event.updateConsoleList([
27
27
  {
28
28
  type: r,
@@ -74,7 +74,7 @@ class K {
74
74
  value: r
75
75
  }
76
76
  ],
77
- position: w(),
77
+ position: D(),
78
78
  time: T(),
79
79
  stack: t
80
80
  }
@@ -100,7 +100,7 @@ class K {
100
100
  value: e.toString()
101
101
  }
102
102
  ],
103
- position: w(),
103
+ position: D(),
104
104
  time: T(),
105
105
  stack: t
106
106
  }
@@ -114,11 +114,11 @@ class K {
114
114
  * @memberof DevIntercept
115
115
  */
116
116
  interceptWarnVue(e) {
117
- var c, l, u, m;
117
+ var c, o, u, m;
118
118
  if (this.preWarn === e)
119
119
  return;
120
120
  this.preWarn = e;
121
- const r = w(), t = (l = (c = new Error()) == null ? void 0 : c.stack) == null ? void 0 : l.split(`
121
+ const r = D(), t = (o = (c = new Error()) == null ? void 0 : c.stack) == null ? void 0 : o.split(`
122
122
  `), n = (u = t == null ? void 0 : t.slice(2)) == null ? void 0 : u[0];
123
123
  console.warn(e);
124
124
  const a = (m = e.split(`
@@ -163,9 +163,9 @@ class K {
163
163
  invoke(r) {
164
164
  const t = r.complete;
165
165
  r.complete = function(n) {
166
- var c, l, u;
166
+ var c, o, u;
167
167
  t && t(n);
168
- const a = ((u = (l = (c = r.url) == null ? void 0 : c.slice(1)) == null ? void 0 : l.split("?")) == null ? void 0 : u[0]) || "/";
168
+ const a = ((u = (o = (c = r.url) == null ? void 0 : c.slice(1)) == null ? void 0 : o.split("?")) == null ? void 0 : u[0]) || "/";
169
169
  e.event.updateCurrentPagePath(a);
170
170
  };
171
171
  }
@@ -182,9 +182,9 @@ class K {
182
182
  invoke(r) {
183
183
  const t = r.complete;
184
184
  r.complete = function(n) {
185
- var c, l, u;
185
+ var c, o, u;
186
186
  t && t(n);
187
- const a = ((u = (l = (c = r.url) == null ? void 0 : c.slice(1)) == null ? void 0 : l.split("?")) == null ? void 0 : u[0]) || "/";
187
+ const a = ((u = (o = (c = r.url) == null ? void 0 : c.slice(1)) == null ? void 0 : o.split("?")) == null ? void 0 : u[0]) || "/";
188
188
  e.event.updateCurrentPagePath(a);
189
189
  };
190
190
  }
@@ -199,9 +199,9 @@ class K {
199
199
  const e = this;
200
200
  uni.addInterceptor("request", {
201
201
  invoke(r) {
202
- var P, D, E, b, U, H, j;
203
- const t = e.event.getRequestIndex(), n = e.event.setRequestIndex(t + 1), a = r.url, c = (P = a == null ? void 0 : a.split("?")) == null ? void 0 : P[0], l = c == null ? void 0 : c.lastIndexOf("/"), u = (c == null ? void 0 : c.slice(l + 1)) ?? "", m = (E = (D = new Error()) == null ? void 0 : D.stack) == null ? void 0 : E.split(`
204
- `), v = m == null ? void 0 : m[5], s = e.event.getInterceptNetworkMap(), d = `${(b = r.method) == null ? void 0 : b.toUpperCase()}|${c}`, i = s == null ? void 0 : s.get(d), o = {
202
+ var L, P, E, b, U, H, j;
203
+ const t = e.event.getRequestIndex(), n = e.event.setRequestIndex(t + 1), a = r.url, c = (L = a == null ? void 0 : a.split("?")) == null ? void 0 : L[0], o = c == null ? void 0 : c.lastIndexOf("/"), u = (c == null ? void 0 : c.slice(o + 1)) ?? "", m = (E = (P = new Error()) == null ? void 0 : P.stack) == null ? void 0 : E.split(`
204
+ `), v = m == null ? void 0 : m[5], s = e.event.getInterceptNetworkMap(), d = `${(b = r.method) == null ? void 0 : b.toUpperCase()}|${c}`, i = s == null ? void 0 : s.get(d), l = {
205
205
  index: n,
206
206
  stack: v,
207
207
  url: r.url,
@@ -230,40 +230,40 @@ class K {
230
230
  },
231
231
  size: ""
232
232
  };
233
- i && (o.headers.requestHeader = {
234
- ...o.headers.requestHeader,
233
+ i && (l.headers.requestHeader = {
234
+ ...l.headers.requestHeader,
235
235
  // 拦截规则中的请求头权重更高
236
236
  ...i.headers.requestHeader
237
- }, o.payload = {
237
+ }, l.payload = {
238
238
  ...i.payload
239
- }, o.intercepted = !0, Object.assign(r, { timeout: i.timeout })), e.event.updateNetworkList([o]);
239
+ }, l.intercepted = !0, Object.assign(r, { timeout: i.timeout })), e.event.updateNetworkList([l]);
240
240
  const p = {
241
241
  errMsg: ""
242
242
  };
243
- let C = !0;
244
- i && (p.statusCode = i.status, (H = (U = i == null ? void 0 : i.status) == null ? void 0 : U.toString()) != null && H.startsWith("2") ? (C = !0, p.errMsg = "request:ok", p.header = (j = i.headers.responseHeader) == null ? void 0 : j.reduce(
243
+ let w = !0;
244
+ i && (p.statusCode = i.status, (H = (U = i == null ? void 0 : i.status) == null ? void 0 : U.toString()) != null && H.startsWith("2") ? (w = !0, p.errMsg = "request:ok", p.header = (j = i.headers.responseHeader) == null ? void 0 : j.reduce(
245
245
  (h, S) => ({
246
246
  ...h,
247
247
  [S.key]: S.value
248
248
  }),
249
249
  {}
250
- ), p.data = i.response.data) : (C = !1, p.errMsg = "request:fail"));
250
+ ), p.data = i.response.data) : (w = !1, p.errMsg = "request:fail"));
251
251
  let f = r.fail, g = r.success, k = r.complete;
252
252
  r.fail = function(h) {
253
- i ? C ? g == null || g(p) : f == null || f(p) : f == null || f(h);
253
+ i ? w ? g == null || g(p) : f == null || f(p) : f == null || f(h);
254
254
  }, r.success = function(h) {
255
- i ? C ? g == null || g(p) : f == null || f(p) : g == null || g(h);
255
+ i ? w ? g == null || g(p) : f == null || f(p) : g == null || g(h);
256
256
  }, r.complete = function(h) {
257
257
  var q, W;
258
- const S = Date.now() - o.startTime;
259
- o.time = S < 1e3 ? S + "ms" : S / 1e3 + "s", o.endTime = Date.now();
260
- const L = ((q = h == null ? void 0 : h.header) == null ? void 0 : q["Content-Length"]) || ((W = h == null ? void 0 : h.header) == null ? void 0 : W["content-length"]) || 0;
261
- o.size = L > 1024 ? (L / 1024).toFixed(2) + "k" : L + "b", i ? (k == null || k(p), o.status = i.status, o.response = p, o.headers.responseHeader = i.headers.responseHeader) : (k == null || k(h), o.status = h.statusCode ?? "error", o.response = h, o.headers.responseHeader = Object.entries(
258
+ const S = Date.now() - l.startTime;
259
+ l.time = S < 1e3 ? S + "ms" : S / 1e3 + "s", l.endTime = Date.now();
260
+ const C = ((q = h == null ? void 0 : h.header) == null ? void 0 : q["Content-Length"]) || ((W = h == null ? void 0 : h.header) == null ? void 0 : W["content-length"]) || 0;
261
+ l.size = C > 1024 ? (C / 1024).toFixed(2) + "k" : C + "b", i ? (k == null || k(p), l.status = i.status, l.response = p, l.headers.responseHeader = i.headers.responseHeader) : (k == null || k(h), l.status = h.statusCode ?? "error", l.response = h, l.headers.responseHeader = Object.entries(
262
262
  h.header ?? {}
263
263
  ).map(([$, I]) => ({
264
264
  key: $,
265
265
  value: I
266
- }))), e.event.updateNetworkList([o], n);
266
+ }))), e.event.updateNetworkList([l], n);
267
267
  };
268
268
  }
269
269
  });
@@ -277,12 +277,12 @@ class K {
277
277
  const e = this, r = function(t) {
278
278
  const n = t.url, a = Object.entries(t.header ?? {}).map(
279
279
  ([s, d]) => ({ key: s, value: d })
280
- ), c = (t.method ?? "GET").toLowerCase(), l = t.protocols ?? [];
280
+ ), c = (t.method ?? "GET").toLowerCase(), o = t.protocols ?? [];
281
281
  e.event.updateWsList({
282
282
  url: n,
283
283
  headers: a,
284
284
  method: c,
285
- protocols: l,
285
+ protocols: o,
286
286
  readyState: "connection",
287
287
  message: []
288
288
  });
@@ -294,7 +294,7 @@ class K {
294
294
  url: n,
295
295
  readyState: "open",
296
296
  headers: a,
297
- protocols: l,
297
+ protocols: o,
298
298
  message: [
299
299
  {
300
300
  data: "连接成功",
@@ -311,7 +311,7 @@ class K {
311
311
  url: n,
312
312
  readyState: "error",
313
313
  headers: a,
314
- protocols: l,
314
+ protocols: o,
315
315
  message: [
316
316
  {
317
317
  data: "连接失败",
@@ -336,7 +336,7 @@ class K {
336
336
  url: n,
337
337
  readyState: "error",
338
338
  headers: a,
339
- protocols: l,
339
+ protocols: o,
340
340
  message: [
341
341
  {
342
342
  data: JSON.stringify(d),
@@ -348,17 +348,17 @@ class K {
348
348
  });
349
349
  },
350
350
  success: (d) => {
351
- var i, o;
351
+ var i, l;
352
352
  (i = s == null ? void 0 : s.success) == null || i.call(s, d), e.event.updateWsList({
353
353
  readyState: "open",
354
354
  url: n,
355
355
  headers: a,
356
- protocols: l,
356
+ protocols: o,
357
357
  message: [
358
358
  {
359
359
  status: "success",
360
360
  time: Date.now(),
361
- data: (o = s.data) == null ? void 0 : o.toString(),
361
+ data: (l = s.data) == null ? void 0 : l.toString(),
362
362
  type: "send"
363
363
  }
364
364
  ]
@@ -376,7 +376,7 @@ class K {
376
376
  url: n,
377
377
  readyState: "closing",
378
378
  headers: a,
379
- protocols: l,
379
+ protocols: o,
380
380
  message: []
381
381
  }), v.call(u, {
382
382
  ...s,
@@ -386,7 +386,7 @@ class K {
386
386
  url: n,
387
387
  headers: a,
388
388
  readyState: "open",
389
- protocols: l,
389
+ protocols: o,
390
390
  message: []
391
391
  });
392
392
  },
@@ -396,7 +396,7 @@ class K {
396
396
  url: n,
397
397
  headers: a,
398
398
  readyState: "closed",
399
- protocols: l,
399
+ protocols: o,
400
400
  message: []
401
401
  });
402
402
  },
@@ -409,7 +409,7 @@ class K {
409
409
  e.event.updateWsList({
410
410
  url: n,
411
411
  headers: a,
412
- protocols: l,
412
+ protocols: o,
413
413
  message: [
414
414
  {
415
415
  status: "success",
@@ -498,19 +498,20 @@ class K {
498
498
  }
499
499
  /** 拦截vuex */
500
500
  interceptVuexStorage(e) {
501
- var r;
502
- this.event.setVuexList(e.state), (r = e == null ? void 0 : e.subscribe) == null || r.call(e, (t, n) => {
503
- this.event.setVuexList(n);
504
- });
501
+ var t;
502
+ this.event.setVuexList(e.state), !this.event.getDevToolDestroy() && ((t = e == null ? void 0 : e.subscribe) == null || t.call(e, (n, a) => {
503
+ this.event.setVuexList(a);
504
+ }));
505
505
  }
506
506
  /** 拦截pinia */
507
507
  interceptPiniaStore(e) {
508
- var r;
509
- return this.initPinia || (this.initPinia = !0, this.event.setPiniaStore(e.pinia)), this.event.setPiniaList(e.pinia.state.value), (r = e == null ? void 0 : e.store) == null || r.$subscribe(() => {
510
- this.event.setPiniaList({
511
- [e.store.$id]: e.store.$state
512
- });
513
- }), e.pinia;
508
+ var t;
509
+ if (this.initPinia || (this.initPinia = !0, this.event.setPiniaStore(e.pinia)), this.event.setPiniaList(e.pinia.state.value), !this.event.getDevToolDestroy())
510
+ return (t = e == null ? void 0 : e.store) == null || t.$subscribe(() => {
511
+ this.event.setPiniaList({
512
+ [e.store.$id]: e.store.$state
513
+ });
514
+ }), e.pinia;
514
515
  }
515
516
  /**
516
517
  * 拦截 uni.uploadFile
@@ -521,12 +522,12 @@ class K {
521
522
  const e = this, r = (t) => {
522
523
  var m, v;
523
524
  const n = e.event.getUploadIndex(), a = e.event.setUploadIndex(n + 1), c = (v = (m = new Error()) == null ? void 0 : m.stack) == null ? void 0 : v.split(`
524
- `), l = c == null ? void 0 : c[2];
525
+ `), o = c == null ? void 0 : c[2];
525
526
  e.event.updateUploadList(
526
527
  [
527
528
  {
528
529
  index: a,
529
- stack: l,
530
+ stack: o,
530
531
  name: t.name,
531
532
  url: t.url,
532
533
  filePath: t.filePath,
@@ -601,8 +602,8 @@ class K {
601
602
  interceptUniEventFactory(e) {
602
603
  const r = `$${e}`;
603
604
  uni[`$${e}`] = (t, n) => {
604
- var l, u, m, v;
605
- const a = (u = (l = new Error()) == null ? void 0 : l.stack) == null ? void 0 : u.split(`
605
+ var o, u, m, v;
606
+ const a = (u = (o = new Error()) == null ? void 0 : o.stack) == null ? void 0 : u.split(`
606
607
  `), c = a == null ? void 0 : a[2];
607
608
  (v = (m = y) == null ? void 0 : m[r]) == null || v.call(m, t, n), this.event.updateUniEventList([
608
609
  {
@@ -626,7 +627,7 @@ class K {
626
627
  uni.onUserCaptureScreen(() => {
627
628
  this.event.getDevToolDestroy() || this.event.updateCaptureScreenList([
628
629
  {
629
- position: w(),
630
+ position: D(),
630
631
  timer: T()
631
632
  }
632
633
  ]);
@@ -33,6 +33,8 @@ export declare class DevStore {
33
33
  enableInterceptPromiseReject: boolean;
34
34
  private zIndex;
35
35
  private cacheInterceptConfig;
36
+ private devToolVersion;
37
+ private devToolBuildTime;
36
38
  constructor();
37
39
  setDevToolVisible(visible: boolean): void;
38
40
  getDevToolVisible(): boolean;
@@ -49,7 +51,7 @@ export declare class DevStore {
49
51
  getUploadIndex(): number;
50
52
  setDevToolOptions(options: DevTool.DevToolOptions): void;
51
53
  getDevData(): Promise<{
52
- systemInfo: UniApp.GetSystemInfoResult;
54
+ systemInfo: UniApp.GetsystemsettingResult;
53
55
  deviceInfo: UniApp.GetDeviceInfoResult;
54
56
  windowInfo: UniApp.GetWindowInfoResult;
55
57
  devToolVisible: boolean;
@@ -95,6 +97,8 @@ export declare class DevStore {
95
97
  ip: any;
96
98
  };
97
99
  cacheInterceptConfig: boolean;
100
+ devToolVersion: string;
101
+ devToolBuildTime: string;
98
102
  consoleList?: DevTool.ConsoleItem[] | undefined;
99
103
  networkList?: DevTool.NetworkItem[] | undefined;
100
104
  storageList?: DevTool.StorageItem[] | undefined;