@trpc/client 11.0.0-alpha-tmp-issues-5851-take-two.469 → 11.0.0-alpha-tmp-issues-5851-take-two.470
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 24.
|
|
2
|
+
"bundleSize": 51744,
|
|
3
|
+
"bundleOrigSize": 68776,
|
|
4
|
+
"bundleReduction": 24.76,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/links/wsLink.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"removedExports": [],
|
|
15
15
|
"dependents": [],
|
|
16
|
-
"percent": 25.
|
|
16
|
+
"percent": 25.26,
|
|
17
17
|
"reduction": 10.22
|
|
18
18
|
},
|
|
19
19
|
{
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"removedExports": [],
|
|
27
27
|
"dependents": [],
|
|
28
|
-
"percent": 12
|
|
28
|
+
"percent": 12,
|
|
29
29
|
"reduction": 1.26
|
|
30
30
|
},
|
|
31
31
|
{
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
],
|
|
38
38
|
"removedExports": [],
|
|
39
39
|
"dependents": [],
|
|
40
|
-
"percent": 10.
|
|
40
|
+
"percent": 10.55,
|
|
41
41
|
"reduction": 18.48
|
|
42
42
|
},
|
|
43
43
|
{
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
],
|
|
50
50
|
"removedExports": [],
|
|
51
51
|
"dependents": [],
|
|
52
|
-
"percent": 7.
|
|
52
|
+
"percent": 7.92,
|
|
53
53
|
"reduction": 3.26
|
|
54
54
|
},
|
|
55
55
|
{
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
"/src/links/httpBatchLink.ts",
|
|
65
65
|
"/src/links/httpBatchStreamLink.ts"
|
|
66
66
|
],
|
|
67
|
-
"percent": 7.
|
|
67
|
+
"percent": 7.9,
|
|
68
68
|
"reduction": 6.41
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"id": "/src/links/internals/httpUtils.ts",
|
|
72
|
-
"size":
|
|
73
|
-
"origSize":
|
|
72
|
+
"size": 3928,
|
|
73
|
+
"origSize": 6146,
|
|
74
74
|
"renderedExports": [
|
|
75
75
|
"resolveHTTPLinkOptions",
|
|
76
76
|
"getInput",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"/src/links/httpBatchStreamLink.ts",
|
|
89
89
|
"/src/links/httpSubscriptionLink.ts"
|
|
90
90
|
],
|
|
91
|
-
"percent": 7.
|
|
92
|
-
"reduction":
|
|
91
|
+
"percent": 7.59,
|
|
92
|
+
"reduction": 36.09
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"id": "/src/links/httpSubscriptionLink.ts",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
],
|
|
101
101
|
"removedExports": [],
|
|
102
102
|
"dependents": [],
|
|
103
|
-
"percent": 6.
|
|
103
|
+
"percent": 6.81,
|
|
104
104
|
"reduction": 6.13
|
|
105
105
|
},
|
|
106
106
|
{
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
],
|
|
113
113
|
"removedExports": [],
|
|
114
114
|
"dependents": [],
|
|
115
|
-
"percent": 6.
|
|
115
|
+
"percent": 6.15,
|
|
116
116
|
"reduction": 14.15
|
|
117
117
|
},
|
|
118
118
|
{
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"/src/createTRPCUntypedClient.ts",
|
|
128
128
|
"/src/createTRPCClient.ts"
|
|
129
129
|
],
|
|
130
|
-
"percent": 4.
|
|
130
|
+
"percent": 4.36,
|
|
131
131
|
"reduction": 46.78
|
|
132
132
|
},
|
|
133
133
|
{
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"/src/internals/TRPCUntypedClient.ts",
|
|
149
149
|
"/src/links/internals/httpUtils.ts"
|
|
150
150
|
],
|
|
151
|
-
"percent": 3.
|
|
151
|
+
"percent": 3.61,
|
|
152
152
|
"reduction": 45.71
|
|
153
153
|
},
|
|
154
154
|
{
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"dependents": [
|
|
166
166
|
"/src/index.ts"
|
|
167
167
|
],
|
|
168
|
-
"percent": 2.
|
|
168
|
+
"percent": 2.29,
|
|
169
169
|
"reduction": 73.19
|
|
170
170
|
},
|
|
171
171
|
{
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"/src/links/splitLink.ts",
|
|
181
181
|
"/src/internals/TRPCUntypedClient.ts"
|
|
182
182
|
],
|
|
183
|
-
"percent": 1.
|
|
183
|
+
"percent": 1.33,
|
|
184
184
|
"reduction": 32.75
|
|
185
185
|
},
|
|
186
186
|
{
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"dependents": [
|
|
207
207
|
"/src/unstable-internals.ts"
|
|
208
208
|
],
|
|
209
|
-
"percent": 1.
|
|
209
|
+
"percent": 1.09,
|
|
210
210
|
"reduction": 66.75
|
|
211
211
|
},
|
|
212
212
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpUtils.d.ts","sourceRoot":"","sources":["../../../src/links/internals/httpUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACvB,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,YAAY,EACb,MAAM,0CAA0C,CAAC;AAElD,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAC7B,KAAK,SAAS,IAAI,CAAC,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I,EAAE,sBAAsB,KAAK,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAE1E,MAAM,MAAM,cAAc,GAAG;IAC3B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAuBpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,OAMrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CACtB,IAAI,EAAE,sBAAsB,GAAG;IAC7B,OAAO,EAAE,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CACnD,KACE,OAAO,CAAC,UAAU,CAAC,CAAC;AAEzB,eAAO,MAAM,iBAAiB,EAAE,SAO/B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAC7C,sBAAsB,GAAG;IACvB,OAAO,EAAE,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CACnD,CAAC;AAEJ,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,0BA2B/D;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,CAqBzE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE;IACJ,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC5B,EAAE,GACF,eAAe,CA8BjB"}
|
|
@@ -128,9 +128,15 @@ function httpRequest(opts) {
|
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
for (const o of opts){
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
132
|
+
const signal = o.signal;
|
|
133
|
+
if (signal.aborted) {
|
|
134
|
+
onAbort();
|
|
135
|
+
} else {
|
|
136
|
+
signal.addEventListener('abort', onAbort, {
|
|
137
|
+
once: true
|
|
138
|
+
});
|
|
139
|
+
}
|
|
134
140
|
}
|
|
135
141
|
return ac;
|
|
136
142
|
}
|
|
@@ -126,9 +126,15 @@ function httpRequest(opts) {
|
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
for (const o of opts){
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
130
|
+
const signal = o.signal;
|
|
131
|
+
if (signal.aborted) {
|
|
132
|
+
onAbort();
|
|
133
|
+
} else {
|
|
134
|
+
signal.addEventListener('abort', onAbort, {
|
|
135
|
+
once: true
|
|
136
|
+
});
|
|
137
|
+
}
|
|
132
138
|
}
|
|
133
139
|
return ac;
|
|
134
140
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/client",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-issues-5851-take-two.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-issues-5851-take-two.470+fe6f6a0ee",
|
|
4
4
|
"description": "The tRPC client library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"!**/*.test.*"
|
|
77
77
|
],
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@trpc/server": "11.0.0-alpha-tmp-issues-5851-take-two.
|
|
79
|
+
"@trpc/server": "11.0.0-alpha-tmp-issues-5851-take-two.470+fe6f6a0ee"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@trpc/server": "11.0.0-alpha-tmp-issues-5851-take-two.
|
|
82
|
+
"@trpc/server": "11.0.0-alpha-tmp-issues-5851-take-two.470+fe6f6a0ee",
|
|
83
83
|
"@types/isomorphic-fetch": "^0.0.39",
|
|
84
84
|
"@types/node": "^20.10.0",
|
|
85
85
|
"eslint": "^8.56.0",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"funding": [
|
|
97
97
|
"https://trpc.io/sponsor"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "fe6f6a0ee836f9cbc205d87340e3888b4cd957ed"
|
|
100
100
|
}
|
|
@@ -238,9 +238,15 @@ export function mergeAbortSignals(
|
|
|
238
238
|
};
|
|
239
239
|
|
|
240
240
|
for (const o of opts) {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
242
|
+
const signal = o.signal!;
|
|
243
|
+
if (signal.aborted) {
|
|
244
|
+
onAbort();
|
|
245
|
+
} else {
|
|
246
|
+
signal.addEventListener('abort', onAbort, {
|
|
247
|
+
once: true,
|
|
248
|
+
});
|
|
249
|
+
}
|
|
244
250
|
}
|
|
245
251
|
|
|
246
252
|
return ac;
|