@trpc/client 10.0.0-alpha.43 → 10.0.0-alpha.46

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.
Files changed (62) hide show
  1. package/dist/TRPCClientError.d.ts +14 -10
  2. package/dist/TRPCClientError.d.ts.map +1 -1
  3. package/dist/httpUtils-44781613.mjs +76 -0
  4. package/dist/httpUtils-801112a6.js +79 -0
  5. package/dist/index.js +226 -337
  6. package/dist/index.mjs +228 -333
  7. package/dist/internals/TRPCClient.d.ts +3 -1
  8. package/dist/internals/TRPCClient.d.ts.map +1 -1
  9. package/dist/internals/dataLoader.d.ts.map +1 -1
  10. package/dist/internals/fetchHelpers.d.ts.map +1 -1
  11. package/dist/internals/retryDelay.d.ts.map +1 -1
  12. package/dist/links/dedupeLink.d.ts.map +1 -1
  13. package/dist/links/httpBatchLink.d.ts.map +1 -1
  14. package/dist/links/httpBatchLink.js +182 -304
  15. package/dist/links/httpBatchLink.mjs +182 -304
  16. package/dist/links/httpLink.d.ts.map +1 -1
  17. package/dist/links/httpLink.js +30 -53
  18. package/dist/links/httpLink.mjs +30 -53
  19. package/dist/links/index.d.ts.map +1 -1
  20. package/dist/links/internals/createChain.d.ts.map +1 -1
  21. package/dist/links/internals/httpUtils.d.ts.map +1 -1
  22. package/dist/links/internals/transformResult.d.ts.map +1 -1
  23. package/dist/links/loggerLink.d.ts.map +1 -1
  24. package/dist/links/loggerLink.js +89 -94
  25. package/dist/links/loggerLink.mjs +89 -89
  26. package/dist/links/retryLink.d.ts.map +1 -1
  27. package/dist/links/splitLink.d.ts.map +1 -1
  28. package/dist/links/splitLink.js +1 -1
  29. package/dist/links/splitLink.mjs +1 -1
  30. package/dist/links/types.d.ts.map +1 -1
  31. package/dist/links/wsLink.d.ts.map +1 -1
  32. package/dist/links/wsLink.js +248 -379
  33. package/dist/links/wsLink.mjs +248 -368
  34. package/dist/splitLink-695ae288.js +48 -0
  35. package/dist/splitLink-ad44a55d.mjs +45 -0
  36. package/dist/transformResult-106791d7.mjs +62 -0
  37. package/dist/transformResult-e15ccdf6.js +65 -0
  38. package/links/httpBatchLink/index.d.ts +1 -1
  39. package/links/httpBatchLink/index.js +1 -1
  40. package/links/httpLink/index.d.ts +1 -1
  41. package/links/httpLink/index.js +1 -1
  42. package/links/loggerLink/index.d.ts +1 -1
  43. package/links/loggerLink/index.js +1 -1
  44. package/links/splitLink/index.d.ts +1 -1
  45. package/links/splitLink/index.js +1 -1
  46. package/links/wsLink/index.d.ts +1 -1
  47. package/links/wsLink/index.js +1 -1
  48. package/package.json +7 -11
  49. package/src/TRPCClientError.ts +35 -17
  50. package/src/internals/TRPCClient.ts +10 -9
  51. package/dist/httpUtils-089853f6.mjs +0 -99
  52. package/dist/httpUtils-a0169eef.js +0 -106
  53. package/dist/index.ts.js +0 -1
  54. package/dist/links/httpBatchLink.ts.js +0 -1
  55. package/dist/links/httpLink.ts.js +0 -1
  56. package/dist/links/loggerLink.ts.js +0 -1
  57. package/dist/links/splitLink.ts.js +0 -1
  58. package/dist/links/wsLink.ts.js +0 -1
  59. package/dist/splitLink-0202cd7b.mjs +0 -54
  60. package/dist/splitLink-23c5ce5c.js +0 -57
  61. package/dist/transformResult-06bec648.mjs +0 -108
  62. package/dist/transformResult-3ccc74ea.js +0 -122
package/dist/index.mjs CHANGED
@@ -1,380 +1,275 @@
1
- import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
- import _createClass from '@babel/runtime/helpers/createClass';
3
1
  import { observable, share, observableToPromise } from '@trpc/server/observable';
4
- import { T as TRPCClientError } from './transformResult-06bec648.mjs';
5
- export { T as TRPCClientError } from './transformResult-06bec648.mjs';
2
+ import { T as TRPCClientError } from './transformResult-106791d7.mjs';
3
+ export { T as TRPCClientError } from './transformResult-106791d7.mjs';
6
4
  import { httpBatchLink } from './links/httpBatchLink.mjs';
7
5
  export { httpBatchLink } from './links/httpBatchLink.mjs';
8
- import '@babel/runtime/helpers/defineProperty';
9
- import '@babel/runtime/helpers/slicedToArray';
10
- import { c as createChain } from './splitLink-0202cd7b.mjs';
11
- export { s as splitLink } from './splitLink-0202cd7b.mjs';
12
- import '@babel/runtime/helpers/assertThisInitialized';
13
- import '@babel/runtime/helpers/inherits';
14
- import '@babel/runtime/helpers/possibleConstructorReturn';
15
- import '@babel/runtime/helpers/getPrototypeOf';
16
- import '@babel/runtime/helpers/wrapNativeSuper';
17
- import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
6
+ import { c as createChain } from './splitLink-ad44a55d.mjs';
7
+ export { s as splitLink } from './splitLink-ad44a55d.mjs';
18
8
  import { createProxy } from '@trpc/server/shared';
19
9
  export { httpLink } from './links/httpLink.mjs';
20
10
  export { loggerLink } from './links/loggerLink.mjs';
21
11
  export { createWSClient, wsLink } from './links/wsLink.mjs';
22
- import './httpUtils-089853f6.mjs';
12
+ import './httpUtils-44781613.mjs';
23
13
 
24
14
  function getWindow() {
25
- if (typeof window !== 'undefined') {
26
- return window;
27
- }
28
-
29
- return global;
15
+ if (typeof window !== 'undefined') {
16
+ return window;
17
+ }
18
+ return global;
30
19
  }
31
20
  function getAbortController(ac) {
32
- var win = getWindow();
33
- return ac || win.AbortController || null;
21
+ const win = getWindow();
22
+ return ac || win.AbortController || null;
34
23
  }
35
24
 
36
25
  function getFetch(f) {
37
- if (f) {
38
- return f;
39
- }
40
-
41
- var win = getWindow();
42
-
43
- if (win.fetch) {
44
- return typeof win.fetch.bind === 'function' ? win.fetch.bind(win) : win.fetch;
45
- }
46
-
47
- throw new Error('No fetch implementation found');
26
+ if (f) {
27
+ return f;
28
+ }
29
+ const win = getWindow();
30
+ if (win.fetch) {
31
+ return typeof win.fetch.bind === 'function' ? win.fetch.bind(win) : win.fetch;
32
+ }
33
+ throw new Error('No fetch implementation found');
48
34
  }
49
35
 
50
36
  function dedupeLink() {
51
- // initialized config
52
- return function () {
53
- // initialized in app
54
- var pending = {};
55
- return function (_ref) {
56
- var op = _ref.op,
57
- next = _ref.next;
58
-
59
- // initialized for request
60
- if (op.type !== 'query') {
61
- // pass through
62
- return next(op);
63
- }
64
-
65
- var key = JSON.stringify([op.path, op.input]);
66
- var obs$ = pending[key];
67
-
68
- if (obs$) {
69
- // console.log('hooking into pending', { op });
70
- return observable(function (observer) {
71
- return obs$.subscribe(observer);
72
- });
73
- }
74
-
75
- var shared$ = observable(function (observer) {
76
- function reset() {
77
- delete pending[key];
78
- }
79
-
80
- var subscription = next(op).subscribe({
81
- next: function next(v) {
82
- observer.next(v);
83
- },
84
- error: function error(e) {
85
- reset();
86
- observer.error(e);
87
- },
88
- complete: function complete() {
89
- reset();
90
- observer.complete();
91
- }
92
- });
93
- return function () {
94
- reset();
95
- subscription.unsubscribe();
37
+ // initialized config
38
+ return ()=>{
39
+ // initialized in app
40
+ const pending = {};
41
+ return ({ op , next })=>{
42
+ // initialized for request
43
+ if (op.type !== 'query') {
44
+ // pass through
45
+ return next(op);
46
+ }
47
+ const key = JSON.stringify([
48
+ op.path,
49
+ op.input
50
+ ]);
51
+ const obs$ = pending[key];
52
+ if (obs$) {
53
+ // console.log('hooking into pending', { op });
54
+ return observable((observer)=>obs$.subscribe(observer));
55
+ }
56
+ const shared$ = observable((observer)=>{
57
+ function reset() {
58
+ delete pending[key];
59
+ }
60
+ const subscription = next(op).subscribe({
61
+ next (v) {
62
+ observer.next(v);
63
+ },
64
+ error (e) {
65
+ reset();
66
+ observer.error(e);
67
+ },
68
+ complete () {
69
+ reset();
70
+ observer.complete();
71
+ }
72
+ });
73
+ return ()=>{
74
+ reset();
75
+ subscription.unsubscribe();
76
+ };
77
+ }).pipe(share());
78
+ pending[key] = shared$;
79
+ return shared$;
96
80
  };
97
- }).pipe(share());
98
- pending[key] = shared$;
99
- return shared$;
100
81
  };
101
- };
102
82
  }
103
83
 
104
84
  function retryLink(opts) {
105
- // initialized config
106
- return function () {
107
- // initialized in app
108
- return function (_ref) {
109
- var op = _ref.op,
110
- next = _ref.next;
111
- // initialized for request
112
- return observable(function (observer) {
113
- var next$ = null;
114
- var attempts = 0;
115
- var isDone = false;
116
-
117
- function attempt() {
118
- var _next$;
119
-
120
- attempts++;
121
- (_next$ = next$) === null || _next$ === void 0 ? void 0 : _next$.unsubscribe();
122
- next$ = next(op).subscribe({
123
- error: function error(_error) {
124
- if (attempts >= opts.attempts) {
125
- observer.error(_error);
126
- return;
127
- }
128
-
129
- attempt();
130
- },
131
- next: function next(result) {
132
- if ('result' in result.result) {
133
- isDone = true;
134
- observer.next(result);
135
- return;
136
- }
137
-
138
- if (attempts >= opts.attempts) {
139
- isDone = true;
140
- observer.next(result);
141
- return;
142
- }
143
-
144
- attempt();
145
- },
146
- complete: function complete() {
147
- if (isDone) {
148
- observer.complete();
149
- }
150
- }
151
- });
152
- }
153
-
154
- attempt();
155
- return function () {
156
- var _next$2;
157
-
158
- isDone = true;
159
- (_next$2 = next$) === null || _next$2 === void 0 ? void 0 : _next$2.unsubscribe();
85
+ // initialized config
86
+ return ()=>{
87
+ // initialized in app
88
+ return ({ op , next })=>{
89
+ // initialized for request
90
+ return observable((observer)=>{
91
+ let next$ = null;
92
+ let attempts = 0;
93
+ let isDone = false;
94
+ function attempt() {
95
+ attempts++;
96
+ next$?.unsubscribe();
97
+ next$ = next(op).subscribe({
98
+ error (error) {
99
+ if (attempts >= opts.attempts) {
100
+ observer.error(error);
101
+ return;
102
+ }
103
+ attempt();
104
+ },
105
+ next (result) {
106
+ if ('result' in result.result) {
107
+ isDone = true;
108
+ observer.next(result);
109
+ return;
110
+ }
111
+ if (attempts >= opts.attempts) {
112
+ isDone = true;
113
+ observer.next(result);
114
+ return;
115
+ }
116
+ attempt();
117
+ },
118
+ complete () {
119
+ if (isDone) {
120
+ observer.complete();
121
+ }
122
+ }
123
+ });
124
+ }
125
+ attempt();
126
+ return ()=>{
127
+ isDone = true;
128
+ next$?.unsubscribe();
129
+ };
130
+ });
160
131
  };
161
- });
162
132
  };
163
- };
164
133
  }
165
134
 
166
- var idCounter = 0;
167
-
168
- function getRequestId() {
169
- return ++idCounter;
170
- }
171
-
172
- var TRPCClient = /*#__PURE__*/function () {
173
- function TRPCClient(opts) {
174
- var _this = this;
175
-
176
- _classCallCheck(this, TRPCClient);
177
-
178
- this.links = void 0;
179
- this.runtime = void 0;
180
-
181
- var _fetch = getFetch(opts === null || opts === void 0 ? void 0 : opts.fetch);
182
-
183
- var AC = getAbortController(opts === null || opts === void 0 ? void 0 : opts.AbortController);
184
-
185
- function getHeadersFn() {
186
- if (opts.headers) {
187
- var headers = opts.headers;
188
- return typeof headers === 'function' ? headers : function () {
189
- return headers;
190
- };
191
- }
192
-
193
- return function () {
194
- return {};
195
- };
135
+ class TRPCClient {
136
+ getRequestId() {
137
+ return ++this.requestId;
196
138
  }
197
-
198
- var transformer = opts.transformer ? 'input' in opts.transformer ? {
199
- serialize: opts.transformer.input.serialize,
200
- deserialize: opts.transformer.output.deserialize
201
- } : opts.transformer : {
202
- serialize: function serialize(data) {
203
- return data;
204
- },
205
- deserialize: function deserialize(data) {
206
- return data;
207
- }
208
- };
209
- this.runtime = {
210
- AbortController: AC,
211
- fetch: _fetch,
212
- headers: getHeadersFn(),
213
- transformer: transformer
214
- };
215
-
216
- if ('links' in opts) {
217
- this.links = opts.links.map(function (link) {
218
- return link(_this.runtime);
219
- });
220
- } else {
221
- this.links = [httpBatchLink({
222
- url: opts.url
223
- })(this.runtime)];
139
+ $request({ type , input , path , context ={} }) {
140
+ const chain$ = createChain({
141
+ links: this.links,
142
+ op: {
143
+ id: this.getRequestId(),
144
+ type,
145
+ path,
146
+ input,
147
+ context
148
+ }
149
+ });
150
+ return chain$.pipe(share());
224
151
  }
225
- }
226
-
227
- _createClass(TRPCClient, [{
228
- key: "$request",
229
- value: function $request(_ref) {
230
- var type = _ref.type,
231
- input = _ref.input,
232
- path = _ref.path,
233
- _ref$context = _ref.context,
234
- context = _ref$context === void 0 ? {} : _ref$context;
235
- var chain$ = createChain({
236
- links: this.links,
237
- op: {
238
- id: getRequestId(),
239
- type: type,
240
- path: path,
241
- input: input,
242
- context: context
243
- }
244
- });
245
- return chain$.pipe(share());
152
+ requestAsPromise(opts) {
153
+ const req$ = this.$request(opts);
154
+ const { promise , abort } = observableToPromise(req$);
155
+ const cancellablePromise = new Promise((resolve, reject)=>{
156
+ promise.then((envelope)=>{
157
+ resolve(envelope.result.data);
158
+ }).catch((err)=>{
159
+ reject(TRPCClientError.from(err));
160
+ });
161
+ });
162
+ cancellablePromise.cancel = abort;
163
+ return cancellablePromise;
246
164
  }
247
- }, {
248
- key: "requestAsPromise",
249
- value: function requestAsPromise(opts) {
250
- var req$ = this.$request(opts);
251
-
252
- var _observableToPromise = observableToPromise(req$),
253
- promise = _observableToPromise.promise,
254
- abort = _observableToPromise.abort;
255
-
256
- var cancellablePromise = new Promise(function (resolve, reject) {
257
- promise.then(function (envelope) {
258
- resolve(envelope.result.data);
259
- }).catch(function (err) {
260
- reject(TRPCClientError.from(err));
165
+ query(path, ...args) {
166
+ const context = args[1]?.context;
167
+ return this.requestAsPromise({
168
+ type: 'query',
169
+ path,
170
+ input: args[0],
171
+ context
261
172
  });
262
- });
263
- cancellablePromise.cancel = abort;
264
- return cancellablePromise;
265
173
  }
266
- }, {
267
- key: "query",
268
- value: function query(path) {
269
- var _args$;
270
-
271
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
272
- args[_key - 1] = arguments[_key];
273
- }
274
-
275
- var context = (_args$ = args[1]) === null || _args$ === void 0 ? void 0 : _args$.requestContext;
276
- return this.requestAsPromise({
277
- type: 'query',
278
- path: path,
279
- input: args[0],
280
- context: context
281
- });
174
+ mutation(path, ...args) {
175
+ const context = args[1]?.context;
176
+ return this.requestAsPromise({
177
+ type: 'mutation',
178
+ path,
179
+ input: args[0],
180
+ context
181
+ });
282
182
  }
283
- }, {
284
- key: "mutation",
285
- value: function mutation(path) {
286
- var _args$2;
287
-
288
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
289
- args[_key2 - 1] = arguments[_key2];
290
- }
291
-
292
- var context = (_args$2 = args[1]) === null || _args$2 === void 0 ? void 0 : _args$2.requestContext;
293
- return this.requestAsPromise({
294
- type: 'mutation',
295
- path: path,
296
- input: args[0],
297
- context: context
298
- });
183
+ subscription(path, input, opts) {
184
+ const observable$ = this.$request({
185
+ type: 'subscription',
186
+ path,
187
+ input,
188
+ context: opts?.context
189
+ });
190
+ return observable$.subscribe({
191
+ next (envelope) {
192
+ if (envelope.result.type === 'started') {
193
+ opts.onStarted?.();
194
+ } else if (envelope.result.type === 'stopped') {
195
+ opts.onStopped?.();
196
+ } else {
197
+ opts.onData?.(envelope.result.data);
198
+ }
199
+ },
200
+ error (err) {
201
+ opts.onError?.(err);
202
+ },
203
+ complete () {
204
+ opts.onComplete?.();
205
+ }
206
+ });
299
207
  }
300
- }, {
301
- key: "subscription",
302
- value: function subscription(path, input, opts) {
303
- var observable$ = this.$request({
304
- type: 'subscription',
305
- path: path,
306
- input: input,
307
- context: opts.requestContext
308
- });
309
- return observable$.subscribe({
310
- next: function next(envelope) {
311
- if (envelope.result.type === 'started') {
312
- var _opts$onStarted;
313
-
314
- (_opts$onStarted = opts.onStarted) === null || _opts$onStarted === void 0 ? void 0 : _opts$onStarted.call(opts);
315
- } else if (envelope.result.type === 'stopped') {
316
- var _opts$onStopped;
317
-
318
- (_opts$onStopped = opts.onStopped) === null || _opts$onStopped === void 0 ? void 0 : _opts$onStopped.call(opts);
319
- } else {
320
- var _opts$onData;
321
-
322
- (_opts$onData = opts.onData) === null || _opts$onData === void 0 ? void 0 : _opts$onData.call(opts, envelope.result.data);
323
- }
324
- },
325
- error: function error(err) {
326
- var _opts$onError;
327
-
328
- (_opts$onError = opts.onError) === null || _opts$onError === void 0 ? void 0 : _opts$onError.call(opts, err);
329
- },
330
- complete: function complete() {
331
- var _opts$onComplete;
332
-
333
- (_opts$onComplete = opts.onComplete) === null || _opts$onComplete === void 0 ? void 0 : _opts$onComplete.call(opts);
208
+ constructor(opts){
209
+ const _fetch = getFetch(opts?.fetch);
210
+ const AC = getAbortController(opts?.AbortController);
211
+ this.requestId = 0;
212
+ function getHeadersFn() {
213
+ if (opts.headers) {
214
+ const headers = opts.headers;
215
+ return typeof headers === 'function' ? headers : ()=>headers;
216
+ }
217
+ return ()=>({});
218
+ }
219
+ const transformer = opts.transformer ? 'input' in opts.transformer ? {
220
+ serialize: opts.transformer.input.serialize,
221
+ deserialize: opts.transformer.output.deserialize
222
+ } : opts.transformer : {
223
+ serialize: (data)=>data,
224
+ deserialize: (data)=>data
225
+ };
226
+ this.runtime = {
227
+ AbortController: AC,
228
+ fetch: _fetch,
229
+ headers: getHeadersFn(),
230
+ transformer
231
+ };
232
+ if ('links' in opts) {
233
+ this.links = opts.links.map((link)=>link(this.runtime));
234
+ } else {
235
+ this.links = [
236
+ httpBatchLink({
237
+ url: opts.url
238
+ })(this.runtime),
239
+ ];
334
240
  }
335
- });
336
241
  }
337
- }]);
338
-
339
- return TRPCClient;
340
- }();
242
+ }
341
243
 
342
- /* eslint-disable @typescript-eslint/no-non-null-assertion */
343
244
  function createTRPCClient(opts) {
344
- var client = new TRPCClient(opts);
345
- return client;
346
- } // Also the client created above needs to somehow be like `TRPCClient<Router> & Omit<Router, 'createCaller' | 'createProcedure' | '_def' | 'transformer' | 'errorFormatter' | 'getErrorShape>`
245
+ const client = new TRPCClient(opts);
246
+ return client;
247
+ }
347
248
 
348
- var clientCallTypeMap = {
349
- query: 'query',
350
- mutate: 'mutation',
351
- subscribe: 'subscription'
249
+ const clientCallTypeMap = {
250
+ query: 'query',
251
+ mutate: 'mutation',
252
+ subscribe: 'subscription'
352
253
  };
353
254
  /**
354
255
  * @deprecated use createTRPCProxyClient instead
355
256
  * @internal
356
- */
357
-
358
- function createTRPCClientProxy(client) {
359
- var proxy = createProxy(function (_ref) {
360
- var _ref2;
361
-
362
- var path = _ref.path,
363
- args = _ref.args;
364
-
365
- var pathCopy = _toConsumableArray(path);
366
-
367
- var clientCallType = pathCopy.pop();
368
- var procedureType = clientCallTypeMap[clientCallType];
369
- var fullPath = pathCopy.join('.');
370
- return (_ref2 = client)[procedureType].apply(_ref2, [fullPath].concat(_toConsumableArray(args)));
371
- });
372
- return proxy;
257
+ */ function createTRPCClientProxy(client) {
258
+ const proxy = createProxy(({ path , args })=>{
259
+ const pathCopy = [
260
+ ...path
261
+ ];
262
+ const clientCallType = pathCopy.pop();
263
+ const procedureType = clientCallTypeMap[clientCallType];
264
+ const fullPath = pathCopy.join('.');
265
+ return client[procedureType](fullPath, ...args);
266
+ });
267
+ return proxy;
373
268
  }
374
269
  function createTRPCProxyClient(opts) {
375
- var client = createTRPCClient(opts);
376
- var proxy = createTRPCClientProxy(client);
377
- return proxy;
270
+ const client = createTRPCClient(opts);
271
+ const proxy = createTRPCClientProxy(client);
272
+ return proxy;
378
273
  }
379
274
 
380
275
  export { createTRPCClient, createTRPCClientProxy, createTRPCProxyClient, dedupeLink, getFetch, retryLink };
@@ -44,7 +44,7 @@ export interface TRPCRequestOptions {
44
44
  /**
45
45
  * Pass additional context to links
46
46
  */
47
- requestContext?: OperationContext;
47
+ context?: OperationContext;
48
48
  }
49
49
  export interface TRPCSubscriptionObserver<TValue, TError> {
50
50
  onStarted: () => void;
@@ -67,6 +67,8 @@ export declare type AssertLegacyDef<TRouter extends AnyRouter> = TRouter['_def']
67
67
  export declare class TRPCClient<TRouter extends AnyRouter> {
68
68
  private readonly links;
69
69
  readonly runtime: TRPCClientRuntime;
70
+ private requestId;
71
+ private getRequestId;
70
72
  constructor(opts: CreateTRPCClientOptions<TRouter>);
71
73
  private $request;
72
74
  private requestAsPromise;
@@ -1 +1 @@
1
- {"version":3,"file":"TRPCClient.d.ts","sourceRoot":"","sources":["../../src/internals/TRPCClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,4BAA4B,EAE5B,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACxB,MA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EAC3C,OAAO,SAAS,uBAAuB,CAAC,OAAO,EAAE,KAAK,CAAC,EACvD,MAAM,SAAS,mBAAmB,CAChC,UAAU,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,CACnD,EAED,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,kBAAkB,GACtB,OAAO,CAAC,wBAAwB,CAAC,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,GACrE,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,aAAK,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC;IACpC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK;QACvB,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;gBA2FnB,IAAI,KAAG,iBAAiB,MAAM,CAAC;EAsCnD"}
1
+ {"version":3,"file":"dataLoader.d.ts","sourceRoot":"","sources":["../../../../packages/client/src/internals/dataLoader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAa5D,aAAK,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC;IACpC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK;QACvB,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;gBA2FnB,IAAI,KAAG,iBAAiB,MAAM,CAAC;EAsCnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetchHelpers.d.ts","sourceRoot":"","sources":["../../src/internals/fetchHelpers.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,sBAKxB;AACD,wBAAgB,kBAAkB,CAChC,EAAE,CAAC,EAAE,OAAO,eAAe,GAC1B,OAAO,eAAe,GAAG,IAAI,CAG/B"}
1
+ {"version":3,"file":"fetchHelpers.d.ts","sourceRoot":"","sources":["../../../../packages/client/src/internals/fetchHelpers.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,sBAKxB;AACD,wBAAgB,kBAAkB,CAChC,EAAE,CAAC,EAAE,OAAO,eAAe,GAC1B,OAAO,eAAe,GAAG,IAAI,CAG/B"}