@learncard/network-brain-client 2.5.48 → 2.5.50
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/brain-client.cjs.development.cjs +15 -5
- package/dist/brain-client.cjs.development.cjs.map +2 -2
- package/dist/brain-client.cjs.production.min.cjs +11 -11
- package/dist/brain-client.cjs.production.min.cjs.map +2 -2
- package/dist/brain-client.esm.js +707 -524
- package/dist/brain-client.esm.js.map +4 -4
- package/package.json +6 -6
package/dist/brain-client.esm.js
CHANGED
|
@@ -32029,7 +32029,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32029
32029
|
}).catchall(external_exports2.any())
|
|
32030
32030
|
);
|
|
32031
32031
|
var CredentialSubjectValidator = external_exports2.object({ id: external_exports2.string().optional() }).catchall(external_exports2.any());
|
|
32032
|
-
var CredentialStatusValidator = external_exports2.object({ type: external_exports2.string(), id: external_exports2.string() }).catchall(external_exports2.any());
|
|
32032
|
+
var CredentialStatusValidator = external_exports2.object({ type: external_exports2.string(), id: external_exports2.string().optional() }).catchall(external_exports2.any());
|
|
32033
32033
|
var CredentialSchemaValidator = external_exports2.object({ id: external_exports2.string(), type: external_exports2.string() }).catchall(external_exports2.any());
|
|
32034
32034
|
var RefreshServiceValidator = external_exports2.object({ id: external_exports2.string().optional(), type: external_exports2.string() }).catchall(external_exports2.any());
|
|
32035
32035
|
var TermsOfUseValidator = external_exports2.object({ type: external_exports2.string(), id: external_exports2.string().optional() }).catchall(external_exports2.any());
|
|
@@ -32430,8 +32430,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32430
32430
|
statusListIndex: external_exports2.string().optional()
|
|
32431
32431
|
});
|
|
32432
32432
|
var VerificationCheckValidator = external_exports2.object({
|
|
32433
|
+
/**
|
|
32434
|
+
* Checks that completed successfully. This does not imply that warnings can be ignored.
|
|
32435
|
+
*/
|
|
32433
32436
|
checks: external_exports2.string().array(),
|
|
32437
|
+
/**
|
|
32438
|
+
* Security-relevant conditions that did not prevent the requested cryptographic checks from
|
|
32439
|
+
* completing. In particular, a non-DID issuer warning means the signature is valid but the
|
|
32440
|
+
* named URL issuer's authorization of that signing key was not established.
|
|
32441
|
+
*/
|
|
32434
32442
|
warnings: external_exports2.string().array(),
|
|
32443
|
+
/** Verification failures that prevented one or more requested checks from succeeding. */
|
|
32435
32444
|
errors: external_exports2.string().array(),
|
|
32436
32445
|
/**
|
|
32437
32446
|
* Per-entry results for the `credentialStatus` check, populated
|
|
@@ -33895,7 +33904,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33895
33904
|
id: external_exports2.string().optional(),
|
|
33896
33905
|
type: external_exports2.literal("BitstringStatusListEntry"),
|
|
33897
33906
|
statusPurpose: BitstringStatusPurposeValidator,
|
|
33898
|
-
statusListIndex: external_exports2.string(),
|
|
33907
|
+
statusListIndex: external_exports2.string().or(external_exports2.number().int().nonnegative()),
|
|
33899
33908
|
statusListCredential: external_exports2.string()
|
|
33900
33909
|
});
|
|
33901
33910
|
var AllocatedBitstringStatusListEntryValidator = BitstringStatusListEntryValidator.extend({
|
|
@@ -34322,6 +34331,108 @@ var RegExpTransformer = {
|
|
|
34322
34331
|
}
|
|
34323
34332
|
};
|
|
34324
34333
|
|
|
34334
|
+
// ../../../node_modules/@trpc/client/dist/objectSpread2-BvkFp-_Y.mjs
|
|
34335
|
+
var __create2 = Object.create;
|
|
34336
|
+
var __defProp3 = Object.defineProperty;
|
|
34337
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
34338
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
34339
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
34340
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
34341
|
+
var __commonJS2 = /* @__PURE__ */ __name((cb, mod) => function() {
|
|
34342
|
+
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
34343
|
+
}, "__commonJS");
|
|
34344
|
+
var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
|
|
34345
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
34346
|
+
key = keys[i];
|
|
34347
|
+
if (!__hasOwnProp2.call(to, key) && key !== except) __defProp3(to, key, {
|
|
34348
|
+
get: ((k) => from[k]).bind(null, key),
|
|
34349
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
34350
|
+
});
|
|
34351
|
+
}
|
|
34352
|
+
return to;
|
|
34353
|
+
}, "__copyProps");
|
|
34354
|
+
var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", {
|
|
34355
|
+
value: mod,
|
|
34356
|
+
enumerable: true
|
|
34357
|
+
}) : target, mod)), "__toESM");
|
|
34358
|
+
var require_typeof = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(exports, module) {
|
|
34359
|
+
function _typeof$2(o) {
|
|
34360
|
+
"@babel/helpers - typeof";
|
|
34361
|
+
return module.exports = _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
34362
|
+
return typeof o$1;
|
|
34363
|
+
} : function(o$1) {
|
|
34364
|
+
return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
|
|
34365
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof$2(o);
|
|
34366
|
+
}
|
|
34367
|
+
__name(_typeof$2, "_typeof$2");
|
|
34368
|
+
module.exports = _typeof$2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
34369
|
+
} });
|
|
34370
|
+
var require_toPrimitive = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(exports, module) {
|
|
34371
|
+
var _typeof$1 = require_typeof()["default"];
|
|
34372
|
+
function toPrimitive$1(t, r) {
|
|
34373
|
+
if ("object" != _typeof$1(t) || !t) return t;
|
|
34374
|
+
var e = t[Symbol.toPrimitive];
|
|
34375
|
+
if (void 0 !== e) {
|
|
34376
|
+
var i = e.call(t, r || "default");
|
|
34377
|
+
if ("object" != _typeof$1(i)) return i;
|
|
34378
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
34379
|
+
}
|
|
34380
|
+
return ("string" === r ? String : Number)(t);
|
|
34381
|
+
}
|
|
34382
|
+
__name(toPrimitive$1, "toPrimitive$1");
|
|
34383
|
+
module.exports = toPrimitive$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
34384
|
+
} });
|
|
34385
|
+
var require_toPropertyKey = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(exports, module) {
|
|
34386
|
+
var _typeof = require_typeof()["default"];
|
|
34387
|
+
var toPrimitive = require_toPrimitive();
|
|
34388
|
+
function toPropertyKey$1(t) {
|
|
34389
|
+
var i = toPrimitive(t, "string");
|
|
34390
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
34391
|
+
}
|
|
34392
|
+
__name(toPropertyKey$1, "toPropertyKey$1");
|
|
34393
|
+
module.exports = toPropertyKey$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
34394
|
+
} });
|
|
34395
|
+
var require_defineProperty = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(exports, module) {
|
|
34396
|
+
var toPropertyKey = require_toPropertyKey();
|
|
34397
|
+
function _defineProperty(e, r, t) {
|
|
34398
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
34399
|
+
value: t,
|
|
34400
|
+
enumerable: true,
|
|
34401
|
+
configurable: true,
|
|
34402
|
+
writable: true
|
|
34403
|
+
}) : e[r] = t, e;
|
|
34404
|
+
}
|
|
34405
|
+
__name(_defineProperty, "_defineProperty");
|
|
34406
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
34407
|
+
} });
|
|
34408
|
+
var require_objectSpread2 = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(exports, module) {
|
|
34409
|
+
var defineProperty = require_defineProperty();
|
|
34410
|
+
function ownKeys(e, r) {
|
|
34411
|
+
var t = Object.keys(e);
|
|
34412
|
+
if (Object.getOwnPropertySymbols) {
|
|
34413
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
34414
|
+
r && (o = o.filter(function(r$1) {
|
|
34415
|
+
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
34416
|
+
})), t.push.apply(t, o);
|
|
34417
|
+
}
|
|
34418
|
+
return t;
|
|
34419
|
+
}
|
|
34420
|
+
__name(ownKeys, "ownKeys");
|
|
34421
|
+
function _objectSpread2(e) {
|
|
34422
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
34423
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
34424
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r$1) {
|
|
34425
|
+
defineProperty(e, r$1, t[r$1]);
|
|
34426
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
34427
|
+
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
34428
|
+
});
|
|
34429
|
+
}
|
|
34430
|
+
return e;
|
|
34431
|
+
}
|
|
34432
|
+
__name(_objectSpread2, "_objectSpread2");
|
|
34433
|
+
module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
34434
|
+
} });
|
|
34435
|
+
|
|
34325
34436
|
// ../../../node_modules/@trpc/server/dist/observable-UMO3vUa_.mjs
|
|
34326
34437
|
function observable(subscribe) {
|
|
34327
34438
|
const self = {
|
|
@@ -34486,14 +34597,12 @@ function behaviorSubject(initialValue) {
|
|
|
34486
34597
|
}
|
|
34487
34598
|
__name(behaviorSubject, "behaviorSubject");
|
|
34488
34599
|
|
|
34489
|
-
// ../../../node_modules/@trpc/client/dist/
|
|
34600
|
+
// ../../../node_modules/@trpc/client/dist/splitLink-B7Cuf2c_.mjs
|
|
34490
34601
|
function createChain(opts) {
|
|
34491
34602
|
return observable((observer) => {
|
|
34492
34603
|
function execute(index = 0, op = opts.op) {
|
|
34493
34604
|
const next = opts.links[index];
|
|
34494
|
-
if (!next)
|
|
34495
|
-
throw new Error("No more links to execute - did you forget to add an ending link?");
|
|
34496
|
-
}
|
|
34605
|
+
if (!next) throw new Error("No more links to execute - did you forget to add an ending link?");
|
|
34497
34606
|
const subscription = next({
|
|
34498
34607
|
op,
|
|
34499
34608
|
next(nextOp) {
|
|
@@ -34546,26 +34655,26 @@ function isObject2(value) {
|
|
|
34546
34655
|
__name(isObject2, "isObject");
|
|
34547
34656
|
|
|
34548
34657
|
// ../../../node_modules/@trpc/server/dist/getErrorShape-BH60iMC2.mjs
|
|
34549
|
-
var
|
|
34550
|
-
var
|
|
34551
|
-
var
|
|
34552
|
-
var
|
|
34553
|
-
var
|
|
34554
|
-
var
|
|
34555
|
-
var
|
|
34556
|
-
return mod || (0, cb[
|
|
34658
|
+
var __create3 = Object.create;
|
|
34659
|
+
var __defProp4 = Object.defineProperty;
|
|
34660
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
34661
|
+
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
34662
|
+
var __getProtoOf3 = Object.getPrototypeOf;
|
|
34663
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
34664
|
+
var __commonJS3 = /* @__PURE__ */ __name((cb, mod) => function() {
|
|
34665
|
+
return mod || (0, cb[__getOwnPropNames3(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
34557
34666
|
}, "__commonJS");
|
|
34558
|
-
var
|
|
34559
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys =
|
|
34667
|
+
var __copyProps3 = /* @__PURE__ */ __name((to, from, except, desc) => {
|
|
34668
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames3(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
34560
34669
|
key = keys[i];
|
|
34561
|
-
if (!
|
|
34670
|
+
if (!__hasOwnProp3.call(to, key) && key !== except) __defProp4(to, key, {
|
|
34562
34671
|
get: ((k) => from[k]).bind(null, key),
|
|
34563
|
-
enumerable: !(desc =
|
|
34672
|
+
enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable
|
|
34564
34673
|
});
|
|
34565
34674
|
}
|
|
34566
34675
|
return to;
|
|
34567
34676
|
}, "__copyProps");
|
|
34568
|
-
var
|
|
34677
|
+
var __toESM3 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create3(__getProtoOf3(mod)) : {}, __copyProps3(isNodeMode || !mod || !mod.__esModule ? __defProp4(target, "default", {
|
|
34569
34678
|
value: mod,
|
|
34570
34679
|
enumerable: true
|
|
34571
34680
|
}) : target, mod)), "__toESM");
|
|
@@ -34611,7 +34720,7 @@ var createFlatProxy = /* @__PURE__ */ __name((callback) => {
|
|
|
34611
34720
|
return callback(name);
|
|
34612
34721
|
} });
|
|
34613
34722
|
}, "createFlatProxy");
|
|
34614
|
-
var
|
|
34723
|
+
var require_typeof2 = __commonJS3({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(exports, module) {
|
|
34615
34724
|
function _typeof$2(o) {
|
|
34616
34725
|
"@babel/helpers - typeof";
|
|
34617
34726
|
return module.exports = _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -34623,8 +34732,8 @@ var require_typeof = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtim
|
|
|
34623
34732
|
__name(_typeof$2, "_typeof$2");
|
|
34624
34733
|
module.exports = _typeof$2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
34625
34734
|
} });
|
|
34626
|
-
var
|
|
34627
|
-
var _typeof$1 =
|
|
34735
|
+
var require_toPrimitive2 = __commonJS3({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(exports, module) {
|
|
34736
|
+
var _typeof$1 = require_typeof2()["default"];
|
|
34628
34737
|
function toPrimitive$1(t, r) {
|
|
34629
34738
|
if ("object" != _typeof$1(t) || !t) return t;
|
|
34630
34739
|
var e = t[Symbol.toPrimitive];
|
|
@@ -34638,9 +34747,9 @@ var require_toPrimitive = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+r
|
|
|
34638
34747
|
__name(toPrimitive$1, "toPrimitive$1");
|
|
34639
34748
|
module.exports = toPrimitive$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
34640
34749
|
} });
|
|
34641
|
-
var
|
|
34642
|
-
var _typeof =
|
|
34643
|
-
var toPrimitive =
|
|
34750
|
+
var require_toPropertyKey2 = __commonJS3({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(exports, module) {
|
|
34751
|
+
var _typeof = require_typeof2()["default"];
|
|
34752
|
+
var toPrimitive = require_toPrimitive2();
|
|
34644
34753
|
function toPropertyKey$1(t) {
|
|
34645
34754
|
var i = toPrimitive(t, "string");
|
|
34646
34755
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -34648,8 +34757,8 @@ var require_toPropertyKey = __commonJS2({ "../../node_modules/.pnpm/@oxc-project
|
|
|
34648
34757
|
__name(toPropertyKey$1, "toPropertyKey$1");
|
|
34649
34758
|
module.exports = toPropertyKey$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
34650
34759
|
} });
|
|
34651
|
-
var
|
|
34652
|
-
var toPropertyKey =
|
|
34760
|
+
var require_defineProperty2 = __commonJS3({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(exports, module) {
|
|
34761
|
+
var toPropertyKey = require_toPropertyKey2();
|
|
34653
34762
|
function _defineProperty(e, r, t) {
|
|
34654
34763
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
34655
34764
|
value: t,
|
|
@@ -34661,8 +34770,8 @@ var require_defineProperty = __commonJS2({ "../../node_modules/.pnpm/@oxc-projec
|
|
|
34661
34770
|
__name(_defineProperty, "_defineProperty");
|
|
34662
34771
|
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
34663
34772
|
} });
|
|
34664
|
-
var
|
|
34665
|
-
var defineProperty =
|
|
34773
|
+
var require_objectSpread22 = __commonJS3({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(exports, module) {
|
|
34774
|
+
var defineProperty = require_defineProperty2();
|
|
34666
34775
|
function ownKeys(e, r) {
|
|
34667
34776
|
var t = Object.keys(e);
|
|
34668
34777
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -34688,11 +34797,11 @@ var require_objectSpread2 = __commonJS2({ "../../node_modules/.pnpm/@oxc-project
|
|
|
34688
34797
|
__name(_objectSpread2, "_objectSpread2");
|
|
34689
34798
|
module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
34690
34799
|
} });
|
|
34691
|
-
var import_objectSpread2 =
|
|
34800
|
+
var import_objectSpread2 = __toESM3(require_objectSpread22(), 1);
|
|
34692
34801
|
|
|
34693
|
-
// ../../../node_modules/@trpc/server/dist/tracked-
|
|
34694
|
-
var import_defineProperty =
|
|
34695
|
-
var import_objectSpread2$1 =
|
|
34802
|
+
// ../../../node_modules/@trpc/server/dist/tracked-DBSMdVzR.mjs
|
|
34803
|
+
var import_defineProperty = __toESM3(require_defineProperty2(), 1);
|
|
34804
|
+
var import_objectSpread2$1 = __toESM3(require_objectSpread22(), 1);
|
|
34696
34805
|
function transformResultInner(response, transformer) {
|
|
34697
34806
|
if ("error" in response) {
|
|
34698
34807
|
const error51 = transformer.deserialize(response.error);
|
|
@@ -34731,23 +34840,11 @@ function transformResult(response, transformer) {
|
|
|
34731
34840
|
return result;
|
|
34732
34841
|
}
|
|
34733
34842
|
__name(transformResult, "transformResult");
|
|
34734
|
-
var import_objectSpread22 =
|
|
34843
|
+
var import_objectSpread22 = __toESM3(require_objectSpread22(), 1);
|
|
34735
34844
|
|
|
34736
|
-
// ../../../node_modules/@trpc/client/dist/TRPCClientError.mjs
|
|
34737
|
-
|
|
34738
|
-
|
|
34739
|
-
Object.defineProperty(obj, key, {
|
|
34740
|
-
value,
|
|
34741
|
-
enumerable: true,
|
|
34742
|
-
configurable: true,
|
|
34743
|
-
writable: true
|
|
34744
|
-
});
|
|
34745
|
-
} else {
|
|
34746
|
-
obj[key] = value;
|
|
34747
|
-
}
|
|
34748
|
-
return obj;
|
|
34749
|
-
}
|
|
34750
|
-
__name(_define_property, "_define_property");
|
|
34845
|
+
// ../../../node_modules/@trpc/client/dist/TRPCClientError-CjKyS10w.mjs
|
|
34846
|
+
var import_defineProperty2 = __toESM2(require_defineProperty(), 1);
|
|
34847
|
+
var import_objectSpread23 = __toESM2(require_objectSpread2(), 1);
|
|
34751
34848
|
function isTRPCClientError(cause) {
|
|
34752
34849
|
return cause instanceof TRPCClientError;
|
|
34753
34850
|
}
|
|
@@ -34757,220 +34854,180 @@ function isTRPCErrorResponse(obj) {
|
|
|
34757
34854
|
}
|
|
34758
34855
|
__name(isTRPCErrorResponse, "isTRPCErrorResponse");
|
|
34759
34856
|
function getMessageFromUnknownError(err, fallback) {
|
|
34760
|
-
if (typeof err === "string")
|
|
34761
|
-
|
|
34762
|
-
}
|
|
34763
|
-
if (isObject2(err) && typeof err["message"] === "string") {
|
|
34764
|
-
return err["message"];
|
|
34765
|
-
}
|
|
34857
|
+
if (typeof err === "string") return err;
|
|
34858
|
+
if (isObject2(err) && typeof err["message"] === "string") return err["message"];
|
|
34766
34859
|
return fallback;
|
|
34767
34860
|
}
|
|
34768
34861
|
__name(getMessageFromUnknownError, "getMessageFromUnknownError");
|
|
34769
|
-
var TRPCClientError = class
|
|
34862
|
+
var TRPCClientError = class TRPCClientError2 extends Error {
|
|
34770
34863
|
static {
|
|
34771
34864
|
__name(this, "TRPCClientError");
|
|
34772
34865
|
}
|
|
34866
|
+
constructor(message, opts) {
|
|
34867
|
+
var _opts$result, _opts$result2;
|
|
34868
|
+
const cause = opts === null || opts === void 0 ? void 0 : opts.cause;
|
|
34869
|
+
super(message, { cause });
|
|
34870
|
+
(0, import_defineProperty2.default)(this, "cause", void 0);
|
|
34871
|
+
(0, import_defineProperty2.default)(this, "shape", void 0);
|
|
34872
|
+
(0, import_defineProperty2.default)(this, "data", void 0);
|
|
34873
|
+
(0, import_defineProperty2.default)(this, "meta", void 0);
|
|
34874
|
+
this.meta = opts === null || opts === void 0 ? void 0 : opts.meta;
|
|
34875
|
+
this.cause = cause;
|
|
34876
|
+
this.shape = opts === null || opts === void 0 || (_opts$result = opts.result) === null || _opts$result === void 0 ? void 0 : _opts$result.error;
|
|
34877
|
+
this.data = opts === null || opts === void 0 || (_opts$result2 = opts.result) === null || _opts$result2 === void 0 ? void 0 : _opts$result2.error.data;
|
|
34878
|
+
this.name = "TRPCClientError";
|
|
34879
|
+
Object.setPrototypeOf(this, TRPCClientError2.prototype);
|
|
34880
|
+
}
|
|
34773
34881
|
static from(_cause, opts = {}) {
|
|
34774
34882
|
const cause = _cause;
|
|
34775
34883
|
if (isTRPCClientError(cause)) {
|
|
34776
|
-
if (opts.meta) {
|
|
34777
|
-
cause.meta = {
|
|
34778
|
-
...cause.meta,
|
|
34779
|
-
...opts.meta
|
|
34780
|
-
};
|
|
34781
|
-
}
|
|
34884
|
+
if (opts.meta) cause.meta = (0, import_objectSpread23.default)((0, import_objectSpread23.default)({}, cause.meta), opts.meta);
|
|
34782
34885
|
return cause;
|
|
34783
34886
|
}
|
|
34784
|
-
if (isTRPCErrorResponse(cause)) {
|
|
34785
|
-
|
|
34786
|
-
...opts,
|
|
34787
|
-
result: cause
|
|
34788
|
-
});
|
|
34789
|
-
}
|
|
34790
|
-
return new _TRPCClientError(getMessageFromUnknownError(cause, "Unknown error"), {
|
|
34791
|
-
...opts,
|
|
34792
|
-
cause
|
|
34793
|
-
});
|
|
34794
|
-
}
|
|
34795
|
-
constructor(message, opts) {
|
|
34796
|
-
const cause = opts?.cause;
|
|
34797
|
-
super(message, {
|
|
34798
|
-
cause
|
|
34799
|
-
}), // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
34800
|
-
// @ts-ignore override doesn't work in all environments due to "This member cannot have an 'override' modifier because it is not declared in the base class 'Error'"
|
|
34801
|
-
_define_property(this, "cause", void 0), _define_property(this, "shape", void 0), _define_property(this, "data", void 0), /**
|
|
34802
|
-
* Additional meta data about the error
|
|
34803
|
-
* In the case of HTTP-errors, we'll have `response` and potentially `responseJSON` here
|
|
34804
|
-
*/
|
|
34805
|
-
_define_property(this, "meta", void 0);
|
|
34806
|
-
this.meta = opts?.meta;
|
|
34807
|
-
this.cause = cause;
|
|
34808
|
-
this.shape = opts?.result?.error;
|
|
34809
|
-
this.data = opts?.result?.error.data;
|
|
34810
|
-
this.name = "TRPCClientError";
|
|
34811
|
-
Object.setPrototypeOf(this, _TRPCClientError.prototype);
|
|
34887
|
+
if (isTRPCErrorResponse(cause)) return new TRPCClientError2(cause.error.message, (0, import_objectSpread23.default)((0, import_objectSpread23.default)({}, opts), {}, { result: cause }));
|
|
34888
|
+
return new TRPCClientError2(getMessageFromUnknownError(cause, "Unknown error"), (0, import_objectSpread23.default)((0, import_objectSpread23.default)({}, opts), {}, { cause }));
|
|
34812
34889
|
}
|
|
34813
34890
|
};
|
|
34814
34891
|
|
|
34815
|
-
// ../../../node_modules/@trpc/client/dist/internals
|
|
34816
|
-
function
|
|
34817
|
-
|
|
34818
|
-
|
|
34819
|
-
|
|
34820
|
-
|
|
34821
|
-
|
|
34822
|
-
|
|
34823
|
-
|
|
34824
|
-
|
|
34825
|
-
|
|
34826
|
-
|
|
34827
|
-
|
|
34892
|
+
// ../../../node_modules/@trpc/client/dist/unstable-internals-Bg7n9BBj.mjs
|
|
34893
|
+
function getTransformer(transformer) {
|
|
34894
|
+
const _transformer = transformer;
|
|
34895
|
+
if (!_transformer) return {
|
|
34896
|
+
input: {
|
|
34897
|
+
serialize: /* @__PURE__ */ __name((data) => data, "serialize"),
|
|
34898
|
+
deserialize: /* @__PURE__ */ __name((data) => data, "deserialize")
|
|
34899
|
+
},
|
|
34900
|
+
output: {
|
|
34901
|
+
serialize: /* @__PURE__ */ __name((data) => data, "serialize"),
|
|
34902
|
+
deserialize: /* @__PURE__ */ __name((data) => data, "deserialize")
|
|
34903
|
+
}
|
|
34904
|
+
};
|
|
34905
|
+
if ("input" in _transformer) return _transformer;
|
|
34906
|
+
return {
|
|
34907
|
+
input: _transformer,
|
|
34908
|
+
output: _transformer
|
|
34909
|
+
};
|
|
34828
34910
|
}
|
|
34829
|
-
__name(
|
|
34830
|
-
|
|
34831
|
-
|
|
34832
|
-
|
|
34911
|
+
__name(getTransformer, "getTransformer");
|
|
34912
|
+
|
|
34913
|
+
// ../../../node_modules/@trpc/client/dist/httpUtils-Dv57hbOd.mjs
|
|
34914
|
+
var isFunction2 = /* @__PURE__ */ __name((fn) => typeof fn === "function", "isFunction");
|
|
34915
|
+
function getFetch(customFetchImpl) {
|
|
34916
|
+
if (customFetchImpl) return customFetchImpl;
|
|
34917
|
+
if (typeof window !== "undefined" && isFunction2(window.fetch)) return window.fetch;
|
|
34918
|
+
if (typeof globalThis !== "undefined" && isFunction2(globalThis.fetch)) return globalThis.fetch;
|
|
34919
|
+
throw new Error("No fetch implementation found");
|
|
34920
|
+
}
|
|
34921
|
+
__name(getFetch, "getFetch");
|
|
34922
|
+
var import_objectSpread24 = __toESM2(require_objectSpread2(), 1);
|
|
34923
|
+
function resolveHTTPLinkOptions(opts) {
|
|
34924
|
+
return {
|
|
34925
|
+
url: opts.url.toString(),
|
|
34926
|
+
fetch: opts.fetch,
|
|
34927
|
+
transformer: getTransformer(opts.transformer),
|
|
34928
|
+
methodOverride: opts.methodOverride
|
|
34929
|
+
};
|
|
34930
|
+
}
|
|
34931
|
+
__name(resolveHTTPLinkOptions, "resolveHTTPLinkOptions");
|
|
34932
|
+
function arrayToDict(array2) {
|
|
34933
|
+
const dict = {};
|
|
34934
|
+
for (let index = 0; index < array2.length; index++) {
|
|
34935
|
+
const element = array2[index];
|
|
34936
|
+
dict[index] = element;
|
|
34833
34937
|
}
|
|
34834
|
-
|
|
34835
|
-
|
|
34836
|
-
|
|
34837
|
-
|
|
34838
|
-
|
|
34839
|
-
|
|
34840
|
-
|
|
34841
|
-
|
|
34842
|
-
|
|
34843
|
-
|
|
34938
|
+
return dict;
|
|
34939
|
+
}
|
|
34940
|
+
__name(arrayToDict, "arrayToDict");
|
|
34941
|
+
var METHOD = {
|
|
34942
|
+
query: "GET",
|
|
34943
|
+
mutation: "POST",
|
|
34944
|
+
subscription: "PATCH"
|
|
34945
|
+
};
|
|
34946
|
+
function getInput(opts) {
|
|
34947
|
+
return "input" in opts ? opts.transformer.input.serialize(opts.input) : arrayToDict(opts.inputs.map((_input) => opts.transformer.input.serialize(_input)));
|
|
34948
|
+
}
|
|
34949
|
+
__name(getInput, "getInput");
|
|
34950
|
+
var getUrl = /* @__PURE__ */ __name((opts) => {
|
|
34951
|
+
const parts = opts.url.split("?");
|
|
34952
|
+
const base = parts[0].replace(/\/$/, "");
|
|
34953
|
+
let url2 = base + "/" + opts.path;
|
|
34954
|
+
const queryParts = [];
|
|
34955
|
+
if (parts[1]) queryParts.push(parts[1]);
|
|
34956
|
+
if ("inputs" in opts) queryParts.push("batch=1");
|
|
34957
|
+
if (opts.type === "query" || opts.type === "subscription") {
|
|
34958
|
+
const input = getInput(opts);
|
|
34959
|
+
if (input !== void 0 && opts.methodOverride !== "POST") queryParts.push(`input=${encodeURIComponent(JSON.stringify(input))}`);
|
|
34844
34960
|
}
|
|
34845
|
-
|
|
34846
|
-
|
|
34847
|
-
|
|
34848
|
-
|
|
34849
|
-
|
|
34850
|
-
|
|
34851
|
-
|
|
34852
|
-
|
|
34853
|
-
|
|
34961
|
+
if (queryParts.length) url2 += "?" + queryParts.join("&");
|
|
34962
|
+
return url2;
|
|
34963
|
+
}, "getUrl");
|
|
34964
|
+
var getBody = /* @__PURE__ */ __name((opts) => {
|
|
34965
|
+
if (opts.type === "query" && opts.methodOverride !== "POST") return void 0;
|
|
34966
|
+
const input = getInput(opts);
|
|
34967
|
+
return input !== void 0 ? JSON.stringify(input) : void 0;
|
|
34968
|
+
}, "getBody");
|
|
34969
|
+
var jsonHttpRequester = /* @__PURE__ */ __name((opts) => {
|
|
34970
|
+
return httpRequest((0, import_objectSpread24.default)((0, import_objectSpread24.default)({}, opts), {}, {
|
|
34971
|
+
contentTypeHeader: "application/json",
|
|
34972
|
+
getUrl,
|
|
34973
|
+
getBody
|
|
34974
|
+
}));
|
|
34975
|
+
}, "jsonHttpRequester");
|
|
34976
|
+
var AbortError = class extends Error {
|
|
34977
|
+
static {
|
|
34978
|
+
__name(this, "AbortError");
|
|
34854
34979
|
}
|
|
34855
|
-
|
|
34856
|
-
|
|
34857
|
-
|
|
34858
|
-
|
|
34859
|
-
|
|
34860
|
-
context: opts?.context,
|
|
34861
|
-
signal: opts?.signal
|
|
34862
|
-
});
|
|
34980
|
+
constructor() {
|
|
34981
|
+
const name = "AbortError";
|
|
34982
|
+
super(name);
|
|
34983
|
+
this.name = name;
|
|
34984
|
+
this.message = name;
|
|
34863
34985
|
}
|
|
34864
|
-
mutation(path, input, opts) {
|
|
34865
|
-
return this.requestAsPromise({
|
|
34866
|
-
type: "mutation",
|
|
34867
|
-
path,
|
|
34868
|
-
input,
|
|
34869
|
-
context: opts?.context,
|
|
34870
|
-
signal: opts?.signal
|
|
34871
|
-
});
|
|
34872
|
-
}
|
|
34873
|
-
subscription(path, input, opts) {
|
|
34874
|
-
const observable$ = this.$request({
|
|
34875
|
-
type: "subscription",
|
|
34876
|
-
path,
|
|
34877
|
-
input,
|
|
34878
|
-
context: opts.context,
|
|
34879
|
-
signal: opts.signal
|
|
34880
|
-
});
|
|
34881
|
-
return observable$.subscribe({
|
|
34882
|
-
next(envelope) {
|
|
34883
|
-
switch (envelope.result.type) {
|
|
34884
|
-
case "state": {
|
|
34885
|
-
opts.onConnectionStateChange?.(envelope.result);
|
|
34886
|
-
break;
|
|
34887
|
-
}
|
|
34888
|
-
case "started": {
|
|
34889
|
-
opts.onStarted?.({
|
|
34890
|
-
context: envelope.context
|
|
34891
|
-
});
|
|
34892
|
-
break;
|
|
34893
|
-
}
|
|
34894
|
-
case "stopped": {
|
|
34895
|
-
opts.onStopped?.();
|
|
34896
|
-
break;
|
|
34897
|
-
}
|
|
34898
|
-
case "data":
|
|
34899
|
-
case void 0: {
|
|
34900
|
-
opts.onData?.(envelope.result.data);
|
|
34901
|
-
break;
|
|
34902
|
-
}
|
|
34903
|
-
}
|
|
34904
|
-
},
|
|
34905
|
-
error(err) {
|
|
34906
|
-
opts.onError?.(err);
|
|
34907
|
-
},
|
|
34908
|
-
complete() {
|
|
34909
|
-
opts.onComplete?.();
|
|
34910
|
-
}
|
|
34911
|
-
});
|
|
34912
|
-
}
|
|
34913
|
-
constructor(opts) {
|
|
34914
|
-
_define_property2(this, "links", void 0);
|
|
34915
|
-
_define_property2(this, "runtime", void 0);
|
|
34916
|
-
_define_property2(this, "requestId", void 0);
|
|
34917
|
-
this.requestId = 0;
|
|
34918
|
-
this.runtime = {};
|
|
34919
|
-
this.links = opts.links.map((link) => link(this.runtime));
|
|
34920
|
-
}
|
|
34921
|
-
};
|
|
34922
|
-
|
|
34923
|
-
// ../../../node_modules/@trpc/client/dist/createTRPCClient.mjs
|
|
34924
|
-
var untypedClientSymbol = /* @__PURE__ */ Symbol.for("trpc_untypedClient");
|
|
34925
|
-
var clientCallTypeMap = {
|
|
34926
|
-
query: "query",
|
|
34927
|
-
mutate: "mutation",
|
|
34928
|
-
subscribe: "subscription"
|
|
34929
34986
|
};
|
|
34930
|
-
var
|
|
34931
|
-
|
|
34932
|
-
|
|
34933
|
-
|
|
34934
|
-
|
|
34935
|
-
|
|
34936
|
-
|
|
34937
|
-
|
|
34938
|
-
|
|
34939
|
-
|
|
34940
|
-
|
|
34941
|
-
|
|
34942
|
-
|
|
34943
|
-
|
|
34944
|
-
|
|
34945
|
-
|
|
34946
|
-
return
|
|
34987
|
+
var throwIfAborted = /* @__PURE__ */ __name((signal) => {
|
|
34988
|
+
var _signal$throwIfAborte;
|
|
34989
|
+
if (!(signal === null || signal === void 0 ? void 0 : signal.aborted)) return;
|
|
34990
|
+
(_signal$throwIfAborte = signal.throwIfAborted) === null || _signal$throwIfAborte === void 0 || _signal$throwIfAborte.call(signal);
|
|
34991
|
+
if (typeof DOMException !== "undefined") throw new DOMException("AbortError", "AbortError");
|
|
34992
|
+
throw new AbortError();
|
|
34993
|
+
}, "throwIfAborted");
|
|
34994
|
+
async function fetchHTTPResponse(opts) {
|
|
34995
|
+
var _opts$methodOverride;
|
|
34996
|
+
throwIfAborted(opts.signal);
|
|
34997
|
+
const url2 = opts.getUrl(opts);
|
|
34998
|
+
const body = opts.getBody(opts);
|
|
34999
|
+
const method = (_opts$methodOverride = opts.methodOverride) !== null && _opts$methodOverride !== void 0 ? _opts$methodOverride : METHOD[opts.type];
|
|
35000
|
+
const resolvedHeaders = await (async () => {
|
|
35001
|
+
const heads = await opts.headers();
|
|
35002
|
+
if (Symbol.iterator in heads) return Object.fromEntries(heads);
|
|
35003
|
+
return heads;
|
|
35004
|
+
})();
|
|
35005
|
+
const headers = (0, import_objectSpread24.default)((0, import_objectSpread24.default)((0, import_objectSpread24.default)({}, opts.contentTypeHeader && method !== "GET" ? { "content-type": opts.contentTypeHeader } : {}), opts.trpcAcceptHeader ? { "trpc-accept": opts.trpcAcceptHeader } : void 0), resolvedHeaders);
|
|
35006
|
+
return getFetch(opts.fetch)(url2, {
|
|
35007
|
+
method,
|
|
35008
|
+
signal: opts.signal,
|
|
35009
|
+
body,
|
|
35010
|
+
headers
|
|
34947
35011
|
});
|
|
34948
35012
|
}
|
|
34949
|
-
__name(
|
|
34950
|
-
function
|
|
34951
|
-
const
|
|
34952
|
-
const
|
|
34953
|
-
|
|
35013
|
+
__name(fetchHTTPResponse, "fetchHTTPResponse");
|
|
35014
|
+
async function httpRequest(opts) {
|
|
35015
|
+
const meta3 = {};
|
|
35016
|
+
const res = await fetchHTTPResponse(opts);
|
|
35017
|
+
meta3.response = res;
|
|
35018
|
+
const json2 = await res.json();
|
|
35019
|
+
meta3.responseJSON = json2;
|
|
35020
|
+
return {
|
|
35021
|
+
json: json2,
|
|
35022
|
+
meta: meta3
|
|
35023
|
+
};
|
|
34954
35024
|
}
|
|
34955
|
-
__name(
|
|
35025
|
+
__name(httpRequest, "httpRequest");
|
|
34956
35026
|
|
|
34957
|
-
// ../../../node_modules/@trpc/client/dist/
|
|
34958
|
-
var
|
|
34959
|
-
function getFetch(customFetchImpl) {
|
|
34960
|
-
if (customFetchImpl) {
|
|
34961
|
-
return customFetchImpl;
|
|
34962
|
-
}
|
|
34963
|
-
if (typeof window !== "undefined" && isFunction2(window.fetch)) {
|
|
34964
|
-
return window.fetch;
|
|
34965
|
-
}
|
|
34966
|
-
if (typeof globalThis !== "undefined" && isFunction2(globalThis.fetch)) {
|
|
34967
|
-
return globalThis.fetch;
|
|
34968
|
-
}
|
|
34969
|
-
throw new Error("No fetch implementation found");
|
|
34970
|
-
}
|
|
34971
|
-
__name(getFetch, "getFetch");
|
|
35027
|
+
// ../../../node_modules/@trpc/client/dist/httpLink-DCFpUmZF.mjs
|
|
35028
|
+
var import_objectSpread25 = __toESM2(require_objectSpread2(), 1);
|
|
34972
35029
|
|
|
34973
|
-
// ../../../node_modules/@trpc/client/dist/
|
|
35030
|
+
// ../../../node_modules/@trpc/client/dist/httpBatchLink-BOe5aCcR.mjs
|
|
34974
35031
|
var throwFatalError = /* @__PURE__ */ __name(() => {
|
|
34975
35032
|
throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new");
|
|
34976
35033
|
}, "throwFatalError");
|
|
@@ -34983,18 +35040,15 @@ function dataLoader(batchLoader) {
|
|
|
34983
35040
|
pendingItems = null;
|
|
34984
35041
|
}, "destroyTimerAndPendingItems");
|
|
34985
35042
|
function groupItems(items) {
|
|
34986
|
-
const groupedItems = [
|
|
34987
|
-
[]
|
|
34988
|
-
];
|
|
35043
|
+
const groupedItems = [[]];
|
|
34989
35044
|
let index = 0;
|
|
34990
35045
|
while (true) {
|
|
34991
35046
|
const item = items[index];
|
|
34992
|
-
if (!item)
|
|
34993
|
-
break;
|
|
34994
|
-
}
|
|
35047
|
+
if (!item) break;
|
|
34995
35048
|
const lastGroup = groupedItems[groupedItems.length - 1];
|
|
34996
35049
|
if (item.aborted) {
|
|
34997
|
-
|
|
35050
|
+
var _item$reject;
|
|
35051
|
+
(_item$reject = item.reject) === null || _item$reject === void 0 || _item$reject.call(item, new Error("Aborted"));
|
|
34998
35052
|
index++;
|
|
34999
35053
|
continue;
|
|
35000
35054
|
}
|
|
@@ -35005,7 +35059,8 @@ function dataLoader(batchLoader) {
|
|
|
35005
35059
|
continue;
|
|
35006
35060
|
}
|
|
35007
35061
|
if (lastGroup.length === 0) {
|
|
35008
|
-
|
|
35062
|
+
var _item$reject2;
|
|
35063
|
+
(_item$reject2 = item.reject) === null || _item$reject2 === void 0 || _item$reject2.call(item, new Error("Input is too big for a single dispatch"));
|
|
35009
35064
|
index++;
|
|
35010
35065
|
continue;
|
|
35011
35066
|
}
|
|
@@ -35018,36 +35073,34 @@ function dataLoader(batchLoader) {
|
|
|
35018
35073
|
const groupedItems = groupItems(pendingItems);
|
|
35019
35074
|
destroyTimerAndPendingItems();
|
|
35020
35075
|
for (const items of groupedItems) {
|
|
35021
|
-
if (!items.length)
|
|
35022
|
-
|
|
35023
|
-
|
|
35024
|
-
const batch = {
|
|
35025
|
-
items
|
|
35026
|
-
};
|
|
35027
|
-
for (const item of items) {
|
|
35028
|
-
item.batch = batch;
|
|
35029
|
-
}
|
|
35076
|
+
if (!items.length) continue;
|
|
35077
|
+
const batch = { items };
|
|
35078
|
+
for (const item of items) item.batch = batch;
|
|
35030
35079
|
const promise2 = batchLoader.fetch(batch.items.map((_item) => _item.key));
|
|
35031
35080
|
promise2.then(async (result) => {
|
|
35032
35081
|
await Promise.all(result.map(async (valueOrPromise, index) => {
|
|
35033
35082
|
const item = batch.items[index];
|
|
35034
35083
|
try {
|
|
35084
|
+
var _item$resolve;
|
|
35035
35085
|
const value = await Promise.resolve(valueOrPromise);
|
|
35036
|
-
item.resolve
|
|
35086
|
+
(_item$resolve = item.resolve) === null || _item$resolve === void 0 || _item$resolve.call(item, value);
|
|
35037
35087
|
} catch (cause) {
|
|
35038
|
-
|
|
35088
|
+
var _item$reject3;
|
|
35089
|
+
(_item$reject3 = item.reject) === null || _item$reject3 === void 0 || _item$reject3.call(item, cause);
|
|
35039
35090
|
}
|
|
35040
35091
|
item.batch = null;
|
|
35041
35092
|
item.reject = null;
|
|
35042
35093
|
item.resolve = null;
|
|
35043
35094
|
}));
|
|
35044
35095
|
for (const item of batch.items) {
|
|
35045
|
-
|
|
35096
|
+
var _item$reject4;
|
|
35097
|
+
(_item$reject4 = item.reject) === null || _item$reject4 === void 0 || _item$reject4.call(item, new Error("Missing result"));
|
|
35046
35098
|
item.batch = null;
|
|
35047
35099
|
}
|
|
35048
35100
|
}).catch((cause) => {
|
|
35049
35101
|
for (const item of batch.items) {
|
|
35050
|
-
|
|
35102
|
+
var _item$reject5;
|
|
35103
|
+
(_item$reject5 = item.reject) === null || _item$reject5 === void 0 || _item$reject5.call(item, cause);
|
|
35051
35104
|
item.batch = null;
|
|
35052
35105
|
}
|
|
35053
35106
|
});
|
|
@@ -35055,6 +35108,7 @@ function dataLoader(batchLoader) {
|
|
|
35055
35108
|
}
|
|
35056
35109
|
__name(dispatch, "dispatch");
|
|
35057
35110
|
function load(key) {
|
|
35111
|
+
var _dispatchTimer;
|
|
35058
35112
|
const item = {
|
|
35059
35113
|
aborted: false,
|
|
35060
35114
|
key,
|
|
@@ -35063,245 +35117,68 @@ function dataLoader(batchLoader) {
|
|
|
35063
35117
|
reject: throwFatalError
|
|
35064
35118
|
};
|
|
35065
35119
|
const promise2 = new Promise((resolve, reject) => {
|
|
35120
|
+
var _pendingItems;
|
|
35066
35121
|
item.reject = reject;
|
|
35067
35122
|
item.resolve = resolve;
|
|
35068
|
-
pendingItems
|
|
35123
|
+
(_pendingItems = pendingItems) !== null && _pendingItems !== void 0 || (pendingItems = []);
|
|
35069
35124
|
pendingItems.push(item);
|
|
35070
35125
|
});
|
|
35071
|
-
dispatchTimer
|
|
35126
|
+
(_dispatchTimer = dispatchTimer) !== null && _dispatchTimer !== void 0 || (dispatchTimer = setTimeout(dispatch));
|
|
35072
35127
|
return promise2;
|
|
35073
35128
|
}
|
|
35074
35129
|
__name(load, "load");
|
|
35075
|
-
return {
|
|
35076
|
-
load
|
|
35077
|
-
};
|
|
35130
|
+
return { load };
|
|
35078
35131
|
}
|
|
35079
35132
|
__name(dataLoader, "dataLoader");
|
|
35080
|
-
|
|
35081
|
-
// ../../../node_modules/@trpc/client/dist/internals/signals.mjs
|
|
35082
35133
|
function allAbortSignals(...signals) {
|
|
35083
35134
|
const ac = new AbortController();
|
|
35084
35135
|
const count = signals.length;
|
|
35085
35136
|
let abortedCount = 0;
|
|
35086
35137
|
const onAbort = /* @__PURE__ */ __name(() => {
|
|
35087
|
-
if (++abortedCount === count)
|
|
35088
|
-
ac.abort();
|
|
35089
|
-
}
|
|
35138
|
+
if (++abortedCount === count) ac.abort();
|
|
35090
35139
|
}, "onAbort");
|
|
35091
|
-
for (const signal of signals)
|
|
35092
|
-
|
|
35093
|
-
onAbort();
|
|
35094
|
-
} else {
|
|
35095
|
-
signal?.addEventListener("abort", onAbort, {
|
|
35096
|
-
once: true
|
|
35097
|
-
});
|
|
35098
|
-
}
|
|
35099
|
-
}
|
|
35140
|
+
for (const signal of signals) if (signal === null || signal === void 0 ? void 0 : signal.aborted) onAbort();
|
|
35141
|
+
else signal === null || signal === void 0 || signal.addEventListener("abort", onAbort, { once: true });
|
|
35100
35142
|
return ac.signal;
|
|
35101
35143
|
}
|
|
35102
35144
|
__name(allAbortSignals, "allAbortSignals");
|
|
35103
|
-
|
|
35104
|
-
// ../../../node_modules/@trpc/client/dist/internals/transformer.mjs
|
|
35105
|
-
function getTransformer(transformer) {
|
|
35106
|
-
const _transformer = transformer;
|
|
35107
|
-
if (!_transformer) {
|
|
35108
|
-
return {
|
|
35109
|
-
input: {
|
|
35110
|
-
serialize: /* @__PURE__ */ __name((data) => data, "serialize"),
|
|
35111
|
-
deserialize: /* @__PURE__ */ __name((data) => data, "deserialize")
|
|
35112
|
-
},
|
|
35113
|
-
output: {
|
|
35114
|
-
serialize: /* @__PURE__ */ __name((data) => data, "serialize"),
|
|
35115
|
-
deserialize: /* @__PURE__ */ __name((data) => data, "deserialize")
|
|
35116
|
-
}
|
|
35117
|
-
};
|
|
35118
|
-
}
|
|
35119
|
-
if ("input" in _transformer) {
|
|
35120
|
-
return _transformer;
|
|
35121
|
-
}
|
|
35122
|
-
return {
|
|
35123
|
-
input: _transformer,
|
|
35124
|
-
output: _transformer
|
|
35125
|
-
};
|
|
35126
|
-
}
|
|
35127
|
-
__name(getTransformer, "getTransformer");
|
|
35128
|
-
|
|
35129
|
-
// ../../../node_modules/@trpc/client/dist/links/internals/httpUtils.mjs
|
|
35130
|
-
function resolveHTTPLinkOptions(opts) {
|
|
35131
|
-
return {
|
|
35132
|
-
url: opts.url.toString(),
|
|
35133
|
-
fetch: opts.fetch,
|
|
35134
|
-
transformer: getTransformer(opts.transformer),
|
|
35135
|
-
methodOverride: opts.methodOverride
|
|
35136
|
-
};
|
|
35137
|
-
}
|
|
35138
|
-
__name(resolveHTTPLinkOptions, "resolveHTTPLinkOptions");
|
|
35139
|
-
function arrayToDict(array2) {
|
|
35140
|
-
const dict = {};
|
|
35141
|
-
for (let index = 0; index < array2.length; index++) {
|
|
35142
|
-
const element = array2[index];
|
|
35143
|
-
dict[index] = element;
|
|
35144
|
-
}
|
|
35145
|
-
return dict;
|
|
35146
|
-
}
|
|
35147
|
-
__name(arrayToDict, "arrayToDict");
|
|
35148
|
-
var METHOD = {
|
|
35149
|
-
query: "GET",
|
|
35150
|
-
mutation: "POST",
|
|
35151
|
-
subscription: "PATCH"
|
|
35152
|
-
};
|
|
35153
|
-
function getInput(opts) {
|
|
35154
|
-
return "input" in opts ? opts.transformer.input.serialize(opts.input) : arrayToDict(opts.inputs.map((_input) => opts.transformer.input.serialize(_input)));
|
|
35155
|
-
}
|
|
35156
|
-
__name(getInput, "getInput");
|
|
35157
|
-
var getUrl = /* @__PURE__ */ __name((opts) => {
|
|
35158
|
-
const parts = opts.url.split("?");
|
|
35159
|
-
const base = parts[0].replace(/\/$/, "");
|
|
35160
|
-
let url2 = base + "/" + opts.path;
|
|
35161
|
-
const queryParts = [];
|
|
35162
|
-
if (parts[1]) {
|
|
35163
|
-
queryParts.push(parts[1]);
|
|
35164
|
-
}
|
|
35165
|
-
if ("inputs" in opts) {
|
|
35166
|
-
queryParts.push("batch=1");
|
|
35167
|
-
}
|
|
35168
|
-
if (opts.type === "query" || opts.type === "subscription") {
|
|
35169
|
-
const input = getInput(opts);
|
|
35170
|
-
if (input !== void 0 && opts.methodOverride !== "POST") {
|
|
35171
|
-
queryParts.push(`input=${encodeURIComponent(JSON.stringify(input))}`);
|
|
35172
|
-
}
|
|
35173
|
-
}
|
|
35174
|
-
if (queryParts.length) {
|
|
35175
|
-
url2 += "?" + queryParts.join("&");
|
|
35176
|
-
}
|
|
35177
|
-
return url2;
|
|
35178
|
-
}, "getUrl");
|
|
35179
|
-
var getBody = /* @__PURE__ */ __name((opts) => {
|
|
35180
|
-
if (opts.type === "query" && opts.methodOverride !== "POST") {
|
|
35181
|
-
return void 0;
|
|
35182
|
-
}
|
|
35183
|
-
const input = getInput(opts);
|
|
35184
|
-
return input !== void 0 ? JSON.stringify(input) : void 0;
|
|
35185
|
-
}, "getBody");
|
|
35186
|
-
var jsonHttpRequester = /* @__PURE__ */ __name((opts) => {
|
|
35187
|
-
return httpRequest({
|
|
35188
|
-
...opts,
|
|
35189
|
-
contentTypeHeader: "application/json",
|
|
35190
|
-
getUrl,
|
|
35191
|
-
getBody
|
|
35192
|
-
});
|
|
35193
|
-
}, "jsonHttpRequester");
|
|
35194
|
-
var AbortError = class extends Error {
|
|
35195
|
-
static {
|
|
35196
|
-
__name(this, "AbortError");
|
|
35197
|
-
}
|
|
35198
|
-
constructor() {
|
|
35199
|
-
const name = "AbortError";
|
|
35200
|
-
super(name);
|
|
35201
|
-
this.name = name;
|
|
35202
|
-
this.message = name;
|
|
35203
|
-
}
|
|
35204
|
-
};
|
|
35205
|
-
var throwIfAborted = /* @__PURE__ */ __name((signal) => {
|
|
35206
|
-
if (!signal?.aborted) {
|
|
35207
|
-
return;
|
|
35208
|
-
}
|
|
35209
|
-
signal.throwIfAborted?.();
|
|
35210
|
-
if (typeof DOMException !== "undefined") {
|
|
35211
|
-
throw new DOMException("AbortError", "AbortError");
|
|
35212
|
-
}
|
|
35213
|
-
throw new AbortError();
|
|
35214
|
-
}, "throwIfAborted");
|
|
35215
|
-
async function fetchHTTPResponse(opts) {
|
|
35216
|
-
throwIfAborted(opts.signal);
|
|
35217
|
-
const url2 = opts.getUrl(opts);
|
|
35218
|
-
const body = opts.getBody(opts);
|
|
35219
|
-
const { type } = opts;
|
|
35220
|
-
const resolvedHeaders = await (async () => {
|
|
35221
|
-
const heads = await opts.headers();
|
|
35222
|
-
if (Symbol.iterator in heads) {
|
|
35223
|
-
return Object.fromEntries(heads);
|
|
35224
|
-
}
|
|
35225
|
-
return heads;
|
|
35226
|
-
})();
|
|
35227
|
-
const headers = {
|
|
35228
|
-
...opts.contentTypeHeader ? {
|
|
35229
|
-
"content-type": opts.contentTypeHeader
|
|
35230
|
-
} : {},
|
|
35231
|
-
...opts.trpcAcceptHeader ? {
|
|
35232
|
-
"trpc-accept": opts.trpcAcceptHeader
|
|
35233
|
-
} : void 0,
|
|
35234
|
-
...resolvedHeaders
|
|
35235
|
-
};
|
|
35236
|
-
return getFetch(opts.fetch)(url2, {
|
|
35237
|
-
method: opts.methodOverride ?? METHOD[type],
|
|
35238
|
-
signal: opts.signal,
|
|
35239
|
-
body,
|
|
35240
|
-
headers
|
|
35241
|
-
});
|
|
35242
|
-
}
|
|
35243
|
-
__name(fetchHTTPResponse, "fetchHTTPResponse");
|
|
35244
|
-
async function httpRequest(opts) {
|
|
35245
|
-
const meta3 = {};
|
|
35246
|
-
const res = await fetchHTTPResponse(opts);
|
|
35247
|
-
meta3.response = res;
|
|
35248
|
-
const json2 = await res.json();
|
|
35249
|
-
meta3.responseJSON = json2;
|
|
35250
|
-
return {
|
|
35251
|
-
json: json2,
|
|
35252
|
-
meta: meta3
|
|
35253
|
-
};
|
|
35254
|
-
}
|
|
35255
|
-
__name(httpRequest, "httpRequest");
|
|
35256
|
-
|
|
35257
|
-
// ../../../node_modules/@trpc/client/dist/links/httpBatchLink.mjs
|
|
35145
|
+
var import_objectSpread26 = __toESM2(require_objectSpread2(), 1);
|
|
35258
35146
|
function httpBatchLink(opts) {
|
|
35147
|
+
var _opts$maxURLLength, _opts$maxItems;
|
|
35259
35148
|
const resolvedOpts = resolveHTTPLinkOptions(opts);
|
|
35260
|
-
const maxURLLength = opts.maxURLLength
|
|
35261
|
-
const maxItems = opts.maxItems
|
|
35149
|
+
const maxURLLength = (_opts$maxURLLength = opts.maxURLLength) !== null && _opts$maxURLLength !== void 0 ? _opts$maxURLLength : Infinity;
|
|
35150
|
+
const maxItems = (_opts$maxItems = opts.maxItems) !== null && _opts$maxItems !== void 0 ? _opts$maxItems : Infinity;
|
|
35262
35151
|
return () => {
|
|
35263
35152
|
const batchLoader = /* @__PURE__ */ __name((type) => {
|
|
35264
35153
|
return {
|
|
35265
35154
|
validate(batchOps) {
|
|
35266
|
-
if (maxURLLength === Infinity && maxItems === Infinity)
|
|
35267
|
-
|
|
35268
|
-
}
|
|
35269
|
-
if (batchOps.length > maxItems) {
|
|
35270
|
-
return false;
|
|
35271
|
-
}
|
|
35155
|
+
if (maxURLLength === Infinity && maxItems === Infinity) return true;
|
|
35156
|
+
if (batchOps.length > maxItems) return false;
|
|
35272
35157
|
const path = batchOps.map((op) => op.path).join(",");
|
|
35273
35158
|
const inputs = batchOps.map((op) => op.input);
|
|
35274
|
-
const url2 = getUrl({
|
|
35275
|
-
...resolvedOpts,
|
|
35159
|
+
const url2 = getUrl((0, import_objectSpread26.default)((0, import_objectSpread26.default)({}, resolvedOpts), {}, {
|
|
35276
35160
|
type,
|
|
35277
35161
|
path,
|
|
35278
35162
|
inputs,
|
|
35279
35163
|
signal: null
|
|
35280
|
-
});
|
|
35164
|
+
}));
|
|
35281
35165
|
return url2.length <= maxURLLength;
|
|
35282
35166
|
},
|
|
35283
35167
|
async fetch(batchOps) {
|
|
35284
35168
|
const path = batchOps.map((op) => op.path).join(",");
|
|
35285
35169
|
const inputs = batchOps.map((op) => op.input);
|
|
35286
35170
|
const signal = allAbortSignals(...batchOps.map((op) => op.signal));
|
|
35287
|
-
const res = await jsonHttpRequester({
|
|
35288
|
-
...resolvedOpts,
|
|
35171
|
+
const res = await jsonHttpRequester((0, import_objectSpread26.default)((0, import_objectSpread26.default)({}, resolvedOpts), {}, {
|
|
35289
35172
|
path,
|
|
35290
35173
|
inputs,
|
|
35291
35174
|
type,
|
|
35292
35175
|
headers() {
|
|
35293
|
-
if (!opts.headers) {
|
|
35294
|
-
|
|
35295
|
-
}
|
|
35296
|
-
if (typeof opts.headers === "function") {
|
|
35297
|
-
return opts.headers({
|
|
35298
|
-
opList: batchOps
|
|
35299
|
-
});
|
|
35300
|
-
}
|
|
35176
|
+
if (!opts.headers) return {};
|
|
35177
|
+
if (typeof opts.headers === "function") return opts.headers({ opList: batchOps });
|
|
35301
35178
|
return opts.headers;
|
|
35302
35179
|
},
|
|
35303
35180
|
signal
|
|
35304
|
-
});
|
|
35181
|
+
}));
|
|
35305
35182
|
const resJSON = Array.isArray(res.json) ? res.json : batchOps.map(() => res.json);
|
|
35306
35183
|
const result = resJSON.map((item) => ({
|
|
35307
35184
|
meta: res.meta,
|
|
@@ -35319,9 +35196,7 @@ function httpBatchLink(opts) {
|
|
|
35319
35196
|
};
|
|
35320
35197
|
return ({ op }) => {
|
|
35321
35198
|
return observable((observer) => {
|
|
35322
|
-
if (op.type === "subscription")
|
|
35323
|
-
throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");
|
|
35324
|
-
}
|
|
35199
|
+
if (op.type === "subscription") throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");
|
|
35325
35200
|
const loader = loaders[op.type];
|
|
35326
35201
|
const promise2 = loader.load(op);
|
|
35327
35202
|
let _res = void 0;
|
|
@@ -35329,9 +35204,7 @@ function httpBatchLink(opts) {
|
|
|
35329
35204
|
_res = res;
|
|
35330
35205
|
const transformed = transformResult(res.json, resolvedOpts.transformer.output);
|
|
35331
35206
|
if (!transformed.ok) {
|
|
35332
|
-
observer.error(TRPCClientError.from(transformed.error, {
|
|
35333
|
-
meta: res.meta
|
|
35334
|
-
}));
|
|
35207
|
+
observer.error(TRPCClientError.from(transformed.error, { meta: res.meta }));
|
|
35335
35208
|
return;
|
|
35336
35209
|
}
|
|
35337
35210
|
observer.next({
|
|
@@ -35340,9 +35213,7 @@ function httpBatchLink(opts) {
|
|
|
35340
35213
|
});
|
|
35341
35214
|
observer.complete();
|
|
35342
35215
|
}).catch((err) => {
|
|
35343
|
-
observer.error(TRPCClientError.from(err, {
|
|
35344
|
-
meta: _res?.meta
|
|
35345
|
-
}));
|
|
35216
|
+
observer.error(TRPCClientError.from(err, { meta: _res === null || _res === void 0 ? void 0 : _res.meta }));
|
|
35346
35217
|
});
|
|
35347
35218
|
return () => {
|
|
35348
35219
|
};
|
|
@@ -35352,12 +35223,14 @@ function httpBatchLink(opts) {
|
|
|
35352
35223
|
}
|
|
35353
35224
|
__name(httpBatchLink, "httpBatchLink");
|
|
35354
35225
|
|
|
35355
|
-
// ../../../node_modules/@trpc/client/dist/
|
|
35226
|
+
// ../../../node_modules/@trpc/client/dist/loggerLink-ineCN1PO.mjs
|
|
35227
|
+
var import_objectSpread27 = __toESM2(require_objectSpread2(), 1);
|
|
35228
|
+
|
|
35229
|
+
// ../../../node_modules/@trpc/client/dist/wsLink-CatceK3c.mjs
|
|
35356
35230
|
var resultOf = /* @__PURE__ */ __name((value, ...args) => {
|
|
35357
35231
|
return typeof value === "function" ? value(...args) : value;
|
|
35358
35232
|
}, "resultOf");
|
|
35359
|
-
|
|
35360
|
-
// ../../../node_modules/@trpc/client/dist/links/wsLink/wsClient/utils.mjs
|
|
35233
|
+
var import_defineProperty$3 = __toESM2(require_defineProperty(), 1);
|
|
35361
35234
|
function withResolvers() {
|
|
35362
35235
|
let resolve;
|
|
35363
35236
|
let reject;
|
|
@@ -35388,22 +35261,8 @@ async function buildConnectionMessage(connectionParams) {
|
|
|
35388
35261
|
return JSON.stringify(message);
|
|
35389
35262
|
}
|
|
35390
35263
|
__name(buildConnectionMessage, "buildConnectionMessage");
|
|
35391
|
-
|
|
35392
|
-
|
|
35393
|
-
function _define_property3(obj, key, value) {
|
|
35394
|
-
if (key in obj) {
|
|
35395
|
-
Object.defineProperty(obj, key, {
|
|
35396
|
-
value,
|
|
35397
|
-
enumerable: true,
|
|
35398
|
-
configurable: true,
|
|
35399
|
-
writable: true
|
|
35400
|
-
});
|
|
35401
|
-
} else {
|
|
35402
|
-
obj[key] = value;
|
|
35403
|
-
}
|
|
35404
|
-
return obj;
|
|
35405
|
-
}
|
|
35406
|
-
__name(_define_property3, "_define_property");
|
|
35264
|
+
var import_defineProperty$2 = __toESM2(require_defineProperty(), 1);
|
|
35265
|
+
var import_defineProperty$1 = __toESM2(require_defineProperty(), 1);
|
|
35407
35266
|
function asyncWsOpen(ws) {
|
|
35408
35267
|
const { promise: promise2, resolve, reject } = withResolvers();
|
|
35409
35268
|
ws.addEventListener("open", () => {
|
|
@@ -35440,9 +35299,7 @@ function setupPingInterval(ws, { intervalMs, pongTimeoutMs }) {
|
|
|
35440
35299
|
ws.addEventListener("message", ({ data }) => {
|
|
35441
35300
|
clearTimeout(pingTimeout);
|
|
35442
35301
|
start();
|
|
35443
|
-
if (data === "PONG")
|
|
35444
|
-
pong();
|
|
35445
|
-
}
|
|
35302
|
+
if (data === "PONG") pong();
|
|
35446
35303
|
});
|
|
35447
35304
|
ws.addEventListener("close", () => {
|
|
35448
35305
|
clearTimeout(pingTimeout);
|
|
@@ -35450,10 +35307,23 @@ function setupPingInterval(ws, { intervalMs, pongTimeoutMs }) {
|
|
|
35450
35307
|
});
|
|
35451
35308
|
}
|
|
35452
35309
|
__name(setupPingInterval, "setupPingInterval");
|
|
35453
|
-
var WsConnection = class
|
|
35310
|
+
var WsConnection = class WsConnection2 {
|
|
35454
35311
|
static {
|
|
35455
35312
|
__name(this, "WsConnection");
|
|
35456
35313
|
}
|
|
35314
|
+
constructor(opts) {
|
|
35315
|
+
var _opts$WebSocketPonyfi;
|
|
35316
|
+
(0, import_defineProperty$1.default)(this, "id", ++WsConnection2.connectCount);
|
|
35317
|
+
(0, import_defineProperty$1.default)(this, "WebSocketPonyfill", void 0);
|
|
35318
|
+
(0, import_defineProperty$1.default)(this, "urlOptions", void 0);
|
|
35319
|
+
(0, import_defineProperty$1.default)(this, "keepAliveOpts", void 0);
|
|
35320
|
+
(0, import_defineProperty$1.default)(this, "wsObservable", behaviorSubject(null));
|
|
35321
|
+
(0, import_defineProperty$1.default)(this, "openPromise", null);
|
|
35322
|
+
this.WebSocketPonyfill = (_opts$WebSocketPonyfi = opts.WebSocketPonyfill) !== null && _opts$WebSocketPonyfi !== void 0 ? _opts$WebSocketPonyfi : WebSocket;
|
|
35323
|
+
if (!this.WebSocketPonyfill) throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");
|
|
35324
|
+
this.urlOptions = opts.urlOptions;
|
|
35325
|
+
this.keepAliveOpts = opts.keepAlive;
|
|
35326
|
+
}
|
|
35457
35327
|
get ws() {
|
|
35458
35328
|
return this.wsObservable.get();
|
|
35459
35329
|
}
|
|
@@ -35473,33 +35343,26 @@ var WsConnection = class _WsConnection {
|
|
|
35473
35343
|
return !!this.ws && (this.ws.readyState === this.WebSocketPonyfill.CLOSING || this.ws.readyState === this.WebSocketPonyfill.CLOSED);
|
|
35474
35344
|
}
|
|
35475
35345
|
async open() {
|
|
35476
|
-
|
|
35477
|
-
|
|
35478
|
-
|
|
35479
|
-
|
|
35480
|
-
|
|
35346
|
+
var _this = this;
|
|
35347
|
+
if (_this.openPromise) return _this.openPromise;
|
|
35348
|
+
_this.id = ++WsConnection2.connectCount;
|
|
35349
|
+
const wsPromise = prepareUrl(_this.urlOptions).then((url2) => new _this.WebSocketPonyfill(url2));
|
|
35350
|
+
_this.openPromise = wsPromise.then(async (ws) => {
|
|
35351
|
+
_this.ws = ws;
|
|
35481
35352
|
ws.addEventListener("message", function({ data }) {
|
|
35482
|
-
if (data === "PING")
|
|
35483
|
-
this.send("PONG");
|
|
35484
|
-
}
|
|
35353
|
+
if (data === "PING") this.send("PONG");
|
|
35485
35354
|
});
|
|
35486
|
-
if (
|
|
35487
|
-
setupPingInterval(ws, this.keepAliveOpts);
|
|
35488
|
-
}
|
|
35355
|
+
if (_this.keepAliveOpts.enabled) setupPingInterval(ws, _this.keepAliveOpts);
|
|
35489
35356
|
ws.addEventListener("close", () => {
|
|
35490
|
-
if (
|
|
35491
|
-
this.ws = null;
|
|
35492
|
-
}
|
|
35357
|
+
if (_this.ws === ws) _this.ws = null;
|
|
35493
35358
|
});
|
|
35494
35359
|
await asyncWsOpen(ws);
|
|
35495
|
-
if (
|
|
35496
|
-
ws.send(await buildConnectionMessage(this.urlOptions.connectionParams));
|
|
35497
|
-
}
|
|
35360
|
+
if (_this.urlOptions.connectionParams) ws.send(await buildConnectionMessage(_this.urlOptions.connectionParams));
|
|
35498
35361
|
});
|
|
35499
35362
|
try {
|
|
35500
|
-
await
|
|
35363
|
+
await _this.openPromise;
|
|
35501
35364
|
} finally {
|
|
35502
|
-
|
|
35365
|
+
_this.openPromise = null;
|
|
35503
35366
|
}
|
|
35504
35367
|
}
|
|
35505
35368
|
/**
|
|
@@ -35507,28 +35370,351 @@ var WsConnection = class _WsConnection {
|
|
|
35507
35370
|
* Waits for any ongoing open operation to complete before closing.
|
|
35508
35371
|
*/
|
|
35509
35372
|
async close() {
|
|
35373
|
+
var _this2 = this;
|
|
35510
35374
|
try {
|
|
35511
|
-
await
|
|
35375
|
+
await _this2.openPromise;
|
|
35512
35376
|
} finally {
|
|
35513
|
-
|
|
35377
|
+
var _this$ws;
|
|
35378
|
+
(_this$ws = _this2.ws) === null || _this$ws === void 0 || _this$ws.close();
|
|
35514
35379
|
}
|
|
35515
35380
|
}
|
|
35381
|
+
};
|
|
35382
|
+
(0, import_defineProperty$1.default)(WsConnection, "connectCount", 0);
|
|
35383
|
+
var import_defineProperty3 = __toESM2(require_defineProperty(), 1);
|
|
35384
|
+
var import_objectSpread28 = __toESM2(require_objectSpread2(), 1);
|
|
35385
|
+
|
|
35386
|
+
// ../../../node_modules/@trpc/client/dist/index.mjs
|
|
35387
|
+
var import_defineProperty4 = __toESM2(require_defineProperty(), 1);
|
|
35388
|
+
var import_objectSpread2$4 = __toESM2(require_objectSpread2(), 1);
|
|
35389
|
+
var TRPCUntypedClient = class {
|
|
35390
|
+
static {
|
|
35391
|
+
__name(this, "TRPCUntypedClient");
|
|
35392
|
+
}
|
|
35516
35393
|
constructor(opts) {
|
|
35517
|
-
|
|
35518
|
-
|
|
35519
|
-
|
|
35520
|
-
|
|
35521
|
-
|
|
35522
|
-
|
|
35523
|
-
|
|
35524
|
-
|
|
35525
|
-
|
|
35394
|
+
(0, import_defineProperty4.default)(this, "links", void 0);
|
|
35395
|
+
(0, import_defineProperty4.default)(this, "runtime", void 0);
|
|
35396
|
+
(0, import_defineProperty4.default)(this, "requestId", void 0);
|
|
35397
|
+
this.requestId = 0;
|
|
35398
|
+
this.runtime = {};
|
|
35399
|
+
this.links = opts.links.map((link) => link(this.runtime));
|
|
35400
|
+
}
|
|
35401
|
+
$request(opts) {
|
|
35402
|
+
var _opts$context;
|
|
35403
|
+
const chain$ = createChain({
|
|
35404
|
+
links: this.links,
|
|
35405
|
+
op: (0, import_objectSpread2$4.default)((0, import_objectSpread2$4.default)({}, opts), {}, {
|
|
35406
|
+
context: (_opts$context = opts.context) !== null && _opts$context !== void 0 ? _opts$context : {},
|
|
35407
|
+
id: ++this.requestId
|
|
35408
|
+
})
|
|
35409
|
+
});
|
|
35410
|
+
return chain$.pipe(share());
|
|
35411
|
+
}
|
|
35412
|
+
async requestAsPromise(opts) {
|
|
35413
|
+
var _this = this;
|
|
35414
|
+
try {
|
|
35415
|
+
const req$ = _this.$request(opts);
|
|
35416
|
+
const envelope = await observableToPromise(req$);
|
|
35417
|
+
const data = envelope.result.data;
|
|
35418
|
+
return data;
|
|
35419
|
+
} catch (err) {
|
|
35420
|
+
throw TRPCClientError.from(err);
|
|
35526
35421
|
}
|
|
35527
|
-
this.urlOptions = opts.urlOptions;
|
|
35528
|
-
this.keepAliveOpts = opts.keepAlive;
|
|
35529
35422
|
}
|
|
35423
|
+
query(path, input, opts) {
|
|
35424
|
+
return this.requestAsPromise({
|
|
35425
|
+
type: "query",
|
|
35426
|
+
path,
|
|
35427
|
+
input,
|
|
35428
|
+
context: opts === null || opts === void 0 ? void 0 : opts.context,
|
|
35429
|
+
signal: opts === null || opts === void 0 ? void 0 : opts.signal
|
|
35430
|
+
});
|
|
35431
|
+
}
|
|
35432
|
+
mutation(path, input, opts) {
|
|
35433
|
+
return this.requestAsPromise({
|
|
35434
|
+
type: "mutation",
|
|
35435
|
+
path,
|
|
35436
|
+
input,
|
|
35437
|
+
context: opts === null || opts === void 0 ? void 0 : opts.context,
|
|
35438
|
+
signal: opts === null || opts === void 0 ? void 0 : opts.signal
|
|
35439
|
+
});
|
|
35440
|
+
}
|
|
35441
|
+
subscription(path, input, opts) {
|
|
35442
|
+
const observable$ = this.$request({
|
|
35443
|
+
type: "subscription",
|
|
35444
|
+
path,
|
|
35445
|
+
input,
|
|
35446
|
+
context: opts.context,
|
|
35447
|
+
signal: opts.signal
|
|
35448
|
+
});
|
|
35449
|
+
return observable$.subscribe({
|
|
35450
|
+
next(envelope) {
|
|
35451
|
+
switch (envelope.result.type) {
|
|
35452
|
+
case "state": {
|
|
35453
|
+
var _opts$onConnectionSta;
|
|
35454
|
+
(_opts$onConnectionSta = opts.onConnectionStateChange) === null || _opts$onConnectionSta === void 0 || _opts$onConnectionSta.call(opts, envelope.result);
|
|
35455
|
+
break;
|
|
35456
|
+
}
|
|
35457
|
+
case "started": {
|
|
35458
|
+
var _opts$onStarted;
|
|
35459
|
+
(_opts$onStarted = opts.onStarted) === null || _opts$onStarted === void 0 || _opts$onStarted.call(opts, { context: envelope.context });
|
|
35460
|
+
break;
|
|
35461
|
+
}
|
|
35462
|
+
case "stopped": {
|
|
35463
|
+
var _opts$onStopped;
|
|
35464
|
+
(_opts$onStopped = opts.onStopped) === null || _opts$onStopped === void 0 || _opts$onStopped.call(opts);
|
|
35465
|
+
break;
|
|
35466
|
+
}
|
|
35467
|
+
case "data":
|
|
35468
|
+
case void 0: {
|
|
35469
|
+
var _opts$onData;
|
|
35470
|
+
(_opts$onData = opts.onData) === null || _opts$onData === void 0 || _opts$onData.call(opts, envelope.result.data);
|
|
35471
|
+
break;
|
|
35472
|
+
}
|
|
35473
|
+
}
|
|
35474
|
+
},
|
|
35475
|
+
error(err) {
|
|
35476
|
+
var _opts$onError;
|
|
35477
|
+
(_opts$onError = opts.onError) === null || _opts$onError === void 0 || _opts$onError.call(opts, err);
|
|
35478
|
+
},
|
|
35479
|
+
complete() {
|
|
35480
|
+
var _opts$onComplete;
|
|
35481
|
+
(_opts$onComplete = opts.onComplete) === null || _opts$onComplete === void 0 || _opts$onComplete.call(opts);
|
|
35482
|
+
}
|
|
35483
|
+
});
|
|
35484
|
+
}
|
|
35485
|
+
};
|
|
35486
|
+
var untypedClientSymbol = /* @__PURE__ */ Symbol.for("trpc_untypedClient");
|
|
35487
|
+
var clientCallTypeMap = {
|
|
35488
|
+
query: "query",
|
|
35489
|
+
mutate: "mutation",
|
|
35490
|
+
subscribe: "subscription"
|
|
35530
35491
|
};
|
|
35531
|
-
|
|
35492
|
+
var clientCallTypeToProcedureType = /* @__PURE__ */ __name((clientCallType) => {
|
|
35493
|
+
return clientCallTypeMap[clientCallType];
|
|
35494
|
+
}, "clientCallTypeToProcedureType");
|
|
35495
|
+
function createTRPCClientProxy(client) {
|
|
35496
|
+
const proxy = createRecursiveProxy(({ path, args }) => {
|
|
35497
|
+
const pathCopy = [...path];
|
|
35498
|
+
const procedureType = clientCallTypeToProcedureType(pathCopy.pop());
|
|
35499
|
+
const fullPath = pathCopy.join(".");
|
|
35500
|
+
return client[procedureType](fullPath, ...args);
|
|
35501
|
+
});
|
|
35502
|
+
return createFlatProxy((key) => {
|
|
35503
|
+
if (key === untypedClientSymbol) return client;
|
|
35504
|
+
return proxy[key];
|
|
35505
|
+
});
|
|
35506
|
+
}
|
|
35507
|
+
__name(createTRPCClientProxy, "createTRPCClientProxy");
|
|
35508
|
+
function createTRPCClient(opts) {
|
|
35509
|
+
const client = new TRPCUntypedClient(opts);
|
|
35510
|
+
const proxy = createTRPCClientProxy(client);
|
|
35511
|
+
return proxy;
|
|
35512
|
+
}
|
|
35513
|
+
__name(createTRPCClient, "createTRPCClient");
|
|
35514
|
+
var import_objectSpread2$3 = __toESM2(require_objectSpread2(), 1);
|
|
35515
|
+
var import_objectSpread2$2 = __toESM2(require_objectSpread2(), 1);
|
|
35516
|
+
var require_asyncIterator = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(exports, module) {
|
|
35517
|
+
function _asyncIterator$1(r) {
|
|
35518
|
+
var n, t, o, e = 2;
|
|
35519
|
+
for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--; ) {
|
|
35520
|
+
if (t && null != (n = r[t])) return n.call(r);
|
|
35521
|
+
if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r));
|
|
35522
|
+
t = "@@asyncIterator", o = "@@iterator";
|
|
35523
|
+
}
|
|
35524
|
+
throw new TypeError("Object is not async iterable");
|
|
35525
|
+
}
|
|
35526
|
+
__name(_asyncIterator$1, "_asyncIterator$1");
|
|
35527
|
+
function AsyncFromSyncIterator(r) {
|
|
35528
|
+
function AsyncFromSyncIteratorContinuation(r$1) {
|
|
35529
|
+
if (Object(r$1) !== r$1) return Promise.reject(new TypeError(r$1 + " is not an object."));
|
|
35530
|
+
var n = r$1.done;
|
|
35531
|
+
return Promise.resolve(r$1.value).then(function(r$2) {
|
|
35532
|
+
return {
|
|
35533
|
+
value: r$2,
|
|
35534
|
+
done: n
|
|
35535
|
+
};
|
|
35536
|
+
});
|
|
35537
|
+
}
|
|
35538
|
+
__name(AsyncFromSyncIteratorContinuation, "AsyncFromSyncIteratorContinuation");
|
|
35539
|
+
return AsyncFromSyncIterator = /* @__PURE__ */ __name(function AsyncFromSyncIterator$1(r$1) {
|
|
35540
|
+
this.s = r$1, this.n = r$1.next;
|
|
35541
|
+
}, "AsyncFromSyncIterator$1"), AsyncFromSyncIterator.prototype = {
|
|
35542
|
+
s: null,
|
|
35543
|
+
n: null,
|
|
35544
|
+
next: /* @__PURE__ */ __name(function next() {
|
|
35545
|
+
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
|
|
35546
|
+
}, "next"),
|
|
35547
|
+
"return": /* @__PURE__ */ __name(function _return(r$1) {
|
|
35548
|
+
var n = this.s["return"];
|
|
35549
|
+
return void 0 === n ? Promise.resolve({
|
|
35550
|
+
value: r$1,
|
|
35551
|
+
done: true
|
|
35552
|
+
}) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
|
|
35553
|
+
}, "_return"),
|
|
35554
|
+
"throw": /* @__PURE__ */ __name(function _throw(r$1) {
|
|
35555
|
+
var n = this.s["return"];
|
|
35556
|
+
return void 0 === n ? Promise.reject(r$1) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
|
|
35557
|
+
}, "_throw")
|
|
35558
|
+
}, new AsyncFromSyncIterator(r);
|
|
35559
|
+
}
|
|
35560
|
+
__name(AsyncFromSyncIterator, "AsyncFromSyncIterator");
|
|
35561
|
+
module.exports = _asyncIterator$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
35562
|
+
} });
|
|
35563
|
+
var import_asyncIterator = __toESM2(require_asyncIterator(), 1);
|
|
35564
|
+
var import_objectSpread2$12 = __toESM2(require_objectSpread2(), 1);
|
|
35565
|
+
var require_usingCtx = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
35566
|
+
function _usingCtx() {
|
|
35567
|
+
var r = "function" == typeof SuppressedError ? SuppressedError : function(r$1, e$1) {
|
|
35568
|
+
var n$1 = Error();
|
|
35569
|
+
return n$1.name = "SuppressedError", n$1.error = r$1, n$1.suppressed = e$1, n$1;
|
|
35570
|
+
}, e = {}, n = [];
|
|
35571
|
+
function using(r$1, e$1) {
|
|
35572
|
+
if (null != e$1) {
|
|
35573
|
+
if (Object(e$1) !== e$1) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
|
|
35574
|
+
if (r$1) var o = e$1[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
|
|
35575
|
+
if (void 0 === o && (o = e$1[Symbol.dispose || Symbol["for"]("Symbol.dispose")], r$1)) var t = o;
|
|
35576
|
+
if ("function" != typeof o) throw new TypeError("Object is not disposable.");
|
|
35577
|
+
t && (o = /* @__PURE__ */ __name(function o$1() {
|
|
35578
|
+
try {
|
|
35579
|
+
t.call(e$1);
|
|
35580
|
+
} catch (r$2) {
|
|
35581
|
+
return Promise.reject(r$2);
|
|
35582
|
+
}
|
|
35583
|
+
}, "o$1")), n.push({
|
|
35584
|
+
v: e$1,
|
|
35585
|
+
d: o,
|
|
35586
|
+
a: r$1
|
|
35587
|
+
});
|
|
35588
|
+
} else r$1 && n.push({
|
|
35589
|
+
d: e$1,
|
|
35590
|
+
a: r$1
|
|
35591
|
+
});
|
|
35592
|
+
return e$1;
|
|
35593
|
+
}
|
|
35594
|
+
__name(using, "using");
|
|
35595
|
+
return {
|
|
35596
|
+
e,
|
|
35597
|
+
u: using.bind(null, false),
|
|
35598
|
+
a: using.bind(null, true),
|
|
35599
|
+
d: /* @__PURE__ */ __name(function d() {
|
|
35600
|
+
var o, t = this.e, s = 0;
|
|
35601
|
+
function next() {
|
|
35602
|
+
for (; o = n.pop(); ) try {
|
|
35603
|
+
if (!o.a && 1 === s) return s = 0, n.push(o), Promise.resolve().then(next);
|
|
35604
|
+
if (o.d) {
|
|
35605
|
+
var r$1 = o.d.call(o.v);
|
|
35606
|
+
if (o.a) return s |= 2, Promise.resolve(r$1).then(next, err);
|
|
35607
|
+
} else s |= 1;
|
|
35608
|
+
} catch (r$2) {
|
|
35609
|
+
return err(r$2);
|
|
35610
|
+
}
|
|
35611
|
+
if (1 === s) return t !== e ? Promise.reject(t) : Promise.resolve();
|
|
35612
|
+
if (t !== e) throw t;
|
|
35613
|
+
}
|
|
35614
|
+
__name(next, "next");
|
|
35615
|
+
function err(n$1) {
|
|
35616
|
+
return t = t !== e ? new r(n$1, t) : n$1, next();
|
|
35617
|
+
}
|
|
35618
|
+
__name(err, "err");
|
|
35619
|
+
return next();
|
|
35620
|
+
}, "d")
|
|
35621
|
+
};
|
|
35622
|
+
}
|
|
35623
|
+
__name(_usingCtx, "_usingCtx");
|
|
35624
|
+
module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
35625
|
+
} });
|
|
35626
|
+
var require_OverloadYield = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(exports, module) {
|
|
35627
|
+
function _OverloadYield(e, d) {
|
|
35628
|
+
this.v = e, this.k = d;
|
|
35629
|
+
}
|
|
35630
|
+
__name(_OverloadYield, "_OverloadYield");
|
|
35631
|
+
module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
35632
|
+
} });
|
|
35633
|
+
var require_awaitAsyncGenerator = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(exports, module) {
|
|
35634
|
+
var OverloadYield$1 = require_OverloadYield();
|
|
35635
|
+
function _awaitAsyncGenerator$1(e) {
|
|
35636
|
+
return new OverloadYield$1(e, 0);
|
|
35637
|
+
}
|
|
35638
|
+
__name(_awaitAsyncGenerator$1, "_awaitAsyncGenerator$1");
|
|
35639
|
+
module.exports = _awaitAsyncGenerator$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
35640
|
+
} });
|
|
35641
|
+
var require_wrapAsyncGenerator = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(exports, module) {
|
|
35642
|
+
var OverloadYield = require_OverloadYield();
|
|
35643
|
+
function _wrapAsyncGenerator$1(e) {
|
|
35644
|
+
return function() {
|
|
35645
|
+
return new AsyncGenerator(e.apply(this, arguments));
|
|
35646
|
+
};
|
|
35647
|
+
}
|
|
35648
|
+
__name(_wrapAsyncGenerator$1, "_wrapAsyncGenerator$1");
|
|
35649
|
+
function AsyncGenerator(e) {
|
|
35650
|
+
var r, t;
|
|
35651
|
+
function resume(r$1, t$1) {
|
|
35652
|
+
try {
|
|
35653
|
+
var n = e[r$1](t$1), o = n.value, u = o instanceof OverloadYield;
|
|
35654
|
+
Promise.resolve(u ? o.v : o).then(function(t$2) {
|
|
35655
|
+
if (u) {
|
|
35656
|
+
var i = "return" === r$1 ? "return" : "next";
|
|
35657
|
+
if (!o.k || t$2.done) return resume(i, t$2);
|
|
35658
|
+
t$2 = e[i](t$2).value;
|
|
35659
|
+
}
|
|
35660
|
+
settle(n.done ? "return" : "normal", t$2);
|
|
35661
|
+
}, function(e$1) {
|
|
35662
|
+
resume("throw", e$1);
|
|
35663
|
+
});
|
|
35664
|
+
} catch (e$1) {
|
|
35665
|
+
settle("throw", e$1);
|
|
35666
|
+
}
|
|
35667
|
+
}
|
|
35668
|
+
__name(resume, "resume");
|
|
35669
|
+
function settle(e$1, n) {
|
|
35670
|
+
switch (e$1) {
|
|
35671
|
+
case "return":
|
|
35672
|
+
r.resolve({
|
|
35673
|
+
value: n,
|
|
35674
|
+
done: true
|
|
35675
|
+
});
|
|
35676
|
+
break;
|
|
35677
|
+
case "throw":
|
|
35678
|
+
r.reject(n);
|
|
35679
|
+
break;
|
|
35680
|
+
default:
|
|
35681
|
+
r.resolve({
|
|
35682
|
+
value: n,
|
|
35683
|
+
done: false
|
|
35684
|
+
});
|
|
35685
|
+
}
|
|
35686
|
+
(r = r.next) ? resume(r.key, r.arg) : t = null;
|
|
35687
|
+
}
|
|
35688
|
+
__name(settle, "settle");
|
|
35689
|
+
this._invoke = function(e$1, n) {
|
|
35690
|
+
return new Promise(function(o, u) {
|
|
35691
|
+
var i = {
|
|
35692
|
+
key: e$1,
|
|
35693
|
+
arg: n,
|
|
35694
|
+
resolve: o,
|
|
35695
|
+
reject: u,
|
|
35696
|
+
next: null
|
|
35697
|
+
};
|
|
35698
|
+
t ? t = t.next = i : (r = t = i, resume(e$1, n));
|
|
35699
|
+
});
|
|
35700
|
+
}, "function" != typeof e["return"] && (this["return"] = void 0);
|
|
35701
|
+
}
|
|
35702
|
+
__name(AsyncGenerator, "AsyncGenerator");
|
|
35703
|
+
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
35704
|
+
return this;
|
|
35705
|
+
}, AsyncGenerator.prototype.next = function(e) {
|
|
35706
|
+
return this._invoke("next", e);
|
|
35707
|
+
}, AsyncGenerator.prototype["throw"] = function(e) {
|
|
35708
|
+
return this._invoke("throw", e);
|
|
35709
|
+
}, AsyncGenerator.prototype["return"] = function(e) {
|
|
35710
|
+
return this._invoke("return", e);
|
|
35711
|
+
};
|
|
35712
|
+
module.exports = _wrapAsyncGenerator$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
35713
|
+
} });
|
|
35714
|
+
var import_usingCtx = __toESM2(require_usingCtx(), 1);
|
|
35715
|
+
var import_awaitAsyncGenerator = __toESM2(require_awaitAsyncGenerator(), 1);
|
|
35716
|
+
var import_wrapAsyncGenerator = __toESM2(require_wrapAsyncGenerator(), 1);
|
|
35717
|
+
var import_objectSpread29 = __toESM2(require_objectSpread2(), 1);
|
|
35532
35718
|
|
|
35533
35719
|
// src/callbackLink.ts
|
|
35534
35720
|
var callbackLink = /* @__PURE__ */ __name((callback) => {
|
|
@@ -35662,9 +35848,6 @@ export {
|
|
|
35662
35848
|
};
|
|
35663
35849
|
/*! Bundled license information:
|
|
35664
35850
|
|
|
35665
|
-
@trpc/client/dist/
|
|
35851
|
+
@trpc/client/dist/httpBatchLink-BOe5aCcR.mjs:
|
|
35666
35852
|
(* istanbul ignore if -- @preserve *)
|
|
35667
|
-
|
|
35668
|
-
@trpc/client/dist/links/retryLink.mjs:
|
|
35669
|
-
(* istanbul ignore file -- @preserve *)
|
|
35670
35853
|
*/
|