@zayne-labs/callapi 1.11.46 → 1.12.1

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/README.md CHANGED
@@ -115,7 +115,7 @@ Hook into CallApi's lifecycle at any point.
115
115
  ```js
116
116
  const api = createFetchClient({
117
117
  onRequest: ({ request }) => {
118
- request.headers.set("Authorization", `Bearer ${token}`);
118
+ request.headers.Authorization = `Bearer ${token}`;
119
119
  },
120
120
  onError: ({ error }) => {
121
121
  Sentry.captureException(error);
@@ -1,4 +1,4 @@
1
- import { K as FallBackRouteSchemaKey, q as fallBackRouteSchemaKey, tt as RequestContext, ut as fetchSpecificKeys } from "../index-JYbaY_l-.js";
1
+ import { Dt as fetchSpecificKeys, K as RequestContext, bt as fallBackRouteSchemaKey, yt as FallBackRouteSchemaKey } from "../default-types-BvfiXmWZ.js";
2
2
 
3
3
  //#region src/constants/defaults.d.ts
4
4
  declare const extraOptionDefaults: Readonly<Readonly<{
@@ -12,6 +12,7 @@ declare const extraOptionDefaults: Readonly<Readonly<{
12
12
  dedupeCacheScopeKey: "default";
13
13
  dedupeStrategy: "cancel";
14
14
  hooksExecutionMode: "parallel";
15
+ refetchAttempts: number;
15
16
  responseParser: (text: string, reviver?: (this: any, key: string, value: any) => any) => any;
16
17
  responseType: "json";
17
18
  resultMode: "all";
@@ -1,3 +1,2 @@
1
- import { S as fetchSpecificKeys, n as requestOptionDefaults, t as extraOptionDefaults, x as fallBackRouteSchemaKey } from "../defaults-BlLod7dh.js";
2
-
3
- export { extraOptionDefaults, fallBackRouteSchemaKey, fetchSpecificKeys, requestOptionDefaults };
1
+ import { I as fallBackRouteSchemaKey, L as fetchSpecificKeys, n as requestOptionDefaults, t as extraOptionDefaults } from "../defaults-B0Zvy-uW.js";
2
+ export { extraOptionDefaults, fallBackRouteSchemaKey, fetchSpecificKeys, requestOptionDefaults };