@vue/devtools-kit 8.0.0 → 8.0.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.
- package/dist/index.cjs +10 -13
- package/dist/index.js +10 -13
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -518,7 +518,6 @@ var StateEditor = class {
|
|
|
518
518
|
refEditor = new RefStateEditor();
|
|
519
519
|
set(object, path, value, cb) {
|
|
520
520
|
const sections = Array.isArray(path) ? path : path.split(".");
|
|
521
|
-
const markRef = false;
|
|
522
521
|
while (sections.length > 1) {
|
|
523
522
|
const section = sections.shift();
|
|
524
523
|
if (object instanceof Map) object = object.get(section);
|
|
@@ -957,7 +956,7 @@ const devtoolsState = new Proxy(__vue_devtools_shared.target[STATE_KEY], {
|
|
|
957
956
|
return true;
|
|
958
957
|
},
|
|
959
958
|
set(target$21, property, value) {
|
|
960
|
-
|
|
959
|
+
({ ...__vue_devtools_shared.target[STATE_KEY] });
|
|
961
960
|
target$21[property] = value;
|
|
962
961
|
__vue_devtools_shared.target[STATE_KEY][property] = value;
|
|
963
962
|
return true;
|
|
@@ -2240,7 +2239,7 @@ function createComponentsDevToolsPlugin(app) {
|
|
|
2240
2239
|
const debounceSendInspectorState = (0, perfect_debounce.debounce)(() => {
|
|
2241
2240
|
api.sendInspectorState(INSPECTOR_ID);
|
|
2242
2241
|
}, 120);
|
|
2243
|
-
|
|
2242
|
+
hook.on.componentAdded(async (app$1, uid, parentUid, component) => {
|
|
2244
2243
|
if (devtoolsState.highPerfModeEnabled) return;
|
|
2245
2244
|
if (app$1?._instance?.type?.devtools?.hide) return;
|
|
2246
2245
|
if (!app$1 || typeof uid !== "number" && !uid || !component) return;
|
|
@@ -2260,7 +2259,7 @@ function createComponentsDevToolsPlugin(app) {
|
|
|
2260
2259
|
if (!appRecord) return;
|
|
2261
2260
|
debounceSendInspectorTree();
|
|
2262
2261
|
});
|
|
2263
|
-
|
|
2262
|
+
hook.on.componentUpdated(async (app$1, uid, parentUid, component) => {
|
|
2264
2263
|
if (devtoolsState.highPerfModeEnabled) return;
|
|
2265
2264
|
if (app$1?._instance?.type?.devtools?.hide) return;
|
|
2266
2265
|
if (!app$1 || typeof uid !== "number" && !uid || !component) return;
|
|
@@ -2281,7 +2280,7 @@ function createComponentsDevToolsPlugin(app) {
|
|
|
2281
2280
|
debounceSendInspectorTree();
|
|
2282
2281
|
debounceSendInspectorState();
|
|
2283
2282
|
});
|
|
2284
|
-
|
|
2283
|
+
hook.on.componentRemoved(async (app$1, uid, parentUid, component) => {
|
|
2285
2284
|
if (devtoolsState.highPerfModeEnabled) return;
|
|
2286
2285
|
if (app$1?._instance?.type?.devtools?.hide) return;
|
|
2287
2286
|
if (!app$1 || typeof uid !== "number" && !uid || !component) return;
|
|
@@ -2538,9 +2537,8 @@ const devtoolsContext = __vue_devtools_shared.target.__VUE_DEVTOOLS_KIT_CONTEXT_
|
|
|
2538
2537
|
|
|
2539
2538
|
//#endregion
|
|
2540
2539
|
//#region ../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js
|
|
2541
|
-
var require_speakingurl$1 = __commonJS({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(exports, module) {
|
|
2540
|
+
var require_speakingurl$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js": ((exports, module) => {
|
|
2542
2541
|
(function(root) {
|
|
2543
|
-
"use strict";
|
|
2544
2542
|
/**
|
|
2545
2543
|
* charMap
|
|
2546
2544
|
* @type {Object}
|
|
@@ -4001,17 +3999,17 @@ var require_speakingurl$1 = __commonJS({ "../../node_modules/.pnpm/speakingurl@1
|
|
|
4001
3999
|
}
|
|
4002
4000
|
} catch (e) {}
|
|
4003
4001
|
})(exports);
|
|
4004
|
-
} });
|
|
4002
|
+
}) });
|
|
4005
4003
|
|
|
4006
4004
|
//#endregion
|
|
4007
4005
|
//#region ../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js
|
|
4008
|
-
var require_speakingurl = __commonJS({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(exports, module) {
|
|
4006
|
+
var require_speakingurl = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js": ((exports, module) => {
|
|
4009
4007
|
module.exports = require_speakingurl$1();
|
|
4010
|
-
} });
|
|
4008
|
+
}) });
|
|
4011
4009
|
|
|
4012
4010
|
//#endregion
|
|
4013
4011
|
//#region src/core/app/index.ts
|
|
4014
|
-
var import_speakingurl = __toESM(require_speakingurl(), 1);
|
|
4012
|
+
var import_speakingurl = /* @__PURE__ */ __toESM(require_speakingurl(), 1);
|
|
4015
4013
|
const appRecordInfo = __vue_devtools_shared.target.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ ??= {
|
|
4016
4014
|
id: 0,
|
|
4017
4015
|
appIds: /* @__PURE__ */ new Set()
|
|
@@ -4798,10 +4796,9 @@ const setDeep = (object, path, mapper) => {
|
|
|
4798
4796
|
if (newKey !== keyToRow) parent.delete(keyToRow);
|
|
4799
4797
|
break;
|
|
4800
4798
|
}
|
|
4801
|
-
case "value":
|
|
4799
|
+
case "value":
|
|
4802
4800
|
parent.set(keyToRow, mapper(parent.get(keyToRow)));
|
|
4803
4801
|
break;
|
|
4804
|
-
}
|
|
4805
4802
|
}
|
|
4806
4803
|
}
|
|
4807
4804
|
return object;
|
package/dist/index.js
CHANGED
|
@@ -518,7 +518,6 @@ var StateEditor = class {
|
|
|
518
518
|
refEditor = new RefStateEditor();
|
|
519
519
|
set(object, path, value, cb) {
|
|
520
520
|
const sections = Array.isArray(path) ? path : path.split(".");
|
|
521
|
-
const markRef = false;
|
|
522
521
|
while (sections.length > 1) {
|
|
523
522
|
const section = sections.shift();
|
|
524
523
|
if (object instanceof Map) object = object.get(section);
|
|
@@ -957,7 +956,7 @@ const devtoolsState = new Proxy(target[STATE_KEY], {
|
|
|
957
956
|
return true;
|
|
958
957
|
},
|
|
959
958
|
set(target$1, property, value) {
|
|
960
|
-
|
|
959
|
+
({ ...target[STATE_KEY] });
|
|
961
960
|
target$1[property] = value;
|
|
962
961
|
target[STATE_KEY][property] = value;
|
|
963
962
|
return true;
|
|
@@ -2240,7 +2239,7 @@ function createComponentsDevToolsPlugin(app) {
|
|
|
2240
2239
|
const debounceSendInspectorState = debounce(() => {
|
|
2241
2240
|
api.sendInspectorState(INSPECTOR_ID);
|
|
2242
2241
|
}, 120);
|
|
2243
|
-
|
|
2242
|
+
hook.on.componentAdded(async (app$1, uid, parentUid, component) => {
|
|
2244
2243
|
if (devtoolsState.highPerfModeEnabled) return;
|
|
2245
2244
|
if (app$1?._instance?.type?.devtools?.hide) return;
|
|
2246
2245
|
if (!app$1 || typeof uid !== "number" && !uid || !component) return;
|
|
@@ -2260,7 +2259,7 @@ function createComponentsDevToolsPlugin(app) {
|
|
|
2260
2259
|
if (!appRecord) return;
|
|
2261
2260
|
debounceSendInspectorTree();
|
|
2262
2261
|
});
|
|
2263
|
-
|
|
2262
|
+
hook.on.componentUpdated(async (app$1, uid, parentUid, component) => {
|
|
2264
2263
|
if (devtoolsState.highPerfModeEnabled) return;
|
|
2265
2264
|
if (app$1?._instance?.type?.devtools?.hide) return;
|
|
2266
2265
|
if (!app$1 || typeof uid !== "number" && !uid || !component) return;
|
|
@@ -2281,7 +2280,7 @@ function createComponentsDevToolsPlugin(app) {
|
|
|
2281
2280
|
debounceSendInspectorTree();
|
|
2282
2281
|
debounceSendInspectorState();
|
|
2283
2282
|
});
|
|
2284
|
-
|
|
2283
|
+
hook.on.componentRemoved(async (app$1, uid, parentUid, component) => {
|
|
2285
2284
|
if (devtoolsState.highPerfModeEnabled) return;
|
|
2286
2285
|
if (app$1?._instance?.type?.devtools?.hide) return;
|
|
2287
2286
|
if (!app$1 || typeof uid !== "number" && !uid || !component) return;
|
|
@@ -2538,9 +2537,8 @@ const devtoolsContext = target.__VUE_DEVTOOLS_KIT_CONTEXT__;
|
|
|
2538
2537
|
|
|
2539
2538
|
//#endregion
|
|
2540
2539
|
//#region ../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js
|
|
2541
|
-
var require_speakingurl$1 = __commonJS({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(exports, module) {
|
|
2540
|
+
var require_speakingurl$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js": ((exports, module) => {
|
|
2542
2541
|
(function(root) {
|
|
2543
|
-
"use strict";
|
|
2544
2542
|
/**
|
|
2545
2543
|
* charMap
|
|
2546
2544
|
* @type {Object}
|
|
@@ -4001,17 +3999,17 @@ var require_speakingurl$1 = __commonJS({ "../../node_modules/.pnpm/speakingurl@1
|
|
|
4001
3999
|
}
|
|
4002
4000
|
} catch (e) {}
|
|
4003
4001
|
})(exports);
|
|
4004
|
-
} });
|
|
4002
|
+
}) });
|
|
4005
4003
|
|
|
4006
4004
|
//#endregion
|
|
4007
4005
|
//#region ../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js
|
|
4008
|
-
var require_speakingurl = __commonJS({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(exports, module) {
|
|
4006
|
+
var require_speakingurl = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js": ((exports, module) => {
|
|
4009
4007
|
module.exports = require_speakingurl$1();
|
|
4010
|
-
} });
|
|
4008
|
+
}) });
|
|
4011
4009
|
|
|
4012
4010
|
//#endregion
|
|
4013
4011
|
//#region src/core/app/index.ts
|
|
4014
|
-
var import_speakingurl = __toESM(require_speakingurl(), 1);
|
|
4012
|
+
var import_speakingurl = /* @__PURE__ */ __toESM(require_speakingurl(), 1);
|
|
4015
4013
|
const appRecordInfo = target.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ ??= {
|
|
4016
4014
|
id: 0,
|
|
4017
4015
|
appIds: /* @__PURE__ */ new Set()
|
|
@@ -4798,10 +4796,9 @@ const setDeep = (object, path, mapper) => {
|
|
|
4798
4796
|
if (newKey !== keyToRow) parent.delete(keyToRow);
|
|
4799
4797
|
break;
|
|
4800
4798
|
}
|
|
4801
|
-
case "value":
|
|
4799
|
+
case "value":
|
|
4802
4800
|
parent.set(keyToRow, mapper(parent.get(keyToRow)));
|
|
4803
4801
|
break;
|
|
4804
|
-
}
|
|
4805
4802
|
}
|
|
4806
4803
|
}
|
|
4807
4804
|
return object;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.1",
|
|
5
5
|
"author": "webfansplz",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"perfect-debounce": "^1.0.0",
|
|
30
30
|
"speakingurl": "^14.0.1",
|
|
31
31
|
"superjson": "^2.2.2",
|
|
32
|
-
"@vue/devtools-shared": "^8.0.
|
|
32
|
+
"@vue/devtools-shared": "^8.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/speakingurl": "^13.0.6",
|