@tanstack/query-devtools 5.0.0-alpha.47 → 5.0.0-alpha.49
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/build/cjs/index.js +16 -52
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +16 -52
- package/build/esm/index.mjs.map +1 -1
- package/build/source/Explorer.jsx +1 -1
- package/build/source/utils.jsx +2 -2
- package/build/umd/index.js +183 -183
- package/build/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Explorer.tsx +1 -1
- package/src/utils.tsx +2 -2
package/package.json
CHANGED
package/src/Explorer.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { displayValue } from './utils'
|
|
2
|
-
import superjson from 'superjson'
|
|
2
|
+
import * as superjson from 'superjson'
|
|
3
3
|
import { css, cx } from '@emotion/css'
|
|
4
4
|
import { tokens } from './theme'
|
|
5
5
|
import { createMemo, createSignal, Index, Match, Show, Switch } from 'solid-js'
|
package/src/utils.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Query } from '@tanstack/query-core'
|
|
2
|
-
import
|
|
2
|
+
import * as superjson from 'superjson'
|
|
3
3
|
|
|
4
4
|
export function getQueryStatusLabel(query: Query) {
|
|
5
5
|
return query.state.fetchStatus === 'fetching'
|
|
@@ -60,7 +60,7 @@ export function getQueryStatusColorByLabel(label: IQueryStatusLabel) {
|
|
|
60
60
|
* @param {boolean} beautify Formats json to multiline
|
|
61
61
|
*/
|
|
62
62
|
export const displayValue = (value: unknown, beautify: boolean = false) => {
|
|
63
|
-
const { json } =
|
|
63
|
+
const { json } = superjson.serialize(value)
|
|
64
64
|
|
|
65
65
|
return JSON.stringify(json, null, beautify ? 2 : undefined)
|
|
66
66
|
}
|