@trpc/client 9.23.3 → 9.23.6
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.
|
@@ -28,7 +28,7 @@ export declare type CreateTRPCClientOptions<TRouter extends AnyRouter> = {
|
|
|
28
28
|
headers?: HTTPHeaders | (() => HTTPHeaders | Promise<HTTPHeaders>);
|
|
29
29
|
/**
|
|
30
30
|
* Data transformer
|
|
31
|
-
* @link
|
|
31
|
+
* @link https://trpc.io/docs/data-transformers
|
|
32
32
|
**/
|
|
33
33
|
transformer?: ClientDataTransformerOptions;
|
|
34
34
|
} & ({
|
|
@@ -38,7 +38,7 @@ export declare type CreateTRPCClientOptions<TRouter extends AnyRouter> = {
|
|
|
38
38
|
url: string;
|
|
39
39
|
} | {
|
|
40
40
|
/**
|
|
41
|
-
* @link
|
|
41
|
+
* @link https://trpc.io/docs/links
|
|
42
42
|
**/
|
|
43
43
|
links: TRPCLink<TRouter>[];
|
|
44
44
|
});
|
|
@@ -313,26 +313,34 @@ var TRPCClient = /*#__PURE__*/function () {
|
|
|
313
313
|
}, {
|
|
314
314
|
key: "query",
|
|
315
315
|
value: function query(path) {
|
|
316
|
-
var
|
|
316
|
+
var _args$;
|
|
317
317
|
|
|
318
|
-
var
|
|
318
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
319
|
+
args[_key - 1] = arguments[_key];
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
var context = (_args$ = args[1]) === null || _args$ === void 0 ? void 0 : _args$.context;
|
|
319
323
|
return this.requestAsPromise({
|
|
320
324
|
type: 'query',
|
|
321
325
|
path: path,
|
|
322
|
-
input:
|
|
326
|
+
input: args[0],
|
|
323
327
|
context: context
|
|
324
328
|
});
|
|
325
329
|
}
|
|
326
330
|
}, {
|
|
327
331
|
key: "mutation",
|
|
328
332
|
value: function mutation(path) {
|
|
329
|
-
var
|
|
333
|
+
var _args$2;
|
|
334
|
+
|
|
335
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
336
|
+
args[_key2 - 1] = arguments[_key2];
|
|
337
|
+
}
|
|
330
338
|
|
|
331
|
-
var context = (
|
|
339
|
+
var context = (_args$2 = args[1]) === null || _args$2 === void 0 ? void 0 : _args$2.context;
|
|
332
340
|
return this.requestAsPromise({
|
|
333
341
|
type: 'mutation',
|
|
334
342
|
path: path,
|
|
335
|
-
input:
|
|
343
|
+
input: args[0],
|
|
336
344
|
context: context
|
|
337
345
|
});
|
|
338
346
|
}
|
|
@@ -313,26 +313,34 @@ var TRPCClient = /*#__PURE__*/function () {
|
|
|
313
313
|
}, {
|
|
314
314
|
key: "query",
|
|
315
315
|
value: function query(path) {
|
|
316
|
-
var
|
|
316
|
+
var _args$;
|
|
317
317
|
|
|
318
|
-
var
|
|
318
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
319
|
+
args[_key - 1] = arguments[_key];
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
var context = (_args$ = args[1]) === null || _args$ === void 0 ? void 0 : _args$.context;
|
|
319
323
|
return this.requestAsPromise({
|
|
320
324
|
type: 'query',
|
|
321
325
|
path: path,
|
|
322
|
-
input:
|
|
326
|
+
input: args[0],
|
|
323
327
|
context: context
|
|
324
328
|
});
|
|
325
329
|
}
|
|
326
330
|
}, {
|
|
327
331
|
key: "mutation",
|
|
328
332
|
value: function mutation(path) {
|
|
329
|
-
var
|
|
333
|
+
var _args$2;
|
|
334
|
+
|
|
335
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
336
|
+
args[_key2 - 1] = arguments[_key2];
|
|
337
|
+
}
|
|
330
338
|
|
|
331
|
-
var context = (
|
|
339
|
+
var context = (_args$2 = args[1]) === null || _args$2 === void 0 ? void 0 : _args$2.context;
|
|
332
340
|
return this.requestAsPromise({
|
|
333
341
|
type: 'mutation',
|
|
334
342
|
path: path,
|
|
335
|
-
input:
|
|
343
|
+
input: args[0],
|
|
336
344
|
context: context
|
|
337
345
|
});
|
|
338
346
|
}
|
package/dist/trpc-client.esm.js
CHANGED
|
@@ -310,26 +310,34 @@ var TRPCClient = /*#__PURE__*/function () {
|
|
|
310
310
|
}, {
|
|
311
311
|
key: "query",
|
|
312
312
|
value: function query(path) {
|
|
313
|
-
var
|
|
313
|
+
var _args$;
|
|
314
314
|
|
|
315
|
-
var
|
|
315
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
316
|
+
args[_key - 1] = arguments[_key];
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
var context = (_args$ = args[1]) === null || _args$ === void 0 ? void 0 : _args$.context;
|
|
316
320
|
return this.requestAsPromise({
|
|
317
321
|
type: 'query',
|
|
318
322
|
path: path,
|
|
319
|
-
input:
|
|
323
|
+
input: args[0],
|
|
320
324
|
context: context
|
|
321
325
|
});
|
|
322
326
|
}
|
|
323
327
|
}, {
|
|
324
328
|
key: "mutation",
|
|
325
329
|
value: function mutation(path) {
|
|
326
|
-
var
|
|
330
|
+
var _args$2;
|
|
331
|
+
|
|
332
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
333
|
+
args[_key2 - 1] = arguments[_key2];
|
|
334
|
+
}
|
|
327
335
|
|
|
328
|
-
var context = (
|
|
336
|
+
var context = (_args$2 = args[1]) === null || _args$2 === void 0 ? void 0 : _args$2.context;
|
|
329
337
|
return this.requestAsPromise({
|
|
330
338
|
type: 'mutation',
|
|
331
339
|
path: path,
|
|
332
|
-
input:
|
|
340
|
+
input: args[0],
|
|
333
341
|
context: context
|
|
334
342
|
});
|
|
335
343
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/client",
|
|
3
|
-
"version": "9.23.
|
|
3
|
+
"version": "9.23.6",
|
|
4
4
|
"description": "tRPC Client lib",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"@babel/runtime": "^7.9.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@trpc/server": "9.23.
|
|
37
|
+
"@trpc/server": "9.23.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@trpc/server": "9.23.
|
|
40
|
+
"@trpc/server": "9.23.6"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "c4138897578949d910dd0bce9e1471a6ae73137e"
|
|
46
46
|
}
|
|
@@ -55,7 +55,7 @@ export type CreateTRPCClientOptions<TRouter extends AnyRouter> = {
|
|
|
55
55
|
headers?: HTTPHeaders | (() => HTTPHeaders | Promise<HTTPHeaders>);
|
|
56
56
|
/**
|
|
57
57
|
* Data transformer
|
|
58
|
-
* @link
|
|
58
|
+
* @link https://trpc.io/docs/data-transformers
|
|
59
59
|
**/
|
|
60
60
|
transformer?: ClientDataTransformerOptions;
|
|
61
61
|
} & (
|
|
@@ -67,7 +67,7 @@ export type CreateTRPCClientOptions<TRouter extends AnyRouter> = {
|
|
|
67
67
|
}
|
|
68
68
|
| {
|
|
69
69
|
/**
|
|
70
|
-
* @link
|
|
70
|
+
* @link https://trpc.io/docs/links
|
|
71
71
|
**/
|
|
72
72
|
links: TRPCLink<TRouter>[];
|
|
73
73
|
}
|