vite-uni-dev-tool 1.2.2 → 1.2.4
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 +33 -33
- package/dist/core.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -242,98 +242,98 @@ optimizeDeps: {
|
|
|
242
242
|
|
|
243
243
|
### 预览
|
|
244
244
|
|
|
245
|
-

|
|
246
246
|
|
|
247
247
|
- 调试按钮
|
|
248
248
|
|
|
249
|
-

|
|
250
250
|
|
|
251
251
|
- 支持 console 日志
|
|
252
252
|
|
|
253
|
-

|
|
254
254
|
|
|
255
255
|
- 支持 network 查看
|
|
256
256
|
|
|
257
|
-

|
|
258
|
+

|
|
259
|
+

|
|
260
|
+

|
|
261
|
+

|
|
262
|
+

|
|
263
|
+

|
|
264
264
|
|
|
265
265
|
- 支持 upload 查看
|
|
266
266
|
|
|
267
|
-

|
|
268
|
+

|
|
269
|
+

|
|
270
|
+

|
|
271
271
|
|
|
272
272
|
- 支持 websocket 查看
|
|
273
273
|
|
|
274
|
-

|
|
275
|
+

|
|
276
276
|
|
|
277
277
|
- 支持 connection 网络状态查看
|
|
278
278
|
|
|
279
|
-

|
|
280
280
|
|
|
281
281
|
- 支持 route 查看,跳转
|
|
282
282
|
|
|
283
|
-

|
|
284
284
|
|
|
285
285
|
- 支持 el event 查看
|
|
286
286
|
|
|
287
|
-

|
|
288
288
|
|
|
289
289
|
- 支持 uni event 查看
|
|
290
290
|
|
|
291
|
-

|
|
292
292
|
|
|
293
293
|
- 支持 capture screen 查看
|
|
294
294
|
|
|
295
|
-

|
|
296
296
|
|
|
297
297
|
- 支持 scan code 查看
|
|
298
298
|
|
|
299
|
-

|
|
300
300
|
|
|
301
301
|
- 支持 nfc 查看
|
|
302
302
|
|
|
303
|
-

|
|
304
304
|
|
|
305
305
|
- 支持 storage 查看,编辑
|
|
306
306
|
|
|
307
|
-

|
|
308
308
|
|
|
309
309
|
- 支持 vuex 查看,编辑
|
|
310
310
|
|
|
311
|
-

|
|
312
312
|
|
|
313
313
|
- 支持 pinia 查看,编辑
|
|
314
314
|
|
|
315
|
-

|
|
316
316
|
|
|
317
317
|
- 支持查看 window 信息
|
|
318
318
|
|
|
319
|
-

|
|
320
320
|
|
|
321
321
|
- 支持查看 device 信息
|
|
322
322
|
|
|
323
|
-

|
|
324
324
|
|
|
325
325
|
- 支持查看 system 信息
|
|
326
326
|
|
|
327
|
-

|
|
328
328
|
|
|
329
329
|
- setting 页,支持重启,导出日志(h5,app)
|
|
330
330
|
|
|
331
|
-

|
|
332
|
+

|
|
333
333
|
|
|
334
334
|
- 其他页
|
|
335
|
-

|
|
336
|
+

|
|
337
337
|
|
|
338
338
|
## 更新日志
|
|
339
339
|
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{DevStore as f}from"./modules/devStore/index.js";import{DevEvent as v}from"./modules/devEvent/index.js";import{DevIntercept as p}from"./modules/devIntercept/index.js";import{DevConsole as s}from"./modules/devConsole/index.js";import{getPlatform as T}from"./utils/utils.js";import"./utils/index.js";import{consoleProxy as d,setDevConsole as l}from"./core-shared.js";import{backup as H}from"./core-shared.js";import{i18n as D}from"./i18n/instance.js";import{sleep as g}from"./utils/date.js";const i=e=>D.t(e),c="1.2.
|
|
1
|
+
import{DevStore as f}from"./modules/devStore/index.js";import{DevEvent as v}from"./modules/devEvent/index.js";import{DevIntercept as p}from"./modules/devIntercept/index.js";import{DevConsole as s}from"./modules/devConsole/index.js";import{getPlatform as T}from"./utils/utils.js";import"./utils/index.js";import{consoleProxy as d,setDevConsole as l}from"./core-shared.js";import{backup as H}from"./core-shared.js";import{i18n as D}from"./i18n/instance.js";import{sleep as g}from"./utils/date.js";const i=e=>D.t(e),c="1.2.4",u="2026/3/18 15:29:13",m="https://gitee.com/cloud_l/vite-uni-dev-tool",r=new f,t=new v({store:r}),_={getDevToolDestroy:()=>t.getDevToolDestroy(),getDevToolOptions:()=>t.getDevToolOptions(),getRequestIndex:()=>t.getRequestIndex(),setRequestIndex:e=>t.setRequestIndex(e),getTransferIndex:()=>r.getTransferIndex(),setTransferIndex:e=>r.setTransferIndex(e),getScreenIndex:()=>r.getScreenIndex(),setScreenIndex:e=>r.setScreenIndex(e),getInterceptNetworkMap:()=>t.getInterceptNetworkMap(),updateConsole:e=>t.updateConsoleList(e),updateNetwork:(e,o)=>t.updateNetworkList(e,o),updateWs:e=>t.updateWsList(e),addWsTask:(e,o)=>t.addWsTask(e,o),removeWsTask:e=>t.removeWsTask(e),updateStorage:e=>t.updateStorage(e),updateTransfer:(e,o)=>t.updateTransfer(e,o),updateUniEvent:e=>t.updateUniEvent(e),updateScreen:(e,o)=>t.updateScreen(e,o),updateScanCode:e=>t.updateScanCode(e),updateNfc:e=>t.updateNfc(e),updateBluetooth:e=>t.updateBluetooth(e),updateRoute:e=>t.updateRouteList(e),updateUniEventCount:e=>t.updateUniEventCount(e),addTransferTask:(e,o)=>t.addTransferTask(e,o),removeTransferTask:e=>t.removeTransferTask(e),clearStorage:()=>t.clearStorage(!1),removeStorage:e=>t.removeStorage(e,!1),closeWindow:()=>t.closeDevToolWindow(),setVuexList:e=>t.setVuexList(e),setVueStore:e=>t.setVueStore(e),setPiniaList:e=>t.setPiniaList(e),setPiniaStore:e=>t.setPiniaStore(e)},n=new p({hooks:_});let a;t.setIntercept(n);function S(){if(typeof uni>"u")return;const e=T();try{const o=Object.getOwnPropertyDescriptor(uni,"__dev_tool_platform__");if(o&&o.configurable===!1)return;Object.defineProperty(uni,"__dev_tool_platform__",{value:e,configurable:!0})}catch{}}function y(e){if(!(typeof uni>"u"))try{const o=Object.getOwnPropertyDescriptor(uni,"__dev_tool_scan_code_collection__");if(o&&o.configurable===!1)return;Object.defineProperty(uni,"__dev_tool_scan_code_collection__",{value:e.devToolScanCode.bind(e),configurable:!0})}catch{}}function b(e){if(!(typeof uni>"u"))try{const o=Object.getOwnPropertyDescriptor(uni,"__dev_tool_nfc_collection__");if(o&&o.configurable===!1)return;Object.defineProperty(uni,"__dev_tool_nfc_collection__",{value:e.devToolNFC.bind(e),configurable:!0})}catch{}}function L(){return r.getDevToolOptions()}async function R(e){e!=null&&e.mode||d.error(`[DevTool] ${i("common.modeRequired")}`),S(),y(t),b(t),a=new s(t),l(a),r.setDevToolOptions({...e||{mode:""},zIndex:(e==null?void 0:e.zIndex)??998,devToolVersion:c,devToolBuildTime:u,devToolGit:m}),n.interceptVue(e==null?void 0:e.vueInstance),n.init({enableCaptureScreen:e==null?void 0:e.enableCaptureScreen,enableInterceptPromiseReject:e==null?void 0:e.enableInterceptPromiseReject}),r.getDevToolDestroy()||(t.addEventListener(),t.postMessage()),d.log(`[DevTool] ${i("common.initSuccess")}
|
|
2
2
|
${i("setting.devTool.currentVersion")}:${c}
|
|
3
3
|
${i("setting.devTool.buildTime")}:${u}
|
|
4
4
|
${i("common.debugSlogan")}`),t.startAbnormalUpload(),await g(100),t.updateRouteList()}function V(){r.getDevToolDestroy()||t.showDevToolButton()}function j(){r.getDevToolDestroy()||t.hideDevToolButton()}function N(){r.getDevToolDestroy()||t.openDevToolWindow()}function B(){r.getDevToolDestroy()||t.closeDevToolWindow()}function $(){r.getDevToolDestroy()&&(a=new s(t),l(a),t.createDevTool({devToolVersion:c,devToolBuildTime:u}))}function E(){r.getDevToolDestroy()||(t.destroyDevTool(),n.reset(),a=void 0,l(void 0))}function q(){r.getDevToolDestroy()||t.restartDevTool()}function A(){t.restartApp()}function U(e){return n.interceptVuexStorage(e)}function M(e){return n.interceptPiniaStore(e)}function z(e){t.uploadAbnormal(e)}export{H as backup,B as closeDevToolWindow,d as console,$ as createDevTool,E as destroyDevTool,L as getDevToolOptions,j as hideDevToolButton,R as initDevTool,M as interceptPiniaStore,U as interceptVuexStorage,N as openDevToolWindow,A as restartApp,q as restartDevTool,V as showDevToolButton,z as uploadAbnormal};
|