@ethlete/query 0.1.0-next.1 → 0.1.0-next.3
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/esm2020/lib/auth/bearer-auth-provider.mjs +4 -3
- package/esm2020/lib/query-form/query-form.mjs +7 -4
- package/esm2020/lib/query-form/query-form.types.mjs +1 -1
- package/esm2020/lib/query-form/query-form.utils.mjs +21 -1
- package/esm2020/lib/request/request.mjs +2 -2
- package/esm2020/lib/request/request.types.mjs +1 -1
- package/esm2020/lib/request/request.util.mjs +12 -2
- package/fesm2015/ethlete-query.mjs +43 -8
- package/fesm2015/ethlete-query.mjs.map +1 -1
- package/fesm2020/ethlete-query.mjs +42 -8
- package/fesm2020/ethlete-query.mjs.map +1 -1
- package/lib/query-form/query-form.d.ts +1 -1
- package/lib/query-form/query-form.types.d.ts +7 -1
- package/lib/query-form/query-form.utils.d.ts +5 -0
- package/lib/request/request.types.d.ts +2 -0
- package/lib/request/request.util.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Method, ParamArray, Params, QueryParams, RequestError, UnfilteredParamPrimitive } from './request.types';
|
|
2
2
|
export declare const isRequestError: (error: unknown) => error is RequestError<unknown>;
|
|
3
3
|
export declare const isAbortRequestError: (error: unknown) => error is RequestError<unknown>;
|
|
4
4
|
export declare const buildRoute: (options: {
|
|
@@ -14,7 +14,7 @@ export declare const filterInvalidParams: (params: QueryParams) => Params;
|
|
|
14
14
|
export declare const isParamValid: (primitive: UnfilteredParamPrimitive) => boolean;
|
|
15
15
|
export declare const extractExpiresInSeconds: (headers: Headers) => number | null;
|
|
16
16
|
export declare const buildTimestampFromSeconds: (seconds: number | null) => number | null;
|
|
17
|
-
export declare const buildRequestError: <ErrorResponse = unknown>(error: unknown) => Promise<RequestError<null> | RequestError<ErrorResponse>>;
|
|
17
|
+
export declare const buildRequestError: <ErrorResponse = unknown>(error: unknown, route: string, requestInit?: RequestInit) => Promise<RequestError<null> | RequestError<ErrorResponse>>;
|
|
18
18
|
export declare const buildBody: (body: unknown) => string | FormData | null;
|
|
19
19
|
export declare const transformMethod: (method: Method) => "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "TRACE" | "CONNECT" | "PURGE" | "LINK" | "UNLINK" | "CUSTOM";
|
|
20
20
|
export declare const guessContentType: (body: unknown) => "text/plain" | "multipart/form-data" | "application/json" | null;
|