@vue/devtools-electron 7.0.4 → 7.0.6
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/client/assets/{index-W2IbiBHh.js → index-f9SHKxe7.js} +69 -69
- package/client/assets/{index-nniB9uqZ.css → index-rJloXkIW.css} +1 -1
- package/client/assets/{unocss-runtime-kftsoZPE.js → unocss-runtime-402WFgCt.js} +1 -1
- package/client/devtools-panel.css +1 -1
- package/client/devtools-panel.js +10427 -10346
- package/client/index.html +2 -2
- package/client/{unocss-runtime-c8-Zzj4C.js → unocss-runtime-WFlXz1xh.js} +1 -1
- package/dist/app.cjs +1 -1
- package/dist/app.mjs +1 -1
- package/dist/cli.cjs +4 -2
- package/dist/cli.mjs +4 -2
- package/dist/devtools.js +98 -98
- package/dist/index.cjs +19 -19
- package/dist/index.mjs +20 -20
- package/dist/user-app.cjs +20 -20
- package/dist/user-app.js +21 -21
- package/dist/user-app.mjs +20 -20
- package/package.json +8 -6
package/client/index.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
|
7
7
|
<title>Vue DevTools Client</title>
|
|
8
8
|
<script src="./color-scheme.js"></script>
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-f9SHKxe7.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="./assets/index-rJloXkIW.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="app"></div>
|
|
@@ -776,7 +776,7 @@ function nr(e) {
|
|
|
776
776
|
};
|
|
777
777
|
}, {});
|
|
778
778
|
}
|
|
779
|
-
const sr = "0.58.
|
|
779
|
+
const sr = "0.58.3";
|
|
780
780
|
var or = Object.defineProperty, ir = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, F = (e, t, r) => (ir(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
781
781
|
class cr {
|
|
782
782
|
constructor(t = {}, r = {}) {
|
package/dist/app.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var h=Object.create;var p=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var _=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var P=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of b(e))!x.call(o,t)&&t!==r&&p(o,t,{get:()=>e[t],enumerable:!(n=y(e,t))||n.enumerable});return o};var
|
|
1
|
+
"use strict";var h=Object.create;var p=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var _=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var P=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of b(e))!x.call(o,t)&&t!==r&&p(o,t,{get:()=>e[t],enumerable:!(n=y(e,t))||n.enumerable});return o};var a=(o,e,r)=>(r=o!=null?h(_(o)):{},P(e||!o||!o.__esModule?p(r,"default",{value:o,enumerable:!0}):r,o));var d=a(require("path"),1),c=require("url"),i=require("electron");var u=require("http"),f=a(require("fs"),1),v=a(require("path"),1),s=require("h3"),w=require("socket.io"),m=process.env.PORT||8098;function g(){let o=(0,s.createApp)();o.use("/",(0,s.eventHandler)(()=>"if(!window.process){window.process={env:{}}};"+f.default.readFileSync(v.default.join(__dirname,"./user-app.js"),"utf-8")));let e=(0,u.createServer)((0,s.toNodeListener)(o));new w.Server(e,{cors:{origin:!0}}).on("connection",n=>{n.broadcast.emit("vue-devtools:disconnect-user-app"),n.on("vue-devtools:init",()=>{n.broadcast.emit("vue-devtools:init")}),n.on("vue-devtools:disconnect",()=>{n.broadcast.emit("vue-devtools:disconnect")}),n.on("disconnect",t=>{t.indexOf("client")&&n.broadcast.emit("vue-devtools-disconnect-devtools")}),n.on("vue-devtools:message",t=>{n.broadcast.emit("vue-devtools:message",t)})}),e.listen(m,()=>{console.log(`listening on 0.0.0.0:${m}`)})}g();var l=null;function S(){l=new i.BrowserWindow({width:800,height:600,icon:d.default.join(__dirname,"../icons/128.png"),webPreferences:{webSecurity:!1,nodeIntegration:!0,contextIsolation:!1,devTools:!1}});let o=d.default.join(__dirname,"../app.html"),e=new c.URL(`file://${o}`).toString();l.setMenu(null),l.loadURL(new c.URL(e).toString()),l.on("closed",()=>{l=null})}i.app.on("ready",S);i.app.on("window-all-closed",()=>{process.platform!=="darwin"&&i.app.quit()});i.app.on("activate",()=>{l===null&&S()});
|
package/dist/app.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from"path";import{URL as d}from"url";import{BrowserWindow as S,app as r}from"electron";import{createServer as p}from"http";import m from"fs";import u from"path";import{createApp as f,eventHandler as v,toNodeListener as w}from"h3";import{Server as g}from"socket.io";var s=process.env.PORT||8098;function l(){let n=f();n.use("/",v(()=>"if(!window.process){window.process={env:{}}};"+m.readFileSync(u.join(__dirname,"./user-app.js"),"utf-8")));let t=p(w(n));new g(t,{cors:{origin:!0}}).on("connection",o=>{o.broadcast.emit("vue-devtools:disconnect-user-app"),o.on("vue-devtools:init",()=>{o.broadcast.emit("vue-devtools:init")}),o.on("vue-devtools:disconnect",()=>{o.broadcast.emit("vue-devtools:disconnect")}),o.on("disconnect",i=>{i.indexOf("client")&&o.broadcast.emit("vue-devtools-disconnect-devtools")}),o.on("vue-devtools:message",i=>{o.broadcast.emit("vue-devtools:message",i)})}),t.listen(s,()=>{console.log(`listening on 0.0.0.0:${s}`)})}l();var e=null;function c(){e=new S({width:800,height:600,icon:a.join(__dirname,"../icons/128.png"),webPreferences:{webSecurity:!1,nodeIntegration:!0,contextIsolation:!1,devTools:!1}});let n=a.join(__dirname,"../app.html"),t=new d(`file://${n}`).toString();e.setMenu(null),e.loadURL(new d(t).toString()),e.on("closed",()=>{e=null})}r.on("ready",c);r.on("window-all-closed",()=>{process.platform!=="darwin"&&r.quit()});r.on("activate",()=>{e===null&&c()});
|
package/dist/cli.cjs
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
const execa = require('execa');
|
|
4
4
|
const electron = require('electron');
|
|
5
|
+
const pathe = require('pathe');
|
|
5
6
|
|
|
6
7
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
7
8
|
|
|
8
9
|
const electron__default = /*#__PURE__*/_interopDefaultCompat(electron);
|
|
9
10
|
|
|
10
|
-
const appPath = new URL("../dist/app.cjs", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('cli.cjs', document.baseURI).href))).pathname;
|
|
11
|
+
const appPath = pathe.resolve(new URL("../dist/app.cjs", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('cli.cjs', document.baseURI).href))).pathname);
|
|
11
12
|
const argv = process.argv.slice(2);
|
|
12
13
|
const result = execa.execaSync(electron__default, [appPath].concat(argv), {
|
|
13
|
-
stdio: "ignore"
|
|
14
|
+
stdio: "ignore",
|
|
15
|
+
windowsHide: false
|
|
14
16
|
});
|
|
15
17
|
process.exit(result.exitCode);
|
package/dist/cli.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { execaSync } from 'execa';
|
|
2
2
|
import electron from 'electron';
|
|
3
|
+
import { resolve } from 'pathe';
|
|
3
4
|
|
|
4
|
-
const appPath = new URL("../dist/app.cjs", import.meta.url).pathname;
|
|
5
|
+
const appPath = resolve(new URL("../dist/app.cjs", import.meta.url).pathname);
|
|
5
6
|
const argv = process.argv.slice(2);
|
|
6
7
|
const result = execaSync(electron, [appPath].concat(argv), {
|
|
7
|
-
stdio: "ignore"
|
|
8
|
+
stdio: "ignore",
|
|
9
|
+
windowsHide: false
|
|
8
10
|
});
|
|
9
11
|
process.exit(result.exitCode);
|