@learncard/network-brain-client 2.3.28 → 2.4.0

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.
@@ -5417,8 +5417,26 @@ var getClient = /* @__PURE__ */ __name(async (url, didAuthFunction) => {
5417
5417
  });
5418
5418
  return trpc;
5419
5419
  }, "getClient");
5420
+ var getApiTokenClient = /* @__PURE__ */ __name(async (url, apiToken) => {
5421
+ const trpc = createTRPCClient({
5422
+ links: [
5423
+ httpBatchLink({
5424
+ methodOverride: "POST",
5425
+ url,
5426
+ maxURLLength: 3072,
5427
+ headers: { Authorization: `Bearer ${apiToken}` },
5428
+ transformer: {
5429
+ input: import_helpers.RegExpTransformer,
5430
+ output: { serialize: (o) => o, deserialize: (o) => o }
5431
+ }
5432
+ })
5433
+ ]
5434
+ });
5435
+ return trpc;
5436
+ }, "getApiTokenClient");
5420
5437
  var src_default = getClient;
5421
5438
  export {
5422
5439
  src_default as default,
5440
+ getApiTokenClient,
5423
5441
  getClient
5424
5442
  };