@vue/devtools-kit 7.0.20 → 7.0.21
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 +19 -9
- package/dist/index.js +20 -10
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target9) => (target9 = mod != null ? __create(__
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.3/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.3/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
"use strict";
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -1661,7 +1661,7 @@ function createDevToolsHook() {
|
|
|
1661
1661
|
id: "vue-devtools-next",
|
|
1662
1662
|
enabled: false,
|
|
1663
1663
|
appRecords: [],
|
|
1664
|
-
apps:
|
|
1664
|
+
apps: [],
|
|
1665
1665
|
events: /* @__PURE__ */ new Map(),
|
|
1666
1666
|
on(event, fn) {
|
|
1667
1667
|
var _a10;
|
|
@@ -2301,8 +2301,10 @@ var ComponentWalker = class {
|
|
|
2301
2301
|
*/
|
|
2302
2302
|
mark(instance, force = false) {
|
|
2303
2303
|
const instanceMap = getAppRecord(instance).instanceMap;
|
|
2304
|
-
if (force || !instanceMap.has(instance.__VUE_DEVTOOLS_UID__))
|
|
2304
|
+
if (force || !instanceMap.has(instance.__VUE_DEVTOOLS_UID__)) {
|
|
2305
2305
|
instanceMap.set(instance.__VUE_DEVTOOLS_UID__, instance);
|
|
2306
|
+
devtoolsAppRecords.active.instanceMap = instanceMap;
|
|
2307
|
+
}
|
|
2306
2308
|
}
|
|
2307
2309
|
isKeepAlive(instance) {
|
|
2308
2310
|
return instance.type.__isKeepAlive && instance.__v_cache;
|
|
@@ -2959,8 +2961,10 @@ function registerComponentDevToolsPlugin(app) {
|
|
|
2959
2961
|
if (component) {
|
|
2960
2962
|
if (component.__VUE_DEVTOOLS_UID__ == null)
|
|
2961
2963
|
component.__VUE_DEVTOOLS_UID__ = id;
|
|
2962
|
-
if (!(appRecord == null ? void 0 : appRecord.instanceMap.has(id)))
|
|
2964
|
+
if (!(appRecord == null ? void 0 : appRecord.instanceMap.has(id))) {
|
|
2963
2965
|
appRecord == null ? void 0 : appRecord.instanceMap.set(id, component);
|
|
2966
|
+
devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
|
|
2967
|
+
}
|
|
2964
2968
|
}
|
|
2965
2969
|
if (!appRecord)
|
|
2966
2970
|
return;
|
|
@@ -2983,8 +2987,10 @@ function registerComponentDevToolsPlugin(app) {
|
|
|
2983
2987
|
if (component) {
|
|
2984
2988
|
if (component.__VUE_DEVTOOLS_UID__ == null)
|
|
2985
2989
|
component.__VUE_DEVTOOLS_UID__ = id;
|
|
2986
|
-
if (!(appRecord == null ? void 0 : appRecord.instanceMap.has(id)))
|
|
2990
|
+
if (!(appRecord == null ? void 0 : appRecord.instanceMap.has(id))) {
|
|
2987
2991
|
appRecord == null ? void 0 : appRecord.instanceMap.set(id, component);
|
|
2992
|
+
devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
|
|
2993
|
+
}
|
|
2988
2994
|
}
|
|
2989
2995
|
if (!appRecord)
|
|
2990
2996
|
return;
|
|
@@ -3008,6 +3014,7 @@ function registerComponentDevToolsPlugin(app) {
|
|
|
3008
3014
|
instance: component
|
|
3009
3015
|
});
|
|
3010
3016
|
appRecord == null ? void 0 : appRecord.instanceMap.delete(id);
|
|
3017
|
+
devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
|
|
3011
3018
|
debounceSendInspectorTree();
|
|
3012
3019
|
});
|
|
3013
3020
|
devtoolsContext.componentPluginHookBuffer = [
|
|
@@ -4371,10 +4378,13 @@ function initDevTools() {
|
|
|
4371
4378
|
const isDevToolsNext = ((_a10 = import_devtools_shared15.target.__VUE_DEVTOOLS_GLOBAL_HOOK__) == null ? void 0 : _a10.id) === "vue-devtools-next";
|
|
4372
4379
|
if (import_devtools_shared15.target.__VUE_DEVTOOLS_GLOBAL_HOOK__ && isDevToolsNext)
|
|
4373
4380
|
return;
|
|
4374
|
-
if (import_devtools_shared15.target.__VUE_DEVTOOLS_GLOBAL_HOOK__)
|
|
4375
|
-
Object.assign(__VUE_DEVTOOLS_GLOBAL_HOOK__, createDevToolsHook());
|
|
4376
|
-
else
|
|
4381
|
+
if (!import_devtools_shared15.target.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
|
|
4377
4382
|
import_devtools_shared15.target.__VUE_DEVTOOLS_GLOBAL_HOOK__ = createDevToolsHook();
|
|
4383
|
+
} else {
|
|
4384
|
+
if (!import_devtools_shared15.isNuxtApp) {
|
|
4385
|
+
Object.assign(__VUE_DEVTOOLS_GLOBAL_HOOK__, createDevToolsHook());
|
|
4386
|
+
}
|
|
4387
|
+
}
|
|
4378
4388
|
hook.on.setupDevtoolsPlugin((pluginDescriptor, setupFn) => {
|
|
4379
4389
|
collectDevToolsPlugin(pluginDescriptor, setupFn);
|
|
4380
4390
|
const { app, api } = devtoolsAppRecords.active || {};
|
package/dist/index.js
CHANGED
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target9) => (target9 = mod != null ? __create(__
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.3/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
var init_esm_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.
|
|
32
|
+
"../../node_modules/.pnpm/tsup@8.0.2_postcss@8.4.38_typescript@5.4.3/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
33
|
"use strict";
|
|
34
34
|
}
|
|
35
35
|
});
|
|
@@ -1577,7 +1577,7 @@ init_esm_shims();
|
|
|
1577
1577
|
|
|
1578
1578
|
// src/core/index.ts
|
|
1579
1579
|
init_esm_shims();
|
|
1580
|
-
import { target as target8 } from "@vue/devtools-shared";
|
|
1580
|
+
import { isNuxtApp, target as target8 } from "@vue/devtools-shared";
|
|
1581
1581
|
|
|
1582
1582
|
// src/hook/index.ts
|
|
1583
1583
|
init_esm_shims();
|
|
@@ -1633,7 +1633,7 @@ function createDevToolsHook() {
|
|
|
1633
1633
|
id: "vue-devtools-next",
|
|
1634
1634
|
enabled: false,
|
|
1635
1635
|
appRecords: [],
|
|
1636
|
-
apps:
|
|
1636
|
+
apps: [],
|
|
1637
1637
|
events: /* @__PURE__ */ new Map(),
|
|
1638
1638
|
on(event, fn) {
|
|
1639
1639
|
var _a10;
|
|
@@ -2273,8 +2273,10 @@ var ComponentWalker = class {
|
|
|
2273
2273
|
*/
|
|
2274
2274
|
mark(instance, force = false) {
|
|
2275
2275
|
const instanceMap = getAppRecord(instance).instanceMap;
|
|
2276
|
-
if (force || !instanceMap.has(instance.__VUE_DEVTOOLS_UID__))
|
|
2276
|
+
if (force || !instanceMap.has(instance.__VUE_DEVTOOLS_UID__)) {
|
|
2277
2277
|
instanceMap.set(instance.__VUE_DEVTOOLS_UID__, instance);
|
|
2278
|
+
devtoolsAppRecords.active.instanceMap = instanceMap;
|
|
2279
|
+
}
|
|
2278
2280
|
}
|
|
2279
2281
|
isKeepAlive(instance) {
|
|
2280
2282
|
return instance.type.__isKeepAlive && instance.__v_cache;
|
|
@@ -2931,8 +2933,10 @@ function registerComponentDevToolsPlugin(app) {
|
|
|
2931
2933
|
if (component) {
|
|
2932
2934
|
if (component.__VUE_DEVTOOLS_UID__ == null)
|
|
2933
2935
|
component.__VUE_DEVTOOLS_UID__ = id;
|
|
2934
|
-
if (!(appRecord == null ? void 0 : appRecord.instanceMap.has(id)))
|
|
2936
|
+
if (!(appRecord == null ? void 0 : appRecord.instanceMap.has(id))) {
|
|
2935
2937
|
appRecord == null ? void 0 : appRecord.instanceMap.set(id, component);
|
|
2938
|
+
devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
|
|
2939
|
+
}
|
|
2936
2940
|
}
|
|
2937
2941
|
if (!appRecord)
|
|
2938
2942
|
return;
|
|
@@ -2955,8 +2959,10 @@ function registerComponentDevToolsPlugin(app) {
|
|
|
2955
2959
|
if (component) {
|
|
2956
2960
|
if (component.__VUE_DEVTOOLS_UID__ == null)
|
|
2957
2961
|
component.__VUE_DEVTOOLS_UID__ = id;
|
|
2958
|
-
if (!(appRecord == null ? void 0 : appRecord.instanceMap.has(id)))
|
|
2962
|
+
if (!(appRecord == null ? void 0 : appRecord.instanceMap.has(id))) {
|
|
2959
2963
|
appRecord == null ? void 0 : appRecord.instanceMap.set(id, component);
|
|
2964
|
+
devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
|
|
2965
|
+
}
|
|
2960
2966
|
}
|
|
2961
2967
|
if (!appRecord)
|
|
2962
2968
|
return;
|
|
@@ -2980,6 +2986,7 @@ function registerComponentDevToolsPlugin(app) {
|
|
|
2980
2986
|
instance: component
|
|
2981
2987
|
});
|
|
2982
2988
|
appRecord == null ? void 0 : appRecord.instanceMap.delete(id);
|
|
2989
|
+
devtoolsAppRecords.active.instanceMap = appRecord.instanceMap;
|
|
2983
2990
|
debounceSendInspectorTree();
|
|
2984
2991
|
});
|
|
2985
2992
|
devtoolsContext.componentPluginHookBuffer = [
|
|
@@ -4343,10 +4350,13 @@ function initDevTools() {
|
|
|
4343
4350
|
const isDevToolsNext = ((_a10 = target8.__VUE_DEVTOOLS_GLOBAL_HOOK__) == null ? void 0 : _a10.id) === "vue-devtools-next";
|
|
4344
4351
|
if (target8.__VUE_DEVTOOLS_GLOBAL_HOOK__ && isDevToolsNext)
|
|
4345
4352
|
return;
|
|
4346
|
-
if (target8.__VUE_DEVTOOLS_GLOBAL_HOOK__)
|
|
4347
|
-
Object.assign(__VUE_DEVTOOLS_GLOBAL_HOOK__, createDevToolsHook());
|
|
4348
|
-
else
|
|
4353
|
+
if (!target8.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
|
|
4349
4354
|
target8.__VUE_DEVTOOLS_GLOBAL_HOOK__ = createDevToolsHook();
|
|
4355
|
+
} else {
|
|
4356
|
+
if (!isNuxtApp) {
|
|
4357
|
+
Object.assign(__VUE_DEVTOOLS_GLOBAL_HOOK__, createDevToolsHook());
|
|
4358
|
+
}
|
|
4359
|
+
}
|
|
4350
4360
|
hook.on.setupDevtoolsPlugin((pluginDescriptor, setupFn) => {
|
|
4351
4361
|
collectDevToolsPlugin(pluginDescriptor, setupFn);
|
|
4352
4362
|
const { app, api } = devtoolsAppRecords.active || {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.21",
|
|
5
5
|
"author": "webfansplz",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"mitt": "^3.0.1",
|
|
26
26
|
"perfect-debounce": "^1.0.0",
|
|
27
27
|
"speakingurl": "^14.0.1",
|
|
28
|
-
"@vue/devtools-shared": "^7.0.
|
|
28
|
+
"@vue/devtools-shared": "^7.0.21"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/speakingurl": "^13.0.6",
|