@tanstack/react-query-devtools 4.13.6 → 4.14.0
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/lib/devtools.esm.js +2 -2
- package/build/lib/devtools.esm.js.map +1 -1
- package/build/lib/devtools.js +1 -1
- package/build/lib/devtools.js.map +1 -1
- package/build/lib/devtools.mjs +2 -2
- package/build/lib/devtools.mjs.map +1 -1
- package/build/lib/index.prod.esm.js +4 -3
- package/build/lib/index.prod.esm.js.map +1 -1
- package/build/lib/index.prod.js +4 -3
- package/build/lib/index.prod.js.map +1 -1
- package/build/lib/index.prod.mjs +4 -3
- package/build/lib/index.prod.mjs.map +1 -1
- package/build/lib/utils.d.ts +2 -1
- package/build/lib/utils.esm.js +3 -2
- package/build/lib/utils.esm.js.map +1 -1
- package/build/lib/utils.js +3 -2
- package/build/lib/utils.js.map +1 -1
- package/build/lib/utils.mjs +3 -2
- package/build/lib/utils.mjs.map +1 -1
- package/build/umd/index.development.js +4 -3
- package/build/umd/index.development.js.map +1 -1
- package/package.json +3 -3
- package/src/devtools.tsx +2 -1
- package/src/utils.ts +3 -2
package/build/lib/index.prod.js
CHANGED
|
@@ -192,13 +192,14 @@ function useIsMounted() {
|
|
|
192
192
|
/**
|
|
193
193
|
* Displays a string regardless the type of the data
|
|
194
194
|
* @param {unknown} value Value to be stringified
|
|
195
|
+
* @param {boolean} beautify Formats json to multiline
|
|
195
196
|
*/
|
|
196
197
|
|
|
197
|
-
const displayValue = value => {
|
|
198
|
+
const displayValue = (value, beautify = false) => {
|
|
198
199
|
const {
|
|
199
200
|
json
|
|
200
201
|
} = SuperJSON__default["default"].serialize(value);
|
|
201
|
-
return JSON.stringify(json);
|
|
202
|
+
return JSON.stringify(json, null, beautify ? 2 : undefined);
|
|
202
203
|
}; // Sorting functions
|
|
203
204
|
|
|
204
205
|
const getStatusRank = q => q.state.fetchStatus !== 'idle' ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
@@ -1161,7 +1162,7 @@ const ActiveQuery = ({
|
|
|
1161
1162
|
padding: 0,
|
|
1162
1163
|
overflow: 'auto'
|
|
1163
1164
|
}
|
|
1164
|
-
},
|
|
1165
|
+
}, displayValue(activeQuery.queryKey, true))), /*#__PURE__*/React__namespace.createElement("span", {
|
|
1165
1166
|
style: {
|
|
1166
1167
|
padding: '0.3em .6em',
|
|
1167
1168
|
borderRadius: '0.4em',
|