@trpc/server 11.0.0-next-beta.242 → 11.0.0-next-beta.285
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/@trpc/server/index.d.ts +1 -5
- package/dist/@trpc/server/index.d.ts.map +1 -1
- package/dist/adapters/node-http/content-type/form-data/index.js +2 -2
- package/dist/adapters/node-http/content-type/form-data/index.mjs +1 -1
- package/dist/bundle-analysis.json +56 -114
- package/dist/unstable-core-do-not-import/TRPCInferrable.d.ts +25 -4
- package/dist/unstable-core-do-not-import/TRPCInferrable.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/index.d.ts +1 -1
- package/dist/unstable-core-do-not-import/index.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.d.ts +15 -7
- package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/router.d.ts +25 -18
- package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/router.js +36 -19
- package/dist/unstable-core-do-not-import/router.mjs +37 -20
- package/dist/unstable-core-do-not-import/rpc/codes.d.ts +1 -2
- package/dist/unstable-core-do-not-import/rpc/codes.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/types.d.ts +1 -0
- package/dist/unstable-core-do-not-import/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/@trpc/server/index.ts +1 -5
- package/src/unstable-core-do-not-import/TRPCInferrable.ts +35 -4
- package/src/unstable-core-do-not-import/index.ts +0 -2
- package/src/unstable-core-do-not-import/router.ts +84 -54
- package/src/unstable-core-do-not-import/rpc/codes.ts +1 -1
- package/src/unstable-core-do-not-import/types.ts +1 -0
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.js +0 -203
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.mjs +0 -201
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/search.js +0 -167
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/search.mjs +0 -163
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/utils.js +0 -35
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/utils.mjs +0 -30
|
@@ -2,7 +2,7 @@ export { TRPCError,
|
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated use `experimental_trpcMiddleware` instead
|
|
4
4
|
*/
|
|
5
|
-
experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, initTRPC, callProcedure as callTRPCProcedure, getTRPCErrorFromUnknown, transformTRPCResponse, createFlatProxy as createTRPCFlatProxy, type inferProcedureInput, type inferProcedureOutput, type inferRouterError, type inferRouterInputs, type inferRouterOutputs, type inferRouterContext, type inferTransformedProcedureOutput, type inferTransformedSubscriptionOutput, type AnyProcedure as AnyTRPCProcedure, type AnyRouter as AnyTRPCRouter, type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction, type CombinedDataTransformer as TRPCCombinedDataTransformer, type ProcedureType as TRPCProcedureType, type AnyMutationProcedure as AnyTRPCMutationProcedure, type AnyQueryProcedure as AnyTRPCQueryProcedure, type
|
|
5
|
+
experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, initTRPC, callProcedure as callTRPCProcedure, getTRPCErrorFromUnknown, transformTRPCResponse, createFlatProxy as createTRPCFlatProxy, type inferProcedureInput, type inferProcedureOutput, type inferRouterError, type inferRouterInputs, type inferRouterOutputs, type inferRouterContext, type inferTransformedProcedureOutput, type inferTransformedSubscriptionOutput, type AnyProcedure as AnyTRPCProcedure, type AnyRouter as AnyTRPCRouter, type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction, type CombinedDataTransformer as TRPCCombinedDataTransformer, type ProcedureType as TRPCProcedureType, type AnyMutationProcedure as AnyTRPCMutationProcedure, type AnyQueryProcedure as AnyTRPCQueryProcedure, type RouterRecord as TRPCRouterRecord, type AnySubscriptionProcedure as AnyTRPCSubscriptionProcedure, type ProcedureOptions as TRPCProcedureOptions, } from '../../unstable-core-do-not-import';
|
|
6
6
|
export type {
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated use `AnyTRPCProcedure` instead
|
|
@@ -40,10 +40,6 @@ AnyMutationProcedure,
|
|
|
40
40
|
* @deprecated use `AnyTRPCQueryProcedure` instead
|
|
41
41
|
*/
|
|
42
42
|
AnyQueryProcedure,
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated use `TRPCProcedureRouterRecord` instead
|
|
45
|
-
*/
|
|
46
|
-
ProcedureRouterRecord,
|
|
47
43
|
/**
|
|
48
44
|
* @deprecated use `AnyTRPCSubscriptionProcedure` instead
|
|
49
45
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/@trpc/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS;AACT;;GAEG;AACH,iCAAiC,EACjC,iCAAiC,IAAI,2BAA2B,EAChE,QAAQ,EAER,aAAa,IAAI,iBAAiB,EAClC,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,IAAI,mBAAmB,EACtC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,SAAS,IAAI,aAAa,EAC/B,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,KAAK,uBAAuB,IAAI,2BAA2B,EAC3D,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,oBAAoB,IAAI,wBAAwB,EACrD,KAAK,iBAAiB,IAAI,qBAAqB,EAC/C,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/@trpc/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS;AACT;;GAEG;AACH,iCAAiC,EACjC,iCAAiC,IAAI,2BAA2B,EAChE,QAAQ,EAER,aAAa,IAAI,iBAAiB,EAClC,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,IAAI,mBAAmB,EACtC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,SAAS,IAAI,aAAa,EAC/B,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,KAAK,uBAAuB,IAAI,2BAA2B,EAC3D,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,oBAAoB,IAAI,wBAAwB,EACrD,KAAK,iBAAiB,IAAI,qBAAqB,EAC/C,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,wBAAwB,IAAI,4BAA4B,EAC7D,KAAK,gBAAgB,IAAI,oBAAoB,GAC9C,MAAM,mCAAmC,CAAC;AAE3C,YAAY;AACV;;GAEG;AACH,YAAY;AACZ;;GAEG;AACH,SAAS;AACT;;GAEG;AACH,qBAAqB;AACrB;;GAEG;AACH,uBAAuB;AAEvB;;GAEG;AACH,IAAI;AAEJ;;GAEG;AACH,WAAW;AACX;;GAEG;AACH,aAAa;AACb;;GAEG;AACH,oBAAoB;AAEpB;;GAEG;AACH,iBAAiB;AACjB;;GAEG;AACH,wBAAwB,GACzB,MAAM,mCAAmC,CAAC;AAE3C,OAAO;AACL;;GAEG;AACH,aAAa;AAEb;;GAEG;AACH,aAAa,GACd,MAAM,mCAAmC,CAAC;AAE3C;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IACxE,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var fs = require('node:fs/promises');
|
|
4
4
|
var node_stream = require('node:stream');
|
|
5
|
-
var
|
|
5
|
+
var multipartParser = require('@web3-storage/multipart-parser');
|
|
6
6
|
var contentType = require('../../internals/contentType.js');
|
|
7
7
|
var fileUploadHandler = require('./fileUploadHandler.js');
|
|
8
8
|
var uploadHandler = require('./uploadHandler.js');
|
|
@@ -44,7 +44,7 @@ const utfTextDecoder = new TextDecoder('utf-8');
|
|
|
44
44
|
throw new TypeError('Could not parse content as FormData.');
|
|
45
45
|
}
|
|
46
46
|
const formData = new FormData();
|
|
47
|
-
const parts =
|
|
47
|
+
const parts = multipartParser.streamMultipart(node_stream.Readable.toWeb(request), boundary);
|
|
48
48
|
let currentBodySize = 0;
|
|
49
49
|
const nodeOnDiskFiles = [];
|
|
50
50
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as fs from 'node:fs/promises';
|
|
2
2
|
import { Readable } from 'node:stream';
|
|
3
|
-
import { streamMultipart } from '
|
|
3
|
+
import { streamMultipart } from '@web3-storage/multipart-parser';
|
|
4
4
|
import { createNodeHTTPContentTypeHandler } from '../../internals/contentType.mjs';
|
|
5
5
|
import { NodeOnDiskFile } from './fileUploadHandler.mjs';
|
|
6
6
|
export { createFileUploadHandler as experimental_createFileUploadHandler } from './fileUploadHandler.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction":
|
|
2
|
+
"bundleSize": 91773,
|
|
3
|
+
"bundleOrigSize": 143496,
|
|
4
|
+
"bundleReduction": 36.04,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/adapters/ws.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependents": [
|
|
15
15
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
16
16
|
],
|
|
17
|
-
"percent":
|
|
17
|
+
"percent": 10.76,
|
|
18
18
|
"reduction": 0
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -26,29 +26,13 @@
|
|
|
26
26
|
],
|
|
27
27
|
"removedExports": [],
|
|
28
28
|
"dependents": [],
|
|
29
|
-
"percent":
|
|
29
|
+
"percent": 10.09,
|
|
30
30
|
"reduction": 21.53
|
|
31
31
|
},
|
|
32
|
-
{
|
|
33
|
-
"id": "/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.js",
|
|
34
|
-
"size": 6004,
|
|
35
|
-
"origSize": 6352,
|
|
36
|
-
"renderedExports": [
|
|
37
|
-
"streamMultipart"
|
|
38
|
-
],
|
|
39
|
-
"removedExports": [
|
|
40
|
-
"iterateMultipart"
|
|
41
|
-
],
|
|
42
|
-
"dependents": [
|
|
43
|
-
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
44
|
-
],
|
|
45
|
-
"percent": 5.86,
|
|
46
|
-
"reduction": 5.48
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
"id": "/src/unstable-core-do-not-import/router.ts",
|
|
50
|
-
"size":
|
|
51
|
-
"origSize":
|
|
34
|
+
"size": 6040,
|
|
35
|
+
"origSize": 10463,
|
|
52
36
|
"renderedExports": [
|
|
53
37
|
"createRouterFactory",
|
|
54
38
|
"callProcedure",
|
|
@@ -61,8 +45,8 @@
|
|
|
61
45
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
|
|
62
46
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
63
47
|
],
|
|
64
|
-
"percent":
|
|
65
|
-
"reduction": 42.
|
|
48
|
+
"percent": 6.58,
|
|
49
|
+
"reduction": 42.27
|
|
66
50
|
},
|
|
67
51
|
{
|
|
68
52
|
"id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
@@ -77,7 +61,7 @@
|
|
|
77
61
|
"/src/unstable-core-do-not-import/index.ts",
|
|
78
62
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
79
63
|
],
|
|
80
|
-
"percent":
|
|
64
|
+
"percent": 6.1,
|
|
81
65
|
"reduction": 51.52
|
|
82
66
|
},
|
|
83
67
|
{
|
|
@@ -93,36 +77,12 @@
|
|
|
93
77
|
"dependents": [
|
|
94
78
|
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
95
79
|
],
|
|
96
|
-
"percent":
|
|
80
|
+
"percent": 5.42,
|
|
97
81
|
"reduction": 36.77
|
|
98
82
|
},
|
|
99
|
-
{
|
|
100
|
-
"id": "/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/search.js",
|
|
101
|
-
"size": 4459,
|
|
102
|
-
"origSize": 6918,
|
|
103
|
-
"renderedExports": [
|
|
104
|
-
"MATCH",
|
|
105
|
-
"ReadableStreamSearch",
|
|
106
|
-
"StreamSearch"
|
|
107
|
-
],
|
|
108
|
-
"removedExports": [
|
|
109
|
-
"QueueableStreamSearch",
|
|
110
|
-
"allStrings",
|
|
111
|
-
"arrayIterator",
|
|
112
|
-
"chunksIterator",
|
|
113
|
-
"split",
|
|
114
|
-
"splitChunks",
|
|
115
|
-
"stringIterator"
|
|
116
|
-
],
|
|
117
|
-
"dependents": [
|
|
118
|
-
"/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.js"
|
|
119
|
-
],
|
|
120
|
-
"percent": 4.35,
|
|
121
|
-
"reduction": 35.54
|
|
122
|
-
},
|
|
123
83
|
{
|
|
124
84
|
"id": "/src/adapters/node-http/content-type/form-data/index.ts",
|
|
125
|
-
"size":
|
|
85
|
+
"size": 4420,
|
|
126
86
|
"origSize": 6569,
|
|
127
87
|
"renderedExports": [
|
|
128
88
|
"nodeHTTPFormDataContentTypeHandler",
|
|
@@ -131,8 +91,8 @@
|
|
|
131
91
|
],
|
|
132
92
|
"removedExports": [],
|
|
133
93
|
"dependents": [],
|
|
134
|
-
"percent": 4.
|
|
135
|
-
"reduction": 32.
|
|
94
|
+
"percent": 4.82,
|
|
95
|
+
"reduction": 32.71
|
|
136
96
|
},
|
|
137
97
|
{
|
|
138
98
|
"id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
@@ -145,7 +105,7 @@
|
|
|
145
105
|
"dependents": [
|
|
146
106
|
"/src/adapters/node-http/index.ts"
|
|
147
107
|
],
|
|
148
|
-
"percent":
|
|
108
|
+
"percent": 4.42,
|
|
149
109
|
"reduction": 12.45
|
|
150
110
|
},
|
|
151
111
|
{
|
|
@@ -159,7 +119,7 @@
|
|
|
159
119
|
"dependents": [
|
|
160
120
|
"/src/adapters/fetch/index.ts"
|
|
161
121
|
],
|
|
162
|
-
"percent": 3.
|
|
122
|
+
"percent": 3.87,
|
|
163
123
|
"reduction": 9.42
|
|
164
124
|
},
|
|
165
125
|
{
|
|
@@ -175,7 +135,7 @@
|
|
|
175
135
|
"dependents": [
|
|
176
136
|
"/src/observable/index.ts"
|
|
177
137
|
],
|
|
178
|
-
"percent": 3.
|
|
138
|
+
"percent": 3.74,
|
|
179
139
|
"reduction": 5.43
|
|
180
140
|
},
|
|
181
141
|
{
|
|
@@ -194,7 +154,7 @@
|
|
|
194
154
|
"dependents": [
|
|
195
155
|
"/src/adapters/aws-lambda/index.ts"
|
|
196
156
|
],
|
|
197
|
-
"percent": 3.
|
|
157
|
+
"percent": 3.6,
|
|
198
158
|
"reduction": 36.48
|
|
199
159
|
},
|
|
200
160
|
{
|
|
@@ -210,7 +170,7 @@
|
|
|
210
170
|
"dependents": [
|
|
211
171
|
"/src/observable/index.ts"
|
|
212
172
|
],
|
|
213
|
-
"percent":
|
|
173
|
+
"percent": 3.25,
|
|
214
174
|
"reduction": 0
|
|
215
175
|
},
|
|
216
176
|
{
|
|
@@ -224,7 +184,7 @@
|
|
|
224
184
|
"dependents": [
|
|
225
185
|
"/src/unstable-core-do-not-import/index.ts"
|
|
226
186
|
],
|
|
227
|
-
"percent":
|
|
187
|
+
"percent": 3.14,
|
|
228
188
|
"reduction": 38.95
|
|
229
189
|
},
|
|
230
190
|
{
|
|
@@ -244,7 +204,7 @@
|
|
|
244
204
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
245
205
|
"/src/unstable-core-do-not-import/router.ts"
|
|
246
206
|
],
|
|
247
|
-
"percent": 2.
|
|
207
|
+
"percent": 2.99,
|
|
248
208
|
"reduction": 45.94
|
|
249
209
|
},
|
|
250
210
|
{
|
|
@@ -259,7 +219,7 @@
|
|
|
259
219
|
"/src/adapters/fastify/index.ts",
|
|
260
220
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
261
221
|
],
|
|
262
|
-
"percent": 2.
|
|
222
|
+
"percent": 2.82,
|
|
263
223
|
"reduction": 35.33
|
|
264
224
|
},
|
|
265
225
|
{
|
|
@@ -279,7 +239,7 @@
|
|
|
279
239
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
280
240
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
281
241
|
],
|
|
282
|
-
"percent": 2.
|
|
242
|
+
"percent": 2.81,
|
|
283
243
|
"reduction": 55.95
|
|
284
244
|
},
|
|
285
245
|
{
|
|
@@ -291,7 +251,7 @@
|
|
|
291
251
|
],
|
|
292
252
|
"removedExports": [],
|
|
293
253
|
"dependents": [],
|
|
294
|
-
"percent": 2.
|
|
254
|
+
"percent": 2.77,
|
|
295
255
|
"reduction": 31.37
|
|
296
256
|
},
|
|
297
257
|
{
|
|
@@ -312,7 +272,7 @@
|
|
|
312
272
|
"/src/unstable-core-do-not-import/router.ts",
|
|
313
273
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
314
274
|
],
|
|
315
|
-
"percent": 1.
|
|
275
|
+
"percent": 1.89,
|
|
316
276
|
"reduction": 19.47
|
|
317
277
|
},
|
|
318
278
|
{
|
|
@@ -326,7 +286,7 @@
|
|
|
326
286
|
"dependents": [
|
|
327
287
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
|
|
328
288
|
],
|
|
329
|
-
"percent": 1.
|
|
289
|
+
"percent": 1.79,
|
|
330
290
|
"reduction": 34.79
|
|
331
291
|
},
|
|
332
292
|
{
|
|
@@ -338,7 +298,7 @@
|
|
|
338
298
|
],
|
|
339
299
|
"removedExports": [],
|
|
340
300
|
"dependents": [],
|
|
341
|
-
"percent": 1.
|
|
301
|
+
"percent": 1.75,
|
|
342
302
|
"reduction": 29.12
|
|
343
303
|
},
|
|
344
304
|
{
|
|
@@ -350,7 +310,7 @@
|
|
|
350
310
|
],
|
|
351
311
|
"removedExports": [],
|
|
352
312
|
"dependents": [],
|
|
353
|
-
"percent": 1.
|
|
313
|
+
"percent": 1.72,
|
|
354
314
|
"reduction": 21.04
|
|
355
315
|
},
|
|
356
316
|
{
|
|
@@ -364,7 +324,7 @@
|
|
|
364
324
|
"dependents": [
|
|
365
325
|
"/src/adapters/fastify/index.ts"
|
|
366
326
|
],
|
|
367
|
-
"percent": 1.
|
|
327
|
+
"percent": 1.67,
|
|
368
328
|
"reduction": 32.84
|
|
369
329
|
},
|
|
370
330
|
{
|
|
@@ -381,7 +341,7 @@
|
|
|
381
341
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
382
342
|
"/src/unstable-core-do-not-import/router.ts"
|
|
383
343
|
],
|
|
384
|
-
"percent": 1.
|
|
344
|
+
"percent": 1.64,
|
|
385
345
|
"reduction": 5.58
|
|
386
346
|
},
|
|
387
347
|
{
|
|
@@ -395,7 +355,7 @@
|
|
|
395
355
|
"dependents": [
|
|
396
356
|
"/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"
|
|
397
357
|
],
|
|
398
|
-
"percent": 1.
|
|
358
|
+
"percent": 1.52,
|
|
399
359
|
"reduction": 0
|
|
400
360
|
},
|
|
401
361
|
{
|
|
@@ -411,7 +371,7 @@
|
|
|
411
371
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
|
|
412
372
|
"/src/unstable-core-do-not-import/error/getErrorShape.ts"
|
|
413
373
|
],
|
|
414
|
-
"percent": 1.
|
|
374
|
+
"percent": 1.34,
|
|
415
375
|
"reduction": 23.32
|
|
416
376
|
},
|
|
417
377
|
{
|
|
@@ -425,21 +385,21 @@
|
|
|
425
385
|
"dependents": [
|
|
426
386
|
"/src/adapters/node-http/content-type/json/index.ts"
|
|
427
387
|
],
|
|
428
|
-
"percent": 1.
|
|
388
|
+
"percent": 1.22,
|
|
429
389
|
"reduction": 2.87
|
|
430
390
|
},
|
|
431
391
|
{
|
|
432
392
|
"id": "/src/unstable-core-do-not-import/rpc/codes.ts",
|
|
433
393
|
"size": 1020,
|
|
434
|
-
"origSize":
|
|
394
|
+
"origSize": 1325,
|
|
435
395
|
"renderedExports": [
|
|
436
396
|
"TRPC_ERROR_CODES_BY_KEY",
|
|
437
397
|
"TRPC_ERROR_CODES_BY_NUMBER"
|
|
438
398
|
],
|
|
439
399
|
"removedExports": [],
|
|
440
400
|
"dependents": [],
|
|
441
|
-
"percent":
|
|
442
|
-
"reduction":
|
|
401
|
+
"percent": 1.11,
|
|
402
|
+
"reduction": 23.02
|
|
443
403
|
},
|
|
444
404
|
{
|
|
445
405
|
"id": "/src/unstable-core-do-not-import/utils.ts",
|
|
@@ -455,14 +415,14 @@
|
|
|
455
415
|
"dependents": [
|
|
456
416
|
"/src/unstable-core-do-not-import/index.ts",
|
|
457
417
|
"/src/unstable-core-do-not-import/rpc/codes.ts",
|
|
418
|
+
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
458
419
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
459
420
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
460
421
|
"/src/unstable-core-do-not-import/router.ts",
|
|
461
422
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
462
|
-
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
463
423
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
464
424
|
],
|
|
465
|
-
"percent":
|
|
425
|
+
"percent": 1.1,
|
|
466
426
|
"reduction": 35.76
|
|
467
427
|
},
|
|
468
428
|
{
|
|
@@ -476,7 +436,7 @@
|
|
|
476
436
|
"dependents": [
|
|
477
437
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
478
438
|
],
|
|
479
|
-
"percent":
|
|
439
|
+
"percent": 1.09,
|
|
480
440
|
"reduction": 56.07
|
|
481
441
|
},
|
|
482
442
|
{
|
|
@@ -496,7 +456,7 @@
|
|
|
496
456
|
"/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
|
|
497
457
|
"/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"
|
|
498
458
|
],
|
|
499
|
-
"percent": 0.
|
|
459
|
+
"percent": 0.79,
|
|
500
460
|
"reduction": 67.52
|
|
501
461
|
},
|
|
502
462
|
{
|
|
@@ -510,27 +470,9 @@
|
|
|
510
470
|
"dependents": [
|
|
511
471
|
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
512
472
|
],
|
|
513
|
-
"percent": 0.
|
|
473
|
+
"percent": 0.76,
|
|
514
474
|
"reduction": 71.21
|
|
515
475
|
},
|
|
516
|
-
{
|
|
517
|
-
"id": "/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/utils.js",
|
|
518
|
-
"size": 694,
|
|
519
|
-
"origSize": 722,
|
|
520
|
-
"renderedExports": [
|
|
521
|
-
"stringToArray",
|
|
522
|
-
"arrayToString",
|
|
523
|
-
"mergeArrays",
|
|
524
|
-
"arraysEqual"
|
|
525
|
-
],
|
|
526
|
-
"removedExports": [],
|
|
527
|
-
"dependents": [
|
|
528
|
-
"/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.js",
|
|
529
|
-
"/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/search.js"
|
|
530
|
-
],
|
|
531
|
-
"percent": 0.68,
|
|
532
|
-
"reduction": 3.88
|
|
533
|
-
},
|
|
534
476
|
{
|
|
535
477
|
"id": "/src/unstable-core-do-not-import/http/batchStreamFormatter.ts",
|
|
536
478
|
"size": 667,
|
|
@@ -540,7 +482,7 @@
|
|
|
540
482
|
],
|
|
541
483
|
"removedExports": [],
|
|
542
484
|
"dependents": [],
|
|
543
|
-
"percent": 0.
|
|
485
|
+
"percent": 0.73,
|
|
544
486
|
"reduction": 0.6
|
|
545
487
|
},
|
|
546
488
|
{
|
|
@@ -553,7 +495,7 @@
|
|
|
553
495
|
],
|
|
554
496
|
"removedExports": [],
|
|
555
497
|
"dependents": [],
|
|
556
|
-
"percent": 0.
|
|
498
|
+
"percent": 0.69,
|
|
557
499
|
"reduction": 62.29
|
|
558
500
|
},
|
|
559
501
|
{
|
|
@@ -568,7 +510,7 @@
|
|
|
568
510
|
"/src/unstable-core-do-not-import/index.ts",
|
|
569
511
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
|
|
570
512
|
],
|
|
571
|
-
"percent": 0.
|
|
513
|
+
"percent": 0.68,
|
|
572
514
|
"reduction": 43.49
|
|
573
515
|
},
|
|
574
516
|
{
|
|
@@ -583,7 +525,7 @@
|
|
|
583
525
|
"/src/unstable-core-do-not-import/index.ts",
|
|
584
526
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
585
527
|
],
|
|
586
|
-
"percent": 0.
|
|
528
|
+
"percent": 0.37,
|
|
587
529
|
"reduction": 83.75
|
|
588
530
|
},
|
|
589
531
|
{
|
|
@@ -595,7 +537,7 @@
|
|
|
595
537
|
],
|
|
596
538
|
"removedExports": [],
|
|
597
539
|
"dependents": [],
|
|
598
|
-
"percent": 0.
|
|
540
|
+
"percent": 0.37,
|
|
599
541
|
"reduction": 71.37
|
|
600
542
|
},
|
|
601
543
|
{
|
|
@@ -609,7 +551,7 @@
|
|
|
609
551
|
"dependents": [
|
|
610
552
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
611
553
|
],
|
|
612
|
-
"percent": 0.
|
|
554
|
+
"percent": 0.32,
|
|
613
555
|
"reduction": 35.11
|
|
614
556
|
},
|
|
615
557
|
{
|
|
@@ -624,7 +566,7 @@
|
|
|
624
566
|
"/src/adapters/node-http/content-type/form-data/index.ts",
|
|
625
567
|
"/src/adapters/node-http/content-type/json/index.ts"
|
|
626
568
|
],
|
|
627
|
-
"percent": 0.
|
|
569
|
+
"percent": 0.13,
|
|
628
570
|
"reduction": 86.68
|
|
629
571
|
},
|
|
630
572
|
{
|
|
@@ -639,7 +581,7 @@
|
|
|
639
581
|
"/src/unstable-core-do-not-import/index.ts",
|
|
640
582
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts"
|
|
641
583
|
],
|
|
642
|
-
"percent": 0.
|
|
584
|
+
"percent": 0.08,
|
|
643
585
|
"reduction": 97.28
|
|
644
586
|
},
|
|
645
587
|
{
|
|
@@ -654,7 +596,7 @@
|
|
|
654
596
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
655
597
|
"/src/unstable-core-do-not-import/router.ts"
|
|
656
598
|
],
|
|
657
|
-
"percent": 0.
|
|
599
|
+
"percent": 0.07,
|
|
658
600
|
"reduction": 93.8
|
|
659
601
|
},
|
|
660
602
|
{
|
|
@@ -668,9 +610,9 @@
|
|
|
668
610
|
"reduction": 100
|
|
669
611
|
},
|
|
670
612
|
{
|
|
671
|
-
"id": "/src/
|
|
613
|
+
"id": "/src/rpc.ts",
|
|
672
614
|
"size": 0,
|
|
673
|
-
"origSize":
|
|
615
|
+
"origSize": 36,
|
|
674
616
|
"renderedExports": [],
|
|
675
617
|
"removedExports": [],
|
|
676
618
|
"dependents": [],
|
|
@@ -678,9 +620,9 @@
|
|
|
678
620
|
"reduction": 100
|
|
679
621
|
},
|
|
680
622
|
{
|
|
681
|
-
"id": "/src/
|
|
623
|
+
"id": "/src/index.ts",
|
|
682
624
|
"size": 0,
|
|
683
|
-
"origSize":
|
|
625
|
+
"origSize": 32,
|
|
684
626
|
"renderedExports": [],
|
|
685
627
|
"removedExports": [],
|
|
686
628
|
"dependents": [],
|
|
@@ -712,7 +654,7 @@
|
|
|
712
654
|
{
|
|
713
655
|
"id": "/src/unstable-core-do-not-import/index.ts",
|
|
714
656
|
"size": 0,
|
|
715
|
-
"origSize":
|
|
657
|
+
"origSize": 2677,
|
|
716
658
|
"renderedExports": [],
|
|
717
659
|
"removedExports": [],
|
|
718
660
|
"dependents": [],
|
|
@@ -754,5 +696,5 @@
|
|
|
754
696
|
"reduction": 100
|
|
755
697
|
}
|
|
756
698
|
],
|
|
757
|
-
"moduleCount":
|
|
699
|
+
"moduleCount": 48
|
|
758
700
|
}
|
|
@@ -1,6 +1,27 @@
|
|
|
1
|
-
import type { AnyRootTypes } from './rootConfig';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { AnyRootTypes, RootConfig } from './rootConfig';
|
|
2
|
+
/**
|
|
3
|
+
* Result of `initTRPC.create()`
|
|
4
|
+
*/
|
|
5
|
+
type InitLike = {
|
|
6
|
+
_config: RootConfig<AnyRootTypes>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Result of `initTRPC.create().router()`
|
|
10
|
+
*/
|
|
11
|
+
type RouterLike = {
|
|
12
|
+
_def: InitLike;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Result of `initTRPC.create()._config`
|
|
16
|
+
*/
|
|
17
|
+
type RootConfigLike = {
|
|
18
|
+
$types: AnyRootTypes;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Anything that can be inferred to the root config types
|
|
22
|
+
*/
|
|
23
|
+
export type TRPCInferrable = RouterLike | InitLike | RootConfigLike | AnyRootTypes;
|
|
24
|
+
export type inferRootTypes<TInferrable extends TRPCInferrable> = TInferrable extends AnyRootTypes ? TInferrable : TInferrable extends RootConfigLike ? TInferrable['$types'] : TInferrable extends InitLike ? TInferrable['_config']['$types'] : TInferrable extends RouterLike ? TInferrable['_def']['_config']['$types'] : never;
|
|
5
25
|
export type inferErrorShape<TInferrable extends TRPCInferrable> = inferRootTypes<TInferrable>['errorShape'];
|
|
26
|
+
export {};
|
|
6
27
|
//# sourceMappingURL=TRPCInferrable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TRPCInferrable.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/TRPCInferrable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"TRPCInferrable.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/TRPCInferrable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE7D;;GAEG;AACH,KAAK,QAAQ,GAAG;IACd,OAAO,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,YAAY,CAAC;CACtB,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,UAAU,GACV,QAAQ,GACR,cAAc,GACd,YAAY,CAAC;AAEjB,MAAM,MAAM,cAAc,CAAC,WAAW,SAAS,cAAc,IAC3D,WAAW,SAAS,YAAY,GAC5B,WAAW,GACX,WAAW,SAAS,cAAc,GAClC,WAAW,CAAC,QAAQ,CAAC,GACrB,WAAW,SAAS,QAAQ,GAC5B,WAAW,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,GAChC,WAAW,SAAS,UAAU,GAC9B,WAAW,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,GACxC,KAAK,CAAC;AAEZ,MAAM,MAAM,eAAe,CAAC,WAAW,SAAS,cAAc,IAC5D,cAAc,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -20,7 +20,7 @@ export type { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnySubscrip
|
|
|
20
20
|
export { createBuilder, unsetMarker } from './procedureBuilder';
|
|
21
21
|
export type { ProcedureBuilder } from './procedureBuilder';
|
|
22
22
|
export * from './rootConfig';
|
|
23
|
-
export type { AnyRouter,
|
|
23
|
+
export type { AnyRouter, Router, RouterCaller, createRouterFactory, inferRouterContext, inferRouterError, inferRouterInputs, inferRouterMeta, inferRouterOutputs, } from './router';
|
|
24
24
|
export * from './TRPCInferrable';
|
|
25
25
|
export * from './router';
|
|
26
26
|
export { transformResult, transformTRPCResponse } from './transformer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,iCAAiC,EACjC,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,+BAA+B,EAC/B,kCAAkC,GACnC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,cAAc,cAAc,CAAC;AAC7B,YAAY,EACV,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,iCAAiC,EACjC,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE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,CAAC;AACvB,cAAc,OAAO,CAAC"}
|
|
@@ -56,12 +56,20 @@ declare class TRPCBuilder<TContext extends object, TMeta extends object> {
|
|
|
56
56
|
* Create a router
|
|
57
57
|
* @link https://trpc.io/docs/v11/server/routers
|
|
58
58
|
*/
|
|
59
|
-
router:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
router: {
|
|
60
|
+
<TInput extends import("./router").RouterRecord>(input: TInput): import("./router").BuiltRouter<{
|
|
61
|
+
ctx: TContext;
|
|
62
|
+
meta: TMeta;
|
|
63
|
+
errorShape: undefined extends TOptions["errorFormatter"] ? DefaultErrorShape : inferErrorFormatterShape<TOptions["errorFormatter"]>;
|
|
64
|
+
transformer: undefined extends TOptions["transformer"] ? false : true;
|
|
65
|
+
}, TInput>;
|
|
66
|
+
<TInput_1 extends import("./router").CreateRouterOptions>(input: TInput_1): import("./router").BuiltRouter<{
|
|
67
|
+
ctx: TContext;
|
|
68
|
+
meta: TMeta;
|
|
69
|
+
errorShape: undefined extends TOptions["errorFormatter"] ? DefaultErrorShape : inferErrorFormatterShape<TOptions["errorFormatter"]>;
|
|
70
|
+
transformer: undefined extends TOptions["transformer"] ? false : true;
|
|
71
|
+
}, import("./router").DecorateCreateRouterOptions<TInput_1>>;
|
|
72
|
+
};
|
|
65
73
|
/**
|
|
66
74
|
* Merge Routers
|
|
67
75
|
* @link https://trpc.io/docs/v11/server/merging-routers
|
|
@@ -71,7 +79,7 @@ declare class TRPCBuilder<TContext extends object, TMeta extends object> {
|
|
|
71
79
|
* Create a server-side caller for a router
|
|
72
80
|
* @link https://trpc.io/docs/v11/server/server-side-calls
|
|
73
81
|
*/
|
|
74
|
-
createCallerFactory: <TRecord extends import("./router").
|
|
82
|
+
createCallerFactory: <TRecord extends import("./router").RouterRecord>(router: import("./router").Router<{
|
|
75
83
|
ctx: TContext;
|
|
76
84
|
meta: TMeta;
|
|
77
85
|
errorShape: undefined extends TOptions["errorFormatter"] ? DefaultErrorShape : inferErrorFormatterShape<TOptions["errorFormatter"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initTRPC.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/initTRPC.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAGL,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErD,KAAK,wBAAwB,CAAC,KAAK,IAAI,KAAK,SAAS,cAAc,CACjE,GAAG,EACH,MAAM,MAAM,CACb,GACG,MAAM,GACN,iBAAiB,CAAC;AACtB,UAAU,oBAAoB,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,SAAS,MAAM,CAC1E,SAAQ,OAAO,CACb,IAAI,CACF,UAAU,CAAC;IACT,GAAG,EAAE,QAAQ,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,UAAU,EAAE,GAAG,CAAC;IAChB,WAAW,EAAE,GAAG,CAAC;CAClB,CAAC,EACF,QAAQ,GAAG,aAAa,CACzB,CACF;IACD;;;OAGG;IACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACtC;AAED,cAAM,WAAW,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,SAAS,MAAM;IAC7D;;;OAGG;IACH,OAAO,CAAC,WAAW,SAAS,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM,CAAC;IAIrE;;;OAGG;IACH,IAAI,CAAC,QAAQ,SAAS,MAAM;IAI5B;;;OAGG;IACH,MAAM,CAAC,QAAQ,SAAS,oBAAoB,CAAC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