@vue/devtools-kit 8.1.1 → 8.1.2
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 +0 -13
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +0 -13
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5410,17 +5410,6 @@ function getStoreDetails(store) {
|
|
|
5410
5410
|
fields: { abstract: true }
|
|
5411
5411
|
} };
|
|
5412
5412
|
}
|
|
5413
|
-
function getRouterDetails(router) {
|
|
5414
|
-
return { _custom: {
|
|
5415
|
-
type: "router",
|
|
5416
|
-
displayText: "VueRouter",
|
|
5417
|
-
value: {
|
|
5418
|
-
options: router.options,
|
|
5419
|
-
currentRoute: router.currentRoute
|
|
5420
|
-
},
|
|
5421
|
-
fields: { abstract: true }
|
|
5422
|
-
} };
|
|
5423
|
-
}
|
|
5424
5413
|
function getInstanceDetails(instance) {
|
|
5425
5414
|
if (instance._) instance = instance._;
|
|
5426
5415
|
const state = processInstanceState(instance);
|
|
@@ -5516,7 +5505,6 @@ function stringifyReplacer(key, _value, depth, seenInstance) {
|
|
|
5516
5505
|
else if (proto === "[object Date]") return getDateDetails(val);
|
|
5517
5506
|
else if (proto === "[object Error]") return `[native Error ${val.message}<>${val.stack}]`;
|
|
5518
5507
|
else if (ensurePropertyExists(val, "state", true) && ensurePropertyExists(val, "_vm", true)) return getStoreDetails(val);
|
|
5519
|
-
else if (val.constructor && val.constructor.name === "VueRouter") return getRouterDetails(val);
|
|
5520
5508
|
else if (isVueInstance(val)) {
|
|
5521
5509
|
const componentVal = getInstanceDetails(val);
|
|
5522
5510
|
const parentInstanceDepth = seenInstance?.get(val);
|
|
@@ -5527,7 +5515,6 @@ function stringifyReplacer(key, _value, depth, seenInstance) {
|
|
|
5527
5515
|
else if (val.constructor && val.constructor.name === "VNode") return `[native VNode <${val.tag}>]`;
|
|
5528
5516
|
else if (typeof HTMLElement !== "undefined" && val instanceof HTMLElement) return getHTMLElementDetails(val);
|
|
5529
5517
|
else if (val.constructor?.name === "Store" && "_wrappedGetters" in val) return "[object Store]";
|
|
5530
|
-
else if (ensurePropertyExists(val, "currentRoute", true)) return "[object Router]";
|
|
5531
5518
|
const customDetails = getObjectDetails(val);
|
|
5532
5519
|
if (customDetails != null) return customDetails;
|
|
5533
5520
|
} else if (Number.isNaN(val)) return NAN;
|
package/dist/index.d.cts
CHANGED
|
@@ -166,7 +166,7 @@ interface ComponentTreeNode {
|
|
|
166
166
|
meta?: any;
|
|
167
167
|
file?: string;
|
|
168
168
|
}
|
|
169
|
-
type ComponentBuiltinCustomStateTypes = 'function' | 'map' | 'set' | 'reference' | 'component' | 'component-definition' | '
|
|
169
|
+
type ComponentBuiltinCustomStateTypes = 'function' | 'map' | 'set' | 'reference' | 'component' | 'component-definition' | 'store';
|
|
170
170
|
interface ComponentCustomState extends ComponentStateBase {
|
|
171
171
|
value: CustomState;
|
|
172
172
|
}
|
|
@@ -916,7 +916,7 @@ interface ComponentBoundingRectApiPayload {
|
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
918
|
//#region src/core/component/types/custom.d.ts
|
|
919
|
-
type customTypeEnums = 'function' | 'bigint' | 'map' | 'set' | 'store' | '
|
|
919
|
+
type customTypeEnums = 'function' | 'bigint' | 'map' | 'set' | 'store' | 'component' | 'component-definition' | 'HTMLElement' | 'component-definition' | 'date';
|
|
920
920
|
//#endregion
|
|
921
921
|
//#region src/core/component/state/editor.d.ts
|
|
922
922
|
type Recordable = Record<PropertyKey, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ interface ComponentTreeNode {
|
|
|
166
166
|
meta?: any;
|
|
167
167
|
file?: string;
|
|
168
168
|
}
|
|
169
|
-
type ComponentBuiltinCustomStateTypes = 'function' | 'map' | 'set' | 'reference' | 'component' | 'component-definition' | '
|
|
169
|
+
type ComponentBuiltinCustomStateTypes = 'function' | 'map' | 'set' | 'reference' | 'component' | 'component-definition' | 'store';
|
|
170
170
|
interface ComponentCustomState extends ComponentStateBase {
|
|
171
171
|
value: CustomState;
|
|
172
172
|
}
|
|
@@ -916,7 +916,7 @@ interface ComponentBoundingRectApiPayload {
|
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
918
|
//#region src/core/component/types/custom.d.ts
|
|
919
|
-
type customTypeEnums = 'function' | 'bigint' | 'map' | 'set' | 'store' | '
|
|
919
|
+
type customTypeEnums = 'function' | 'bigint' | 'map' | 'set' | 'store' | 'component' | 'component-definition' | 'HTMLElement' | 'component-definition' | 'date';
|
|
920
920
|
//#endregion
|
|
921
921
|
//#region src/core/component/state/editor.d.ts
|
|
922
922
|
type Recordable = Record<PropertyKey, any>;
|
package/dist/index.js
CHANGED
|
@@ -5409,17 +5409,6 @@ function getStoreDetails(store) {
|
|
|
5409
5409
|
fields: { abstract: true }
|
|
5410
5410
|
} };
|
|
5411
5411
|
}
|
|
5412
|
-
function getRouterDetails(router) {
|
|
5413
|
-
return { _custom: {
|
|
5414
|
-
type: "router",
|
|
5415
|
-
displayText: "VueRouter",
|
|
5416
|
-
value: {
|
|
5417
|
-
options: router.options,
|
|
5418
|
-
currentRoute: router.currentRoute
|
|
5419
|
-
},
|
|
5420
|
-
fields: { abstract: true }
|
|
5421
|
-
} };
|
|
5422
|
-
}
|
|
5423
5412
|
function getInstanceDetails(instance) {
|
|
5424
5413
|
if (instance._) instance = instance._;
|
|
5425
5414
|
const state = processInstanceState(instance);
|
|
@@ -5515,7 +5504,6 @@ function stringifyReplacer(key, _value, depth, seenInstance) {
|
|
|
5515
5504
|
else if (proto === "[object Date]") return getDateDetails(val);
|
|
5516
5505
|
else if (proto === "[object Error]") return `[native Error ${val.message}<>${val.stack}]`;
|
|
5517
5506
|
else if (ensurePropertyExists(val, "state", true) && ensurePropertyExists(val, "_vm", true)) return getStoreDetails(val);
|
|
5518
|
-
else if (val.constructor && val.constructor.name === "VueRouter") return getRouterDetails(val);
|
|
5519
5507
|
else if (isVueInstance(val)) {
|
|
5520
5508
|
const componentVal = getInstanceDetails(val);
|
|
5521
5509
|
const parentInstanceDepth = seenInstance?.get(val);
|
|
@@ -5526,7 +5514,6 @@ function stringifyReplacer(key, _value, depth, seenInstance) {
|
|
|
5526
5514
|
else if (val.constructor && val.constructor.name === "VNode") return `[native VNode <${val.tag}>]`;
|
|
5527
5515
|
else if (typeof HTMLElement !== "undefined" && val instanceof HTMLElement) return getHTMLElementDetails(val);
|
|
5528
5516
|
else if (val.constructor?.name === "Store" && "_wrappedGetters" in val) return "[object Store]";
|
|
5529
|
-
else if (ensurePropertyExists(val, "currentRoute", true)) return "[object Router]";
|
|
5530
5517
|
const customDetails = getObjectDetails(val);
|
|
5531
5518
|
if (customDetails != null) return customDetails;
|
|
5532
5519
|
} else if (Number.isNaN(val)) return NAN;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.1.
|
|
4
|
+
"version": "8.1.2",
|
|
5
5
|
"author": "webfansplz",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"birpc": "^2.6.1",
|
|
27
27
|
"hookable": "^5.5.3",
|
|
28
28
|
"perfect-debounce": "^2.0.0",
|
|
29
|
-
"@vue/devtools-shared": "^8.1.
|
|
29
|
+
"@vue/devtools-shared": "^8.1.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/speakingurl": "^13.0.6",
|