@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/query-devtools",
3
- "version": "5.0.0-alpha.47",
3
+ "version": "5.0.0-alpha.49",
4
4
  "description": "Developer tools to interact with and visualize the TanStack Query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
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 SuperJSON from 'superjson'
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 } = SuperJSON.serialize(value)
63
+ const { json } = superjson.serialize(value)
64
64
 
65
65
  return JSON.stringify(json, null, beautify ? 2 : undefined)
66
66
  }