Comparing version 0.0.17 to 0.0.18
@@ -78,4 +78,4 @@ declare type AbortControllerGroup = { | ||
data?: object; | ||
form?: FormData | FormDataRecord; | ||
files?: FormDataRecord; | ||
form?: FormData | FormDataEntries; | ||
files?: FormDataEntries; | ||
params?: Record<string, any>; | ||
@@ -101,3 +101,3 @@ parse?: (str: string) => object; | ||
declare type FormDataRecord = Record<string, string | Blob>; | ||
declare type FormDataEntries = Record<string, undefined | string | Blob | File>; | ||
@@ -104,0 +104,0 @@ declare type InferResult<F extends Fetch> = F extends Fetch<infer F> ? F : never; |
@@ -101,5 +101,5 @@ const D = (e) => "File" in window && e instanceof File, H = (e) => e instanceof FormData, _ = (e) => { | ||
} catch (t) { | ||
return m.Err(null, P(t) ? t : void 0); | ||
return m.Err(null, T(t) ? t : void 0); | ||
} | ||
}, P = (e) => e instanceof Error, Q = async (e, t) => { | ||
}, T = (e) => e instanceof Error, Q = async (e, t) => { | ||
const { | ||
@@ -201,3 +201,3 @@ strict: n = !0, | ||
}), w = (e, t = {}) => { | ||
const n = P(e) ? e : new Error("ResultErr: Provided error is on instance of Error()"); | ||
const n = T(e) ? e : new Error("ResultErr: Provided error is on instance of Error()"); | ||
return Object.assign(m.Err(null, n), { | ||
@@ -223,3 +223,3 @@ aborted: !1, | ||
response: new Response() | ||
}), T = (e, t) => { | ||
}), P = (e, t) => { | ||
const n = "_initFetch" in e ? e._initFetch : e, r = "_composedFetch" in e ? e._composedFetch : (o) => o, s = (o) => r(t ? t(o) : o), i = async (o, g) => { | ||
@@ -230,3 +230,3 @@ const f = (c, d) => (c = p(c), n(c + o, { ...d, ...g })); | ||
} catch (c) { | ||
return w(P(c) ? c : void 0); | ||
return w(T(c) ? c : void 0); | ||
} | ||
@@ -237,8 +237,8 @@ }; | ||
_composedFetch: s, | ||
_create: (o) => T(i, o) | ||
_create: (o) => P(i, o) | ||
}); | ||
}, W = (e, t) => T(e, (n) => (r, s) => { | ||
}, W = (e, t) => P(e, (n) => (r, s) => { | ||
const i = typeof t == "function" ? t(s) : t; | ||
return n(r, j(s, i)); | ||
}), X = (e, t) => T(e, (n) => (r, s) => (r = p(r), n( | ||
}), X = (e, t) => P(e, (n) => (r, s) => (r = p(r), n( | ||
typeof t == "function" ? t(r) : r + p(t), | ||
@@ -313,3 +313,3 @@ s | ||
re as withDeclarations, | ||
T as withFetch, | ||
P as withFetch, | ||
te as withMethods, | ||
@@ -316,0 +316,0 @@ W as withOptions, |
{ | ||
"name": "adnf", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42302