Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

adnf

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adnf - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

6

dist/adnf.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc