11import { ensurePropertyExists } from '../utils'
22import { INFINITY , MAX_ARRAY_SIZE , MAX_STRING_SIZE , NAN , NEGATIVE_INFINITY , UNDEFINED } from './constants'
3- import { getBigIntDetails , getComponentDefinitionDetails , getDateDetails , getFunctionDetails , getHTMLElementDetails , getInstanceDetails , getMapDetails , getObjectDetails , getRouterDetails , getSetDetails , getStoreDetails } from './custom'
3+ import { getBigIntDetails , getComponentDefinitionDetails , getDateDetails , getFunctionDetails , getHTMLElementDetails , getInstanceDetails , getMapDetails , getObjectDetails , getSetDetails , getStoreDetails } from './custom'
44import { isVueInstance } from './is'
55import { sanitize } from './util'
66
@@ -73,9 +73,6 @@ export function stringifyReplacer(key: string | number, _value: any, depth?: num
7373 else if ( ensurePropertyExists ( val , 'state' , true ) && ensurePropertyExists ( val , '_vm' , true ) ) {
7474 return getStoreDetails ( val )
7575 }
76- else if ( val . constructor && val . constructor . name === 'VueRouter' ) {
77- return getRouterDetails ( val )
78- }
7976 else if ( isVueInstance ( val as Record < string , unknown > ) ) {
8077 const componentVal = getInstanceDetails ( val )
8178 const parentInstanceDepth = seenInstance ?. get ( val )
@@ -98,9 +95,6 @@ export function stringifyReplacer(key: string | number, _value: any, depth?: num
9895 else if ( val . constructor ?. name === 'Store' && '_wrappedGetters' in val ) {
9996 return '[object Store]'
10097 }
101- else if ( ensurePropertyExists ( val , 'currentRoute' , true ) ) {
102- return '[object Router]'
103- }
10498 const customDetails = getObjectDetails ( val )
10599 if ( customDetails != null )
106100 return customDetails
0 commit comments