@tanstack/query-devtools 5.65.0 → 5.67.2
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/DevtoolsComponent/{E3YREIG7.js → J3FDRF32.js} +2 -2
- package/build/DevtoolsComponent/{HO4MOOFI.js → VONRGPZ6.js} +2 -2
- package/build/DevtoolsPanelComponent/{HUY7CZI3.js → 2QQPFIXG.js} +2 -2
- package/build/DevtoolsPanelComponent/{LFXA4CB4.js → 3VW64HDT.js} +2 -2
- package/build/chunk/{JAANZ2TG.js → 4F76KWFD.js} +55 -59
- package/build/chunk/{B4MFY5CR.js → 67EVQ76A.js} +274 -279
- package/build/chunk/{NDYUDEEA.js → TBLV65XX.js} +274 -279
- package/build/chunk/{JAD5ECXD.js → YIUCDINQ.js} +55 -59
- package/build/dev.cjs +381 -389
- package/build/dev.js +3 -3
- package/build/index.cjs +381 -389
- package/build/index.d.cts +17 -11
- package/build/index.d.ts +17 -11
- package/build/index.js +3 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/
|
|
2
|
-
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/67EVQ76A.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/4F76KWFD.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsComponent.tsx
|
|
5
5
|
var DevtoolsComponent = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/
|
|
2
|
-
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/TBLV65XX.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/YIUCDINQ.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsComponent.tsx
|
|
5
5
|
var DevtoolsComponent = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/
|
|
2
|
-
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/TBLV65XX.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/YIUCDINQ.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsPanelComponent.tsx
|
|
5
5
|
var DevtoolsPanelComponent = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/
|
|
2
|
-
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/67EVQ76A.js';
|
|
2
|
+
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/4F76KWFD.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsPanelComponent.tsx
|
|
5
5
|
var DevtoolsPanelComponent = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
1
|
+
// ../../node_modules/.pnpm/solid-js@1.9.4/node_modules/solid-js/dist/solid.js
|
|
2
2
|
var sharedConfig = {
|
|
3
|
-
context:
|
|
4
|
-
registry:
|
|
5
|
-
effects:
|
|
3
|
+
context: void 0,
|
|
4
|
+
registry: void 0,
|
|
5
|
+
effects: void 0,
|
|
6
6
|
done: false,
|
|
7
7
|
getContextId() {
|
|
8
8
|
return getContextId(this.context.count);
|
|
@@ -52,7 +52,7 @@ var Updates = null;
|
|
|
52
52
|
var Effects = null;
|
|
53
53
|
var ExecCount = 0;
|
|
54
54
|
function createRoot(fn, detachedOwner) {
|
|
55
|
-
const listener = Listener, owner = Owner, unowned = fn.length === 0, current = detachedOwner ===
|
|
55
|
+
const listener = Listener, owner = Owner, unowned = fn.length === 0, current = detachedOwner === void 0 ? owner : detachedOwner, root = unowned ? UNOWNED : {
|
|
56
56
|
owned: null,
|
|
57
57
|
cleanups: null,
|
|
58
58
|
context: current ? current.context : null,
|
|
@@ -73,7 +73,7 @@ function createSignal(value, options) {
|
|
|
73
73
|
value,
|
|
74
74
|
observers: null,
|
|
75
75
|
observerSlots: null,
|
|
76
|
-
comparator: options.equals ||
|
|
76
|
+
comparator: options.equals || void 0
|
|
77
77
|
};
|
|
78
78
|
const setter = (value2) => {
|
|
79
79
|
if (typeof value2 === "function") {
|
|
@@ -114,7 +114,7 @@ function createMemo(fn, value, options) {
|
|
|
114
114
|
const c = createComputation(fn, value, true, 0);
|
|
115
115
|
c.observers = null;
|
|
116
116
|
c.observerSlots = null;
|
|
117
|
-
c.comparator = options.equals ||
|
|
117
|
+
c.comparator = options.equals || void 0;
|
|
118
118
|
if (Scheduler && Transition && Transition.running) {
|
|
119
119
|
c.tState = STALE;
|
|
120
120
|
Updates.push(c);
|
|
@@ -129,17 +129,13 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
129
129
|
let source;
|
|
130
130
|
let fetcher;
|
|
131
131
|
let options;
|
|
132
|
-
|
|
132
|
+
{
|
|
133
133
|
source = true;
|
|
134
134
|
fetcher = pSource;
|
|
135
135
|
options = {};
|
|
136
|
-
} else {
|
|
137
|
-
source = pSource;
|
|
138
|
-
fetcher = pFetcher;
|
|
139
|
-
options = {};
|
|
140
136
|
}
|
|
141
137
|
let pr = null, initP = NO_INIT, id = null, loadedUnderTransition = false, scheduled = false, resolved = "initialValue" in options, dynamic = typeof source === "function" && createMemo(source);
|
|
142
|
-
const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(
|
|
138
|
+
const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
|
|
143
139
|
equals: false
|
|
144
140
|
}), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
|
|
145
141
|
if (sharedConfig.context) {
|
|
@@ -152,7 +148,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
152
148
|
function loadEnd(p, v, error2, key) {
|
|
153
149
|
if (pr === p) {
|
|
154
150
|
pr = null;
|
|
155
|
-
key !==
|
|
151
|
+
key !== void 0 && (resolved = true);
|
|
156
152
|
if ((p === initP || v === initP) && options.onHydrated)
|
|
157
153
|
queueMicrotask(
|
|
158
154
|
() => options.onHydrated(key, {
|
|
@@ -185,7 +181,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
185
181
|
}
|
|
186
182
|
function read() {
|
|
187
183
|
const c = SuspenseContext && useContext(SuspenseContext), v = value(), err = error();
|
|
188
|
-
if (err !==
|
|
184
|
+
if (err !== void 0 && !pr)
|
|
189
185
|
throw err;
|
|
190
186
|
if (Listener && !Listener.user && c) {
|
|
191
187
|
createComputed(() => {
|
|
@@ -221,15 +217,15 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
221
217
|
})
|
|
222
218
|
);
|
|
223
219
|
if (!isPromise(p)) {
|
|
224
|
-
loadEnd(pr, p,
|
|
220
|
+
loadEnd(pr, p, void 0, lookup);
|
|
225
221
|
return p;
|
|
226
222
|
}
|
|
227
223
|
pr = p;
|
|
228
224
|
if ("value" in p) {
|
|
229
225
|
if (p.status === "success")
|
|
230
|
-
loadEnd(pr, p.value,
|
|
226
|
+
loadEnd(pr, p.value, void 0, lookup);
|
|
231
227
|
else
|
|
232
|
-
loadEnd(pr,
|
|
228
|
+
loadEnd(pr, void 0, castError(p.value), lookup);
|
|
233
229
|
return p;
|
|
234
230
|
}
|
|
235
231
|
scheduled = true;
|
|
@@ -239,8 +235,8 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
239
235
|
trigger();
|
|
240
236
|
}, false);
|
|
241
237
|
return p.then(
|
|
242
|
-
(v) => loadEnd(p, v,
|
|
243
|
-
(e) => loadEnd(p,
|
|
238
|
+
(v) => loadEnd(p, v, void 0, lookup),
|
|
239
|
+
(e) => loadEnd(p, void 0, castError(e), lookup)
|
|
244
240
|
);
|
|
245
241
|
}
|
|
246
242
|
Object.defineProperties(read, {
|
|
@@ -370,7 +366,7 @@ function startTransition(fn) {
|
|
|
370
366
|
}
|
|
371
367
|
runUpdates(fn, false);
|
|
372
368
|
Listener = Owner = null;
|
|
373
|
-
return t ? t.done :
|
|
369
|
+
return t ? t.done : void 0;
|
|
374
370
|
});
|
|
375
371
|
}
|
|
376
372
|
var [transPending, setTransPending] = /* @__PURE__ */ createSignal(false);
|
|
@@ -387,7 +383,7 @@ function createContext(defaultValue, options) {
|
|
|
387
383
|
}
|
|
388
384
|
function useContext(context) {
|
|
389
385
|
let value;
|
|
390
|
-
return Owner && Owner.context && (value = Owner.context[context.id]) !==
|
|
386
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== void 0 ? value : context.defaultValue;
|
|
391
387
|
}
|
|
392
388
|
function children(fn) {
|
|
393
389
|
const children2 = createMemo(fn);
|
|
@@ -508,7 +504,7 @@ function runComputation(node, value, time) {
|
|
|
508
504
|
if (Transition && Transition.running) {
|
|
509
505
|
node.tState = STALE;
|
|
510
506
|
node.tOwned && node.tOwned.forEach(cleanNode);
|
|
511
|
-
node.tOwned =
|
|
507
|
+
node.tOwned = void 0;
|
|
512
508
|
} else {
|
|
513
509
|
node.state = STALE;
|
|
514
510
|
node.owned && node.owned.forEach(cleanNode);
|
|
@@ -566,7 +562,7 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
566
562
|
}
|
|
567
563
|
}
|
|
568
564
|
if (ExternalSourceConfig && c.fn) {
|
|
569
|
-
const [track, trigger] = createSignal(
|
|
565
|
+
const [track, trigger] = createSignal(void 0, {
|
|
570
566
|
equals: false
|
|
571
567
|
});
|
|
572
568
|
const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
|
|
@@ -872,7 +868,7 @@ function createProvider(id, options) {
|
|
|
872
868
|
};
|
|
873
869
|
return children(() => props.children);
|
|
874
870
|
}),
|
|
875
|
-
|
|
871
|
+
void 0
|
|
876
872
|
);
|
|
877
873
|
return res;
|
|
878
874
|
};
|
|
@@ -1077,7 +1073,7 @@ function resolveSource(s) {
|
|
|
1077
1073
|
function resolveSources() {
|
|
1078
1074
|
for (let i = 0, length = this.length; i < length; ++i) {
|
|
1079
1075
|
const v = this[i]();
|
|
1080
|
-
if (v !==
|
|
1076
|
+
if (v !== void 0)
|
|
1081
1077
|
return v;
|
|
1082
1078
|
}
|
|
1083
1079
|
}
|
|
@@ -1094,7 +1090,7 @@ function mergeProps(...sources) {
|
|
|
1094
1090
|
get(property) {
|
|
1095
1091
|
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1096
1092
|
const v = resolveSource(sources[i])[property];
|
|
1097
|
-
if (v !==
|
|
1093
|
+
if (v !== void 0)
|
|
1098
1094
|
return v;
|
|
1099
1095
|
}
|
|
1100
1096
|
},
|
|
@@ -1132,13 +1128,13 @@ function mergeProps(...sources) {
|
|
|
1132
1128
|
enumerable: true,
|
|
1133
1129
|
configurable: true,
|
|
1134
1130
|
get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
|
|
1135
|
-
} : desc.value !==
|
|
1131
|
+
} : desc.value !== void 0 ? desc : void 0;
|
|
1136
1132
|
} else {
|
|
1137
1133
|
const sources2 = sourcesMap[key];
|
|
1138
1134
|
if (sources2) {
|
|
1139
1135
|
if (desc.get)
|
|
1140
1136
|
sources2.push(desc.get.bind(source));
|
|
1141
|
-
else if (desc.value !==
|
|
1137
|
+
else if (desc.value !== void 0)
|
|
1142
1138
|
sources2.push(() => desc.value);
|
|
1143
1139
|
}
|
|
1144
1140
|
}
|
|
@@ -1151,7 +1147,7 @@ function mergeProps(...sources) {
|
|
|
1151
1147
|
if (desc && desc.get)
|
|
1152
1148
|
Object.defineProperty(target, key, desc);
|
|
1153
1149
|
else
|
|
1154
|
-
target[key] = desc ? desc.value :
|
|
1150
|
+
target[key] = desc ? desc.value : void 0;
|
|
1155
1151
|
}
|
|
1156
1152
|
return target;
|
|
1157
1153
|
}
|
|
@@ -1162,7 +1158,7 @@ function splitProps(props, ...keys) {
|
|
|
1162
1158
|
return new Proxy(
|
|
1163
1159
|
{
|
|
1164
1160
|
get(property) {
|
|
1165
|
-
return k.includes(property) ? props[property] :
|
|
1161
|
+
return k.includes(property) ? props[property] : void 0;
|
|
1166
1162
|
},
|
|
1167
1163
|
has(property) {
|
|
1168
1164
|
return k.includes(property) && property in props;
|
|
@@ -1178,7 +1174,7 @@ function splitProps(props, ...keys) {
|
|
|
1178
1174
|
new Proxy(
|
|
1179
1175
|
{
|
|
1180
1176
|
get(property) {
|
|
1181
|
-
return blocked.has(property) ?
|
|
1177
|
+
return blocked.has(property) ? void 0 : props[property];
|
|
1182
1178
|
},
|
|
1183
1179
|
has(property) {
|
|
1184
1180
|
return blocked.has(property) ? false : property in props;
|
|
@@ -1260,17 +1256,17 @@ function For(props) {
|
|
|
1260
1256
|
const fallback = "fallback" in props && {
|
|
1261
1257
|
fallback: () => props.fallback
|
|
1262
1258
|
};
|
|
1263
|
-
return createMemo(mapArray(() => props.each, props.children, fallback ||
|
|
1259
|
+
return createMemo(mapArray(() => props.each, props.children, fallback || void 0));
|
|
1264
1260
|
}
|
|
1265
1261
|
function Index(props) {
|
|
1266
1262
|
const fallback = "fallback" in props && {
|
|
1267
1263
|
fallback: () => props.fallback
|
|
1268
1264
|
};
|
|
1269
|
-
return createMemo(indexArray(() => props.each, props.children, fallback ||
|
|
1265
|
+
return createMemo(indexArray(() => props.each, props.children, fallback || void 0));
|
|
1270
1266
|
}
|
|
1271
1267
|
function Show(props) {
|
|
1272
1268
|
const keyed = props.keyed;
|
|
1273
|
-
const condition = createMemo(() => props.when,
|
|
1269
|
+
const condition = createMemo(() => props.when, void 0, {
|
|
1274
1270
|
equals: (a, b) => keyed ? a === b : !a === !b
|
|
1275
1271
|
});
|
|
1276
1272
|
return createMemo(
|
|
@@ -1291,8 +1287,8 @@ function Show(props) {
|
|
|
1291
1287
|
}
|
|
1292
1288
|
return props.fallback;
|
|
1293
1289
|
},
|
|
1294
|
-
|
|
1295
|
-
|
|
1290
|
+
void 0,
|
|
1291
|
+
void 0
|
|
1296
1292
|
);
|
|
1297
1293
|
}
|
|
1298
1294
|
function Switch(props) {
|
|
@@ -1312,7 +1308,7 @@ function Switch(props) {
|
|
|
1312
1308
|
}
|
|
1313
1309
|
return [-1];
|
|
1314
1310
|
},
|
|
1315
|
-
|
|
1311
|
+
void 0,
|
|
1316
1312
|
{
|
|
1317
1313
|
equals
|
|
1318
1314
|
}
|
|
@@ -1334,16 +1330,16 @@ function Switch(props) {
|
|
|
1334
1330
|
)
|
|
1335
1331
|
) : c;
|
|
1336
1332
|
},
|
|
1337
|
-
|
|
1338
|
-
|
|
1333
|
+
void 0,
|
|
1334
|
+
void 0
|
|
1339
1335
|
);
|
|
1340
1336
|
}
|
|
1341
1337
|
function Match(props) {
|
|
1342
1338
|
return props;
|
|
1343
1339
|
}
|
|
1344
|
-
var DEV =
|
|
1340
|
+
var DEV = void 0;
|
|
1345
1341
|
|
|
1346
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
1342
|
+
// ../../node_modules/.pnpm/solid-js@1.9.4/node_modules/solid-js/web/dist/web.js
|
|
1347
1343
|
var booleans = [
|
|
1348
1344
|
"allowfullscreen",
|
|
1349
1345
|
"async",
|
|
@@ -1418,7 +1414,7 @@ var PropAliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(nu
|
|
|
1418
1414
|
});
|
|
1419
1415
|
function getPropAlias(prop, tagName) {
|
|
1420
1416
|
const a = PropAliases[prop];
|
|
1421
|
-
return typeof a === "object" ? a[tagName] ? a["$"] :
|
|
1417
|
+
return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
|
|
1422
1418
|
}
|
|
1423
1419
|
var DelegatedEvents = /* @__PURE__ */ new Set([
|
|
1424
1420
|
"beforeinput",
|
|
@@ -1588,7 +1584,7 @@ function render(code, element, init, options = {}) {
|
|
|
1588
1584
|
let disposer;
|
|
1589
1585
|
createRoot((dispose2) => {
|
|
1590
1586
|
disposer = dispose2;
|
|
1591
|
-
element === document ? code() : insert(element, code(), element.firstChild ? null :
|
|
1587
|
+
element === document ? code() : insert(element, code(), element.firstChild ? null : void 0, init);
|
|
1592
1588
|
}, options.owner);
|
|
1593
1589
|
return () => {
|
|
1594
1590
|
disposer();
|
|
@@ -1690,7 +1686,7 @@ function style(node, value, prev) {
|
|
|
1690
1686
|
const nodeStyle = node.style;
|
|
1691
1687
|
if (typeof value === "string")
|
|
1692
1688
|
return nodeStyle.cssText = value;
|
|
1693
|
-
typeof prev === "string" && (nodeStyle.cssText = prev =
|
|
1689
|
+
typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
|
|
1694
1690
|
prev || (prev = {});
|
|
1695
1691
|
value || (value = {});
|
|
1696
1692
|
let v, s;
|
|
@@ -1722,7 +1718,7 @@ function use(fn, element, arg) {
|
|
|
1722
1718
|
return untrack(() => fn(element, arg));
|
|
1723
1719
|
}
|
|
1724
1720
|
function insert(parent, accessor, marker, initial) {
|
|
1725
|
-
if (marker !==
|
|
1721
|
+
if (marker !== void 0 && !initial)
|
|
1726
1722
|
initial = [];
|
|
1727
1723
|
if (typeof accessor !== "function")
|
|
1728
1724
|
return insertExpression(parent, accessor, initial, marker);
|
|
@@ -1838,7 +1834,7 @@ function eventHandler(e) {
|
|
|
1838
1834
|
const handler = node[key];
|
|
1839
1835
|
if (handler && !node.disabled) {
|
|
1840
1836
|
const data = node[`${key}Data`];
|
|
1841
|
-
data !==
|
|
1837
|
+
data !== void 0 ? handler.call(node, data, e) : handler.call(node, e);
|
|
1842
1838
|
if (e.cancelBubble)
|
|
1843
1839
|
return;
|
|
1844
1840
|
}
|
|
@@ -1895,7 +1891,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1895
1891
|
current = current();
|
|
1896
1892
|
if (value === current)
|
|
1897
1893
|
return current;
|
|
1898
|
-
const t = typeof value, multi = marker !==
|
|
1894
|
+
const t = typeof value, multi = marker !== void 0;
|
|
1899
1895
|
parent = multi && current[0] && current[0].parentNode || parent;
|
|
1900
1896
|
if (t === "string" || t === "number") {
|
|
1901
1897
|
if (hydrating)
|
|
@@ -1940,7 +1936,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1940
1936
|
if (hydrating) {
|
|
1941
1937
|
if (!array.length)
|
|
1942
1938
|
return current;
|
|
1943
|
-
if (marker ===
|
|
1939
|
+
if (marker === void 0)
|
|
1944
1940
|
return current = [...parent.childNodes];
|
|
1945
1941
|
let node = array[0];
|
|
1946
1942
|
if (node.parentNode !== parent)
|
|
@@ -2018,7 +2014,7 @@ function appendNodes(parent, array, marker = null) {
|
|
|
2018
2014
|
parent.insertBefore(array[i], marker);
|
|
2019
2015
|
}
|
|
2020
2016
|
function cleanChildren(parent, current, marker, replacement) {
|
|
2021
|
-
if (marker ===
|
|
2017
|
+
if (marker === void 0)
|
|
2022
2018
|
return parent.textContent = "";
|
|
2023
2019
|
const node = replacement || document.createTextNode("");
|
|
2024
2020
|
if (current.length) {
|
|
@@ -2077,7 +2073,7 @@ function Portal(props) {
|
|
|
2077
2073
|
onCleanup(() => el.removeChild(container));
|
|
2078
2074
|
}
|
|
2079
2075
|
},
|
|
2080
|
-
|
|
2076
|
+
void 0,
|
|
2081
2077
|
{
|
|
2082
2078
|
render: !hydrating
|
|
2083
2079
|
}
|
|
@@ -2195,7 +2191,7 @@ function find(record, predicate) {
|
|
|
2195
2191
|
return value;
|
|
2196
2192
|
}
|
|
2197
2193
|
}
|
|
2198
|
-
return
|
|
2194
|
+
return void 0;
|
|
2199
2195
|
}
|
|
2200
2196
|
function forEach(record, run) {
|
|
2201
2197
|
Object.entries(record).forEach(([key, value]) => run(value, key));
|
|
@@ -2210,7 +2206,7 @@ function findArr(record, predicate) {
|
|
|
2210
2206
|
return value;
|
|
2211
2207
|
}
|
|
2212
2208
|
}
|
|
2213
|
-
return
|
|
2209
|
+
return void 0;
|
|
2214
2210
|
}
|
|
2215
2211
|
|
|
2216
2212
|
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/custom-transformer-registry.js
|
|
@@ -2297,7 +2293,7 @@ function simpleTransformation(isApplicable, annotation, transform, untransform)
|
|
|
2297
2293
|
};
|
|
2298
2294
|
}
|
|
2299
2295
|
var simpleRules = [
|
|
2300
|
-
simpleTransformation(isUndefined, "undefined", () => null, () =>
|
|
2296
|
+
simpleTransformation(isUndefined, "undefined", () => null, () => void 0),
|
|
2301
2297
|
simpleTransformation(isBigint, "bigint", (v) => v.toString(), (v) => {
|
|
2302
2298
|
if (typeof BigInt !== "undefined") {
|
|
2303
2299
|
return BigInt(v);
|
|
@@ -2455,7 +2451,7 @@ var transformValue = (value, superJson) => {
|
|
|
2455
2451
|
type: applicableSimpleRule.annotation
|
|
2456
2452
|
};
|
|
2457
2453
|
}
|
|
2458
|
-
return
|
|
2454
|
+
return void 0;
|
|
2459
2455
|
};
|
|
2460
2456
|
var simpleRulesByAnnotation = {};
|
|
2461
2457
|
simpleRules.forEach((rule) => {
|
|
@@ -2652,7 +2648,7 @@ function addIdentity(object, path, identities) {
|
|
|
2652
2648
|
}
|
|
2653
2649
|
function generateReferentialEqualityAnnotations(identitites, dedupe) {
|
|
2654
2650
|
const result = {};
|
|
2655
|
-
let rootEqualityPaths =
|
|
2651
|
+
let rootEqualityPaths = void 0;
|
|
2656
2652
|
identitites.forEach((paths) => {
|
|
2657
2653
|
if (paths.length <= 1) {
|
|
2658
2654
|
return;
|
|
@@ -2674,7 +2670,7 @@ function generateReferentialEqualityAnnotations(identitites, dedupe) {
|
|
|
2674
2670
|
return [rootEqualityPaths, result];
|
|
2675
2671
|
}
|
|
2676
2672
|
} else {
|
|
2677
|
-
return isEmptyObject(result) ?
|
|
2673
|
+
return isEmptyObject(result) ? void 0 : result;
|
|
2678
2674
|
}
|
|
2679
2675
|
}
|
|
2680
2676
|
var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPath = [], seenObjects = /* @__PURE__ */ new Map()) => {
|
|
@@ -2726,7 +2722,7 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
|
|
|
2726
2722
|
});
|
|
2727
2723
|
const result = isEmptyObject(innerAnnotations) ? {
|
|
2728
2724
|
transformedValue,
|
|
2729
|
-
annotations: !!transformationResult ? [transformationResult.type] :
|
|
2725
|
+
annotations: !!transformationResult ? [transformationResult.type] : void 0
|
|
2730
2726
|
} : {
|
|
2731
2727
|
transformedValue,
|
|
2732
2728
|
annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
|
|
@@ -2896,7 +2892,7 @@ var displayValue = (value, beautify = false) => {
|
|
|
2896
2892
|
const {
|
|
2897
2893
|
json
|
|
2898
2894
|
} = serialize(value);
|
|
2899
|
-
return JSON.stringify(json, null, beautify ? 2 :
|
|
2895
|
+
return JSON.stringify(json, null, beautify ? 2 : void 0);
|
|
2900
2896
|
};
|
|
2901
2897
|
var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
2902
2898
|
var queryHashSort = (a, b) => a.queryHash.localeCompare(b.queryHash);
|