@tanstack/query-devtools 5.0.0-alpha.46 → 5.0.0-alpha.48
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 +2 -1
- package/src/Explorer.tsx +1 -1
- package/src/utils.tsx +2 -2
|
@@ -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/build/source/utils.jsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as superjson from 'superjson';
|
|
2
2
|
export function getQueryStatusLabel(query) {
|
|
3
3
|
return query.state.fetchStatus === 'fetching'
|
|
4
4
|
? 'fetching'
|
|
@@ -45,7 +45,7 @@ export function getQueryStatusColorByLabel(label) {
|
|
|
45
45
|
* @param {boolean} beautify Formats json to multiline
|
|
46
46
|
*/
|
|
47
47
|
export const displayValue = (value, beautify = false) => {
|
|
48
|
-
const { json } =
|
|
48
|
+
const { json } = superjson.serialize(value);
|
|
49
49
|
return JSON.stringify(json, null, beautify ? 2 : undefined);
|
|
50
50
|
};
|
|
51
51
|
const getStatusRank = (q) => q.state.fetchStatus !== 'idle'
|