@vue/devtools-kit 7.5.2 → 7.5.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/dist/index.cjs +11 -4
- package/dist/index.js +11 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
"use strict";
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -2338,13 +2338,13 @@ init_cjs_shims();
|
|
|
2338
2338
|
var import_devtools_shared4 = require("@vue/devtools-shared");
|
|
2339
2339
|
var TIMELINE_LAYERS_STATE_STORAGE_ID = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
2340
2340
|
function addTimelineLayersStateToStorage(state) {
|
|
2341
|
-
if (!import_devtools_shared4.isBrowser || typeof localStorage === "undefined") {
|
|
2341
|
+
if (!import_devtools_shared4.isBrowser || typeof localStorage === "undefined" || localStorage === null) {
|
|
2342
2342
|
return;
|
|
2343
2343
|
}
|
|
2344
2344
|
localStorage.setItem(TIMELINE_LAYERS_STATE_STORAGE_ID, JSON.stringify(state));
|
|
2345
2345
|
}
|
|
2346
2346
|
function getTimelineLayersStateFromStorage() {
|
|
2347
|
-
if (!import_devtools_shared4.isBrowser || typeof localStorage === "undefined") {
|
|
2347
|
+
if (!import_devtools_shared4.isBrowser || typeof localStorage === "undefined" || localStorage === null) {
|
|
2348
2348
|
return {
|
|
2349
2349
|
recordingState: false,
|
|
2350
2350
|
mouseEventEnabled: false,
|
|
@@ -6441,6 +6441,10 @@ function isObject(_data, proto) {
|
|
|
6441
6441
|
function isArray3(_data, proto) {
|
|
6442
6442
|
return proto === "[object Array]";
|
|
6443
6443
|
}
|
|
6444
|
+
function isVueReactiveLinkNode(node) {
|
|
6445
|
+
const constructorName = node.constructor.name;
|
|
6446
|
+
return constructorName === "Dep" && "activeLink" in node || constructorName === "Link" && "dep" in node;
|
|
6447
|
+
}
|
|
6444
6448
|
function encode(data, replacer, list, seen, depth = 0, seenVueInstance = /* @__PURE__ */ new Map()) {
|
|
6445
6449
|
let stored;
|
|
6446
6450
|
let key;
|
|
@@ -6453,6 +6457,9 @@ function encode(data, replacer, list, seen, depth = 0, seenVueInstance = /* @__P
|
|
|
6453
6457
|
const index = list.length;
|
|
6454
6458
|
const proto = Object.prototype.toString.call(data);
|
|
6455
6459
|
if (isObject(data, proto)) {
|
|
6460
|
+
if (isVueReactiveLinkNode(data)) {
|
|
6461
|
+
return index;
|
|
6462
|
+
}
|
|
6456
6463
|
stored = {};
|
|
6457
6464
|
seen.set(data, index);
|
|
6458
6465
|
list.push(stored);
|
package/dist/index.js
CHANGED
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
var init_esm_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.
|
|
32
|
+
"../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
33
|
"use strict";
|
|
34
34
|
}
|
|
35
35
|
});
|
|
@@ -2247,13 +2247,13 @@ init_esm_shims();
|
|
|
2247
2247
|
import { isBrowser } from "@vue/devtools-shared";
|
|
2248
2248
|
var TIMELINE_LAYERS_STATE_STORAGE_ID = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
2249
2249
|
function addTimelineLayersStateToStorage(state) {
|
|
2250
|
-
if (!isBrowser || typeof localStorage === "undefined") {
|
|
2250
|
+
if (!isBrowser || typeof localStorage === "undefined" || localStorage === null) {
|
|
2251
2251
|
return;
|
|
2252
2252
|
}
|
|
2253
2253
|
localStorage.setItem(TIMELINE_LAYERS_STATE_STORAGE_ID, JSON.stringify(state));
|
|
2254
2254
|
}
|
|
2255
2255
|
function getTimelineLayersStateFromStorage() {
|
|
2256
|
-
if (!isBrowser || typeof localStorage === "undefined") {
|
|
2256
|
+
if (!isBrowser || typeof localStorage === "undefined" || localStorage === null) {
|
|
2257
2257
|
return {
|
|
2258
2258
|
recordingState: false,
|
|
2259
2259
|
mouseEventEnabled: false,
|
|
@@ -6350,6 +6350,10 @@ function isObject(_data, proto) {
|
|
|
6350
6350
|
function isArray3(_data, proto) {
|
|
6351
6351
|
return proto === "[object Array]";
|
|
6352
6352
|
}
|
|
6353
|
+
function isVueReactiveLinkNode(node) {
|
|
6354
|
+
const constructorName = node.constructor.name;
|
|
6355
|
+
return constructorName === "Dep" && "activeLink" in node || constructorName === "Link" && "dep" in node;
|
|
6356
|
+
}
|
|
6353
6357
|
function encode(data, replacer, list, seen, depth = 0, seenVueInstance = /* @__PURE__ */ new Map()) {
|
|
6354
6358
|
let stored;
|
|
6355
6359
|
let key;
|
|
@@ -6362,6 +6366,9 @@ function encode(data, replacer, list, seen, depth = 0, seenVueInstance = /* @__P
|
|
|
6362
6366
|
const index = list.length;
|
|
6363
6367
|
const proto = Object.prototype.toString.call(data);
|
|
6364
6368
|
if (isObject(data, proto)) {
|
|
6369
|
+
if (isVueReactiveLinkNode(data)) {
|
|
6370
|
+
return index;
|
|
6371
|
+
}
|
|
6365
6372
|
stored = {};
|
|
6366
6373
|
seen.set(data, index);
|
|
6367
6374
|
list.push(stored);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.5.
|
|
4
|
+
"version": "7.5.4",
|
|
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.1",
|
|
32
|
-
"@vue/devtools-shared": "^7.5.
|
|
32
|
+
"@vue/devtools-shared": "^7.5.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/speakingurl": "^13.0.6",
|