@trpc/client 10.32.0 → 10.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TRPCClientError.d.ts +1 -1
- package/dist/TRPCClientError.d.ts.map +1 -1
- package/dist/createTRPCClient.d.ts +1 -1
- package/dist/createTRPCClient.d.ts.map +1 -1
- package/dist/createTRPCClientProxy.d.ts +1 -1
- package/dist/createTRPCClientProxy.d.ts.map +1 -1
- package/dist/getFetch.d.ts.map +1 -1
- package/dist/{httpBatchLink-38dcf5f2.js → httpBatchLink-76c6f2d4.js} +9 -6
- package/dist/{httpBatchLink-e66c0674.mjs → httpBatchLink-c184c799.mjs} +9 -6
- package/dist/{httpBatchLink-f35df745.js → httpBatchLink-c64f6cdb.js} +9 -6
- package/dist/{httpUtils-145e783b.js → httpUtils-a0ac1597.js} +15 -18
- package/dist/{httpUtils-b2fcc20c.mjs → httpUtils-a9242d4e.mjs} +15 -18
- package/dist/{httpUtils-21cbb35d.js → httpUtils-fa0d6f71.js} +15 -18
- package/dist/index.js +5 -3
- package/dist/index.mjs +7 -5
- package/dist/internals/TRPCUntypedClient.d.ts +2 -2
- package/dist/internals/TRPCUntypedClient.d.ts.map +1 -1
- package/dist/internals/dataLoader.d.ts.map +1 -1
- package/dist/internals/types.d.ts +4 -6
- package/dist/internals/types.d.ts.map +1 -1
- package/dist/links/httpBatchLink.js +2 -2
- package/dist/links/httpBatchLink.mjs +2 -2
- package/dist/links/httpBatchStreamLink.d.ts.map +1 -1
- package/dist/links/httpLink.d.ts.map +1 -1
- package/dist/links/httpLink.js +4 -2
- package/dist/links/httpLink.mjs +4 -2
- package/dist/links/internals/createHTTPBatchLink.d.ts.map +1 -1
- package/dist/links/internals/httpUtils.d.ts +5 -5
- package/dist/links/internals/httpUtils.d.ts.map +1 -1
- package/dist/links/internals/parseJSONStream.d.ts +1 -1
- package/dist/links/internals/parseJSONStream.d.ts.map +1 -1
- package/dist/links/loggerLink.d.ts +14 -9
- package/dist/links/loggerLink.d.ts.map +1 -1
- package/dist/links/loggerLink.js +109 -46
- package/dist/links/loggerLink.mjs +109 -46
- package/dist/links/types.d.ts +3 -3
- package/dist/links/types.d.ts.map +1 -1
- package/dist/links/wsLink.js +1 -1
- package/dist/links/wsLink.mjs +1 -1
- package/dist/shared/transformResult.d.ts +2 -2
- package/dist/shared/transformResult.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/TRPCClientError.ts +1 -1
- package/src/createTRPCClient.ts +2 -2
- package/src/createTRPCClientProxy.ts +7 -7
- package/src/getFetch.ts +2 -7
- package/src/internals/TRPCUntypedClient.ts +10 -8
- package/src/internals/dataLoader.ts +1 -2
- package/src/internals/types.ts +4 -6
- package/src/links/httpBatchStreamLink.ts +3 -1
- package/src/links/httpLink.ts +3 -1
- package/src/links/internals/createHTTPBatchLink.ts +7 -3
- package/src/links/internals/httpUtils.ts +19 -18
- package/src/links/internals/parseJSONStream.ts +2 -2
- package/src/links/loggerLink.ts +124 -51
- package/src/links/types.ts +4 -4
- package/src/links/wsLink.ts +2 -2
- package/src/shared/transformResult.ts +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyProcedure, AnyRouter, DefaultErrorShape, inferRouterError, Maybe } from '@trpc/server';
|
|
2
2
|
import { TRPCErrorResponse, TRPCErrorShape } from '@trpc/server/rpc';
|
|
3
|
-
type ErrorInferrable =
|
|
3
|
+
type ErrorInferrable = AnyProcedure | AnyRouter | TRPCErrorShape<number>;
|
|
4
4
|
type inferErrorShape<TInferrable extends ErrorInferrable> = TInferrable extends AnyRouter ? inferRouterError<TInferrable> : TInferrable extends AnyProcedure ? TInferrable['_def']['_config']['$types']['errorShape'] : TInferrable;
|
|
5
5
|
export interface TRPCClientErrorBase<TShape extends DefaultErrorShape> {
|
|
6
6
|
readonly message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TRPCClientError.d.ts","sourceRoot":"","sources":["../src/TRPCClientError.ts"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AEnE,SAAgB,KAAK,oBAAC;IACtB,SAAgB,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAClE,SAAgB,IAAI,EAAE,KAAK,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IACzE,SAAgB,IAAI,sCAAC;gBAGnB,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE;QACL,MAAM,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC,CAAC;QACpD,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChC;WAkBW,IAAI,CAAC,kBAAkB,SAAS,eAAe,EAC3D,KAAK,EAAE,KAAK,GAAG,iBAAiB,CAAC,GAAG,CAAC,EACrC,IAAI,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAO,GAC5C,eAAe,CAAC,kBAAkB,CAAC;CAqBvC"}
|
|
@@ -11,7 +11,7 @@ export interface TRPCClient<TRouter extends AnyRouter> {
|
|
|
11
11
|
readonly runtime: TRPCClientRuntime;
|
|
12
12
|
query<TQueries extends TRouter['_def']['queries'], TPath extends string & keyof TQueries, TInput extends inferProcedureInput<TQueries[TPath]>>(path: TPath, input?: TInput, opts?: TRPCRequestOptions): Promise<inferProcedureOutput<TQueries[TPath]>>;
|
|
13
13
|
mutation<TMutations extends TRouter['_def']['mutations'], TPath extends string & keyof TMutations, TInput extends inferProcedureInput<TMutations[TPath]>>(path: TPath, input?: TInput, opts?: TRPCRequestOptions): Promise<inferTransformedProcedureOutput<TMutations[TPath]>>;
|
|
14
|
-
subscription<TSubscriptions extends TRouter['_def']['subscriptions'], TPath extends string & keyof TSubscriptions, TOutput extends inferSubscriptionOutput<TRouter, TPath>, TInput extends inferProcedureInput<TSubscriptions[TPath]>>(path: TPath, input: TInput, opts:
|
|
14
|
+
subscription<TSubscriptions extends TRouter['_def']['subscriptions'], TPath extends string & keyof TSubscriptions, TOutput extends inferSubscriptionOutput<TRouter, TPath>, TInput extends inferProcedureInput<TSubscriptions[TPath]>>(path: TPath, input: TInput, opts: Partial<TRPCSubscriptionObserver<TOutput, TRPCClientError<TRouter>>> & TRPCRequestOptions): Unsubscribable;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* @deprecated use `createTRPCProxyClient` instead
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTRPCClient.d.ts","sourceRoot":"","sources":["../src/createTRPCClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,OAAO,SAAS,SAAS;IACnD,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACpC,KAAK,CACH,QAAQ,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAC3C,KAAK,SAAS,MAAM,GAAG,MAAM,QAAQ,EACrC,MAAM,SAAS,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAEnD,IAAI,EAAE,KAAK,EACX,KAAK,CAAC,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,kBAAkB,GACxB,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,C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RouterProxyClient<TRouter extends AnyRouter> = DecoratedProcedu
|
|
|
13
13
|
export type Resolver<TProcedure extends AnyProcedure> = (...args: ProcedureArgs<TProcedure['_def']>) => Promise<inferTransformedProcedureOutput<TProcedure>>;
|
|
14
14
|
type SubscriptionResolver<TProcedure extends AnyProcedure> = (...args: [
|
|
15
15
|
input: ProcedureArgs<TProcedure['_def']>[0],
|
|
16
|
-
opts:
|
|
16
|
+
opts: Partial<TRPCSubscriptionObserver<inferTransformedSubscriptionOutput<TProcedure>, TRPCClientError<TProcedure>>> & ProcedureArgs<TProcedure['_def']>[1]
|
|
17
17
|
]) => Unsubscribable;
|
|
18
18
|
type DecorateProcedure<TProcedure extends AnyProcedure> = TProcedure extends AnyQueryProcedure ? {
|
|
19
19
|
query: Resolver<TProcedure>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTRPCClientProxy.d.ts","sourceRoot":"","sources":["../src/createTRPCClientProxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,aAAa,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAGL,+BAA+B,EAC/B,kCAAkC,EACnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;IAEI;AACJ,MAAM,MAAM,sBAAsB,CAAC,OAAO,SAAS,SAAS,IAC1D,wBAAwB,CAAC,OAAO,EAAE,OAAO,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,MAAM,6BAA6B,mBACxB,MAAM,KACrB,aAEF,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,OAAO,SAAS,SAAS,IACzD,sBAAsB,CAAC,OAAO,CAAC,SAAS,MAAM,gBAAgB,GAC1D,uBAAuB,GAAG,MAAM,gBAAgB,SAAS,KAAK,GAC5D,sBAAsB,CAAC,OAAO,CAAC,GAC/B,iBAAiB,CAAC,uBAAuB,GAAG,MAAM,gBAAgB,CAAC,GACrE,KAAK,CAAC;AAEZ;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,SAAS,SAAS,EAC7D,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,GAC1B,qBAAqB,CAAC,OAAO,CAAC,CAiBhC;AAED,wBAAgB,qBAAqB,CAAC,OAAO,SAAS,SAAS,EAC7D,IAAI,EAAE,uBAAuB,CAAC,OAAO,CAAC,GACrC,qBAAqB,CAAC,OAAO,CAAC,CAIhC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,SAAS,EACxD,MAAM,EAAE,sBAAsB,CAAC,OAAO,CAAC,GACtC,iBAAiB,CAAC,OAAO,CAAC,CAE5B"}
|
package/dist/getFetch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFetch.d.ts","sourceRoot":"","sources":["../src/getFetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"getFetch.d.ts","sourceRoot":"","sources":["../src/getFetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAMjE,wBAAgB,QAAQ,CACtB,eAAe,CAAC,EAAE,UAAU,GAAG,gBAAgB,GAC9C,UAAU,CAcZ"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var observable = require('@trpc/server/observable');
|
|
4
4
|
var transformResult = require('./transformResult-70f95ffb.js');
|
|
5
|
-
var httpUtils = require('./httpUtils-
|
|
5
|
+
var httpUtils = require('./httpUtils-fa0d6f71.js');
|
|
6
6
|
|
|
7
7
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */ /**
|
|
8
8
|
* A function that should never be called unless we messed something up.
|
|
@@ -85,8 +85,7 @@ var httpUtils = require('./httpUtils-21cbb35d.js');
|
|
|
85
85
|
const value = result[i];
|
|
86
86
|
unitResolver(i, value);
|
|
87
87
|
}
|
|
88
|
-
for(
|
|
89
|
-
const item = batch.items[i1];
|
|
88
|
+
for (const item of batch.items){
|
|
90
89
|
item.reject?.(new Error('Missing result'));
|
|
91
90
|
item.batch = null;
|
|
92
91
|
}
|
|
@@ -140,7 +139,7 @@ var httpUtils = require('./httpUtils-21cbb35d.js');
|
|
|
140
139
|
*/ function createHTTPBatchLink(requester) {
|
|
141
140
|
return function httpBatchLink(opts) {
|
|
142
141
|
const resolvedOpts = httpUtils.resolveHTTPLinkOptions(opts);
|
|
143
|
-
const maxURLLength = opts.maxURLLength
|
|
142
|
+
const maxURLLength = opts.maxURLLength ?? Infinity;
|
|
144
143
|
// initialized config
|
|
145
144
|
return (runtime)=>{
|
|
146
145
|
const batchLoader = (type)=>{
|
|
@@ -196,8 +195,12 @@ var httpUtils = require('./httpUtils-21cbb35d.js');
|
|
|
196
195
|
result: transformed.result
|
|
197
196
|
});
|
|
198
197
|
observer.complete();
|
|
199
|
-
}).catch((err)=>
|
|
200
|
-
|
|
198
|
+
}).catch((err)=>{
|
|
199
|
+
observer.error(transformResult.TRPCClientError.from(err));
|
|
200
|
+
});
|
|
201
|
+
return ()=>{
|
|
202
|
+
cancel();
|
|
203
|
+
};
|
|
201
204
|
});
|
|
202
205
|
};
|
|
203
206
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { observable } from '@trpc/server/observable';
|
|
2
2
|
import { t as transformResult, T as TRPCClientError } from './transformResult-9a244fe7.mjs';
|
|
3
|
-
import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from './httpUtils-
|
|
3
|
+
import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from './httpUtils-a9242d4e.mjs';
|
|
4
4
|
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */ /**
|
|
6
6
|
* A function that should never be called unless we messed something up.
|
|
@@ -83,8 +83,7 @@ import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from
|
|
|
83
83
|
const value = result[i];
|
|
84
84
|
unitResolver(i, value);
|
|
85
85
|
}
|
|
86
|
-
for(
|
|
87
|
-
const item = batch.items[i1];
|
|
86
|
+
for (const item of batch.items){
|
|
88
87
|
item.reject?.(new Error('Missing result'));
|
|
89
88
|
item.batch = null;
|
|
90
89
|
}
|
|
@@ -138,7 +137,7 @@ import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from
|
|
|
138
137
|
*/ function createHTTPBatchLink(requester) {
|
|
139
138
|
return function httpBatchLink(opts) {
|
|
140
139
|
const resolvedOpts = resolveHTTPLinkOptions(opts);
|
|
141
|
-
const maxURLLength = opts.maxURLLength
|
|
140
|
+
const maxURLLength = opts.maxURLLength ?? Infinity;
|
|
142
141
|
// initialized config
|
|
143
142
|
return (runtime)=>{
|
|
144
143
|
const batchLoader = (type)=>{
|
|
@@ -194,8 +193,12 @@ import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from
|
|
|
194
193
|
result: transformed.result
|
|
195
194
|
});
|
|
196
195
|
observer.complete();
|
|
197
|
-
}).catch((err)=>
|
|
198
|
-
|
|
196
|
+
}).catch((err)=>{
|
|
197
|
+
observer.error(TRPCClientError.from(err));
|
|
198
|
+
});
|
|
199
|
+
return ()=>{
|
|
200
|
+
cancel();
|
|
201
|
+
};
|
|
199
202
|
});
|
|
200
203
|
};
|
|
201
204
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { observable } from '@trpc/server/observable';
|
|
2
2
|
import { t as transformResult, T as TRPCClientError } from './transformResult-ae8e970c.js';
|
|
3
|
-
import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from './httpUtils-
|
|
3
|
+
import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from './httpUtils-a0ac1597.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A function that should never be called unless we messed something up.
|
|
@@ -86,8 +86,7 @@ function dataLoader(batchLoader) {
|
|
|
86
86
|
const value = result[i];
|
|
87
87
|
unitResolver(i, value);
|
|
88
88
|
}
|
|
89
|
-
for (
|
|
90
|
-
const item = batch.items[i];
|
|
89
|
+
for (const item of batch.items) {
|
|
91
90
|
item.reject?.(new Error('Missing result'));
|
|
92
91
|
item.batch = null;
|
|
93
92
|
}
|
|
@@ -140,7 +139,7 @@ function dataLoader(batchLoader) {
|
|
|
140
139
|
function createHTTPBatchLink(requester) {
|
|
141
140
|
return function httpBatchLink(opts) {
|
|
142
141
|
const resolvedOpts = resolveHTTPLinkOptions(opts);
|
|
143
|
-
const maxURLLength = opts.maxURLLength
|
|
142
|
+
const maxURLLength = opts.maxURLLength ?? Infinity;
|
|
144
143
|
// initialized config
|
|
145
144
|
return (runtime) => {
|
|
146
145
|
const batchLoader = (type) => {
|
|
@@ -191,8 +190,12 @@ function createHTTPBatchLink(requester) {
|
|
|
191
190
|
});
|
|
192
191
|
observer.complete();
|
|
193
192
|
})
|
|
194
|
-
.catch((err) =>
|
|
195
|
-
|
|
193
|
+
.catch((err) => {
|
|
194
|
+
observer.error(TRPCClientError.from(err));
|
|
195
|
+
});
|
|
196
|
+
return () => {
|
|
197
|
+
cancel();
|
|
198
|
+
};
|
|
196
199
|
});
|
|
197
200
|
};
|
|
198
201
|
};
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
const isFunction = (fn) => typeof fn === 'function';
|
|
2
|
-
function _bind(fn, thisArg) {
|
|
3
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
4
|
-
return isFunction(fn.bind) ? fn.bind(thisArg) : fn;
|
|
5
|
-
}
|
|
6
2
|
function getFetch(customFetchImpl) {
|
|
7
3
|
if (customFetchImpl) {
|
|
8
4
|
return customFetchImpl;
|
|
9
5
|
}
|
|
10
6
|
if (typeof window !== 'undefined' && isFunction(window.fetch)) {
|
|
11
|
-
return
|
|
7
|
+
return window.fetch;
|
|
12
8
|
}
|
|
13
9
|
if (typeof globalThis !== 'undefined' && isFunction(globalThis.fetch)) {
|
|
14
|
-
return
|
|
10
|
+
return globalThis.fetch;
|
|
15
11
|
}
|
|
16
12
|
throw new Error('No fetch implementation found');
|
|
17
13
|
}
|
|
@@ -32,7 +28,7 @@ function getAbortController(customAbortControllerImpl) {
|
|
|
32
28
|
function resolveHTTPLinkOptions(opts) {
|
|
33
29
|
return {
|
|
34
30
|
url: opts.url,
|
|
35
|
-
fetch:
|
|
31
|
+
fetch: opts.fetch,
|
|
36
32
|
AbortController: getAbortController(opts.AbortController),
|
|
37
33
|
};
|
|
38
34
|
}
|
|
@@ -90,24 +86,25 @@ async function fetchHTTPResponse(opts, ac) {
|
|
|
90
86
|
const url = opts.getUrl(opts);
|
|
91
87
|
const body = opts.getBody(opts);
|
|
92
88
|
const { type } = opts;
|
|
93
|
-
const
|
|
89
|
+
const resolvedHeaders = await opts.headers();
|
|
94
90
|
/* istanbul ignore if -- @preserve */
|
|
95
91
|
if (type === 'subscription') {
|
|
96
92
|
throw new Error('Subscriptions should use wsLink');
|
|
97
93
|
}
|
|
98
|
-
|
|
94
|
+
const headers = {
|
|
95
|
+
...(opts.contentTypeHeader
|
|
96
|
+
? { 'content-type': opts.contentTypeHeader }
|
|
97
|
+
: {}),
|
|
98
|
+
...(opts.batchModeHeader
|
|
99
|
+
? { 'trpc-batch-mode': opts.batchModeHeader }
|
|
100
|
+
: {}),
|
|
101
|
+
...resolvedHeaders,
|
|
102
|
+
};
|
|
103
|
+
return getFetch(opts.fetch)(url, {
|
|
99
104
|
method: METHOD[type],
|
|
100
105
|
signal: ac?.signal,
|
|
101
106
|
body: body,
|
|
102
|
-
headers
|
|
103
|
-
...(opts.contentTypeHeader
|
|
104
|
-
? { 'content-type': opts.contentTypeHeader }
|
|
105
|
-
: {}),
|
|
106
|
-
...(opts.batchModeHeader
|
|
107
|
-
? { 'trpc-batch-mode': opts.batchModeHeader }
|
|
108
|
-
: {}),
|
|
109
|
-
...headers,
|
|
110
|
-
},
|
|
107
|
+
headers,
|
|
111
108
|
});
|
|
112
109
|
}
|
|
113
110
|
function httpRequest(opts) {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
const isFunction = (fn)=>typeof fn === 'function';
|
|
2
|
-
function _bind(fn, thisArg) {
|
|
3
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
4
|
-
return isFunction(fn.bind) ? fn.bind(thisArg) : fn;
|
|
5
|
-
}
|
|
6
2
|
function getFetch(customFetchImpl) {
|
|
7
3
|
if (customFetchImpl) {
|
|
8
4
|
return customFetchImpl;
|
|
9
5
|
}
|
|
10
6
|
if (typeof window !== 'undefined' && isFunction(window.fetch)) {
|
|
11
|
-
return
|
|
7
|
+
return window.fetch;
|
|
12
8
|
}
|
|
13
9
|
if (typeof globalThis !== 'undefined' && isFunction(globalThis.fetch)) {
|
|
14
|
-
return
|
|
10
|
+
return globalThis.fetch;
|
|
15
11
|
}
|
|
16
12
|
throw new Error('No fetch implementation found');
|
|
17
13
|
}
|
|
@@ -32,7 +28,7 @@ function getAbortController(customAbortControllerImpl) {
|
|
|
32
28
|
function resolveHTTPLinkOptions(opts) {
|
|
33
29
|
return {
|
|
34
30
|
url: opts.url,
|
|
35
|
-
fetch:
|
|
31
|
+
fetch: opts.fetch,
|
|
36
32
|
AbortController: getAbortController(opts.AbortController)
|
|
37
33
|
};
|
|
38
34
|
}
|
|
@@ -88,23 +84,24 @@ async function fetchHTTPResponse(opts, ac) {
|
|
|
88
84
|
const url = opts.getUrl(opts);
|
|
89
85
|
const body = opts.getBody(opts);
|
|
90
86
|
const { type } = opts;
|
|
91
|
-
const
|
|
87
|
+
const resolvedHeaders = await opts.headers();
|
|
92
88
|
/* istanbul ignore if -- @preserve */ if (type === 'subscription') {
|
|
93
89
|
throw new Error('Subscriptions should use wsLink');
|
|
94
90
|
}
|
|
95
|
-
|
|
91
|
+
const headers = {
|
|
92
|
+
...opts.contentTypeHeader ? {
|
|
93
|
+
'content-type': opts.contentTypeHeader
|
|
94
|
+
} : {},
|
|
95
|
+
...opts.batchModeHeader ? {
|
|
96
|
+
'trpc-batch-mode': opts.batchModeHeader
|
|
97
|
+
} : {},
|
|
98
|
+
...resolvedHeaders
|
|
99
|
+
};
|
|
100
|
+
return getFetch(opts.fetch)(url, {
|
|
96
101
|
method: METHOD[type],
|
|
97
102
|
signal: ac?.signal,
|
|
98
103
|
body: body,
|
|
99
|
-
headers
|
|
100
|
-
...opts.contentTypeHeader ? {
|
|
101
|
-
'content-type': opts.contentTypeHeader
|
|
102
|
-
} : {},
|
|
103
|
-
...opts.batchModeHeader ? {
|
|
104
|
-
'trpc-batch-mode': opts.batchModeHeader
|
|
105
|
-
} : {},
|
|
106
|
-
...headers
|
|
107
|
-
}
|
|
104
|
+
headers
|
|
108
105
|
});
|
|
109
106
|
}
|
|
110
107
|
function httpRequest(opts) {
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const isFunction = (fn)=>typeof fn === 'function';
|
|
4
|
-
function _bind(fn, thisArg) {
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
6
|
-
return isFunction(fn.bind) ? fn.bind(thisArg) : fn;
|
|
7
|
-
}
|
|
8
4
|
function getFetch(customFetchImpl) {
|
|
9
5
|
if (customFetchImpl) {
|
|
10
6
|
return customFetchImpl;
|
|
11
7
|
}
|
|
12
8
|
if (typeof window !== 'undefined' && isFunction(window.fetch)) {
|
|
13
|
-
return
|
|
9
|
+
return window.fetch;
|
|
14
10
|
}
|
|
15
11
|
if (typeof globalThis !== 'undefined' && isFunction(globalThis.fetch)) {
|
|
16
|
-
return
|
|
12
|
+
return globalThis.fetch;
|
|
17
13
|
}
|
|
18
14
|
throw new Error('No fetch implementation found');
|
|
19
15
|
}
|
|
@@ -34,7 +30,7 @@ function getAbortController(customAbortControllerImpl) {
|
|
|
34
30
|
function resolveHTTPLinkOptions(opts) {
|
|
35
31
|
return {
|
|
36
32
|
url: opts.url,
|
|
37
|
-
fetch:
|
|
33
|
+
fetch: opts.fetch,
|
|
38
34
|
AbortController: getAbortController(opts.AbortController)
|
|
39
35
|
};
|
|
40
36
|
}
|
|
@@ -90,23 +86,24 @@ async function fetchHTTPResponse(opts, ac) {
|
|
|
90
86
|
const url = opts.getUrl(opts);
|
|
91
87
|
const body = opts.getBody(opts);
|
|
92
88
|
const { type } = opts;
|
|
93
|
-
const
|
|
89
|
+
const resolvedHeaders = await opts.headers();
|
|
94
90
|
/* istanbul ignore if -- @preserve */ if (type === 'subscription') {
|
|
95
91
|
throw new Error('Subscriptions should use wsLink');
|
|
96
92
|
}
|
|
97
|
-
|
|
93
|
+
const headers = {
|
|
94
|
+
...opts.contentTypeHeader ? {
|
|
95
|
+
'content-type': opts.contentTypeHeader
|
|
96
|
+
} : {},
|
|
97
|
+
...opts.batchModeHeader ? {
|
|
98
|
+
'trpc-batch-mode': opts.batchModeHeader
|
|
99
|
+
} : {},
|
|
100
|
+
...resolvedHeaders
|
|
101
|
+
};
|
|
102
|
+
return getFetch(opts.fetch)(url, {
|
|
98
103
|
method: METHOD[type],
|
|
99
104
|
signal: ac?.signal,
|
|
100
105
|
body: body,
|
|
101
|
-
headers
|
|
102
|
-
...opts.contentTypeHeader ? {
|
|
103
|
-
'content-type': opts.contentTypeHeader
|
|
104
|
-
} : {},
|
|
105
|
-
...opts.batchModeHeader ? {
|
|
106
|
-
'trpc-batch-mode': opts.batchModeHeader
|
|
107
|
-
} : {},
|
|
108
|
-
...headers
|
|
109
|
-
}
|
|
106
|
+
headers
|
|
110
107
|
});
|
|
111
108
|
}
|
|
112
109
|
function httpRequest(opts) {
|
package/dist/index.js
CHANGED
|
@@ -6,8 +6,8 @@ var observable = require('@trpc/server/observable');
|
|
|
6
6
|
var links_splitLink = require('./splitLink-f29e84be.js');
|
|
7
7
|
var transformResult = require('./transformResult-70f95ffb.js');
|
|
8
8
|
var shared = require('@trpc/server/shared');
|
|
9
|
-
var httpUtils = require('./httpUtils-
|
|
10
|
-
var links_httpBatchLink = require('./httpBatchLink-
|
|
9
|
+
var httpUtils = require('./httpUtils-fa0d6f71.js');
|
|
10
|
+
var links_httpBatchLink = require('./httpBatchLink-76c6f2d4.js');
|
|
11
11
|
var links_httpLink = require('./links/httpLink.js');
|
|
12
12
|
var links_loggerLink = require('./links/loggerLink.js');
|
|
13
13
|
var links_wsLink = require('./links/wsLink.js');
|
|
@@ -317,7 +317,9 @@ const streamRequester = (requesterOpts)=>{
|
|
|
317
317
|
}
|
|
318
318
|
return requesterOpts.opts.headers;
|
|
319
319
|
}
|
|
320
|
-
}, (index, res)=>
|
|
320
|
+
}, (index, res)=>{
|
|
321
|
+
unitResolver(index, res);
|
|
322
|
+
});
|
|
321
323
|
return {
|
|
322
324
|
/**
|
|
323
325
|
* return an empty array because the batchLoader expects an array of results
|
package/dist/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@ export { s as splitLink } from './splitLink-4c75f7be.mjs';
|
|
|
4
4
|
import { T as TRPCClientError } from './transformResult-9a244fe7.mjs';
|
|
5
5
|
export { T as TRPCClientError } from './transformResult-9a244fe7.mjs';
|
|
6
6
|
import { createFlatProxy, createRecursiveProxy } from '@trpc/server/shared';
|
|
7
|
-
import { f as fetchHTTPResponse, g as getUrl, a as getBody$1, h as httpRequest } from './httpUtils-
|
|
8
|
-
export { b as getFetch } from './httpUtils-
|
|
9
|
-
import { c as createHTTPBatchLink } from './httpBatchLink-
|
|
10
|
-
export { h as httpBatchLink } from './httpBatchLink-
|
|
7
|
+
import { f as fetchHTTPResponse, g as getUrl, a as getBody$1, h as httpRequest } from './httpUtils-a9242d4e.mjs';
|
|
8
|
+
export { b as getFetch } from './httpUtils-a9242d4e.mjs';
|
|
9
|
+
import { c as createHTTPBatchLink } from './httpBatchLink-c184c799.mjs';
|
|
10
|
+
export { h as httpBatchLink } from './httpBatchLink-c184c799.mjs';
|
|
11
11
|
import { httpLinkFactory } from './links/httpLink.mjs';
|
|
12
12
|
export { httpLink, httpLinkFactory } from './links/httpLink.mjs';
|
|
13
13
|
export { loggerLink } from './links/loggerLink.mjs';
|
|
@@ -318,7 +318,9 @@ const streamRequester = (requesterOpts)=>{
|
|
|
318
318
|
}
|
|
319
319
|
return requesterOpts.opts.headers;
|
|
320
320
|
}
|
|
321
|
-
}, (index, res)=>
|
|
321
|
+
}, (index, res)=>{
|
|
322
|
+
unitResolver(index, res);
|
|
323
|
+
});
|
|
322
324
|
return {
|
|
323
325
|
/**
|
|
324
326
|
* return an empty array because the batchLoader expects an array of results
|
|
@@ -46,7 +46,7 @@ export type CreateTRPCClientOptions<TRouter extends AnyRouter> = CreateTRPCClien
|
|
|
46
46
|
links: TRPCLink<TRouter>[];
|
|
47
47
|
};
|
|
48
48
|
/** @internal */
|
|
49
|
-
export type UntypedClientProperties = '
|
|
49
|
+
export type UntypedClientProperties = '$request' | 'links' | 'mutation' | 'query' | 'requestAsPromise' | 'requestId' | 'runtime' | 'subscription';
|
|
50
50
|
export declare class TRPCUntypedClient<TRouter extends AnyRouter> {
|
|
51
51
|
private readonly links;
|
|
52
52
|
readonly runtime: TRPCClientRuntime;
|
|
@@ -56,7 +56,7 @@ export declare class TRPCUntypedClient<TRouter extends AnyRouter> {
|
|
|
56
56
|
private requestAsPromise;
|
|
57
57
|
query(path: string, input?: unknown, opts?: TRPCRequestOptions): Promise<unknown>;
|
|
58
58
|
mutation(path: string, input?: unknown, opts?: TRPCRequestOptions): Promise<unknown>;
|
|
59
|
-
subscription(path: string, input: unknown, opts:
|
|
59
|
+
subscription(path: string, input: unknown, opts: Partial<TRPCSubscriptionObserver<unknown, TRPCClientError<AnyRouter>>> & TRPCRequestOptions): Unsubscribable;
|
|
60
60
|
}
|
|
61
61
|
export {};
|
|
62
62
|
//# sourceMappingURL=TRPCUntypedClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TRPCUntypedClient.d.ts","sourceRoot":"","sources":["../../src/internals/TRPCUntypedClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAIL,cAAc,EACf,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,gBAAgB,EAEhB,iBAAiB,EACjB,QAAQ,EACT,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,KAAK,2BAA2B,CAAC,OAAO,SAAS,SAAS,IACxD,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,SAAS,sBAAsB,GACpE;IACE;;;;;QAKI;IACJ,WAAW,CAAC,EAAE,kDAAkD,CAAC;CAClE,GACD,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,SAAS,sBAAsB,GACxE;IACE;;;;;QAKI;IACJ,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,SAAS,uBAAuB,GAClF,sBAAsB,GACtB,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;CAC/C,GACD;IACE;;;;;QAKI;IACJ,WAAW,CAAC,EACR,mBAAmB,CAAC,4BAA4B,GAChD,uBAAuB,CAAC;CAC7B,CAAC;AAGR,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,gBA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OAAO,CAAC,QAAQ;IAuBhB,OAAO,CAAC,gBAAgB;IAyBjB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,kBAAkB;IAS9D,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,kBAAkB;IASjE,YAAY,CACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,CACX,wBAAwB,CAAC,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,CAC9D,GACC,kBAAkB,GACnB,cAAc;CAyBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataLoader.d.ts","sourceRoot":"","sources":["../../src/internals/dataLoader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAa5D,KAAK,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC;IACpC,KAAK,EAAE,CACL,IAAI,EAAE,IAAI,EAAE,EACZ,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,KAC9D;QACH,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QAC3B,MAAM,EAAE,QAAQ,CAAC;KAClB,CAAC;CACH,CAAC;AAWF;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EACrC,WAAW,EAAE,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"dataLoader.d.ts","sourceRoot":"","sources":["../../src/internals/dataLoader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAa5D,KAAK,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC;IACpC,KAAK,EAAE,CACL,IAAI,EAAE,IAAI,EAAE,EACZ,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,KAC9D;QACH,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QAC3B,MAAM,EAAE,QAAQ,CAAC;KAClB,CAAC;CACH,CAAC;AAWF;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EACrC,WAAW,EAAE,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC;gBAqGnB,IAAI,KAAG,iBAAiB,MAAM,CAAC;EAsCnD"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
export
|
|
3
|
-
new (): AbortControllerInstanceEsque;
|
|
4
|
-
}
|
|
2
|
+
export type AbortControllerEsque = new () => AbortControllerInstanceEsque;
|
|
5
3
|
/**
|
|
6
4
|
* Allows you to abort one or more requests.
|
|
7
5
|
*/
|
|
@@ -28,7 +26,7 @@ export type FetchEsque = (input: RequestInfo | URL | string, init?: RequestInit
|
|
|
28
26
|
* A simpler version of the native fetch function's type for packages with
|
|
29
27
|
* their own fetch types, such as undici and node-fetch.
|
|
30
28
|
*/
|
|
31
|
-
export type NativeFetchEsque = (url:
|
|
29
|
+
export type NativeFetchEsque = (url: URL | string, init?: NodeFetchRequestInitEsque) => Promise<ResponseEsque>;
|
|
32
30
|
export interface NodeFetchRequestInitEsque {
|
|
33
31
|
body?: string;
|
|
34
32
|
}
|
|
@@ -43,7 +41,7 @@ export interface RequestInitEsque {
|
|
|
43
41
|
/**
|
|
44
42
|
* Sets the request's body.
|
|
45
43
|
*/
|
|
46
|
-
body?:
|
|
44
|
+
body?: FormData | ReadableStream | string | null;
|
|
47
45
|
/**
|
|
48
46
|
* Sets the request's associated headers.
|
|
49
47
|
*/
|
|
@@ -69,7 +67,7 @@ export type WebReadableStreamEsque = {
|
|
|
69
67
|
* @see Response from lib.dom.d.ts
|
|
70
68
|
*/
|
|
71
69
|
export interface ResponseEsque {
|
|
72
|
-
readonly body?:
|
|
70
|
+
readonly body?: NodeJS.ReadableStream | WebReadableStreamEsque | null;
|
|
73
71
|
/**
|
|
74
72
|
* @remarks
|
|
75
73
|
* The built-in Response::json() method returns Promise<any>, but
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/internals/types.ts"],"names":[],"mappings":";AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/internals/types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,oBAAoB,GAAG,UAAU,4BAA4B,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAE7B;;;OAGG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,CACvB,KAAK,EAAE,WAAW,GAAG,GAAG,GAAG,MAAM,EACjC,IAAI,CAAC,EAAE,WAAW,GAAG,gBAAgB,KAClC,OAAO,CAAC,aAAa,CAAC,CAAC;AAE5B;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAC7B,GAAG,EAAE,GAAG,GAAG,MAAM,EACjB,IAAI,CAAC,EAAE,yBAAyB,KAC7B,OAAO,CAAC,aAAa,CAAC,CAAC;AAE5B,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,cAAc,GAAG,MAAM,GAAG,IAAI,CAAC;IAEjD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEtD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,2BAA2B,CAAC,UAAU,CAAC,CAAC;CAC1D,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,cAAc,GAAG,sBAAsB,GAAG,IAAI,CAAC;IACtE;;;;;OAKG;IACH,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,KAAK,IAAI,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var links_httpBatchLink = require('../httpBatchLink-
|
|
6
|
-
require('../httpUtils-
|
|
5
|
+
var links_httpBatchLink = require('../httpBatchLink-76c6f2d4.js');
|
|
6
|
+
require('../httpUtils-fa0d6f71.js');
|
|
7
7
|
require('@trpc/server/observable');
|
|
8
8
|
require('../transformResult-70f95ffb.js');
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as httpBatchLink } from '../httpBatchLink-
|
|
2
|
-
import '../httpUtils-
|
|
1
|
+
export { h as httpBatchLink } from '../httpBatchLink-c184c799.mjs';
|
|
2
|
+
import '../httpUtils-a9242d4e.mjs';
|
|
3
3
|
import '@trpc/server/observable';
|
|
4
4
|
import '../transformResult-9a244fe7.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpBatchStreamLink.d.ts","sourceRoot":"","sources":["../../src/links/httpBatchStreamLink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"httpBatchStreamLink.d.ts","sourceRoot":"","sources":["../../src/links/httpBatchStreamLink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAoD1E,eAAO,MAAM,4BAA4B,6HACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpLink.d.ts","sourceRoot":"","sources":["../../src/links/httpLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,EACL,mBAAmB,EAEnB,SAAS,EAEV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE3D,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D;;;OAGG;IACH,OAAO,CAAC,EACJ,WAAW,GACX,CAAC,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,SAAS,CAAA;KAAE,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;CACvE;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,qCAE3D,eAAe,
|
|
1
|
+
{"version":3,"file":"httpLink.d.ts","sourceRoot":"","sources":["../../src/links/httpLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,EACL,mBAAmB,EAEnB,SAAS,EAEV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE3D,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D;;;OAGG;IACH,OAAO,CAAC,EACJ,WAAW,GACX,CAAC,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,SAAS,CAAA;KAAE,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;CACvE;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,qCAE3D,eAAe,uBAqDxB;AAED,eAAO,MAAM,QAAQ,oCAvDX,eAAe,sBAuDgD,CAAC"}
|
package/dist/links/httpLink.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var observable = require('@trpc/server/observable');
|
|
6
6
|
var transformResult = require('../transformResult-70f95ffb.js');
|
|
7
|
-
var httpUtils = require('../httpUtils-
|
|
7
|
+
var httpUtils = require('../httpUtils-fa0d6f71.js');
|
|
8
8
|
|
|
9
9
|
function httpLinkFactory(factoryOpts) {
|
|
10
10
|
return (opts)=>{
|
|
@@ -42,7 +42,9 @@ function httpLinkFactory(factoryOpts) {
|
|
|
42
42
|
result: transformed.result
|
|
43
43
|
});
|
|
44
44
|
observer.complete();
|
|
45
|
-
}).catch((cause)=>
|
|
45
|
+
}).catch((cause)=>{
|
|
46
|
+
observer.error(transformResult.TRPCClientError.from(cause));
|
|
47
|
+
});
|
|
46
48
|
return ()=>{
|
|
47
49
|
cancel();
|
|
48
50
|
};
|
package/dist/links/httpLink.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { observable } from '@trpc/server/observable';
|
|
2
2
|
import { t as transformResult, T as TRPCClientError } from '../transformResult-9a244fe7.mjs';
|
|
3
|
-
import { r as resolveHTTPLinkOptions, j as jsonHttpRequester } from '../httpUtils-
|
|
3
|
+
import { r as resolveHTTPLinkOptions, j as jsonHttpRequester } from '../httpUtils-a9242d4e.mjs';
|
|
4
4
|
|
|
5
5
|
function httpLinkFactory(factoryOpts) {
|
|
6
6
|
return (opts)=>{
|
|
@@ -38,7 +38,9 @@ function httpLinkFactory(factoryOpts) {
|
|
|
38
38
|
result: transformed.result
|
|
39
39
|
});
|
|
40
40
|
observer.complete();
|
|
41
|
-
}).catch((cause)=>
|
|
41
|
+
}).catch((cause)=>{
|
|
42
|
+
observer.error(TRPCClientError.from(cause));
|
|
43
|
+
});
|
|
42
44
|
return ()=>{
|
|
43
45
|
cancel();
|
|
44
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createHTTPBatchLink.d.ts","sourceRoot":"","sources":["../../../src/links/internals/createHTTPBatchLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAKxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC5E,OAAO,EAEL,UAAU,EACV,uBAAuB,EAExB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,QAAQ,SAAS,oBAAoB,IAAI,CAC/D,aAAa,EAAE,uBAAuB,GAAG;IACvC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;CAChB,KACE,CACH,QAAQ,EAAE,SAAS,EAAE,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,KAAK,IAAI,KAClE;IACH,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAC/B,MAAM,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,SAAS,oBA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