zudoku 0.35.0 → 0.35.1
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/dist/config/validators/common.d.ts +3 -3
- package/dist/config/validators/common.js +1 -1
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +1 -1
- package/dist/lib/authentication/providers/openid.js +4 -1
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/lib/{OasProvider-DEL8ulKm.js → OasProvider-vimCZXXF.js} +2 -2
- package/lib/{OasProvider-DEL8ulKm.js.map → OasProvider-vimCZXXF.js.map} +1 -1
- package/lib/{OperationList-D6goKbzX.js → OperationList-C6Tumce9.js} +2 -2
- package/lib/{OperationList-D6goKbzX.js.map → OperationList-C6Tumce9.js.map} +1 -1
- package/lib/{createServer-BNBGpbLa.js → createServer-BEFAOb-x.js} +227 -221
- package/lib/createServer-BEFAOb-x.js.map +1 -0
- package/lib/{index-PKytqmuw.js → index-OD2IZ2Nn.js} +4 -4
- package/lib/{index-PKytqmuw.js.map → index-OD2IZ2Nn.js.map} +1 -1
- package/lib/zudoku.auth-openid.js +94 -94
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +2 -2
- package/src/lib/authentication/providers/openid.tsx +5 -1
- package/lib/createServer-BNBGpbLa.js.map +0 -1
|
@@ -13,9 +13,9 @@ var kn = (t, e, n, i) => ({
|
|
|
13
13
|
return f(t, e, i);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { G as v, T as ks, i as Xn, a as xs, d as na, b as ia, c as ir, e as Je, f as
|
|
16
|
+
import { G as v, T as ks, i as Xn, a as xs, d as na, b as ia, c as ir, e as Je, f as F, K as h, O as Ce, L as ra, g as nt, h as B, j as he, k as ge, l as Y, m as dt, p as ae, n as pt, o as j, q as sa, t as Ds, r as oa, s as aa, u as ke, v as ht, w as Ht, x as it, y as Re, z as pe, A as Ls, B as zt, D as vn, E as He, F as We, H as On, I as ca, J as qn, M as Ps, N as gt, P as $s, Q as Sr, R as la, S as Ot, U as di, V as Yt, W as wn, X as ua, Y as Ms, Z as fa, _ as da, $ as Lt, a0 as un, a1 as Gn, a2 as pa, C as ha, a3 as ga, a4 as ma, a5 as ya } from "./circular-v7K6lDDh.js";
|
|
17
17
|
import { a as ba } from "./index-LNp6rxyU.js";
|
|
18
|
-
import { traverse as
|
|
18
|
+
import { traverse as Ct } from "./post-processors/traverse.js";
|
|
19
19
|
import { g as Ea } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
20
20
|
function Ta(t, e) {
|
|
21
21
|
for (var n = 0; n < e.length; n++) {
|
|
@@ -171,10 +171,10 @@ function xn(t) {
|
|
|
171
171
|
}
|
|
172
172
|
function Oa({ plugins: t }) {
|
|
173
173
|
let e = null, n = !1;
|
|
174
|
-
const i = () => xn("parse"), r = () => xn("validate"), s = () => xn("execute"), o = () => xn("subscribe"), a = (w,
|
|
174
|
+
const i = () => xn("parse"), r = () => xn("validate"), s = () => xn("execute"), o = () => xn("subscribe"), a = (w, C = -1) => {
|
|
175
175
|
if (e !== w && (e = w, n))
|
|
176
176
|
for (const [O, m] of t.entries())
|
|
177
|
-
O !==
|
|
177
|
+
O !== C && m.onSchemaChange && m.onSchemaChange({
|
|
178
178
|
schema: e,
|
|
179
179
|
replaceSchema: (T) => {
|
|
180
180
|
a(T, O);
|
|
@@ -182,8 +182,8 @@ function Oa({ plugins: t }) {
|
|
|
182
182
|
});
|
|
183
183
|
}, c = [];
|
|
184
184
|
for (let w = 0; w < t.length; w++) {
|
|
185
|
-
const
|
|
186
|
-
|
|
185
|
+
const C = t[w], O = [];
|
|
186
|
+
C.onPluginInit && C.onPluginInit({
|
|
187
187
|
plugins: t,
|
|
188
188
|
addPlugin: (m) => {
|
|
189
189
|
O.push(m);
|
|
@@ -200,18 +200,18 @@ function Oa({ plugins: t }) {
|
|
|
200
200
|
execute: [],
|
|
201
201
|
context: []
|
|
202
202
|
};
|
|
203
|
-
for (const { onContextBuilding: w, onExecute:
|
|
204
|
-
E && l.init.push(E), w && l.context.push(w),
|
|
203
|
+
for (const { onContextBuilding: w, onExecute: C, onParse: O, onSubscribe: m, onValidate: T, onEnveloped: E } of t)
|
|
204
|
+
E && l.init.push(E), w && l.context.push(w), C && l.execute.push(C), O && l.parse.push(O), m && l.subscribe.push(m), T && l.validate.push(T);
|
|
205
205
|
const u = (w) => {
|
|
206
|
-
for (const [
|
|
206
|
+
for (const [C, O] of l.init.entries())
|
|
207
207
|
O({
|
|
208
208
|
context: w,
|
|
209
209
|
extendContext: (m) => {
|
|
210
210
|
w && Object.assign(w, m);
|
|
211
211
|
},
|
|
212
|
-
setSchema: (m) => a(m,
|
|
212
|
+
setSchema: (m) => a(m, C)
|
|
213
213
|
});
|
|
214
|
-
}, p = l.parse.length ? (w) => (
|
|
214
|
+
}, p = l.parse.length ? (w) => (C, O) => {
|
|
215
215
|
let m = null, T = i;
|
|
216
216
|
const E = w, k = [];
|
|
217
217
|
for (const $ of l.parse) {
|
|
@@ -220,7 +220,7 @@ function Oa({ plugins: t }) {
|
|
|
220
220
|
extendContext: (x) => {
|
|
221
221
|
Object.assign(E, x);
|
|
222
222
|
},
|
|
223
|
-
params: { source:
|
|
223
|
+
params: { source: C, options: O },
|
|
224
224
|
parseFn: T,
|
|
225
225
|
setParseFn: (x) => {
|
|
226
226
|
T = x;
|
|
@@ -233,7 +233,7 @@ function Oa({ plugins: t }) {
|
|
|
233
233
|
}
|
|
234
234
|
if (m === null)
|
|
235
235
|
try {
|
|
236
|
-
m = T(
|
|
236
|
+
m = T(C, O);
|
|
237
237
|
} catch ($) {
|
|
238
238
|
m = $;
|
|
239
239
|
}
|
|
@@ -252,8 +252,8 @@ function Oa({ plugins: t }) {
|
|
|
252
252
|
throw new Error("Failed to parse document.");
|
|
253
253
|
if (m instanceof Error)
|
|
254
254
|
throw m;
|
|
255
|
-
return va.set(m,
|
|
256
|
-
} : () => i, d = l.validate.length ? (w) => (
|
|
255
|
+
return va.set(m, C.toString()), m;
|
|
256
|
+
} : () => i, d = l.validate.length ? (w) => (C, O, m, T, E) => {
|
|
257
257
|
let k = m ? [...m] : void 0, $ = r, N = null;
|
|
258
258
|
const x = w, W = [];
|
|
259
259
|
for (const ce of l.validate) {
|
|
@@ -263,7 +263,7 @@ function Oa({ plugins: t }) {
|
|
|
263
263
|
Object.assign(x, K);
|
|
264
264
|
},
|
|
265
265
|
params: {
|
|
266
|
-
schema:
|
|
266
|
+
schema: C,
|
|
267
267
|
documentAST: O,
|
|
268
268
|
rules: k,
|
|
269
269
|
typeInfo: T,
|
|
@@ -282,7 +282,7 @@ function Oa({ plugins: t }) {
|
|
|
282
282
|
});
|
|
283
283
|
me && W.push(me);
|
|
284
284
|
}
|
|
285
|
-
if (N || (N = $(
|
|
285
|
+
if (N || (N = $(C, O, k, T, E)), !N)
|
|
286
286
|
return;
|
|
287
287
|
const Te = N.length === 0;
|
|
288
288
|
for (const ce of W)
|
|
@@ -298,9 +298,9 @@ function Oa({ plugins: t }) {
|
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
300
|
return N;
|
|
301
|
-
} : () => r, g = l.context.length ? (w) => async (
|
|
301
|
+
} : () => r, g = l.context.length ? (w) => async (C) => {
|
|
302
302
|
const O = [], m = w;
|
|
303
|
-
|
|
303
|
+
C && Object.assign(m, C);
|
|
304
304
|
try {
|
|
305
305
|
let T = !1;
|
|
306
306
|
for (const E of l.context) {
|
|
@@ -336,15 +336,15 @@ function Oa({ plugins: t }) {
|
|
|
336
336
|
});
|
|
337
337
|
throw E;
|
|
338
338
|
}
|
|
339
|
-
} : (w) => (
|
|
340
|
-
let
|
|
339
|
+
} : (w) => (C) => (C && Object.assign(w, C), w), b = l.subscribe.length, I = Ir(b ? async (w) => {
|
|
340
|
+
let C = o;
|
|
341
341
|
const O = [], m = [], T = w.contextValue || {};
|
|
342
342
|
let E;
|
|
343
343
|
for (const N of l.subscribe) {
|
|
344
344
|
const x = await N({
|
|
345
|
-
subscribeFn:
|
|
345
|
+
subscribeFn: C,
|
|
346
346
|
setSubscribeFn: (W) => {
|
|
347
|
-
|
|
347
|
+
C = W;
|
|
348
348
|
},
|
|
349
349
|
extendContext: (W) => {
|
|
350
350
|
Object.assign(T, W);
|
|
@@ -357,7 +357,7 @@ function Oa({ plugins: t }) {
|
|
|
357
357
|
if (x && (x.onSubscribeResult && O.push(x.onSubscribeResult), x.onSubscribeError && m.push(x.onSubscribeError)), E !== void 0)
|
|
358
358
|
break;
|
|
359
359
|
}
|
|
360
|
-
if (E === void 0 && (E = await
|
|
360
|
+
if (E === void 0 && (E = await C({
|
|
361
361
|
...w,
|
|
362
362
|
contextValue: T
|
|
363
363
|
// Casted for GraphQL.js 15 compatibility
|
|
@@ -398,13 +398,13 @@ function Oa({ plugins: t }) {
|
|
|
398
398
|
throw x;
|
|
399
399
|
})), E;
|
|
400
400
|
} : o), P = l.execute.length, _ = Or(P ? async (w) => {
|
|
401
|
-
let
|
|
401
|
+
let C = s, O;
|
|
402
402
|
const m = [], T = w.contextValue || {};
|
|
403
403
|
for (const $ of l.execute) {
|
|
404
404
|
const N = await $({
|
|
405
|
-
executeFn:
|
|
405
|
+
executeFn: C,
|
|
406
406
|
setExecuteFn: (x) => {
|
|
407
|
-
|
|
407
|
+
C = x;
|
|
408
408
|
},
|
|
409
409
|
setResultAndStopExecution: (x) => {
|
|
410
410
|
O = x;
|
|
@@ -420,7 +420,7 @@ function Oa({ plugins: t }) {
|
|
|
420
420
|
if (N != null && N.onExecuteDone && m.push(N.onExecuteDone), O !== void 0)
|
|
421
421
|
break;
|
|
422
422
|
}
|
|
423
|
-
O === void 0 && (O = await
|
|
423
|
+
O === void 0 && (O = await C({
|
|
424
424
|
...w,
|
|
425
425
|
contextValue: T
|
|
426
426
|
}));
|
|
@@ -451,8 +451,8 @@ function Oa({ plugins: t }) {
|
|
|
451
451
|
})), O;
|
|
452
452
|
} : s);
|
|
453
453
|
if (n = !0, e)
|
|
454
|
-
for (const [w,
|
|
455
|
-
|
|
454
|
+
for (const [w, C] of t.entries())
|
|
455
|
+
C.onSchemaChange && C.onSchemaChange({
|
|
456
456
|
schema: e,
|
|
457
457
|
replaceSchema: (O) => a(O, w)
|
|
458
458
|
});
|
|
@@ -517,12 +517,12 @@ const Rr = {
|
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
};
|
|
520
|
-
},
|
|
521
|
-
function
|
|
520
|
+
}, Ca = "Unexpected error.";
|
|
521
|
+
function Fa(t) {
|
|
522
522
|
return t instanceof Error && t.name === "GraphQLError";
|
|
523
523
|
}
|
|
524
524
|
function Us(t) {
|
|
525
|
-
return
|
|
525
|
+
return Fa(t) ? t.originalError != null ? Us(t.originalError) : !0 : !1;
|
|
526
526
|
}
|
|
527
527
|
function ka(t, e, n) {
|
|
528
528
|
const i = new Error(t);
|
|
@@ -549,7 +549,7 @@ const Da = ((Os = (_s = globalThis.process) == null ? void 0 : _s.env) == null ?
|
|
|
549
549
|
n.errors != null && i({ ...n, errors: n.errors.map((r) => t(r, e)) });
|
|
550
550
|
};
|
|
551
551
|
function $a(t) {
|
|
552
|
-
const e = (t == null ? void 0 : t.maskError) ?? La, n = (t == null ? void 0 : t.errorMessage) ||
|
|
552
|
+
const e = (t == null ? void 0 : t.maskError) ?? La, n = (t == null ? void 0 : t.errorMessage) || Ca, i = Pa(e, n);
|
|
553
553
|
return {
|
|
554
554
|
onPluginInit(r) {
|
|
555
555
|
r.registerContextErrorHandler(({ error: s, setError: o }) => {
|
|
@@ -912,14 +912,14 @@ function za(t, e) {
|
|
|
912
912
|
);
|
|
913
913
|
}
|
|
914
914
|
function Wa(t, e) {
|
|
915
|
-
const n = t.source.body, i =
|
|
915
|
+
const n = t.source.body, i = Cr(n, e + 2);
|
|
916
916
|
if (Xt(i))
|
|
917
917
|
return {
|
|
918
918
|
value: String.fromCodePoint(i),
|
|
919
919
|
size: 6
|
|
920
920
|
};
|
|
921
921
|
if (Vs(i) && n.charCodeAt(e + 6) === 92 && n.charCodeAt(e + 7) === 117) {
|
|
922
|
-
const r =
|
|
922
|
+
const r = Cr(n, e + 8);
|
|
923
923
|
if (Bs(r))
|
|
924
924
|
return {
|
|
925
925
|
value: String.fromCodePoint(i, r),
|
|
@@ -932,7 +932,7 @@ function Wa(t, e) {
|
|
|
932
932
|
`Invalid Unicode escape sequence: "${n.slice(e, e + 6)}".`
|
|
933
933
|
);
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Cr(t, e) {
|
|
936
936
|
return fn(t.charCodeAt(e)) << 12 | fn(t.charCodeAt(e + 1)) << 8 | fn(t.charCodeAt(e + 2)) << 4 | fn(t.charCodeAt(e + 3));
|
|
937
937
|
}
|
|
938
938
|
function fn(t) {
|
|
@@ -1058,7 +1058,7 @@ class qs {
|
|
|
1058
1058
|
line: 1,
|
|
1059
1059
|
column: 1
|
|
1060
1060
|
}) {
|
|
1061
|
-
typeof e == "string" || Je(!1, `Body must be a string. Received: ${
|
|
1061
|
+
typeof e == "string" || Je(!1, `Body must be a string. Received: ${F(e)}.`), this.body = e, this.name = n, this.locationOffset = i, this.locationOffset.line > 0 || Je(
|
|
1062
1062
|
!1,
|
|
1063
1063
|
"line in locationOffset is 1-indexed and must be positive."
|
|
1064
1064
|
), this.locationOffset.column > 0 || Je(
|
|
@@ -1188,7 +1188,7 @@ class ec {
|
|
|
1188
1188
|
if (this.peek(y.BRACE_L))
|
|
1189
1189
|
return this.node(e, {
|
|
1190
1190
|
kind: h.OPERATION_DEFINITION,
|
|
1191
|
-
operation:
|
|
1191
|
+
operation: Ce.QUERY,
|
|
1192
1192
|
name: void 0,
|
|
1193
1193
|
variableDefinitions: [],
|
|
1194
1194
|
directives: [],
|
|
@@ -1212,11 +1212,11 @@ class ec {
|
|
|
1212
1212
|
const e = this.expectToken(y.NAME);
|
|
1213
1213
|
switch (e.value) {
|
|
1214
1214
|
case "query":
|
|
1215
|
-
return
|
|
1215
|
+
return Ce.QUERY;
|
|
1216
1216
|
case "mutation":
|
|
1217
|
-
return
|
|
1217
|
+
return Ce.MUTATION;
|
|
1218
1218
|
case "subscription":
|
|
1219
|
-
return
|
|
1219
|
+
return Ce.SUBSCRIPTION;
|
|
1220
1220
|
}
|
|
1221
1221
|
throw this.unexpected(e);
|
|
1222
1222
|
}
|
|
@@ -2197,7 +2197,7 @@ function Vi(t, e) {
|
|
|
2197
2197
|
function Vt(t, e, n) {
|
|
2198
2198
|
return e === n ? !0 : B(n) ? B(e) ? Vt(t, e.ofType, n.ofType) : !1 : B(e) ? Vt(t, e.ofType, n) : he(n) ? he(e) ? Vt(t, e.ofType, n.ofType) : !1 : he(e) ? !1 : nt(n) && (ge(e) || Y(e)) && t.isSubType(n, e);
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2200
|
+
function Fr(t, e, n) {
|
|
2201
2201
|
return e === n ? !0 : nt(e) ? nt(n) ? t.getPossibleTypes(e).some((i) => t.isSubType(n, i)) : t.isSubType(e, n) : nt(n) ? t.isSubType(n, e) : !1;
|
|
2202
2202
|
}
|
|
2203
2203
|
const Ai = 2147483647, Ri = -2147483648, hi = new dt({
|
|
@@ -2210,18 +2210,18 @@ const Ai = 2147483647, Ri = -2147483648, hi = new dt({
|
|
|
2210
2210
|
let n = e;
|
|
2211
2211
|
if (typeof e == "string" && e !== "" && (n = Number(e)), typeof n != "number" || !Number.isInteger(n))
|
|
2212
2212
|
throw new v(
|
|
2213
|
-
`Int cannot represent non-integer value: ${
|
|
2213
|
+
`Int cannot represent non-integer value: ${F(e)}`
|
|
2214
2214
|
);
|
|
2215
2215
|
if (n > Ai || n < Ri)
|
|
2216
2216
|
throw new v(
|
|
2217
|
-
"Int cannot represent non 32-bit signed integer value: " +
|
|
2217
|
+
"Int cannot represent non 32-bit signed integer value: " + F(e)
|
|
2218
2218
|
);
|
|
2219
2219
|
return n;
|
|
2220
2220
|
},
|
|
2221
2221
|
parseValue(t) {
|
|
2222
2222
|
if (typeof t != "number" || !Number.isInteger(t))
|
|
2223
2223
|
throw new v(
|
|
2224
|
-
`Int cannot represent non-integer value: ${
|
|
2224
|
+
`Int cannot represent non-integer value: ${F(t)}`
|
|
2225
2225
|
);
|
|
2226
2226
|
if (t > Ai || t < Ri)
|
|
2227
2227
|
throw new v(
|
|
@@ -2257,14 +2257,14 @@ const Ai = 2147483647, Ri = -2147483648, hi = new dt({
|
|
|
2257
2257
|
let n = e;
|
|
2258
2258
|
if (typeof e == "string" && e !== "" && (n = Number(e)), typeof n != "number" || !Number.isFinite(n))
|
|
2259
2259
|
throw new v(
|
|
2260
|
-
`Float cannot represent non numeric value: ${
|
|
2260
|
+
`Float cannot represent non numeric value: ${F(e)}`
|
|
2261
2261
|
);
|
|
2262
2262
|
return n;
|
|
2263
2263
|
},
|
|
2264
2264
|
parseValue(t) {
|
|
2265
2265
|
if (typeof t != "number" || !Number.isFinite(t))
|
|
2266
2266
|
throw new v(
|
|
2267
|
-
`Float cannot represent non numeric value: ${
|
|
2267
|
+
`Float cannot represent non numeric value: ${F(t)}`
|
|
2268
2268
|
);
|
|
2269
2269
|
return t;
|
|
2270
2270
|
},
|
|
@@ -2288,13 +2288,13 @@ const Ai = 2147483647, Ri = -2147483648, hi = new dt({
|
|
|
2288
2288
|
if (typeof e == "number" && Number.isFinite(e))
|
|
2289
2289
|
return e.toString();
|
|
2290
2290
|
throw new v(
|
|
2291
|
-
`String cannot represent value: ${
|
|
2291
|
+
`String cannot represent value: ${F(t)}`
|
|
2292
2292
|
);
|
|
2293
2293
|
},
|
|
2294
2294
|
parseValue(t) {
|
|
2295
2295
|
if (typeof t != "string")
|
|
2296
2296
|
throw new v(
|
|
2297
|
-
`String cannot represent a non string value: ${
|
|
2297
|
+
`String cannot represent a non string value: ${F(t)}`
|
|
2298
2298
|
);
|
|
2299
2299
|
return t;
|
|
2300
2300
|
},
|
|
@@ -2318,13 +2318,13 @@ const Ai = 2147483647, Ri = -2147483648, hi = new dt({
|
|
|
2318
2318
|
if (Number.isFinite(e))
|
|
2319
2319
|
return e !== 0;
|
|
2320
2320
|
throw new v(
|
|
2321
|
-
`Boolean cannot represent a non boolean value: ${
|
|
2321
|
+
`Boolean cannot represent a non boolean value: ${F(e)}`
|
|
2322
2322
|
);
|
|
2323
2323
|
},
|
|
2324
2324
|
parseValue(t) {
|
|
2325
2325
|
if (typeof t != "boolean")
|
|
2326
2326
|
throw new v(
|
|
2327
|
-
`Boolean cannot represent a non boolean value: ${
|
|
2327
|
+
`Boolean cannot represent a non boolean value: ${F(t)}`
|
|
2328
2328
|
);
|
|
2329
2329
|
return t;
|
|
2330
2330
|
},
|
|
@@ -2348,7 +2348,7 @@ const Ai = 2147483647, Ri = -2147483648, hi = new dt({
|
|
|
2348
2348
|
if (Number.isInteger(e))
|
|
2349
2349
|
return String(e);
|
|
2350
2350
|
throw new v(
|
|
2351
|
-
`ID cannot represent value: ${
|
|
2351
|
+
`ID cannot represent value: ${F(t)}`
|
|
2352
2352
|
);
|
|
2353
2353
|
},
|
|
2354
2354
|
parseValue(t) {
|
|
@@ -2356,7 +2356,7 @@ const Ai = 2147483647, Ri = -2147483648, hi = new dt({
|
|
|
2356
2356
|
return t;
|
|
2357
2357
|
if (typeof t == "number" && Number.isInteger(t))
|
|
2358
2358
|
return t.toString();
|
|
2359
|
-
throw new v(`ID cannot represent value: ${
|
|
2359
|
+
throw new v(`ID cannot represent value: ${F(t)}`);
|
|
2360
2360
|
},
|
|
2361
2361
|
parseLiteral(t) {
|
|
2362
2362
|
if (t.kind !== h.STRING && t.kind !== h.INT)
|
|
@@ -2566,9 +2566,9 @@ function dn(t, e) {
|
|
|
2566
2566
|
kind: h.STRING,
|
|
2567
2567
|
value: n
|
|
2568
2568
|
};
|
|
2569
|
-
throw new TypeError(`Cannot convert value to AST: ${
|
|
2569
|
+
throw new TypeError(`Cannot convert value to AST: ${F(n)}.`);
|
|
2570
2570
|
}
|
|
2571
|
-
it(!1, "Unexpected input type: " +
|
|
2571
|
+
it(!1, "Unexpected input type: " + F(e));
|
|
2572
2572
|
}
|
|
2573
2573
|
const kr = /^-?(?:0|[1-9][0-9]*)$/, ar = new Re({
|
|
2574
2574
|
name: "__Schema",
|
|
@@ -2751,7 +2751,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
2751
2751
|
return se.LIST;
|
|
2752
2752
|
if (B(t))
|
|
2753
2753
|
return se.NON_NULL;
|
|
2754
|
-
it(!1, `Unexpected type: "${
|
|
2754
|
+
it(!1, `Unexpected type: "${F(t)}".`);
|
|
2755
2755
|
}
|
|
2756
2756
|
},
|
|
2757
2757
|
name: {
|
|
@@ -3030,7 +3030,7 @@ function to(t) {
|
|
|
3030
3030
|
}
|
|
3031
3031
|
function sc(t) {
|
|
3032
3032
|
if (!to(t))
|
|
3033
|
-
throw new Error(`Expected ${
|
|
3033
|
+
throw new Error(`Expected ${F(t)} to be a GraphQL schema.`);
|
|
3034
3034
|
return t;
|
|
3035
3035
|
}
|
|
3036
3036
|
class cr {
|
|
@@ -3039,10 +3039,10 @@ class cr {
|
|
|
3039
3039
|
var n, i;
|
|
3040
3040
|
this.__validationErrors = e.assumeValid === !0 ? [] : void 0, pt(e) || Je(!1, "Must provide configuration object."), !e.types || Array.isArray(e.types) || Je(
|
|
3041
3041
|
!1,
|
|
3042
|
-
`"types" must be Array if provided but got: ${
|
|
3042
|
+
`"types" must be Array if provided but got: ${F(e.types)}.`
|
|
3043
3043
|
), !e.directives || Array.isArray(e.directives) || Je(
|
|
3044
3044
|
!1,
|
|
3045
|
-
`"directives" must be Array if provided but got: ${
|
|
3045
|
+
`"directives" must be Array if provided but got: ${F(e.directives)}.`
|
|
3046
3046
|
), this.description = e.description, this.extensions = Ds(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._queryType = e.query, this._mutationType = e.mutation, this._subscriptionType = e.subscription, this._directives = (i = e.directives) !== null && i !== void 0 ? i : An;
|
|
3047
3047
|
const r = new Set(e.types);
|
|
3048
3048
|
if (e.types != null)
|
|
@@ -3100,11 +3100,11 @@ class cr {
|
|
|
3100
3100
|
}
|
|
3101
3101
|
getRootType(e) {
|
|
3102
3102
|
switch (e) {
|
|
3103
|
-
case
|
|
3103
|
+
case Ce.QUERY:
|
|
3104
3104
|
return this.getQueryType();
|
|
3105
|
-
case
|
|
3105
|
+
case Ce.MUTATION:
|
|
3106
3106
|
return this.getMutationType();
|
|
3107
|
-
case
|
|
3107
|
+
case Ce.SUBSCRIPTION:
|
|
3108
3108
|
return this.getSubscriptionType();
|
|
3109
3109
|
}
|
|
3110
3110
|
}
|
|
@@ -3220,12 +3220,12 @@ function cc(t) {
|
|
|
3220
3220
|
else if (!Y(n)) {
|
|
3221
3221
|
var i;
|
|
3222
3222
|
t.reportError(
|
|
3223
|
-
`Query root type must be Object type, it cannot be ${
|
|
3223
|
+
`Query root type must be Object type, it cannot be ${F(
|
|
3224
3224
|
n
|
|
3225
3225
|
)}.`,
|
|
3226
|
-
(i =
|
|
3226
|
+
(i = Ci(
|
|
3227
3227
|
e,
|
|
3228
|
-
|
|
3228
|
+
Ce.QUERY
|
|
3229
3229
|
)) !== null && i !== void 0 ? i : n.astNode
|
|
3230
3230
|
);
|
|
3231
3231
|
}
|
|
@@ -3233,10 +3233,10 @@ function cc(t) {
|
|
|
3233
3233
|
if (r && !Y(r)) {
|
|
3234
3234
|
var s;
|
|
3235
3235
|
t.reportError(
|
|
3236
|
-
`Mutation root type must be Object type if provided, it cannot be ${
|
|
3237
|
-
(s =
|
|
3236
|
+
`Mutation root type must be Object type if provided, it cannot be ${F(r)}.`,
|
|
3237
|
+
(s = Ci(
|
|
3238
3238
|
e,
|
|
3239
|
-
|
|
3239
|
+
Ce.MUTATION
|
|
3240
3240
|
)) !== null && s !== void 0 ? s : r.astNode
|
|
3241
3241
|
);
|
|
3242
3242
|
}
|
|
@@ -3244,15 +3244,15 @@ function cc(t) {
|
|
|
3244
3244
|
if (o && !Y(o)) {
|
|
3245
3245
|
var a;
|
|
3246
3246
|
t.reportError(
|
|
3247
|
-
`Subscription root type must be Object type if provided, it cannot be ${
|
|
3248
|
-
(a =
|
|
3247
|
+
`Subscription root type must be Object type if provided, it cannot be ${F(o)}.`,
|
|
3248
|
+
(a = Ci(
|
|
3249
3249
|
e,
|
|
3250
|
-
|
|
3250
|
+
Ce.SUBSCRIPTION
|
|
3251
3251
|
)) !== null && a !== void 0 ? a : o.astNode
|
|
3252
3252
|
);
|
|
3253
3253
|
}
|
|
3254
3254
|
}
|
|
3255
|
-
function
|
|
3255
|
+
function Ci(t, e) {
|
|
3256
3256
|
var n;
|
|
3257
3257
|
return (n = [t.astNode, ...t.extensionASTNodes].flatMap(
|
|
3258
3258
|
// FIXME: https://github.com/graphql/graphql-js/issues/2203
|
|
@@ -3269,7 +3269,7 @@ function lc(t) {
|
|
|
3269
3269
|
for (const n of t.schema.getDirectives()) {
|
|
3270
3270
|
if (!Qs(n)) {
|
|
3271
3271
|
t.reportError(
|
|
3272
|
-
`Expected directive but got: ${
|
|
3272
|
+
`Expected directive but got: ${F(n)}.`,
|
|
3273
3273
|
n == null ? void 0 : n.astNode
|
|
3274
3274
|
);
|
|
3275
3275
|
continue;
|
|
@@ -3280,7 +3280,7 @@ function lc(t) {
|
|
|
3280
3280
|
);
|
|
3281
3281
|
for (const i of n.args)
|
|
3282
3282
|
if (At(t, i), We(i.type) || t.reportError(
|
|
3283
|
-
`The type of @${n.name}(${i.name}:) must be Input Type but got: ${
|
|
3283
|
+
`The type of @${n.name}(${i.name}:) must be Input Type but got: ${F(i.type)}.`,
|
|
3284
3284
|
i.astNode
|
|
3285
3285
|
), On(i) && i.deprecationReason != null) {
|
|
3286
3286
|
var e;
|
|
@@ -3305,7 +3305,7 @@ function uc(t) {
|
|
|
3305
3305
|
for (const i of Object.values(n)) {
|
|
3306
3306
|
if (!ca(i)) {
|
|
3307
3307
|
t.reportError(
|
|
3308
|
-
`Expected GraphQL named type but got: ${
|
|
3308
|
+
`Expected GraphQL named type but got: ${F(i)}.`,
|
|
3309
3309
|
i.astNode
|
|
3310
3310
|
);
|
|
3311
3311
|
continue;
|
|
@@ -3323,7 +3323,7 @@ function xr(t, e) {
|
|
|
3323
3323
|
if (At(t, o), !qn(o.type)) {
|
|
3324
3324
|
var i;
|
|
3325
3325
|
t.reportError(
|
|
3326
|
-
`The type of ${e.name}.${o.name} must be Output Type but got: ${
|
|
3326
|
+
`The type of ${e.name}.${o.name} must be Output Type but got: ${F(o.type)}.`,
|
|
3327
3327
|
(i = o.astNode) === null || i === void 0 ? void 0 : i.type
|
|
3328
3328
|
);
|
|
3329
3329
|
}
|
|
@@ -3332,7 +3332,7 @@ function xr(t, e) {
|
|
|
3332
3332
|
if (At(t, a), !We(a.type)) {
|
|
3333
3333
|
var r;
|
|
3334
3334
|
t.reportError(
|
|
3335
|
-
`The type of ${e.name}.${o.name}(${c}:) must be Input Type but got: ${
|
|
3335
|
+
`The type of ${e.name}.${o.name}(${c}:) must be Input Type but got: ${F(a.type)}.`,
|
|
3336
3336
|
(r = a.astNode) === null || r === void 0 ? void 0 : r.type
|
|
3337
3337
|
);
|
|
3338
3338
|
}
|
|
@@ -3354,7 +3354,7 @@ function Dr(t, e) {
|
|
|
3354
3354
|
for (const i of e.getInterfaces()) {
|
|
3355
3355
|
if (!ge(i)) {
|
|
3356
3356
|
t.reportError(
|
|
3357
|
-
`Type ${
|
|
3357
|
+
`Type ${F(e)} must only implement Interface types, it cannot implement ${F(i)}.`,
|
|
3358
3358
|
Tn(e, i)
|
|
3359
3359
|
);
|
|
3360
3360
|
continue;
|
|
@@ -3390,7 +3390,7 @@ function fc(t, e, n) {
|
|
|
3390
3390
|
if (!Vt(t.schema, u.type, c.type)) {
|
|
3391
3391
|
var r, s;
|
|
3392
3392
|
t.reportError(
|
|
3393
|
-
`Interface field ${n.name}.${l} expects type ${
|
|
3393
|
+
`Interface field ${n.name}.${l} expects type ${F(c.type)} but ${e.name}.${l} is type ${F(u.type)}.`,
|
|
3394
3394
|
[
|
|
3395
3395
|
(r = c.astNode) === null || r === void 0 ? void 0 : r.type,
|
|
3396
3396
|
(s = u.astNode) === null || s === void 0 ? void 0 : s.type
|
|
@@ -3409,7 +3409,7 @@ function fc(t, e, n) {
|
|
|
3409
3409
|
if (!Vi(p.type, g.type)) {
|
|
3410
3410
|
var o, a;
|
|
3411
3411
|
t.reportError(
|
|
3412
|
-
`Interface field argument ${n.name}.${l}(${d}:) expects type ${
|
|
3412
|
+
`Interface field argument ${n.name}.${l}(${d}:) expects type ${F(p.type)} but ${e.name}.${l}(${d}:) is type ${F(g.type)}.`,
|
|
3413
3413
|
[
|
|
3414
3414
|
(o = p.astNode) === null || o === void 0 ? void 0 : o.type,
|
|
3415
3415
|
(a = g.astNode) === null || a === void 0 ? void 0 : a.type
|
|
@@ -3453,7 +3453,7 @@ function pc(t, e) {
|
|
|
3453
3453
|
continue;
|
|
3454
3454
|
}
|
|
3455
3455
|
i[r.name] = !0, Y(r) || t.reportError(
|
|
3456
|
-
`Union type ${e.name} can only include Object types, it cannot include ${
|
|
3456
|
+
`Union type ${e.name} can only include Object types, it cannot include ${F(r)}.`,
|
|
3457
3457
|
Lr(e, String(r))
|
|
3458
3458
|
);
|
|
3459
3459
|
}
|
|
@@ -3477,7 +3477,7 @@ function gc(t, e) {
|
|
|
3477
3477
|
if (At(t, s), !We(s.type)) {
|
|
3478
3478
|
var i;
|
|
3479
3479
|
t.reportError(
|
|
3480
|
-
`The type of ${e.name}.${s.name} must be Input Type but got: ${
|
|
3480
|
+
`The type of ${e.name}.${s.name} must be Input Type but got: ${F(s.type)}.`,
|
|
3481
3481
|
(i = s.astNode) === null || i === void 0 ? void 0 : i.type
|
|
3482
3482
|
);
|
|
3483
3483
|
}
|
|
@@ -3925,7 +3925,7 @@ function Rc(t) {
|
|
|
3925
3925
|
);
|
|
3926
3926
|
return;
|
|
3927
3927
|
}
|
|
3928
|
-
const d =
|
|
3928
|
+
const d = Cc(l);
|
|
3929
3929
|
d && !p.includes(d) && t.reportError(
|
|
3930
3930
|
new v(
|
|
3931
3931
|
`Directive "@${u}" may not be used on ${d}.`,
|
|
@@ -3937,11 +3937,11 @@ function Rc(t) {
|
|
|
3937
3937
|
}
|
|
3938
3938
|
};
|
|
3939
3939
|
}
|
|
3940
|
-
function
|
|
3940
|
+
function Cc(t) {
|
|
3941
3941
|
const e = t[t.length - 1];
|
|
3942
3942
|
switch ("kind" in e || it(!1), e.kind) {
|
|
3943
3943
|
case h.OPERATION_DEFINITION:
|
|
3944
|
-
return
|
|
3944
|
+
return Fc(e.operation);
|
|
3945
3945
|
case h.FIELD:
|
|
3946
3946
|
return D.FIELD;
|
|
3947
3947
|
case h.FRAGMENT_SPREAD:
|
|
@@ -3984,16 +3984,16 @@ function Fc(t) {
|
|
|
3984
3984
|
// Not reachable, all possible types have been considered.
|
|
3985
3985
|
/* c8 ignore next */
|
|
3986
3986
|
default:
|
|
3987
|
-
it(!1, "Unexpected kind: " +
|
|
3987
|
+
it(!1, "Unexpected kind: " + F(e.kind));
|
|
3988
3988
|
}
|
|
3989
3989
|
}
|
|
3990
|
-
function
|
|
3990
|
+
function Fc(t) {
|
|
3991
3991
|
switch (t) {
|
|
3992
|
-
case
|
|
3992
|
+
case Ce.QUERY:
|
|
3993
3993
|
return D.QUERY;
|
|
3994
|
-
case
|
|
3994
|
+
case Ce.MUTATION:
|
|
3995
3995
|
return D.MUTATION;
|
|
3996
|
-
case
|
|
3996
|
+
case Ce.SUBSCRIPTION:
|
|
3997
3997
|
return D.SUBSCRIPTION;
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
@@ -4519,10 +4519,10 @@ function dr(t, e, n, i, r, s, o, a) {
|
|
|
4519
4519
|
function ao(t, e, n, i, r, s, o, a) {
|
|
4520
4520
|
const [c, l, u] = o, [p, d, g] = a, b = r || c !== p && Y(c) && Y(p);
|
|
4521
4521
|
if (!b) {
|
|
4522
|
-
const
|
|
4523
|
-
if (
|
|
4522
|
+
const C = l.name.value, O = d.name.value;
|
|
4523
|
+
if (C !== O)
|
|
4524
4524
|
return [
|
|
4525
|
-
[s, `"${
|
|
4525
|
+
[s, `"${C}" and "${O}" are different fields`],
|
|
4526
4526
|
[l],
|
|
4527
4527
|
[d]
|
|
4528
4528
|
];
|
|
@@ -4538,7 +4538,7 @@ function ao(t, e, n, i, r, s, o, a) {
|
|
|
4538
4538
|
return [
|
|
4539
4539
|
[
|
|
4540
4540
|
s,
|
|
4541
|
-
`they return conflicting types "${
|
|
4541
|
+
`they return conflicting types "${F(I)}" and "${F(
|
|
4542
4542
|
P
|
|
4543
4543
|
)}"`
|
|
4544
4544
|
],
|
|
@@ -4547,7 +4547,7 @@ function ao(t, e, n, i, r, s, o, a) {
|
|
|
4547
4547
|
];
|
|
4548
4548
|
const _ = l.selectionSet, w = d.selectionSet;
|
|
4549
4549
|
if (_ && w) {
|
|
4550
|
-
const
|
|
4550
|
+
const C = Qc(
|
|
4551
4551
|
t,
|
|
4552
4552
|
e,
|
|
4553
4553
|
n,
|
|
@@ -4558,7 +4558,7 @@ function ao(t, e, n, i, r, s, o, a) {
|
|
|
4558
4558
|
He(P),
|
|
4559
4559
|
w
|
|
4560
4560
|
);
|
|
4561
|
-
return Wc(
|
|
4561
|
+
return Wc(C, s, l, d);
|
|
4562
4562
|
}
|
|
4563
4563
|
}
|
|
4564
4564
|
function zc(t, e) {
|
|
@@ -4670,8 +4670,8 @@ function Jc(t) {
|
|
|
4670
4670
|
return {
|
|
4671
4671
|
InlineFragment(e) {
|
|
4672
4672
|
const n = t.getType(), i = t.getParentType();
|
|
4673
|
-
if (gt(n) && gt(i) && !
|
|
4674
|
-
const r =
|
|
4673
|
+
if (gt(n) && gt(i) && !Fr(t.getSchema(), n, i)) {
|
|
4674
|
+
const r = F(i), s = F(n);
|
|
4675
4675
|
t.reportError(
|
|
4676
4676
|
new v(
|
|
4677
4677
|
`Fragment cannot be spread here as objects of type "${r}" can never be of type "${s}".`,
|
|
@@ -4684,8 +4684,8 @@ function Jc(t) {
|
|
|
4684
4684
|
},
|
|
4685
4685
|
FragmentSpread(e) {
|
|
4686
4686
|
const n = e.name.value, i = Yc(t, n), r = t.getParentType();
|
|
4687
|
-
if (i && r && !
|
|
4688
|
-
const s =
|
|
4687
|
+
if (i && r && !Fr(t.getSchema(), i, r)) {
|
|
4688
|
+
const s = F(r), o = F(i);
|
|
4689
4689
|
t.reportError(
|
|
4690
4690
|
new v(
|
|
4691
4691
|
`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,
|
|
@@ -4724,7 +4724,7 @@ function Xc(t) {
|
|
|
4724
4724
|
);
|
|
4725
4725
|
for (const s of i.args)
|
|
4726
4726
|
if (!r.has(s.name) && On(s)) {
|
|
4727
|
-
const o =
|
|
4727
|
+
const o = F(s.type);
|
|
4728
4728
|
t.reportError(
|
|
4729
4729
|
new v(
|
|
4730
4730
|
`Field "${i.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,
|
|
@@ -4766,7 +4766,7 @@ function Zc(t) {
|
|
|
4766
4766
|
const p = (u = a.arguments) !== null && u !== void 0 ? u : [], d = new Set(p.map((g) => g.name.value));
|
|
4767
4767
|
for (const [g, b] of Object.entries(l))
|
|
4768
4768
|
if (!d.has(g)) {
|
|
4769
|
-
const I = ua(b.type) ?
|
|
4769
|
+
const I = ua(b.type) ? F(b.type) : ae(b.type);
|
|
4770
4770
|
t.reportError(
|
|
4771
4771
|
new v(
|
|
4772
4772
|
`Directive "@${c}" argument "${g}" of type "${I}" is required, but it was not provided.`,
|
|
@@ -4791,7 +4791,7 @@ function tl(t) {
|
|
|
4791
4791
|
if (n)
|
|
4792
4792
|
if (ht(He(n))) {
|
|
4793
4793
|
if (i) {
|
|
4794
|
-
const r = e.name.value, s =
|
|
4794
|
+
const r = e.name.value, s = F(n);
|
|
4795
4795
|
t.reportError(
|
|
4796
4796
|
new v(
|
|
4797
4797
|
`Field "${r}" must not have a selection since type "${s}" has no subfields.`,
|
|
@@ -4803,7 +4803,7 @@ function tl(t) {
|
|
|
4803
4803
|
}
|
|
4804
4804
|
} else if (i) {
|
|
4805
4805
|
if (i.selections.length === 0) {
|
|
4806
|
-
const r = e.name.value, s =
|
|
4806
|
+
const r = e.name.value, s = F(n);
|
|
4807
4807
|
t.reportError(
|
|
4808
4808
|
new v(
|
|
4809
4809
|
`Field "${r}" of type "${s}" must have at least one field selected.`,
|
|
@@ -4814,7 +4814,7 @@ function tl(t) {
|
|
|
4814
4814
|
);
|
|
4815
4815
|
}
|
|
4816
4816
|
} else {
|
|
4817
|
-
const r = e.name.value, s =
|
|
4817
|
+
const r = e.name.value, s = F(n);
|
|
4818
4818
|
t.reportError(
|
|
4819
4819
|
new v(
|
|
4820
4820
|
`Field "${r}" of type "${s}" must have a selection of subfields. Did you mean "${r} { ... }"?`,
|
|
@@ -4850,7 +4850,7 @@ function il(t, e, n = rl) {
|
|
|
4850
4850
|
return pn(t, e, n, void 0);
|
|
4851
4851
|
}
|
|
4852
4852
|
function rl(t, e, n) {
|
|
4853
|
-
let i = "Invalid value " +
|
|
4853
|
+
let i = "Invalid value " + F(e);
|
|
4854
4854
|
throw t.length > 0 && (i += ` at "value${nl(t)}"`), n.message = i + ": " + n.message, n;
|
|
4855
4855
|
}
|
|
4856
4856
|
function pn(t, e, n, i) {
|
|
@@ -4861,7 +4861,7 @@ function pn(t, e, n, i) {
|
|
|
4861
4861
|
Xe(i),
|
|
4862
4862
|
t,
|
|
4863
4863
|
new v(
|
|
4864
|
-
`Expected non-nullable type "${
|
|
4864
|
+
`Expected non-nullable type "${F(e)}" not to be null.`
|
|
4865
4865
|
)
|
|
4866
4866
|
);
|
|
4867
4867
|
return;
|
|
@@ -4891,7 +4891,7 @@ function pn(t, e, n, i) {
|
|
|
4891
4891
|
if (o.defaultValue !== void 0)
|
|
4892
4892
|
r[o.name] = o.defaultValue;
|
|
4893
4893
|
else if (B(o.type)) {
|
|
4894
|
-
const c =
|
|
4894
|
+
const c = F(o.type);
|
|
4895
4895
|
n(
|
|
4896
4896
|
Xe(i),
|
|
4897
4897
|
t,
|
|
@@ -4961,7 +4961,7 @@ function pn(t, e, n, i) {
|
|
|
4961
4961
|
new v(`Expected type "${e.name}".`)
|
|
4962
4962
|
), r;
|
|
4963
4963
|
}
|
|
4964
|
-
it(!1, "Unexpected input type: " +
|
|
4964
|
+
it(!1, "Unexpected input type: " + F(e));
|
|
4965
4965
|
}
|
|
4966
4966
|
function St(t, e, n) {
|
|
4967
4967
|
if (t) {
|
|
@@ -5030,7 +5030,7 @@ function St(t, e, n) {
|
|
|
5030
5030
|
}
|
|
5031
5031
|
return i === void 0 ? void 0 : i;
|
|
5032
5032
|
}
|
|
5033
|
-
it(!1, "Unexpected input type: " +
|
|
5033
|
+
it(!1, "Unexpected input type: " + F(e));
|
|
5034
5034
|
}
|
|
5035
5035
|
}
|
|
5036
5036
|
function Ur(t, e) {
|
|
@@ -5046,7 +5046,7 @@ function sl(t, e, n) {
|
|
|
5046
5046
|
r[c] = a.defaultValue;
|
|
5047
5047
|
else if (B(l))
|
|
5048
5048
|
throw new v(
|
|
5049
|
-
`Argument "${c}" of required type "${
|
|
5049
|
+
`Argument "${c}" of required type "${F(l)}" was not provided.`,
|
|
5050
5050
|
{
|
|
5051
5051
|
nodes: e
|
|
5052
5052
|
}
|
|
@@ -5062,7 +5062,7 @@ function sl(t, e, n) {
|
|
|
5062
5062
|
r[c] = a.defaultValue;
|
|
5063
5063
|
else if (B(l))
|
|
5064
5064
|
throw new v(
|
|
5065
|
-
`Argument "${c}" of required type "${
|
|
5065
|
+
`Argument "${c}" of required type "${F(l)}" was provided the variable "$${b}" which was not provided a runtime value.`,
|
|
5066
5066
|
{
|
|
5067
5067
|
nodes: p
|
|
5068
5068
|
}
|
|
@@ -5073,7 +5073,7 @@ function sl(t, e, n) {
|
|
|
5073
5073
|
}
|
|
5074
5074
|
if (d && B(l))
|
|
5075
5075
|
throw new v(
|
|
5076
|
-
`Argument "${c}" of non-null type "${
|
|
5076
|
+
`Argument "${c}" of non-null type "${F(l)}" must not be null.`,
|
|
5077
5077
|
{
|
|
5078
5078
|
nodes: p
|
|
5079
5079
|
}
|
|
@@ -5117,14 +5117,14 @@ function Gi(t, e, n, i, r, s, o) {
|
|
|
5117
5117
|
for (const a of r.selections)
|
|
5118
5118
|
switch (a.kind) {
|
|
5119
5119
|
case h.FIELD: {
|
|
5120
|
-
if (!
|
|
5120
|
+
if (!Fi(n, a))
|
|
5121
5121
|
continue;
|
|
5122
5122
|
const c = cl(a), l = s.get(c);
|
|
5123
5123
|
l !== void 0 ? l.push(a) : s.set(c, [a]);
|
|
5124
5124
|
break;
|
|
5125
5125
|
}
|
|
5126
5126
|
case h.INLINE_FRAGMENT: {
|
|
5127
|
-
if (!
|
|
5127
|
+
if (!Fi(n, a) || !jr(t, a, i))
|
|
5128
5128
|
continue;
|
|
5129
5129
|
Gi(
|
|
5130
5130
|
t,
|
|
@@ -5139,7 +5139,7 @@ function Gi(t, e, n, i, r, s, o) {
|
|
|
5139
5139
|
}
|
|
5140
5140
|
case h.FRAGMENT_SPREAD: {
|
|
5141
5141
|
const c = a.name.value;
|
|
5142
|
-
if (o.has(c) || !
|
|
5142
|
+
if (o.has(c) || !Fi(n, a))
|
|
5143
5143
|
continue;
|
|
5144
5144
|
o.add(c);
|
|
5145
5145
|
const l = e[c];
|
|
@@ -5158,7 +5158,7 @@ function Gi(t, e, n, i, r, s, o) {
|
|
|
5158
5158
|
}
|
|
5159
5159
|
}
|
|
5160
5160
|
}
|
|
5161
|
-
function
|
|
5161
|
+
function Fi(t, e) {
|
|
5162
5162
|
const n = Wt(or, e, t);
|
|
5163
5163
|
if ((n == null ? void 0 : n.if) === !0)
|
|
5164
5164
|
return !1;
|
|
@@ -5390,7 +5390,7 @@ function ml(t) {
|
|
|
5390
5390
|
const r = wn(n.fields, (s) => s.name.value);
|
|
5391
5391
|
for (const s of Object.values(i.getFields()))
|
|
5392
5392
|
if (!r[s.name] && Ps(s)) {
|
|
5393
|
-
const a =
|
|
5393
|
+
const a = F(s.type);
|
|
5394
5394
|
t.reportError(
|
|
5395
5395
|
new v(
|
|
5396
5396
|
`Field "${i.name}.${s.name}" of required type "${a}" was not provided.`,
|
|
@@ -5429,7 +5429,7 @@ function ml(t) {
|
|
|
5429
5429
|
const i = t.getInputType();
|
|
5430
5430
|
B(i) && t.reportError(
|
|
5431
5431
|
new v(
|
|
5432
|
-
`Expected value of type "${
|
|
5432
|
+
`Expected value of type "${F(i)}", found ${ae(n)}.`,
|
|
5433
5433
|
{
|
|
5434
5434
|
nodes: n
|
|
5435
5435
|
}
|
|
@@ -5449,7 +5449,7 @@ function bt(t, e) {
|
|
|
5449
5449
|
return;
|
|
5450
5450
|
const i = He(n);
|
|
5451
5451
|
if (!ht(i)) {
|
|
5452
|
-
const r =
|
|
5452
|
+
const r = F(n);
|
|
5453
5453
|
t.reportError(
|
|
5454
5454
|
new v(
|
|
5455
5455
|
`Expected value of type "${r}", found ${ae(e)}.`,
|
|
@@ -5466,7 +5466,7 @@ function bt(t, e) {
|
|
|
5466
5466
|
void 0
|
|
5467
5467
|
/* variables */
|
|
5468
5468
|
) === void 0) {
|
|
5469
|
-
const s =
|
|
5469
|
+
const s = F(n);
|
|
5470
5470
|
t.reportError(
|
|
5471
5471
|
new v(
|
|
5472
5472
|
`Expected value of type "${s}", found ${ae(e)}.`,
|
|
@@ -5477,7 +5477,7 @@ function bt(t, e) {
|
|
|
5477
5477
|
);
|
|
5478
5478
|
}
|
|
5479
5479
|
} catch (r) {
|
|
5480
|
-
const s =
|
|
5480
|
+
const s = F(n);
|
|
5481
5481
|
r instanceof v ? t.reportError(r) : t.reportError(
|
|
5482
5482
|
new v(
|
|
5483
5483
|
`Expected value of type "${s}", found ${ae(e)}; ` + r.message,
|
|
@@ -5562,7 +5562,7 @@ function El(t) {
|
|
|
5562
5562
|
s,
|
|
5563
5563
|
o
|
|
5564
5564
|
)) {
|
|
5565
|
-
const p =
|
|
5565
|
+
const p = F(u), d = F(s);
|
|
5566
5566
|
t.reportError(
|
|
5567
5567
|
new v(
|
|
5568
5568
|
`Variable "$${a}" of type "${p}" used in position expecting type "${d}".`,
|
|
@@ -5773,7 +5773,7 @@ function _l(t) {
|
|
|
5773
5773
|
}
|
|
5774
5774
|
class Ol extends Error {
|
|
5775
5775
|
constructor(e) {
|
|
5776
|
-
super("Unexpected error value: " +
|
|
5776
|
+
super("Unexpected error value: " + F(e)), this.name = "NonErrorThrown", this.thrownValue = e;
|
|
5777
5777
|
}
|
|
5778
5778
|
}
|
|
5779
5779
|
function ve(t, e, n) {
|
|
@@ -5920,7 +5920,7 @@ function Al(t) {
|
|
|
5920
5920
|
fields: () => l(g.fields)
|
|
5921
5921
|
});
|
|
5922
5922
|
}
|
|
5923
|
-
it(!1, "Unexpected type: " +
|
|
5923
|
+
it(!1, "Unexpected type: " + F(d));
|
|
5924
5924
|
}
|
|
5925
5925
|
}
|
|
5926
5926
|
function Ln(t, e) {
|
|
@@ -5971,7 +5971,7 @@ function nn(t, e, n) {
|
|
|
5971
5971
|
}) : t[e] = n, t;
|
|
5972
5972
|
}
|
|
5973
5973
|
const rn = /* @__PURE__ */ new WeakMap();
|
|
5974
|
-
class
|
|
5974
|
+
class Cl {
|
|
5975
5975
|
/**
|
|
5976
5976
|
* Called for each type defined with the SchemaBuilder
|
|
5977
5977
|
* @param {PothosTypeConfig} typeConfig - Config object describing the added type
|
|
@@ -6080,7 +6080,7 @@ class Fl {
|
|
|
6080
6080
|
nn(this, "name", void 0), nn(this, "builder", void 0), nn(this, "buildCache", void 0), nn(this, "options", void 0), nn(this, "requestDataMap", Rl((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
|
|
6081
6081
|
}
|
|
6082
6082
|
}
|
|
6083
|
-
function
|
|
6083
|
+
function Fl(t, e, n) {
|
|
6084
6084
|
return e in t ? Object.defineProperty(t, e, {
|
|
6085
6085
|
value: n,
|
|
6086
6086
|
enumerable: !0,
|
|
@@ -6088,7 +6088,7 @@ function Cl(t, e, n) {
|
|
|
6088
6088
|
writable: !0
|
|
6089
6089
|
}) : t[e] = n, t;
|
|
6090
6090
|
}
|
|
6091
|
-
class kl extends
|
|
6091
|
+
class kl extends Cl {
|
|
6092
6092
|
onTypeConfig(e) {
|
|
6093
6093
|
return this.plugins.reduceRight((n, i) => n === null ? n : i.onTypeConfig(n), e);
|
|
6094
6094
|
}
|
|
@@ -6136,11 +6136,11 @@ class kl extends Fl {
|
|
|
6136
6136
|
return this.plugins.reduceRight((i, r) => r.wrapIsTypeOf(i, n), e);
|
|
6137
6137
|
}
|
|
6138
6138
|
constructor(e, n) {
|
|
6139
|
-
super(e, "PothosMergedPlugin"),
|
|
6139
|
+
super(e, "PothosMergedPlugin"), Fl(this, "plugins", void 0), this.plugins = n;
|
|
6140
6140
|
}
|
|
6141
6141
|
}
|
|
6142
6142
|
const Zt = Symbol.for("Pothos.outputShapeKey"), Rn = Symbol.for("Pothos.parentShapeKey"), bi = Symbol.for("Pothos.inputShapeKey"), ho = Symbol.for("Pothos.inputFieldShapeKey"), xl = Symbol.for("Pothos.outputFieldShapeKey"), si = Symbol.for("Pothos.typeBrandKey");
|
|
6143
|
-
function
|
|
6143
|
+
function Ft(t, e, n) {
|
|
6144
6144
|
return e in t ? Object.defineProperty(t, e, {
|
|
6145
6145
|
value: n,
|
|
6146
6146
|
enumerable: !0,
|
|
@@ -6184,7 +6184,7 @@ class ue {
|
|
|
6184
6184
|
this.onConfig(n);
|
|
6185
6185
|
}
|
|
6186
6186
|
constructor(e, n, i) {
|
|
6187
|
-
|
|
6187
|
+
Ft(this, "kind", void 0), Ft(this, "name", void 0), Ft(this, "association", null), Ft(this, "configCallbacks", /* @__PURE__ */ new Set()), Ft(this, "preparedForBuild", !1), Ft(this, "currentConfig", void 0), this.kind = e, this.name = n, this.currentConfig = i ?? null;
|
|
6188
6188
|
}
|
|
6189
6189
|
}
|
|
6190
6190
|
function kt(t, e, n) {
|
|
@@ -7645,15 +7645,17 @@ let Ti = class $t {
|
|
|
7645
7645
|
}));
|
|
7646
7646
|
}
|
|
7647
7647
|
queryType(...e) {
|
|
7648
|
-
const [n = {}, i] = e
|
|
7648
|
+
const [n = {}, i] = e;
|
|
7649
|
+
var r, s;
|
|
7650
|
+
const o = new To((r = n.name) !== null && r !== void 0 ? r : "Query", {
|
|
7649
7651
|
kind: "Query",
|
|
7650
7652
|
graphqlKind: "Object",
|
|
7651
|
-
name: "Query",
|
|
7653
|
+
name: (s = n.name) !== null && s !== void 0 ? s : "Query",
|
|
7652
7654
|
description: n.description,
|
|
7653
7655
|
pothosOptions: n,
|
|
7654
7656
|
extensions: n.extensions
|
|
7655
7657
|
});
|
|
7656
|
-
return this.configStore.addTypeRef(
|
|
7658
|
+
return o.name !== "Query" && this.configStore.associateParamWithRef("Query", o), this.configStore.addTypeRef(o), i && o.addFields(() => i(new Un(this))), n.fields && o.addFields(() => n.fields(new Un(this))), o;
|
|
7657
7659
|
}
|
|
7658
7660
|
queryFields(e) {
|
|
7659
7661
|
this.configStore.addFields("Query", () => e(new Un(this)));
|
|
@@ -7664,15 +7666,17 @@ let Ti = class $t {
|
|
|
7664
7666
|
}));
|
|
7665
7667
|
}
|
|
7666
7668
|
mutationType(...e) {
|
|
7667
|
-
const [n = {}, i] = e
|
|
7669
|
+
const [n = {}, i] = e;
|
|
7670
|
+
var r, s;
|
|
7671
|
+
const o = new Eo((r = n.name) !== null && r !== void 0 ? r : "Mutation", {
|
|
7668
7672
|
kind: "Mutation",
|
|
7669
7673
|
graphqlKind: "Object",
|
|
7670
|
-
name: "Mutation",
|
|
7674
|
+
name: (s = n.name) !== null && s !== void 0 ? s : "Mutation",
|
|
7671
7675
|
description: n.description,
|
|
7672
7676
|
pothosOptions: n,
|
|
7673
7677
|
extensions: n.extensions
|
|
7674
7678
|
});
|
|
7675
|
-
return this.configStore.addTypeRef(
|
|
7679
|
+
return this.configStore.addTypeRef(o), o.name !== "Mutation" && this.configStore.associateParamWithRef("Mutation", o), i && this.configStore.addFields("Mutation", () => i(new $n(this))), n.fields && this.configStore.addFields("Mutation", () => n.fields(new $n(this))), o;
|
|
7676
7680
|
}
|
|
7677
7681
|
mutationFields(e) {
|
|
7678
7682
|
this.configStore.addFields("Mutation", () => e(new $n(this)));
|
|
@@ -7683,15 +7687,17 @@ let Ti = class $t {
|
|
|
7683
7687
|
}));
|
|
7684
7688
|
}
|
|
7685
7689
|
subscriptionType(...e) {
|
|
7686
|
-
const [n = {}, i] = e
|
|
7690
|
+
const [n = {}, i] = e;
|
|
7691
|
+
var r, s;
|
|
7692
|
+
const o = new vo((r = n.name) !== null && r !== void 0 ? r : "Subscription", {
|
|
7687
7693
|
kind: "Subscription",
|
|
7688
7694
|
graphqlKind: "Object",
|
|
7689
|
-
name: "Subscription",
|
|
7695
|
+
name: (s = n.name) !== null && s !== void 0 ? s : "Subscription",
|
|
7690
7696
|
description: n.description,
|
|
7691
7697
|
pothosOptions: n,
|
|
7692
7698
|
extensions: n.extensions
|
|
7693
7699
|
});
|
|
7694
|
-
return this.configStore.addTypeRef(
|
|
7700
|
+
return this.configStore.addTypeRef(o), o.name !== "Subscription" && this.configStore.associateParamWithRef("Subscription", o), i && this.configStore.addFields("Subscription", () => i(new jn(this))), n.fields && this.configStore.addFields("Subscription", () => n.fields(new jn(this))), o;
|
|
7695
7701
|
}
|
|
7696
7702
|
subscriptionFields(e) {
|
|
7697
7703
|
this.configStore.addFields("Subscription", () => e(new jn(this)));
|
|
@@ -7811,21 +7817,21 @@ let Ti = class $t {
|
|
|
7811
7817
|
H,
|
|
7812
7818
|
le
|
|
7813
7819
|
];
|
|
7814
|
-
for (const
|
|
7815
|
-
this.configStore.hasImplementation(
|
|
7820
|
+
for (const g of s)
|
|
7821
|
+
this.configStore.hasImplementation(g.name) || this.addScalarType(g.name, g);
|
|
7816
7822
|
const o = new zl(this, n);
|
|
7817
7823
|
o.plugin.beforeBuild(), o.buildAll();
|
|
7818
7824
|
const a = [
|
|
7819
7825
|
...o.types.values()
|
|
7820
|
-
], c = new cr({
|
|
7821
|
-
query: o.types.get(
|
|
7822
|
-
mutation: o.types.get(
|
|
7823
|
-
subscription: o.types.get(
|
|
7826
|
+
], c = this.configStore.hasConfig("Query") ? this.configStore.getTypeConfig("Query").name : "Query", l = this.configStore.hasConfig("Mutation") ? this.configStore.getTypeConfig("Mutation").name : "Mutation", u = this.configStore.hasConfig("Subscription") ? this.configStore.getTypeConfig("Subscription").name : "Subscription", p = new cr({
|
|
7827
|
+
query: o.types.get(c),
|
|
7828
|
+
mutation: o.types.get(l),
|
|
7829
|
+
subscription: o.types.get(u),
|
|
7824
7830
|
extensions: r ?? {},
|
|
7825
7831
|
directives: i,
|
|
7826
7832
|
types: a
|
|
7827
|
-
}),
|
|
7828
|
-
return n.sortSchema === !1 ?
|
|
7833
|
+
}), d = o.plugin.afterBuild(p);
|
|
7834
|
+
return n.sortSchema === !1 ? d : Al(d);
|
|
7829
7835
|
}
|
|
7830
7836
|
constructor(e) {
|
|
7831
7837
|
ut(this, "$inferSchemaTypes", void 0), ut(this, "configStore", void 0), ut(this, "options", void 0), ut(this, "defaultFieldNullability", void 0), ut(this, "defaultInputFieldRequiredness", void 0), this.options = [
|
|
@@ -7979,14 +7985,14 @@ function Au(t, e) {
|
|
|
7979
7985
|
return typeof i == "string" ? i : wi(i, n);
|
|
7980
7986
|
} else if (Array.isArray(t))
|
|
7981
7987
|
return Kr(t, n);
|
|
7982
|
-
return
|
|
7988
|
+
return Cu(t, n);
|
|
7983
7989
|
}
|
|
7984
7990
|
function Ru(t) {
|
|
7985
7991
|
return typeof t.toJSON == "function";
|
|
7986
7992
|
}
|
|
7987
|
-
function
|
|
7993
|
+
function Cu(t, e) {
|
|
7988
7994
|
const n = Object.entries(t);
|
|
7989
|
-
return n.length === 0 ? "{}" : e.length > So ? "[" +
|
|
7995
|
+
return n.length === 0 ? "{}" : e.length > So ? "[" + Fu(t) + "]" : "{ " + n.map(([r, s]) => r + ": " + wi(s, e)).join(", ") + " }";
|
|
7990
7996
|
}
|
|
7991
7997
|
function Kr(t, e) {
|
|
7992
7998
|
if (t.length === 0)
|
|
@@ -7998,7 +8004,7 @@ function Kr(t, e) {
|
|
|
7998
8004
|
i.push(wi(t[r], e));
|
|
7999
8005
|
return "[" + i.join(", ") + "]";
|
|
8000
8006
|
}
|
|
8001
|
-
function
|
|
8007
|
+
function Fu(t) {
|
|
8002
8008
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
8003
8009
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
8004
8010
|
const n = t.constructor.name;
|
|
@@ -8717,8 +8723,8 @@ function tf(t, e, n, i) {
|
|
|
8717
8723
|
}
|
|
8718
8724
|
const nf = Pu((t, e, n) => Gu(t.schema, t.fragments, t.variableValues, e, n));
|
|
8719
8725
|
function rf(t) {
|
|
8720
|
-
const e =
|
|
8721
|
-
return "schema" in e ?
|
|
8726
|
+
const e = Fo(t);
|
|
8727
|
+
return "schema" in e ? Co(e) : {
|
|
8722
8728
|
errors: e.map((n) => {
|
|
8723
8729
|
var i;
|
|
8724
8730
|
return Object.defineProperty(n, "extensions", {
|
|
@@ -8733,7 +8739,7 @@ function rf(t) {
|
|
|
8733
8739
|
})
|
|
8734
8740
|
};
|
|
8735
8741
|
}
|
|
8736
|
-
function
|
|
8742
|
+
function Co(t) {
|
|
8737
8743
|
var n;
|
|
8738
8744
|
return (n = t.signal) == null || n.throwIfAborted(), new xe(() => af(t)).then((i) => {
|
|
8739
8745
|
const r = ns(i, t.errors);
|
|
@@ -8758,7 +8764,7 @@ const sf = Si(function(e) {
|
|
|
8758
8764
|
i.kind === h.FRAGMENT_DEFINITION && (n[i.name.value] = i);
|
|
8759
8765
|
return n;
|
|
8760
8766
|
});
|
|
8761
|
-
function
|
|
8767
|
+
function Fo(t) {
|
|
8762
8768
|
var I;
|
|
8763
8769
|
const { schema: e, document: n, rootValue: i, contextValue: r, variableValues: s, operationName: o, fieldResolver: a, typeResolver: c, subscribeFieldResolver: l, signal: u } = t;
|
|
8764
8770
|
no(e);
|
|
@@ -8872,12 +8878,12 @@ function ko(t, e, n, i, r, s) {
|
|
|
8872
8878
|
if (I instanceof AggregateError)
|
|
8873
8879
|
return new AggregateError(I.errors.map((w) => {
|
|
8874
8880
|
w = Ye(w);
|
|
8875
|
-
const
|
|
8876
|
-
return
|
|
8881
|
+
const C = ve(w, i, fe(r)), O = Le(C, c, o);
|
|
8882
|
+
return Fe(t, r, s), O;
|
|
8877
8883
|
}));
|
|
8878
8884
|
I = Ye(I);
|
|
8879
8885
|
const P = ve(I, i, fe(r)), _ = Le(P, c, o);
|
|
8880
|
-
return
|
|
8886
|
+
return Fe(t, r, s), _;
|
|
8881
8887
|
}) : b;
|
|
8882
8888
|
} catch (p) {
|
|
8883
8889
|
if (p instanceof AggregateError)
|
|
@@ -8886,7 +8892,7 @@ function ko(t, e, n, i, r, s) {
|
|
|
8886
8892
|
return Le(_, c, o);
|
|
8887
8893
|
}));
|
|
8888
8894
|
const d = Ye(p), g = ve(d, i, fe(r)), b = Le(g, c, o);
|
|
8889
|
-
return
|
|
8895
|
+
return Fe(t, r, s), b;
|
|
8890
8896
|
}
|
|
8891
8897
|
}
|
|
8892
8898
|
function xo(t, e, n, i, r) {
|
|
@@ -8999,12 +9005,12 @@ function Lo(t, e, n, i, r, s, o, a, c) {
|
|
|
8999
9005
|
return e.push(l.then(void 0, (u) => {
|
|
9000
9006
|
u = Ye(u);
|
|
9001
9007
|
const p = ve(u, s, fe(a)), d = Le(p, r, n);
|
|
9002
|
-
return
|
|
9008
|
+
return Fe(i, a, c), d;
|
|
9003
9009
|
})), !0;
|
|
9004
9010
|
e.push(l);
|
|
9005
9011
|
} catch (l) {
|
|
9006
9012
|
const u = Ye(l), p = ve(u, s, fe(a)), d = Le(p, r, n);
|
|
9007
|
-
|
|
9013
|
+
Fe(i, a, c), e.push(d);
|
|
9008
9014
|
}
|
|
9009
9015
|
return !1;
|
|
9010
9016
|
}
|
|
@@ -9096,7 +9102,7 @@ const hf = function(t, e, n, i) {
|
|
|
9096
9102
|
}
|
|
9097
9103
|
};
|
|
9098
9104
|
function gf(t) {
|
|
9099
|
-
const e =
|
|
9105
|
+
const e = Fo(t);
|
|
9100
9106
|
if (!("schema" in e)) {
|
|
9101
9107
|
for (const i of e) {
|
|
9102
9108
|
const r = i.extensions || (i.extensions = {}), s = r.http || (r.http = {});
|
|
@@ -9138,7 +9144,7 @@ async function* mf(t) {
|
|
|
9138
9144
|
"initialResult" in t ? yield* Po(t) : yield t;
|
|
9139
9145
|
}
|
|
9140
9146
|
function as(t, e) {
|
|
9141
|
-
return Ii(e) ? Zu(No(e, async (n) => mf(await
|
|
9147
|
+
return Ii(e) ? Zu(No(e, async (n) => mf(await Co(of(t, n))), (n) => {
|
|
9142
9148
|
throw n instanceof AggregateError ? new AggregateError(n.errors.map((i) => cs(i, t.operation)), n.message) : cs(n, t.operation);
|
|
9143
9149
|
})) : e;
|
|
9144
9150
|
}
|
|
@@ -9220,17 +9226,17 @@ function Ef(t, e, n, i, r, s, o, a, c) {
|
|
|
9220
9226
|
te(n) ? u = n.then((d) => yt(i, o, r, s, e, d, l)) : u = yt(i, o, r, s, e, n, l), te(u) && (u = u.then(void 0, (d) => {
|
|
9221
9227
|
d = Ye(d);
|
|
9222
9228
|
const g = ve(d, r, fe(e)), b = Le(g, o, l.errors);
|
|
9223
|
-
return
|
|
9229
|
+
return Fe(i, e, l), b;
|
|
9224
9230
|
}));
|
|
9225
9231
|
} catch (d) {
|
|
9226
9232
|
const g = Ye(d), b = ve(g, r, fe(e));
|
|
9227
|
-
u = Le(b, o, l.errors),
|
|
9233
|
+
u = Le(b, o, l.errors), Fe(i, e, l);
|
|
9228
9234
|
}
|
|
9229
9235
|
} catch (d) {
|
|
9230
|
-
return l.errors.push(d),
|
|
9236
|
+
return l.errors.push(d), Fe(i, t, l), l.addItems(null), l;
|
|
9231
9237
|
}
|
|
9232
9238
|
let p;
|
|
9233
|
-
return te(u) ? p = u.then((d) => [d], (d) => (l.errors.push(d),
|
|
9239
|
+
return te(u) ? p = u.then((d) => [d], (d) => (l.errors.push(d), Fe(i, t, l), null)) : p = [u], l.addItems(p), l;
|
|
9234
9240
|
}
|
|
9235
9241
|
async function Tf(t, e, n, i, r, s, o) {
|
|
9236
9242
|
let a;
|
|
@@ -9247,11 +9253,11 @@ async function Tf(t, e, n, i, r, s, o) {
|
|
|
9247
9253
|
try {
|
|
9248
9254
|
return c = yt(e, r, n, i, o, a, s), te(c) && (c = c.then(void 0, (l) => {
|
|
9249
9255
|
const u = ve(l, n, fe(o)), p = Le(u, r, s.errors);
|
|
9250
|
-
return
|
|
9256
|
+
return Fe(e, o, s), p;
|
|
9251
9257
|
})), { done: !1, value: c };
|
|
9252
9258
|
} catch (l) {
|
|
9253
9259
|
const u = ve(l, n, fe(o)), p = Le(u, r, s.errors);
|
|
9254
|
-
return
|
|
9260
|
+
return Fe(e, o, s), { done: !1, value: p };
|
|
9255
9261
|
}
|
|
9256
9262
|
}
|
|
9257
9263
|
async function vf(t, e, n, i, r, s, o, a, c) {
|
|
@@ -9268,18 +9274,18 @@ async function vf(t, e, n, i, r, s, o, a, c) {
|
|
|
9268
9274
|
try {
|
|
9269
9275
|
g = await Tf(e, n, i, r, s, d, p);
|
|
9270
9276
|
} catch (_) {
|
|
9271
|
-
d.errors.push(_),
|
|
9277
|
+
d.errors.push(_), Fe(n, o, d), d.addItems(null), e != null && e.return && e.return().catch(() => {
|
|
9272
9278
|
});
|
|
9273
9279
|
return;
|
|
9274
9280
|
}
|
|
9275
9281
|
const { done: b, value: I } = g;
|
|
9276
9282
|
let P;
|
|
9277
|
-
if (te(I) ? P = I.then((_) => [_], (_) => (d.errors.push(_),
|
|
9283
|
+
if (te(I) ? P = I.then((_) => [_], (_) => (d.errors.push(_), Fe(n, o, d), null)) : P = [I], d.addItems(P), b)
|
|
9278
9284
|
break;
|
|
9279
9285
|
u = d, l++;
|
|
9280
9286
|
}
|
|
9281
9287
|
}
|
|
9282
|
-
function
|
|
9288
|
+
function Fe(t, e, n) {
|
|
9283
9289
|
const i = fe(e);
|
|
9284
9290
|
t.subsequentPayloads.forEach((r) => {
|
|
9285
9291
|
var s;
|
|
@@ -9431,11 +9437,11 @@ var z = {}, fs;
|
|
|
9431
9437
|
function _f() {
|
|
9432
9438
|
return fs || (fs = 1, z.fetch = globalThis.fetch, z.Headers = globalThis.Headers, z.Request = globalThis.Request, z.Response = globalThis.Response, z.FormData = globalThis.FormData, z.ReadableStream = globalThis.ReadableStream, z.WritableStream = globalThis.WritableStream, z.TransformStream = globalThis.TransformStream, z.CompressionStream = globalThis.CompressionStream, z.DecompressionStream = globalThis.DecompressionStream, z.TextDecoderStream = globalThis.TextDecoderStream, z.TextEncoderStream = globalThis.TextEncoderStream, z.Blob = globalThis.Blob, z.File = globalThis.File, z.crypto = globalThis.crypto, z.btoa = globalThis.btoa, z.TextEncoder = globalThis.TextEncoder, z.TextDecoder = globalThis.TextDecoder, z.URLPattern = globalThis.URLPattern, z.URL = globalThis.URL, z.URLSearchParams = globalThis.URLSearchParams, z.createFetch = () => globalThis), z;
|
|
9433
9439
|
}
|
|
9434
|
-
var
|
|
9435
|
-
const Of = /* @__PURE__ */ Ea(
|
|
9440
|
+
var Cn = /* @__PURE__ */ _f();
|
|
9441
|
+
const Of = /* @__PURE__ */ Ea(Cn), jo = /* @__PURE__ */ Ta({
|
|
9436
9442
|
__proto__: null,
|
|
9437
9443
|
default: Of
|
|
9438
|
-
}, [
|
|
9444
|
+
}, [Cn]);
|
|
9439
9445
|
function Vo(t) {
|
|
9440
9446
|
return t != null && typeof t == "object" && typeof t[Symbol.asyncIterator] == "function";
|
|
9441
9447
|
}
|
|
@@ -9463,13 +9469,13 @@ function Rf(t) {
|
|
|
9463
9469
|
const e = Af(t), n = t.protocol || ((r = t.socket) != null && r.encrypted ? "https" : "http"), i = t.originalUrl || t.url || "/graphql";
|
|
9464
9470
|
return `${n}://${e}${i}`;
|
|
9465
9471
|
}
|
|
9466
|
-
function
|
|
9472
|
+
function Cf(t) {
|
|
9467
9473
|
const e = t[Symbol.toStringTag];
|
|
9468
9474
|
return !!(typeof t == "string" || e === "Uint8Array" || e === "Blob" || e === "FormData" || e === "URLSearchParams" || Vo(t));
|
|
9469
9475
|
}
|
|
9470
9476
|
let ds = !1;
|
|
9471
9477
|
const Wi = /* @__PURE__ */ new WeakMap();
|
|
9472
|
-
function
|
|
9478
|
+
function Ff(t, e) {
|
|
9473
9479
|
var c, l, u, p;
|
|
9474
9480
|
const n = t.raw || t.req || t;
|
|
9475
9481
|
let i = Rf(n);
|
|
@@ -9504,7 +9510,7 @@ function Cf(t, e) {
|
|
|
9504
9510
|
});
|
|
9505
9511
|
const a = t.body;
|
|
9506
9512
|
if (a != null && Object.keys(a).length > 0) {
|
|
9507
|
-
if (
|
|
9513
|
+
if (Cf(a))
|
|
9508
9514
|
return new e.Request(i, {
|
|
9509
9515
|
method: t.method || "GET",
|
|
9510
9516
|
headers: s,
|
|
@@ -9820,7 +9826,7 @@ function Gf({ req: t, res: e, fetchAPI: n, controller: i }) {
|
|
|
9820
9826
|
I && (b += `?${I}`);
|
|
9821
9827
|
let P;
|
|
9822
9828
|
function _() {
|
|
9823
|
-
return d ? l ?
|
|
9829
|
+
return d ? l ? C() : d() : null;
|
|
9824
9830
|
}
|
|
9825
9831
|
const w = new n.Request(b, {
|
|
9826
9832
|
method: r,
|
|
@@ -9833,14 +9839,14 @@ function Gf({ req: t, res: e, fetchAPI: n, controller: i }) {
|
|
|
9833
9839
|
// @ts-ignore - not in the TS types yet
|
|
9834
9840
|
duplex: s
|
|
9835
9841
|
});
|
|
9836
|
-
function
|
|
9842
|
+
function C() {
|
|
9837
9843
|
return P || (P = o.length === 1 ? o[0] : Buffer.concat(o)), P;
|
|
9838
9844
|
}
|
|
9839
9845
|
function O() {
|
|
9840
|
-
return l ? rt(
|
|
9846
|
+
return l ? rt(C()) : new Promise((m, T) => {
|
|
9841
9847
|
try {
|
|
9842
9848
|
u.push(() => {
|
|
9843
|
-
m(
|
|
9849
|
+
m(C());
|
|
9844
9850
|
});
|
|
9845
9851
|
} catch (E) {
|
|
9846
9852
|
T(E);
|
|
@@ -10037,7 +10043,7 @@ function Wf(t, e) {
|
|
|
10037
10043
|
function p(m, ...T) {
|
|
10038
10044
|
const E = T.length > 1 ? yn(...T) : T[0] || {};
|
|
10039
10045
|
E.waitUntil || (E.waitUntil = l);
|
|
10040
|
-
const k =
|
|
10046
|
+
const k = Ff(m, n);
|
|
10041
10047
|
return u(k, E);
|
|
10042
10048
|
}
|
|
10043
10049
|
function d(m, T, ...E) {
|
|
@@ -10142,7 +10148,7 @@ ${J.stack || J.message || J}`);
|
|
|
10142
10148
|
if (ps(E))
|
|
10143
10149
|
throw new TypeError("Got Node response without Node request");
|
|
10144
10150
|
return Hf(m) ? Df(m) ? I(m, ...T) : P(m.request, m, ...T) : _(m, ...T);
|
|
10145
|
-
},
|
|
10151
|
+
}, C = {
|
|
10146
10152
|
handleRequest: P,
|
|
10147
10153
|
fetch: _,
|
|
10148
10154
|
handleNodeRequest: p,
|
|
@@ -10162,11 +10168,11 @@ ${J.stack || J.message || J}`);
|
|
|
10162
10168
|
}
|
|
10163
10169
|
}, O = new Proxy(w, {
|
|
10164
10170
|
// It should have all the attributes of the handler function and the server instance
|
|
10165
|
-
has: (m, T) => T in
|
|
10171
|
+
has: (m, T) => T in C || T in w || t && T in t,
|
|
10166
10172
|
get: (m, T) => {
|
|
10167
|
-
const E =
|
|
10173
|
+
const E = C[T];
|
|
10168
10174
|
if (E)
|
|
10169
|
-
return E.bind ? E.bind(
|
|
10175
|
+
return E.bind ? E.bind(C) : E;
|
|
10170
10176
|
const k = w[T];
|
|
10171
10177
|
if (k)
|
|
10172
10178
|
return k.bind ? k.bind(w) : k;
|
|
@@ -10243,7 +10249,7 @@ function Yf(t) {
|
|
|
10243
10249
|
}
|
|
10244
10250
|
};
|
|
10245
10251
|
}
|
|
10246
|
-
function Xf(t =
|
|
10252
|
+
function Xf(t = Cn.Response) {
|
|
10247
10253
|
return function(n) {
|
|
10248
10254
|
return n.details || n.status || n.headers || n.name === "HTTPError" ? new t(typeof n.details == "object" ? JSON.stringify(n.details) : n.message, {
|
|
10249
10255
|
status: n.status,
|
|
@@ -10352,7 +10358,7 @@ function Go(t) {
|
|
|
10352
10358
|
};
|
|
10353
10359
|
}
|
|
10354
10360
|
function id(t) {
|
|
10355
|
-
const e = new
|
|
10361
|
+
const e = new Cn.URLSearchParams(t);
|
|
10356
10362
|
return Go(e);
|
|
10357
10363
|
}
|
|
10358
10364
|
function Sn(t, e) {
|
|
@@ -10363,7 +10369,7 @@ function rd(t) {
|
|
|
10363
10369
|
return t.method === "GET";
|
|
10364
10370
|
}
|
|
10365
10371
|
function sd(t) {
|
|
10366
|
-
const e = t.url.substring(t.url.indexOf("?") + 1), n = new
|
|
10372
|
+
const e = t.url.substring(t.url.indexOf("?") + 1), n = new Cn.URLSearchParams(e);
|
|
10367
10373
|
return Go(n);
|
|
10368
10374
|
}
|
|
10369
10375
|
function od(t) {
|
|
@@ -10775,7 +10781,7 @@ const wt = class wt {
|
|
|
10775
10781
|
Bt = new WeakMap(), // private constructor
|
|
10776
10782
|
V(wt, Bt, !1);
|
|
10777
10783
|
let Yi = wt;
|
|
10778
|
-
var
|
|
10784
|
+
var Cs, Fs, $e, _e, Me, Ue, qt, Gt, ee, je, X, Q, U, ye, Oe, de, ie, Ve, re, Be, qe, Ne, Ge, ft, be, S, Zi, It, tt, In, Ae, Wo, _t, Qt, _n, at, ct, er, Jn, Yn, G, tr, En, lt, nr;
|
|
10779
10785
|
const vr = class vr {
|
|
10780
10786
|
constructor(e) {
|
|
10781
10787
|
V(this, S);
|
|
@@ -10887,8 +10893,8 @@ const vr = class vr {
|
|
|
10887
10893
|
* description of an object. Called by the built-in method
|
|
10888
10894
|
* `Object.prototype.toString`.
|
|
10889
10895
|
*/
|
|
10890
|
-
A(this,
|
|
10891
|
-
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: c, dispose: l, disposeAfter: u, noDisposeOnSet: p, noUpdateTTL: d, maxSize: g = 0, maxEntrySize: b = 0, sizeCalculation: I, fetchMethod: P, memoMethod: _, noDeleteOnFetchRejection: w, noDeleteOnStaleGet:
|
|
10896
|
+
A(this, Cs, "LRUCache");
|
|
10897
|
+
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: c, dispose: l, disposeAfter: u, noDisposeOnSet: p, noUpdateTTL: d, maxSize: g = 0, maxEntrySize: b = 0, sizeCalculation: I, fetchMethod: P, memoMethod: _, noDeleteOnFetchRejection: w, noDeleteOnStaleGet: C, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: m, ignoreFetchAbort: T } = e;
|
|
10892
10898
|
if (n !== 0 && !ot(n))
|
|
10893
10899
|
throw new TypeError("max option must be a nonnegative integer");
|
|
10894
10900
|
const E = n ? zo(n) : Array;
|
|
@@ -10911,7 +10917,7 @@ const vr = class vr {
|
|
|
10911
10917
|
throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
10912
10918
|
R(this, S, Wo).call(this);
|
|
10913
10919
|
}
|
|
10914
|
-
if (this.allowStale = !!c, this.noDeleteOnStaleGet = !!
|
|
10920
|
+
if (this.allowStale = !!c, this.noDeleteOnStaleGet = !!C, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!a, this.ttlResolution = ot(r) || r === 0 ? r : 1, this.ttlAutopurge = !!s, this.ttl = i || 0, this.ttl) {
|
|
10915
10921
|
if (!ot(this.ttl))
|
|
10916
10922
|
throw new TypeError("ttl must be a positive integer if specified");
|
|
10917
10923
|
R(this, S, Zi).call(this);
|
|
@@ -11092,7 +11098,7 @@ const vr = class vr {
|
|
|
11092
11098
|
* Iterating over the cache itself yields the same results as
|
|
11093
11099
|
* {@link LRUCache.entries}
|
|
11094
11100
|
*/
|
|
11095
|
-
[(
|
|
11101
|
+
[(Fs = Symbol.iterator, Cs = Symbol.toStringTag, Fs)]() {
|
|
11096
11102
|
return this.entries();
|
|
11097
11103
|
}
|
|
11098
11104
|
/**
|
|
@@ -11381,7 +11387,7 @@ const vr = class vr {
|
|
|
11381
11387
|
noDeleteOnStaleGet: s,
|
|
11382
11388
|
status: _
|
|
11383
11389
|
});
|
|
11384
|
-
const
|
|
11390
|
+
const C = {
|
|
11385
11391
|
allowStale: i,
|
|
11386
11392
|
updateAgeOnGet: r,
|
|
11387
11393
|
noDeleteOnStaleGet: s,
|
|
@@ -11400,7 +11406,7 @@ const vr = class vr {
|
|
|
11400
11406
|
let O = f(this, X).get(e);
|
|
11401
11407
|
if (O === void 0) {
|
|
11402
11408
|
_ && (_.fetch = "miss");
|
|
11403
|
-
const m = R(this, S, Yn).call(this, e, O,
|
|
11409
|
+
const m = R(this, S, Yn).call(this, e, O, C, I);
|
|
11404
11410
|
return m.__returned = m;
|
|
11405
11411
|
} else {
|
|
11406
11412
|
const m = f(this, U)[O];
|
|
@@ -11411,7 +11417,7 @@ const vr = class vr {
|
|
|
11411
11417
|
const T = f(this, Ae).call(this, O);
|
|
11412
11418
|
if (!P && !T)
|
|
11413
11419
|
return _ && (_.fetch = "hit"), R(this, S, En).call(this, O), r && f(this, It).call(this, O), _ && f(this, tt).call(this, _, O), m;
|
|
11414
|
-
const E = R(this, S, Yn).call(this, e, O,
|
|
11420
|
+
const E = R(this, S, Yn).call(this, e, O, C, I), $ = E.__staleWhileFetching !== void 0 && i;
|
|
11415
11421
|
return _ && (_.fetch = T ? "stale" : "refresh", $ && T && (_.returnedStale = !0)), $ ? E.__staleWhileFetching : E.__returned = E;
|
|
11416
11422
|
}
|
|
11417
11423
|
}
|
|
@@ -11560,19 +11566,19 @@ $e = new WeakMap(), _e = new WeakMap(), Me = new WeakMap(), Ue = new WeakMap(),
|
|
|
11560
11566
|
const { aborted: _ } = o.signal, w = i.ignoreFetchAbort && I !== void 0;
|
|
11561
11567
|
if (i.status && (_ && !P ? (i.status.fetchAborted = !0, i.status.fetchError = o.signal.reason, w && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), _ && !w && !P)
|
|
11562
11568
|
return p(o.signal.reason);
|
|
11563
|
-
const
|
|
11564
|
-
return f(this, U)[n] === g && (I === void 0 ?
|
|
11569
|
+
const C = g;
|
|
11570
|
+
return f(this, U)[n] === g && (I === void 0 ? C.__staleWhileFetching ? f(this, U)[n] = C.__staleWhileFetching : R(this, S, lt).call(this, e, "fetch") : (i.status && (i.status.fetchUpdated = !0), this.set(e, I, c.options))), I;
|
|
11565
11571
|
}, u = (I) => (i.status && (i.status.fetchRejected = !0, i.status.fetchError = I), p(I)), p = (I) => {
|
|
11566
|
-
const { aborted: P } = o.signal, _ = P && i.allowStaleOnFetchAbort, w = _ || i.allowStaleOnFetchRejection,
|
|
11567
|
-
if (f(this, U)[n] === g && (!
|
|
11572
|
+
const { aborted: P } = o.signal, _ = P && i.allowStaleOnFetchAbort, w = _ || i.allowStaleOnFetchRejection, C = w || i.noDeleteOnFetchRejection, O = g;
|
|
11573
|
+
if (f(this, U)[n] === g && (!C || O.__staleWhileFetching === void 0 ? R(this, S, lt).call(this, e, "fetch") : _ || (f(this, U)[n] = O.__staleWhileFetching)), w)
|
|
11568
11574
|
return i.status && O.__staleWhileFetching !== void 0 && (i.status.returnedStale = !0), O.__staleWhileFetching;
|
|
11569
11575
|
if (O.__returned === O)
|
|
11570
11576
|
throw I;
|
|
11571
11577
|
}, d = (I, P) => {
|
|
11572
11578
|
var w;
|
|
11573
11579
|
const _ = (w = f(this, qt)) == null ? void 0 : w.call(this, e, s, c);
|
|
11574
|
-
_ && _ instanceof Promise && _.then((
|
|
11575
|
-
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (I(void 0), i.allowStaleOnFetchAbort && (I = (
|
|
11580
|
+
_ && _ instanceof Promise && _.then((C) => I(C === void 0 ? void 0 : C), P), o.signal.addEventListener("abort", () => {
|
|
11581
|
+
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (I(void 0), i.allowStaleOnFetchAbort && (I = (C) => l(C, !0)));
|
|
11576
11582
|
});
|
|
11577
11583
|
};
|
|
11578
11584
|
i.status && (i.status.fetchDispatched = !0);
|
|
@@ -11645,7 +11651,7 @@ const Ad = 1024, Rd = 36e5;
|
|
|
11645
11651
|
function $i({ max: t = Ad, ttl: e = Rd } = {}) {
|
|
11646
11652
|
return new Xi({ max: t, ttl: e });
|
|
11647
11653
|
}
|
|
11648
|
-
function
|
|
11654
|
+
function Cd({ documentCache: t = $i(), errorCache: e = $i(), validationCache: n = !0 }) {
|
|
11649
11655
|
const i = $i();
|
|
11650
11656
|
return {
|
|
11651
11657
|
onParse({ params: r, setParsedDocument: s }) {
|
|
@@ -11684,9 +11690,9 @@ function Fd({ documentCache: t = $i(), errorCache: e = $i(), validationCache: n
|
|
|
11684
11690
|
}
|
|
11685
11691
|
};
|
|
11686
11692
|
}
|
|
11687
|
-
const
|
|
11693
|
+
const Fd = () => !0;
|
|
11688
11694
|
function ln(t) {
|
|
11689
|
-
const e = t.match ||
|
|
11695
|
+
const e = t.match || Fd;
|
|
11690
11696
|
return {
|
|
11691
11697
|
onRequestParse({ request: n, setRequestParser: i }) {
|
|
11692
11698
|
e(n) && i(t.parse);
|
|
@@ -12204,7 +12210,7 @@ class Qd {
|
|
|
12204
12210
|
onPluginInit({ addPlugin: c }) {
|
|
12205
12211
|
(e == null ? void 0 : e.parserAndValidationCache) !== !1 && c(
|
|
12206
12212
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
12207
|
-
|
|
12213
|
+
Cd(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
|
|
12208
12214
|
), c(Sd(o)), c(bd(e == null ? void 0 : e.extraParamNames));
|
|
12209
12215
|
const l = !!((e == null ? void 0 : e.landingPage) ?? !0);
|
|
12210
12216
|
c(
|
|
@@ -12335,7 +12341,7 @@ const Ui = /* @__PURE__ */ new Map(), Kd = (t, e) => {
|
|
|
12335
12341
|
return ji.set(t, s), s;
|
|
12336
12342
|
}, Xd = (t) => {
|
|
12337
12343
|
var e;
|
|
12338
|
-
return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t =
|
|
12344
|
+
return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = Ct(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = Ct(t, (n) => (n.exclusiveMinimum === !0 ? (n.exclusiveMinimum = n.minimum, delete n.minimum) : n.exclusiveMinimum === !1 && delete n.exclusiveMinimum, n.exclusiveMaximum === !0 ? (n.exclusiveMaximum = n.maximum, delete n.maximum) : n.exclusiveMaximum === !1 && delete n.exclusiveMaximum, n)), t = Ct(t, (n) => {
|
|
12339
12345
|
if (n.example) {
|
|
12340
12346
|
const r = typeof n.example == "object" && (n.example.summary !== void 0 || n.example.description !== void 0 || n.example.value !== void 0 || n.example.externalValue !== void 0) ? n.example : { value: n.example };
|
|
12341
12347
|
n.examples ? n.examples = {
|
|
@@ -12344,17 +12350,17 @@ const Ui = /* @__PURE__ */ new Map(), Kd = (t, e) => {
|
|
|
12344
12350
|
} : n.examples = { default: r }, delete n.example;
|
|
12345
12351
|
}
|
|
12346
12352
|
return n;
|
|
12347
|
-
}), t =
|
|
12353
|
+
}), t = Ct(t, (n) => {
|
|
12348
12354
|
if (n.type === "object" && n.properties !== void 0)
|
|
12349
12355
|
for (const [, i] of Object.entries(n.properties)) {
|
|
12350
12356
|
const r = i ?? {};
|
|
12351
12357
|
r.type === "string" && r.format === "binary" && (r.contentEncoding = "application/octet-stream", delete r.format);
|
|
12352
12358
|
}
|
|
12353
12359
|
return n;
|
|
12354
|
-
}), t =
|
|
12360
|
+
}), t = Ct(t, (n) => {
|
|
12355
12361
|
if (!(n.type === "string" && n.format === "binary"))
|
|
12356
12362
|
return n;
|
|
12357
|
-
}), t =
|
|
12363
|
+
}), t = Ct(t, (n) => n.type === "string" && n.format === "base64" ? {
|
|
12358
12364
|
type: "string",
|
|
12359
12365
|
contentEncoding: "base64"
|
|
12360
12366
|
} : n), t;
|
|
@@ -12408,7 +12414,7 @@ const Ui = /* @__PURE__ */ new Map(), Kd = (t, e) => {
|
|
|
12408
12414
|
return t(r + i);
|
|
12409
12415
|
}, ne = new bu({
|
|
12410
12416
|
defaultFieldNullability: !1
|
|
12411
|
-
}), fi = ne.addScalarType("JSON", ga), tn = ne.addScalarType("JSONObject", ma), Jo = ne.addScalarType("JSONSchema", ya),
|
|
12417
|
+
}), fi = ne.addScalarType("JSON", ga), tn = ne.addScalarType("JSONObject", ma), Jo = ne.addScalarType("JSONSchema", ya), Fn = (t) => {
|
|
12412
12418
|
const e = {};
|
|
12413
12419
|
for (const [n, i] of Object.entries(t))
|
|
12414
12420
|
n.startsWith("x-") && (e[n] = i);
|
|
@@ -12480,7 +12486,7 @@ const Ui = /* @__PURE__ */ new Map(), Kd = (t, e) => {
|
|
|
12480
12486
|
description: t.exposeString("description", { nullable: !0 }),
|
|
12481
12487
|
extensions: t.field({
|
|
12482
12488
|
type: tn,
|
|
12483
|
-
resolve: (e) =>
|
|
12489
|
+
resolve: (e) => Fn(e),
|
|
12484
12490
|
nullable: !0
|
|
12485
12491
|
})
|
|
12486
12492
|
})
|
|
@@ -12528,7 +12534,7 @@ const Ui = /* @__PURE__ */ new Map(), Kd = (t, e) => {
|
|
|
12528
12534
|
schema: t.expose("schema", { type: Jo, nullable: !0 }),
|
|
12529
12535
|
extensions: t.field({
|
|
12530
12536
|
type: tn,
|
|
12531
|
-
resolve: (e) =>
|
|
12537
|
+
resolve: (e) => Fn(e),
|
|
12532
12538
|
nullable: !0
|
|
12533
12539
|
})
|
|
12534
12540
|
})
|
|
@@ -12554,7 +12560,7 @@ const Ui = /* @__PURE__ */ new Map(), Kd = (t, e) => {
|
|
|
12554
12560
|
links: t.expose("links", { type: fi, nullable: !0 }),
|
|
12555
12561
|
extensions: t.field({
|
|
12556
12562
|
type: tn,
|
|
12557
|
-
resolve: (e) =>
|
|
12563
|
+
resolve: (e) => Fn(e),
|
|
12558
12564
|
nullable: !0
|
|
12559
12565
|
})
|
|
12560
12566
|
})
|
|
@@ -12649,7 +12655,7 @@ const Ui = /* @__PURE__ */ new Map(), Kd = (t, e) => {
|
|
|
12649
12655
|
deprecated: t.exposeBoolean("deprecated", { nullable: !0 }),
|
|
12650
12656
|
extensions: t.field({
|
|
12651
12657
|
type: tn,
|
|
12652
|
-
resolve: (e) =>
|
|
12658
|
+
resolve: (e) => Fn(e),
|
|
12653
12659
|
nullable: !0
|
|
12654
12660
|
})
|
|
12655
12661
|
})
|
|
@@ -12710,7 +12716,7 @@ const Ui = /* @__PURE__ */ new Map(), Kd = (t, e) => {
|
|
|
12710
12716
|
}),
|
|
12711
12717
|
extensions: t.field({
|
|
12712
12718
|
type: tn,
|
|
12713
|
-
resolve: (e) =>
|
|
12719
|
+
resolve: (e) => Fn(e),
|
|
12714
12720
|
nullable: !0
|
|
12715
12721
|
})
|
|
12716
12722
|
})
|
|
@@ -12755,4 +12761,4 @@ const mp = ne.toSchema(), yp = (t) => Hd({ schema: mp, ...t }), _p = (t) => yp({
|
|
|
12755
12761
|
export {
|
|
12756
12762
|
_p as createServer
|
|
12757
12763
|
};
|
|
12758
|
-
//# sourceMappingURL=createServer-
|
|
12764
|
+
//# sourceMappingURL=createServer-BEFAOb-x.js.map
|