@zayne-labs/callapi-plugins 4.0.39 → 4.0.40

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,15 +1,9 @@
1
1
  import { AnyFunction } from "@zayne-labs/toolkit-type-helpers";
2
2
 
3
- //#region ../callapi/dist/validation-Do6HBp6Z.d.ts
3
+ //#region ../callapi/dist/index-CzrxZYrH.d.ts
4
4
  //#region src/constants/common.d.ts
5
5
  declare const fetchSpecificKeys: readonly (keyof RequestInit | "duplex")[];
6
6
  //#endregion
7
- //#region src/constants/validation.d.ts
8
- declare const fallBackRouteSchemaKey = "@default";
9
- type FallBackRouteSchemaKey = typeof fallBackRouteSchemaKey;
10
- //#endregion
11
- //#endregion
12
- //#region ../callapi/dist/index-DLD315Wj.d.ts
13
7
  //#region src/types/type-helpers.d.ts
14
8
  type AnyString = string & NonNullable<unknown>;
15
9
  type AnyNumber = number & NonNullable<unknown>;
@@ -558,6 +552,10 @@ interface Middlewares<TCallApiContext extends NoInfer<CallApiContext> = DefaultC
558
552
  fetchMiddleware?: (context: FetchMiddlewareContext<TCallApiContext>) => FetchImpl;
559
553
  }
560
554
  //#endregion
555
+ //#region src/constants/validation.d.ts
556
+ declare const fallBackRouteSchemaKey = "@default";
557
+ type FallBackRouteSchemaKey = typeof fallBackRouteSchemaKey;
558
+ //#endregion
561
559
  //#region src/types/standard-schema.d.ts
562
560
  /**
563
561
  * The Standard Schema interface.
@@ -1130,7 +1128,7 @@ type FetchSpecificKeysUnion = Exclude<(typeof fetchSpecificKeys)[number], "body"
1130
1128
  type ModifiedRequestInit = RequestInit & {
1131
1129
  duplex?: "half";
1132
1130
  };
1133
- type CallApiRequestOptions = Prettify<{
1131
+ type CallApiRequestOptions = {
1134
1132
  /**
1135
1133
  * Body of the request, can be a object or any other supported body type.
1136
1134
  */
@@ -1144,7 +1142,7 @@ type CallApiRequestOptions = Prettify<{
1144
1142
  * @default "GET"
1145
1143
  */
1146
1144
  method?: MethodUnion;
1147
- } & Pick<ModifiedRequestInit, FetchSpecificKeysUnion>>;
1145
+ } & Pick<ModifiedRequestInit, FetchSpecificKeysUnion>;
1148
1146
  type CallApiRequestOptionsForHooks = Omit<CallApiRequestOptions, "headers"> & {
1149
1147
  headers: Record<string, string | undefined>;
1150
1148
  };
@@ -1277,18 +1275,15 @@ type SharedExtraOptions<TCallApiContext extends CallApiContext = DefaultCallApiC
1277
1275
  */
1278
1276
  defaultHTTPErrorMessage?: string | ((context: Pick<HTTPError<TErrorData>, "errorData" | "response">) => string);
1279
1277
  /**
1280
- * Forces calculation of total byte size from request/response body streams.
1278
+ * Forces calculation of total byte size from request body streams.
1281
1279
  *
1282
1280
  * Useful when the Content-Length header is missing or incorrect, and you need
1283
- * accurate size information for progress tracking or bandwidth monitoring.
1281
+ * accurate size information for progress tracking.
1284
1282
  *
1285
1283
  * @default false
1286
1284
  *
1287
1285
  */
1288
- forcefullyCalculateStreamSize?: boolean | {
1289
- request?: boolean;
1290
- response?: boolean;
1291
- };
1286
+ forcefullyCalculateRequestStreamSize?: boolean;
1292
1287
  /**
1293
1288
  * Optional metadata field for associating additional information with requests.
1294
1289
  *
@@ -1929,4 +1924,4 @@ declare const loggerPlugin: (options?: LoggerOptions) => {
1929
1924
  };
1930
1925
  //#endregion
1931
1926
  export { defaultConsoleObject as n, loggerPlugin as r, LoggerOptions as t };
1932
- //# sourceMappingURL=index-doc1rAsf.d.ts.map
1927
+ //# sourceMappingURL=index-C8ffarm9.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as defaultConsoleObject, r as loggerPlugin, t as LoggerOptions } from "./index-doc1rAsf.js";
1
+ import { n as defaultConsoleObject, r as loggerPlugin, t as LoggerOptions } from "./index-C8ffarm9.js";
2
2
  export { LoggerOptions, defaultConsoleObject, loggerPlugin };
@@ -1,2 +1,2 @@
1
- import { n as defaultConsoleObject, r as loggerPlugin, t as LoggerOptions } from "../../index-doc1rAsf.js";
1
+ import { n as defaultConsoleObject, r as loggerPlugin, t as LoggerOptions } from "../../index-C8ffarm9.js";
2
2
  export { LoggerOptions, defaultConsoleObject, loggerPlugin };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zayne-labs/callapi-plugins",
3
3
  "type": "module",
4
- "version": "4.0.39",
4
+ "version": "4.0.40",
5
5
  "description": "A collection of plugins for callapi",
6
6
  "author": "Ryan Zayne",
7
7
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "peerDependencies": {
25
25
  "@zayne-labs/toolkit-type-helpers": ">=0.11.17",
26
26
  "consola": "3.x.x",
27
- "@zayne-labs/callapi": "1.11.39"
27
+ "@zayne-labs/callapi": "1.11.40"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@arethetypeswrong/cli": "0.18.2",
@@ -41,7 +41,7 @@
41
41
  "tsdown": "0.19.0-beta.3",
42
42
  "typescript": "5.9.3",
43
43
  "vitest": "^4.0.16",
44
- "@zayne-labs/callapi": "1.11.39"
44
+ "@zayne-labs/callapi": "1.11.40"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public",