@trpc/client 11.25.2 → 11.25.3-canary.13.g1341462e1
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/{TRPCClientError-Byo7P4QG.mjs → TRPCClientError-DE6-fd1n.mjs} +3 -4
- package/dist/{TRPCClientError-Byo7P4QG.mjs.map → TRPCClientError-DE6-fd1n.mjs.map} +1 -1
- package/dist/{TRPCClientError-CPEwAI4E.cjs → TRPCClientError-irOPxS6c.cjs} +2 -3
- package/dist/{httpBatchLink-aPx7u_sr.mjs → httpBatchLink-C3x3d8vz.mjs} +6 -8
- package/dist/{httpBatchLink-aPx7u_sr.mjs.map → httpBatchLink-C3x3d8vz.mjs.map} +1 -1
- package/dist/{httpBatchLink-VjOVPXkI.cjs → httpBatchLink-DL8mnpSC.cjs} +5 -7
- package/dist/{httpBatchLink-Dp4tIBfy.d.cts → httpBatchLink-DbD4ZGAM.d.cts} +3 -7
- package/dist/httpBatchLink-DbD4ZGAM.d.cts.map +1 -0
- package/dist/{httpBatchLink-Dxqsu9CE.d.mts → httpBatchLink-Dk3_n5pP.d.mts} +3 -7
- package/dist/httpBatchLink-Dk3_n5pP.d.mts.map +1 -0
- package/dist/{httpLink-CWd1U86f.mjs → httpLink-B7uIfNkv.mjs} +6 -8
- package/dist/{httpLink-CWd1U86f.mjs.map → httpLink-B7uIfNkv.mjs.map} +1 -1
- package/dist/{httpLink-Cd3n7PrK.d.mts → httpLink-BjZdBzr6.d.mts} +3 -5
- package/dist/httpLink-BjZdBzr6.d.mts.map +1 -0
- package/dist/{httpLink-CeszFCmc.cjs → httpLink-DuF7KiyZ.cjs} +5 -7
- package/dist/{httpUtils-5Hmhcy-z.mjs → httpUtils-CWtyfi2N.mjs} +5 -8
- package/dist/{httpUtils-5Hmhcy-z.mjs.map → httpUtils-CWtyfi2N.mjs.map} +1 -1
- package/dist/{httpUtils-BAwJ9mb3.d.mts → httpUtils-CxgZ3W-1.d.cts} +4 -6
- package/dist/httpUtils-CxgZ3W-1.d.cts.map +1 -0
- package/dist/{httpUtils-DbsdWXpN.cjs → httpUtils-ZrQjZ1_i.cjs} +4 -7
- package/dist/{httpUtils-CvL7UM_P.d.cts → httpUtils-gZ7bAQ6T.d.mts} +4 -6
- package/dist/httpUtils-gZ7bAQ6T.d.mts.map +1 -0
- package/dist/index.cjs +40 -66
- package/dist/index.d.cts +10 -40
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +9 -29
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +40 -66
- package/dist/index.mjs.map +1 -1
- package/dist/links/httpBatchLink.cjs +1 -1
- package/dist/links/httpBatchLink.d.cts +1 -1
- package/dist/links/httpBatchLink.d.mts +1 -1
- package/dist/links/httpBatchLink.mjs +1 -2
- package/dist/links/httpLink.cjs +1 -1
- package/dist/links/httpLink.d.cts +24 -2
- package/dist/links/httpLink.d.cts.map +1 -0
- package/dist/links/httpLink.d.mts +1 -1
- package/dist/links/httpLink.mjs +1 -2
- package/dist/links/loggerLink.cjs +2 -3
- package/dist/links/loggerLink.d.cts +67 -2
- package/dist/links/loggerLink.d.cts.map +1 -0
- package/dist/links/loggerLink.d.mts +1 -1
- package/dist/links/loggerLink.mjs +2 -3
- package/dist/links/splitLink.cjs +1 -1
- package/dist/links/splitLink.d.cts +22 -2
- package/dist/links/splitLink.d.cts.map +1 -0
- package/dist/links/splitLink.d.mts +1 -1
- package/dist/links/splitLink.mjs +1 -2
- package/dist/links/wsLink/wsLink.cjs +1 -1
- package/dist/links/wsLink/wsLink.d.cts +1 -1
- package/dist/links/wsLink/wsLink.d.mts +1 -1
- package/dist/links/wsLink/wsLink.mjs +1 -2
- package/dist/{loggerLink-BEMtA7V5.d.cts → loggerLink-CBPx95zm.d.mts} +2 -4
- package/dist/loggerLink-CBPx95zm.d.mts.map +1 -0
- package/dist/{objectSpread2-D-dJi1gK.cjs → objectSpread2-Xm0br5eL.cjs} +10 -15
- package/dist/{objectSpread2-weooBxVk.mjs → objectSpread2-pyA4QVO4.mjs} +10 -15
- package/dist/{splitLink-CL8W2Mit.cjs → splitLink-BBLj14Dv.cjs} +2 -4
- package/dist/{splitLink-zyV5y7N1.d.mts → splitLink-BtPz7lCB.d.mts} +2 -4
- package/dist/splitLink-BtPz7lCB.d.mts.map +1 -0
- package/dist/{splitLink-DcpFI5s5.mjs → splitLink-PFsRy7Mf.mjs} +3 -5
- package/dist/{splitLink-DcpFI5s5.mjs.map → splitLink-PFsRy7Mf.mjs.map} +1 -1
- package/dist/{subscriptions-DcqRZc4h.d.cts → subscriptions-CvJnusYO.d.cts} +1 -3
- package/dist/subscriptions-CvJnusYO.d.cts.map +1 -0
- package/dist/{subscriptions-DcqRZc4h.d.mts → subscriptions-CvJnusYO.d.mts} +1 -3
- package/dist/subscriptions-CvJnusYO.d.mts.map +1 -0
- package/dist/{types-BrCJd1zp.d.cts → types-BG-3kpeg.d.mts} +3 -9
- package/dist/types-BG-3kpeg.d.mts.map +1 -0
- package/dist/{types-DO-GCB2q.d.mts → types-BhHxuBsu.d.cts} +14 -10
- package/dist/types-BhHxuBsu.d.cts.map +1 -0
- package/dist/{unstable-internals-CNoyg7Yf.d.cts → unstable-internals-CnrO49lh.d.mts} +1 -3
- package/dist/unstable-internals-CnrO49lh.d.mts.map +1 -0
- package/dist/unstable-internals.cjs +1 -2
- package/dist/unstable-internals.d.cts +43 -3
- package/dist/unstable-internals.d.cts.map +1 -0
- package/dist/unstable-internals.d.mts +2 -2
- package/dist/unstable-internals.mjs +1 -2
- package/dist/{wsLink-l0dX0ah6.mjs → wsLink-BiIe_j6D.mjs} +12 -21
- package/dist/{wsLink-l0dX0ah6.mjs.map → wsLink-BiIe_j6D.mjs.map} +1 -1
- package/dist/{wsLink-BgncVFHX.cjs → wsLink-BriU1R12.cjs} +11 -20
- package/dist/{wsLink-Cpw-BznR.d.cts → wsLink-CBFXDQnx.d.cts} +4 -16
- package/dist/wsLink-CBFXDQnx.d.cts.map +1 -0
- package/dist/{wsLink-Cjetil1Z.d.mts → wsLink-DXfg9MiM.d.mts} +4 -16
- package/dist/wsLink-DXfg9MiM.d.mts.map +1 -0
- package/package.json +12 -12
- package/skills/client-setup/SKILL.md +1 -1
- package/skills/links/SKILL.md +1 -1
- package/skills/superjson/SKILL.md +1 -1
- package/dist/httpBatchLink-Dp4tIBfy.d.cts.map +0 -1
- package/dist/httpBatchLink-Dxqsu9CE.d.mts.map +0 -1
- package/dist/httpLink-Cd3n7PrK.d.mts.map +0 -1
- package/dist/httpLink-DpCm7qgx.d.cts +0 -27
- package/dist/httpLink-DpCm7qgx.d.cts.map +0 -1
- package/dist/httpUtils-BAwJ9mb3.d.mts.map +0 -1
- package/dist/httpUtils-CvL7UM_P.d.cts.map +0 -1
- package/dist/loggerLink-BEMtA7V5.d.cts.map +0 -1
- package/dist/loggerLink-Daki_B65.d.mts +0 -69
- package/dist/loggerLink-Daki_B65.d.mts.map +0 -1
- package/dist/splitLink-i7EskO_m.d.cts +0 -25
- package/dist/splitLink-i7EskO_m.d.cts.map +0 -1
- package/dist/splitLink-zyV5y7N1.d.mts.map +0 -1
- package/dist/subscriptions-DcqRZc4h.d.cts.map +0 -1
- package/dist/subscriptions-DcqRZc4h.d.mts.map +0 -1
- package/dist/types-BrCJd1zp.d.cts.map +0 -1
- package/dist/types-DO-GCB2q.d.mts.map +0 -1
- package/dist/unstable-internals-CNoyg7Yf.d.cts.map +0 -1
- package/dist/unstable-internals-CNoyg7Yf.d.mts +0 -44
- package/dist/unstable-internals-CNoyg7Yf.d.mts.map +0 -1
- package/dist/wsLink-Cjetil1Z.d.mts.map +0 -1
- package/dist/wsLink-Cpw-BznR.d.cts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_splitLink = require("./splitLink-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const require_httpUtils = require("./httpUtils-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const require_unstable_internals = require("./unstable-internals.cjs");
|
|
2
|
+
const require_splitLink = require("./splitLink-BBLj14Dv.cjs");
|
|
3
|
+
const require_TRPCClientError = require("./TRPCClientError-irOPxS6c.cjs");
|
|
4
|
+
const require_objectSpread2 = require("./objectSpread2-Xm0br5eL.cjs");
|
|
5
|
+
const require_httpUtils = require("./httpUtils-ZrQjZ1_i.cjs");
|
|
6
|
+
const require_httpBatchLink = require("./httpBatchLink-DL8mnpSC.cjs");
|
|
7
|
+
const require_httpLink = require("./httpLink-DuF7KiyZ.cjs");
|
|
9
8
|
const require_links_loggerLink = require("./links/loggerLink.cjs");
|
|
10
|
-
const require_wsLink = require("./wsLink-
|
|
9
|
+
const require_wsLink = require("./wsLink-BriU1R12.cjs");
|
|
10
|
+
const require_unstable_internals = require("./unstable-internals.cjs");
|
|
11
11
|
let _trpc_server_observable = require("@trpc/server/observable");
|
|
12
12
|
let _trpc_server_unstable_core_do_not_import = require("@trpc/server/unstable-core-do-not-import");
|
|
13
13
|
let _trpc_server = require("@trpc/server");
|
|
14
14
|
let _trpc_server_rpc = require("@trpc/server/rpc");
|
|
15
|
-
|
|
15
|
+
// src/internals/TRPCUntypedClient.ts
|
|
16
16
|
const observerKeys = [
|
|
17
17
|
"onStarted",
|
|
18
18
|
"onData",
|
|
@@ -131,8 +131,7 @@ var TRPCUntypedClient = class {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
|
|
135
|
-
//#region src/createTRPCUntypedClient.ts
|
|
134
|
+
// src/createTRPCUntypedClient.ts
|
|
136
135
|
/**
|
|
137
136
|
* Creates a client that calls procedures by path string, without types.
|
|
138
137
|
* Meant for libraries built on tRPC; apps should use `createTRPCClient`.
|
|
@@ -140,8 +139,7 @@ var TRPCUntypedClient = class {
|
|
|
140
139
|
function createTRPCUntypedClient(opts) {
|
|
141
140
|
return new TRPCUntypedClient(opts);
|
|
142
141
|
}
|
|
143
|
-
|
|
144
|
-
//#region src/createTRPCClient.ts
|
|
142
|
+
// src/createTRPCClient.ts
|
|
145
143
|
const untypedClientSymbol = Symbol.for("trpc_untypedClient");
|
|
146
144
|
const clientCallTypeMap = {
|
|
147
145
|
query: "query",
|
|
@@ -194,8 +192,7 @@ function createTRPCClient(opts) {
|
|
|
194
192
|
function getUntypedClient(client) {
|
|
195
193
|
return client[untypedClientSymbol];
|
|
196
194
|
}
|
|
197
|
-
|
|
198
|
-
//#region src/links/httpBatchStreamLink.ts
|
|
195
|
+
// src/links/httpBatchStreamLink.ts
|
|
199
196
|
/**
|
|
200
197
|
* A terminating link that batches calls like `httpBatchLink`, but streams each
|
|
201
198
|
* response back as soon as it is ready.
|
|
@@ -321,15 +318,13 @@ function httpBatchStreamLink(opts) {
|
|
|
321
318
|
* @deprecated Use {@link httpBatchStreamLink} instead.
|
|
322
319
|
*/
|
|
323
320
|
const unstable_httpBatchStreamLink = httpBatchStreamLink;
|
|
324
|
-
|
|
325
|
-
//#region src/internals/inputWithTrackedEventId.ts
|
|
321
|
+
// src/internals/inputWithTrackedEventId.ts
|
|
326
322
|
function inputWithTrackedEventId(input, lastEventId) {
|
|
327
323
|
if (!lastEventId) return input;
|
|
328
324
|
if (input != null && typeof input !== "object") return input;
|
|
329
325
|
return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, input !== null && input !== void 0 ? input : {}), {}, { lastEventId });
|
|
330
326
|
}
|
|
331
|
-
|
|
332
|
-
//#region \0@oxc-project+runtime@0.149.0/helpers/esm/asyncIterator.js
|
|
327
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/asyncIterator.js
|
|
333
328
|
function _asyncIterator(r) {
|
|
334
329
|
var n, t, o, e = 2;
|
|
335
330
|
for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) {
|
|
@@ -366,13 +361,12 @@ function AsyncFromSyncIterator(r) {
|
|
|
366
361
|
}) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
|
|
367
362
|
},
|
|
368
363
|
"throw": function _throw(r) {
|
|
369
|
-
var n = this.s["
|
|
364
|
+
var n = this.s["throw"];
|
|
370
365
|
return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
|
|
371
366
|
}
|
|
372
367
|
}, new AsyncFromSyncIterator(r);
|
|
373
368
|
}
|
|
374
|
-
|
|
375
|
-
//#region src/links/httpSubscriptionLink.ts
|
|
369
|
+
// src/links/httpSubscriptionLink.ts
|
|
376
370
|
async function urlWithConnectionParams(opts) {
|
|
377
371
|
let url = await require_wsLink.resultOf(opts.url);
|
|
378
372
|
if (opts.connectionParams) {
|
|
@@ -521,8 +515,7 @@ function httpSubscriptionLink(opts) {
|
|
|
521
515
|
* @deprecated Use {@link httpSubscriptionLink} instead.
|
|
522
516
|
*/
|
|
523
517
|
const unstable_httpSubscriptionLink = httpSubscriptionLink;
|
|
524
|
-
|
|
525
|
-
//#region src/links/retryLink.ts
|
|
518
|
+
// src/links/retryLink.ts
|
|
526
519
|
/* istanbul ignore file -- @preserve */
|
|
527
520
|
/**
|
|
528
521
|
* Retries failed operations. Subscriptions resume from the last tracked event
|
|
@@ -590,8 +583,7 @@ function retryLink(opts) {
|
|
|
590
583
|
};
|
|
591
584
|
};
|
|
592
585
|
}
|
|
593
|
-
|
|
594
|
-
//#region \0@oxc-project+runtime@0.149.0/helpers/esm/usingCtx.js
|
|
586
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/usingCtx.js
|
|
595
587
|
function _usingCtx() {
|
|
596
588
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
597
589
|
var n = Error();
|
|
@@ -646,70 +638,55 @@ function _usingCtx() {
|
|
|
646
638
|
}
|
|
647
639
|
};
|
|
648
640
|
}
|
|
649
|
-
|
|
650
|
-
//#region \0@oxc-project+runtime@0.149.0/helpers/esm/OverloadYield.js
|
|
641
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/OverloadYield.js
|
|
651
642
|
function _OverloadYield(e, d) {
|
|
652
643
|
this.v = e, this.k = d;
|
|
653
644
|
}
|
|
654
|
-
|
|
655
|
-
//#region \0@oxc-project+runtime@0.149.0/helpers/esm/awaitAsyncGenerator.js
|
|
645
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/awaitAsyncGenerator.js
|
|
656
646
|
function _awaitAsyncGenerator(e) {
|
|
657
647
|
return new _OverloadYield(e, 0);
|
|
658
648
|
}
|
|
659
|
-
|
|
660
|
-
//#region \0@oxc-project+runtime@0.149.0/helpers/esm/wrapAsyncGenerator.js
|
|
649
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/wrapAsyncGenerator.js
|
|
661
650
|
function _wrapAsyncGenerator(e) {
|
|
662
651
|
return function() {
|
|
663
652
|
return new AsyncGenerator(e.apply(this, arguments));
|
|
664
653
|
};
|
|
665
654
|
}
|
|
666
655
|
function AsyncGenerator(e) {
|
|
667
|
-
var
|
|
668
|
-
function resume(
|
|
656
|
+
var t, n;
|
|
657
|
+
function resume(t, n) {
|
|
669
658
|
try {
|
|
670
|
-
var
|
|
671
|
-
Promise.resolve(u ? o.v : o).then(function(
|
|
659
|
+
var r = e[t](n), o = r.value, u = o instanceof _OverloadYield;
|
|
660
|
+
Promise.resolve(u ? o.v : o).then(function(n) {
|
|
672
661
|
if (u) {
|
|
673
|
-
var i = "return" ===
|
|
674
|
-
if (!o.k ||
|
|
675
|
-
|
|
662
|
+
var i = "return" === t && o.k ? t : "next";
|
|
663
|
+
if (!o.k || n.done) return resume(i, n);
|
|
664
|
+
n = e[i](n).value;
|
|
676
665
|
}
|
|
677
|
-
settle(
|
|
666
|
+
settle(!!r.done, n);
|
|
678
667
|
}, function(e) {
|
|
679
668
|
resume("throw", e);
|
|
680
669
|
});
|
|
681
670
|
} catch (e) {
|
|
682
|
-
settle(
|
|
671
|
+
settle(2, e);
|
|
683
672
|
}
|
|
684
673
|
}
|
|
685
|
-
function settle(e,
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
done: !0
|
|
691
|
-
});
|
|
692
|
-
break;
|
|
693
|
-
case "throw":
|
|
694
|
-
r.reject(n);
|
|
695
|
-
break;
|
|
696
|
-
default: r.resolve({
|
|
697
|
-
value: n,
|
|
698
|
-
done: !1
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
(r = r.next) ? resume(r.key, r.arg) : t = null;
|
|
674
|
+
function settle(e, r) {
|
|
675
|
+
2 === e ? t.reject(r) : t.resolve({
|
|
676
|
+
value: r,
|
|
677
|
+
done: e
|
|
678
|
+
}), (t = t.next) ? resume(t.key, t.arg) : n = null;
|
|
702
679
|
}
|
|
703
|
-
this._invoke = function(e,
|
|
680
|
+
this._invoke = function(e, r) {
|
|
704
681
|
return new Promise(function(o, u) {
|
|
705
682
|
var i = {
|
|
706
683
|
key: e,
|
|
707
|
-
arg:
|
|
684
|
+
arg: r,
|
|
708
685
|
resolve: o,
|
|
709
686
|
reject: u,
|
|
710
687
|
next: null
|
|
711
688
|
};
|
|
712
|
-
|
|
689
|
+
n ? n = n.next = i : (t = n = i, resume(e, r));
|
|
713
690
|
});
|
|
714
691
|
}, "function" != typeof e["return"] && (this["return"] = void 0);
|
|
715
692
|
}
|
|
@@ -722,8 +699,7 @@ AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator ||
|
|
|
722
699
|
}, AsyncGenerator.prototype["return"] = function(e) {
|
|
723
700
|
return this._invoke("return", e);
|
|
724
701
|
};
|
|
725
|
-
|
|
726
|
-
//#region src/links/localLink.ts
|
|
702
|
+
// src/links/localLink.ts
|
|
727
703
|
/**
|
|
728
704
|
* A terminating link that calls procedures on a router in the same process,
|
|
729
705
|
* without HTTP.
|
|
@@ -911,8 +887,7 @@ const unstable_localLink = localLink;
|
|
|
911
887
|
* future major release.
|
|
912
888
|
*/
|
|
913
889
|
const experimental_localLink = localLink;
|
|
914
|
-
|
|
915
|
-
//#region src/safe.ts
|
|
890
|
+
// src/safe.ts
|
|
916
891
|
/**
|
|
917
892
|
* Awaits a client `.query()` or `.mutate()` call without throwing, and
|
|
918
893
|
* returns a `[data, error]` pair typed with the procedure's error shape.
|
|
@@ -935,7 +910,6 @@ async function safe(promise) {
|
|
|
935
910
|
return [void 0, cause];
|
|
936
911
|
}
|
|
937
912
|
}
|
|
938
|
-
//#endregion
|
|
939
913
|
exports.TRPCClientError = require_TRPCClientError.TRPCClientError;
|
|
940
914
|
exports.TRPCUntypedClient = TRPCUntypedClient;
|
|
941
915
|
exports.clientCallTypeToProcedureType = clientCallTypeToProcedureType;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
import { t as TRPCConnectionState } from "./subscriptions-
|
|
2
|
-
import { a as OperationResultEnvelope, c as TRPCClientRuntime, d as
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { t as TRPCConnectionState } from "./subscriptions-CvJnusYO.cjs";
|
|
2
|
+
import { _ as isTRPCClientError, a as OperationResultEnvelope, c as TRPCClientRuntime, d as isFormData, f as isNonJsonSerializable, g as TRPCClientErrorLike, h as TRPCClientErrorBase, i as OperationLink, l as TRPCFetch, m as TRPCClientError, n as Operation, o as OperationResultObservable, p as isOctetType, r as OperationContext, s as OperationResultObserver, t as HTTPHeaders, u as TRPCLink, v as FetchEsque, x as TRPCProcedureOptions, y as NativeFetchEsque } from "./types-BhHxuBsu.cjs";
|
|
3
|
+
import { n as HTTPBatchLinkOptions, t as httpBatchLink } from "./httpBatchLink-DbD4ZGAM.cjs";
|
|
4
|
+
import { HTTPLinkOptions, httpLink } from "./links/httpLink.cjs";
|
|
5
|
+
import { LoggerLinkOptions, loggerLink } from "./links/loggerLink.cjs";
|
|
6
|
+
import { splitLink } from "./links/splitLink.cjs";
|
|
7
|
+
import { a as WebSocketClientOptions, c as jsonEncoder, i as createWSClient, n as wsLink, o as UrlOptionsWithConnectionParams, r as TRPCWebSocketClient, s as Encoder, t as WebSocketLinkOptions } from "./wsLink-CBFXDQnx.cjs";
|
|
8
|
+
import { TransformerOptions } from "./unstable-internals.cjs";
|
|
9
|
+
import { t as HTTPLinkBaseOptions } from "./httpUtils-CxgZ3W-1.cjs";
|
|
10
10
|
import { AnyClientTypes, AnyProcedure, AnyRouter, ErrorHandlerOptions, EventSourceLike, InferrableClientTypes, ProcedureType, RouterRecord, TypeError, inferAsyncIterableYield, inferClientTypes, inferProcedureErrorShape, inferProcedureInput, inferRouterContext, inferTransformedProcedureOutput } from "@trpc/server/unstable-core-do-not-import";
|
|
11
11
|
import { Unsubscribable } from "@trpc/server/observable";
|
|
12
12
|
import { AnyRouter as AnyRouter$1 } from "@trpc/server";
|
|
13
|
-
//#region src/links/internals/contentTypes.d.ts
|
|
14
|
-
/** Whether an input is binary: a `Uint8Array`, `Blob` or `File`. */
|
|
15
|
-
export declare function isOctetType(input: unknown): input is Uint8Array<ArrayBuffer> | Blob;
|
|
16
|
-
/** Whether an input is `FormData`. */
|
|
17
|
-
export declare function isFormData(input: unknown): input is FormData;
|
|
18
|
-
/**
|
|
19
|
-
* Whether an input can't be sent as JSON: binary data or `FormData`. Use
|
|
20
|
-
* it in a `splitLink` to send such inputs with `httpLink`.
|
|
21
|
-
* @see https://trpc.io/docs/server/non-json-content-types#client-setup
|
|
22
|
-
*/
|
|
23
|
-
export declare function isNonJsonSerializable(input: unknown): input is Blob | FormData | Uint8Array<ArrayBuffer>;
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/internals/TRPCUntypedClient.d.ts
|
|
26
13
|
/** The options of a call made with the untyped client. */
|
|
27
14
|
interface TRPCRequestOptions {
|
|
28
15
|
/**
|
|
@@ -105,15 +92,11 @@ export declare class TRPCUntypedClient<TInferrable extends InferrableClientTypes
|
|
|
105
92
|
subscription(path: string, input: unknown, opts: TRPCSubscriptionCallbacks<unknown, TRPCClientError<AnyRouter>> & TRPCRequestOptions): Unsubscribable;
|
|
106
93
|
subscription<TOpts extends TRPCRequestOptions & Partial<TRPCSubscriptionObserver<unknown, TRPCClientError<AnyRouter>>> = TRPCRequestOptions>(path: string, input: unknown, opts?: TRPCSubscriptionWithoutCallbacks<TOpts>): AsyncIterableIterator<unknown>;
|
|
107
94
|
}
|
|
108
|
-
//#endregion
|
|
109
|
-
//#region src/createTRPCUntypedClient.d.ts
|
|
110
95
|
/**
|
|
111
96
|
* Creates a client that calls procedures by path string, without types.
|
|
112
97
|
* Meant for libraries built on tRPC; apps should use `createTRPCClient`.
|
|
113
98
|
*/
|
|
114
99
|
export declare function createTRPCUntypedClient<TRouter extends AnyRouter>(opts: CreateTRPCClientOptions<TRouter>): TRPCUntypedClient<TRouter>;
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region src/safe.d.ts
|
|
117
100
|
/**
|
|
118
101
|
* @internal
|
|
119
102
|
*/
|
|
@@ -153,8 +136,6 @@ type SafeResult<TData, TErrorShape> = readonly [data: TData, error: undefined] |
|
|
|
153
136
|
* @see https://trpc.io/docs/client/vanilla/error-handling#errors-as-values-with-safe
|
|
154
137
|
*/
|
|
155
138
|
export declare function safe<TData, TErrorShape>(promise: TRPCTaggedPromise<TData, TErrorShape>): Promise<SafeResult<TData, TErrorShape>>;
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region src/createTRPCClient.d.ts
|
|
158
139
|
/**
|
|
159
140
|
* The type of a client for a router.
|
|
160
141
|
* @deprecated Use {@link TRPCClient} instead. This will be removed in v12.
|
|
@@ -249,15 +230,11 @@ export declare function createTRPCClient<TRouter extends AnyRouter>(opts: Create
|
|
|
249
230
|
* @internal
|
|
250
231
|
*/
|
|
251
232
|
export declare function getUntypedClient<TRouter extends AnyRouter>(client: TRPCClient<TRouter>): TRPCUntypedClient<TRouter>;
|
|
252
|
-
//#endregion
|
|
253
|
-
//#region src/getFetch.d.ts
|
|
254
233
|
/**
|
|
255
234
|
* The `fetch` to use: `customFetchImpl` if given, or else the global one.
|
|
256
235
|
* Throws if there's none.
|
|
257
236
|
*/
|
|
258
237
|
export declare function getFetch(customFetchImpl?: FetchEsque | NativeFetchEsque): FetchEsque;
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region src/links/httpBatchStreamLink.d.ts
|
|
261
238
|
/**
|
|
262
239
|
* Options for {@link httpBatchStreamLink}. Takes the same options as
|
|
263
240
|
* `httpBatchLink`, plus `streamHeader`.
|
|
@@ -284,8 +261,6 @@ export declare function httpBatchStreamLink<TRouter extends AnyRouter$1>(opts: H
|
|
|
284
261
|
* @deprecated Use {@link httpBatchStreamLink} instead.
|
|
285
262
|
*/
|
|
286
263
|
export declare const unstable_httpBatchStreamLink: typeof httpBatchStreamLink;
|
|
287
|
-
//#endregion
|
|
288
|
-
//#region src/links/httpSubscriptionLink.d.ts
|
|
289
264
|
/**
|
|
290
265
|
* @see https://trpc.io/docs/client/links/httpSubscriptionLink#httpsubscriptionlink-options
|
|
291
266
|
*/
|
|
@@ -313,8 +288,6 @@ export declare function httpSubscriptionLink<TInferrable extends InferrableClien
|
|
|
313
288
|
* @deprecated Use {@link httpSubscriptionLink} instead.
|
|
314
289
|
*/
|
|
315
290
|
export declare const unstable_httpSubscriptionLink: typeof httpSubscriptionLink;
|
|
316
|
-
//#endregion
|
|
317
|
-
//#region src/links/retryLink.d.ts
|
|
318
291
|
interface RetryLinkOptions<TInferrable extends InferrableClientTypes> {
|
|
319
292
|
/**
|
|
320
293
|
* The retry function
|
|
@@ -346,8 +319,6 @@ interface RetryFnOptions<TInferrable extends InferrableClientTypes> {
|
|
|
346
319
|
* @see https://trpc.io/docs/client/links/retryLink
|
|
347
320
|
*/
|
|
348
321
|
export declare function retryLink<TInferrable extends InferrableClientTypes>(opts: RetryLinkOptions<TInferrable>): TRPCLink<TInferrable>;
|
|
349
|
-
//#endregion
|
|
350
|
-
//#region src/links/localLink.d.ts
|
|
351
322
|
/**
|
|
352
323
|
* Options for {@link localLink}.
|
|
353
324
|
*
|
|
@@ -387,6 +358,5 @@ export declare const unstable_localLink: typeof localLink;
|
|
|
387
358
|
* future major release.
|
|
388
359
|
*/
|
|
389
360
|
export declare const experimental_localLink: typeof localLink;
|
|
390
|
-
|
|
391
|
-
export { type CreateTRPCClientOptions, type Encoder, HTTPBatchLinkOptions, HTTPHeaders, HTTPLinkOptions, LoggerLinkOptions, Operation, OperationContext, OperationLink, OperationResultEnvelope, OperationResultObservable, OperationResultObserver, type SafeResult, TRPCClientError, TRPCClientErrorBase, TRPCClientErrorLike, TRPCClientRuntime, TRPCFetch, TRPCLink, type TRPCProcedureOptions, type TRPCTaggedPromise as TRPCPromise, type TRPCRequestOptions, type TRPCWebSocketClient, type WebSocketClientOptions, WebSocketLinkOptions, createTRPCClient as createTRPCProxyClient, createWSClient, httpBatchLink, httpLink, type inferRouterClient as inferRouterProxyClient, isTRPCClientError, jsonEncoder, loggerLink, splitLink, wsLink };
|
|
361
|
+
export { type CreateTRPCClientOptions, type Encoder, HTTPBatchLinkOptions, HTTPHeaders, HTTPLinkOptions, LoggerLinkOptions, Operation, OperationContext, OperationLink, OperationResultEnvelope, OperationResultObservable, OperationResultObserver, type SafeResult, TRPCClientError, TRPCClientErrorBase, TRPCClientErrorLike, TRPCClientRuntime, TRPCFetch, TRPCLink, type TRPCProcedureOptions, type TRPCTaggedPromise as TRPCPromise, type TRPCRequestOptions, type TRPCWebSocketClient, type WebSocketClientOptions, WebSocketLinkOptions, createTRPCClient as createTRPCProxyClient, createWSClient, httpBatchLink, httpLink, type inferRouterClient as inferRouterProxyClient, isFormData, isNonJsonSerializable, isOctetType, isTRPCClientError, jsonEncoder, loggerLink, splitLink, wsLink };
|
|
392
362
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["AnyRouter"],"sources":["../src/internals/TRPCUntypedClient.ts","../src/createTRPCUntypedClient.ts","../src/safe.ts","../src/createTRPCClient.ts","../src/getFetch.ts","../src/links/httpBatchStreamLink.ts","../src/links/httpSubscriptionLink.ts","../src/links/retryLink.ts","../src/links/localLink.ts"],"mappings":";;;;;;;;;;;;;UA6BiB;;;;;EAKf,UAAU;;;;;EAKV,SAAS;;;UAIM,yBAAyB,QAAQ;;EAEhD,YAAY;IAAQ,SAAS;;;EAE7B,SAAS,OAAO,wBAAwB;;EAExC,UAAU,KAAK;;;;;EAKf;;EAEA;;EAEA,0BAA0B,OAAO,oBAAoB;;KAGlD,oBAAoB;;;;;;KAOb,iCAAiC,SAAS,WAEnD,QAAQ,6BAER,cAAc,QAAQ;;;;;KAOb,0BAA0B,QAAQ,UAAU,QACtD,yBAAyB,QAAQ,cAG9B,QAAQ,cAAc,KAAK,yBAAyB,QAAQ,SAAS,SACtE;;;;;KAeQ,wBAAwB,gBAAgB;;;;;;EAMlD,OAAO,SAAS;EAChB,cAAc;;;;;;qBAOH,kBAAkB,oBAAoB;mBAChC;WACD,SAAS;UACjB;EAER,YAAY,MAAM,wBAAwB;UASlC;UAkBM;;EAmBP,MAAM,cAAc,iBAAiB,OAAO,qBAAkB;;EAU9D,SAAS,cAAc,iBAAiB,OAAO,qBAAkB;;;;;;;EAejE,aACL,cACA,gBACA,MAAM,mCAAmC,gBAAgB,cACvD,qBACD;EACI,aACL,cAAc,qBACZ,QAAQ,kCAAkC,gBAAgB,eAC1D,oBAEF,cACA,gBACA,OAAO,iCAAiC,SACvC;;;;;;wBCnMW,wBAAwB,gBAAgB,WACtD,MAAM,wBAAwB,WAC7B,kBAAkB;;;;cCLA;;;;;KAMT,kBAAkB,OAAO,eAAe,QAAQ;YAChD,gBAAgB;;;;;KAMhB,eAAe,eAAe;EACxC,YAAY;EACZ;;;;;;KAOU,WAAW,OAAO,yBAChB,MAAM,OAAO,8BACb,iBAAiB,OAAO,eAAe;;;;;;;;;;;;;;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d,kBAAkB,aAAa,mBAC9B;;;;;;;YCcS,2BAA2B,cAAc,kBACnD,qBAAqB;;;;;;;EAOnB;;;;;;;;wBASY,oBAAoB,gBAAgBA,aAClD,MAAM,2BAA2B,wCAChC,SAAS;;;;qBAsMC,qCAA4B;;;;KCvMpC,4BACH,cAAc,gBACd,qBAAqB,gBAAgB,wBAAwB;;;;;EAM7D,cAAc;;;;;EAKd,qBACI,gBAAgB,WAAW,kBACzB;IACA,IAAI;QAEF,gBAAgB,WAAW,gBAC3B,QAAQ,gBAAgB,WAAW;IACzC,KAAK,oBAAoB,2BAC3B,mBAAmB,SACnB;;;;;;wBAOc,qBACd,oBAAoB,uBACpB,qBAAqB,gBAAgB,gBAErC,MAAM,4BACJ,iBAAiB,cACjB,gBAED,SAAS;;;;qBA4KC,sCAA6B;UCpPhC,iBAAiB,oBAAoB;;;;EAI7C,QAAQ,MAAM,eAAe;;;;EAI7B,gBAAgB;;UAGR,eAAe,oBAAoB;;;;EAI3C,IAAI;;;;EAIJ,OAAO,gBAAgB;;;;EAIvB;;;;;;;;wBASc,UAAU,oBAAoB,uBAC5C,MAAM,iBAAiB,eACtB,SAAS;;;;;;YCVA,iBAAiB,gBAAgB;;;;;EAK3C,QAAQ;;;;;EAKR,qBAAqB,QAAQ,mBAAmB;;;;;EAKhD,WAAW,MAAM,oBAAoB,mBAAmB;IACtD,mBAAmB,iBAAiB;;;;;;;wBAQxB,UAAU,gBAAgB,WACxC,MAAM,iBAAiB,WACtB,SAAS;;;;;qBA4PC,2BAAkB;;;;;qBAMlB,+BAAsB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { t as TRPCConnectionState } from "./subscriptions-
|
|
2
|
-
import { a as OperationResultEnvelope, c as TRPCClientRuntime, d as TRPCClientError, f as TRPCClientErrorBase, g as NativeFetchEsque, h as FetchEsque, i as OperationLink, l as TRPCFetch, m as isTRPCClientError, n as Operation, o as OperationResultObservable, p as TRPCClientErrorLike, r as OperationContext, s as OperationResultObserver, t as HTTPHeaders, u as TRPCLink, v as TRPCProcedureOptions } from "./types-
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { t as TRPCConnectionState } from "./subscriptions-CvJnusYO.mjs";
|
|
2
|
+
import { a as OperationResultEnvelope, c as TRPCClientRuntime, d as TRPCClientError, f as TRPCClientErrorBase, g as NativeFetchEsque, h as FetchEsque, i as OperationLink, l as TRPCFetch, m as isTRPCClientError, n as Operation, o as OperationResultObservable, p as TRPCClientErrorLike, r as OperationContext, s as OperationResultObserver, t as HTTPHeaders, u as TRPCLink, v as TRPCProcedureOptions } from "./types-BG-3kpeg.mjs";
|
|
3
|
+
import { n as HTTPBatchLinkOptions, t as httpBatchLink } from "./httpBatchLink-Dk3_n5pP.mjs";
|
|
4
|
+
import { n as httpLink, t as HTTPLinkOptions } from "./httpLink-BjZdBzr6.mjs";
|
|
5
|
+
import { n as loggerLink, t as LoggerLinkOptions } from "./loggerLink-CBPx95zm.mjs";
|
|
6
|
+
import { t as splitLink } from "./splitLink-BtPz7lCB.mjs";
|
|
7
|
+
import { a as WebSocketClientOptions, c as jsonEncoder, i as createWSClient, n as wsLink, o as UrlOptionsWithConnectionParams, r as TRPCWebSocketClient, s as Encoder, t as WebSocketLinkOptions } from "./wsLink-DXfg9MiM.mjs";
|
|
8
|
+
import { n as TransformerOptions } from "./unstable-internals-CnrO49lh.mjs";
|
|
9
|
+
import { t as HTTPLinkBaseOptions } from "./httpUtils-gZ7bAQ6T.mjs";
|
|
10
10
|
import { Unsubscribable } from "@trpc/server/observable";
|
|
11
11
|
import { AnyClientTypes, AnyProcedure, AnyRouter, ErrorHandlerOptions, EventSourceLike, InferrableClientTypes, ProcedureType, RouterRecord, TypeError, inferAsyncIterableYield, inferClientTypes, inferProcedureErrorShape, inferProcedureInput, inferRouterContext, inferTransformedProcedureOutput } from "@trpc/server/unstable-core-do-not-import";
|
|
12
12
|
import { AnyRouter as AnyRouter$1 } from "@trpc/server";
|
|
13
|
-
//#region src/links/internals/contentTypes.d.ts
|
|
14
13
|
/** Whether an input is binary: a `Uint8Array`, `Blob` or `File`. */
|
|
15
14
|
export declare function isOctetType(input: unknown): input is Uint8Array<ArrayBuffer> | Blob;
|
|
16
15
|
/** Whether an input is `FormData`. */
|
|
@@ -21,8 +20,6 @@ export declare function isFormData(input: unknown): input is FormData;
|
|
|
21
20
|
* @see https://trpc.io/docs/server/non-json-content-types#client-setup
|
|
22
21
|
*/
|
|
23
22
|
export declare function isNonJsonSerializable(input: unknown): input is Blob | FormData | Uint8Array<ArrayBuffer>;
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/internals/TRPCUntypedClient.d.ts
|
|
26
23
|
/** The options of a call made with the untyped client. */
|
|
27
24
|
interface TRPCRequestOptions {
|
|
28
25
|
/**
|
|
@@ -105,15 +102,11 @@ export declare class TRPCUntypedClient<TInferrable extends InferrableClientTypes
|
|
|
105
102
|
subscription(path: string, input: unknown, opts: TRPCSubscriptionCallbacks<unknown, TRPCClientError<AnyRouter>> & TRPCRequestOptions): Unsubscribable;
|
|
106
103
|
subscription<TOpts extends TRPCRequestOptions & Partial<TRPCSubscriptionObserver<unknown, TRPCClientError<AnyRouter>>> = TRPCRequestOptions>(path: string, input: unknown, opts?: TRPCSubscriptionWithoutCallbacks<TOpts>): AsyncIterableIterator<unknown>;
|
|
107
104
|
}
|
|
108
|
-
//#endregion
|
|
109
|
-
//#region src/createTRPCUntypedClient.d.ts
|
|
110
105
|
/**
|
|
111
106
|
* Creates a client that calls procedures by path string, without types.
|
|
112
107
|
* Meant for libraries built on tRPC; apps should use `createTRPCClient`.
|
|
113
108
|
*/
|
|
114
109
|
export declare function createTRPCUntypedClient<TRouter extends AnyRouter>(opts: CreateTRPCClientOptions<TRouter>): TRPCUntypedClient<TRouter>;
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region src/safe.d.ts
|
|
117
110
|
/**
|
|
118
111
|
* @internal
|
|
119
112
|
*/
|
|
@@ -153,8 +146,6 @@ type SafeResult<TData, TErrorShape> = readonly [data: TData, error: undefined] |
|
|
|
153
146
|
* @see https://trpc.io/docs/client/vanilla/error-handling#errors-as-values-with-safe
|
|
154
147
|
*/
|
|
155
148
|
export declare function safe<TData, TErrorShape>(promise: TRPCTaggedPromise<TData, TErrorShape>): Promise<SafeResult<TData, TErrorShape>>;
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region src/createTRPCClient.d.ts
|
|
158
149
|
/**
|
|
159
150
|
* The type of a client for a router.
|
|
160
151
|
* @deprecated Use {@link TRPCClient} instead. This will be removed in v12.
|
|
@@ -249,15 +240,11 @@ export declare function createTRPCClient<TRouter extends AnyRouter>(opts: Create
|
|
|
249
240
|
* @internal
|
|
250
241
|
*/
|
|
251
242
|
export declare function getUntypedClient<TRouter extends AnyRouter>(client: TRPCClient<TRouter>): TRPCUntypedClient<TRouter>;
|
|
252
|
-
//#endregion
|
|
253
|
-
//#region src/getFetch.d.ts
|
|
254
243
|
/**
|
|
255
244
|
* The `fetch` to use: `customFetchImpl` if given, or else the global one.
|
|
256
245
|
* Throws if there's none.
|
|
257
246
|
*/
|
|
258
247
|
export declare function getFetch(customFetchImpl?: FetchEsque | NativeFetchEsque): FetchEsque;
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region src/links/httpBatchStreamLink.d.ts
|
|
261
248
|
/**
|
|
262
249
|
* Options for {@link httpBatchStreamLink}. Takes the same options as
|
|
263
250
|
* `httpBatchLink`, plus `streamHeader`.
|
|
@@ -284,8 +271,6 @@ export declare function httpBatchStreamLink<TRouter extends AnyRouter$1>(opts: H
|
|
|
284
271
|
* @deprecated Use {@link httpBatchStreamLink} instead.
|
|
285
272
|
*/
|
|
286
273
|
export declare const unstable_httpBatchStreamLink: typeof httpBatchStreamLink;
|
|
287
|
-
//#endregion
|
|
288
|
-
//#region src/links/httpSubscriptionLink.d.ts
|
|
289
274
|
/**
|
|
290
275
|
* @see https://trpc.io/docs/client/links/httpSubscriptionLink#httpsubscriptionlink-options
|
|
291
276
|
*/
|
|
@@ -313,8 +298,6 @@ export declare function httpSubscriptionLink<TInferrable extends InferrableClien
|
|
|
313
298
|
* @deprecated Use {@link httpSubscriptionLink} instead.
|
|
314
299
|
*/
|
|
315
300
|
export declare const unstable_httpSubscriptionLink: typeof httpSubscriptionLink;
|
|
316
|
-
//#endregion
|
|
317
|
-
//#region src/links/retryLink.d.ts
|
|
318
301
|
interface RetryLinkOptions<TInferrable extends InferrableClientTypes> {
|
|
319
302
|
/**
|
|
320
303
|
* The retry function
|
|
@@ -346,8 +329,6 @@ interface RetryFnOptions<TInferrable extends InferrableClientTypes> {
|
|
|
346
329
|
* @see https://trpc.io/docs/client/links/retryLink
|
|
347
330
|
*/
|
|
348
331
|
export declare function retryLink<TInferrable extends InferrableClientTypes>(opts: RetryLinkOptions<TInferrable>): TRPCLink<TInferrable>;
|
|
349
|
-
//#endregion
|
|
350
|
-
//#region src/links/localLink.d.ts
|
|
351
332
|
/**
|
|
352
333
|
* Options for {@link localLink}.
|
|
353
334
|
*
|
|
@@ -387,6 +368,5 @@ export declare const unstable_localLink: typeof localLink;
|
|
|
387
368
|
* future major release.
|
|
388
369
|
*/
|
|
389
370
|
export declare const experimental_localLink: typeof localLink;
|
|
390
|
-
//#endregion
|
|
391
371
|
export { type CreateTRPCClientOptions, type Encoder, HTTPBatchLinkOptions, HTTPHeaders, HTTPLinkOptions, LoggerLinkOptions, Operation, OperationContext, OperationLink, OperationResultEnvelope, OperationResultObservable, OperationResultObserver, type SafeResult, TRPCClientError, TRPCClientErrorBase, TRPCClientErrorLike, TRPCClientRuntime, TRPCFetch, TRPCLink, type TRPCProcedureOptions, type TRPCTaggedPromise as TRPCPromise, type TRPCRequestOptions, type TRPCWebSocketClient, type WebSocketClientOptions, WebSocketLinkOptions, createTRPCClient as createTRPCProxyClient, createWSClient, httpBatchLink, httpLink, type inferRouterClient as inferRouterProxyClient, isTRPCClientError, jsonEncoder, loggerLink, splitLink, wsLink };
|
|
392
372
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/links/internals/contentTypes.ts","../src/internals/TRPCUntypedClient.ts","../src/createTRPCUntypedClient.ts","../src/safe.ts","../src/createTRPCClient.ts","../src/getFetch.ts","../src/links/httpBatchStreamLink.ts","../src/links/httpSubscriptionLink.ts","../src/links/retryLink.ts","../src/links/localLink.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["AnyRouter"],"sources":["../src/links/internals/contentTypes.ts","../src/internals/TRPCUntypedClient.ts","../src/createTRPCUntypedClient.ts","../src/safe.ts","../src/createTRPCClient.ts","../src/getFetch.ts","../src/links/httpBatchStreamLink.ts","../src/links/httpSubscriptionLink.ts","../src/links/retryLink.ts","../src/links/localLink.ts"],"mappings":";;;;;;;;;;;;;wBACgB,YACd,iBACC,SAAS,WAAW,eAAe;;wBAStB,WAAW,iBAAc,SAAA;;;;;;wBASzB,sBAAsB,iBAAc,SAAA,OAAA,WAAA,WAAA;;UCQnC;;;;;EAKf,UAAU;;;;;EAKV,SAAS;;;UAIM,yBAAyB,QAAQ;;EAEhD,YAAY;IAAQ,SAAS;;;EAE7B,SAAS,OAAO,wBAAwB;;EAExC,UAAU,KAAK;;;;;EAKf;;EAEA;;EAEA,0BAA0B,OAAO,oBAAoB;;KAGlD,oBAAoB;;;;;;KAOb,iCAAiC,SAAS,WAEnD,QAAQ,6BAER,cAAc,QAAQ;;;;;KAOb,0BAA0B,QAAQ,UAAU,QACtD,yBAAyB,QAAQ,cAG9B,QAAQ,cAAc,KAAK,yBAAyB,QAAQ,SAAS,SACtE;;;;;KAeQ,wBAAwB,gBAAgB;;;;;;EAMlD,OAAO,SAAS;EAChB,cAAc;;;;;;qBAOH,kBAA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