@tanstack/router-devtools 1.1.2 → 1.1.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/router-devtools",
3
3
  "author": "Tanner Linsley",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router/",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@babel/runtime": "^7.16.7",
43
43
  "date-fns": "^2.29.1",
44
- "@tanstack/react-router": "1.1.2"
44
+ "@tanstack/react-router": "1.1.3"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "rollup --config rollup.config.js"
package/src/utils.ts CHANGED
@@ -107,8 +107,11 @@ export function useIsMounted() {
107
107
  export const displayValue = (value: unknown) => {
108
108
  const name = Object.getOwnPropertyNames(Object(value))
109
109
  const newValue = typeof value === 'bigint' ? `${value.toString()}n` : value
110
-
111
- return JSON.stringify(newValue, name)
110
+ try {
111
+ return JSON.stringify(newValue, name)
112
+ } catch (e) {
113
+ return `unable to stringify`
114
+ }
112
115
  }
113
116
 
114
117
  /**