Comparing version 1.15.0 to 1.16.0
{ | ||
"name": "axaj", | ||
"version": "1.15.0", | ||
"version": "1.16.0", | ||
"description": "A tiny and trivial AJAX library which uses the Fetch API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
/* | ||
* Copyright (c) 2020 Anton Bagdatyev (Tonix) | ||
* Copyright (c) 2021 Anton Bagdatyev (Tonix) | ||
* | ||
@@ -31,3 +31,3 @@ * Permission is hereby granted, free of charge, to any person | ||
import ImmutableLinkedOrderedMap, { | ||
ImmutableLinkedOrderedMapMode | ||
ImmutableLinkedOrderedMapMode, | ||
} from "immutable-linked-ordered-map"; | ||
@@ -81,3 +81,3 @@ import { checkNetwork, buildQueryString, formData } from "js-utl"; | ||
checkNetworkInterval = interval; | ||
} | ||
}, | ||
}; | ||
@@ -89,3 +89,3 @@ | ||
const defaultOptions = { | ||
credentials: "same-origin" | ||
credentials: "same-origin", | ||
}; | ||
@@ -97,3 +97,3 @@ | ||
let onNoNetworkHandlers = new ImmutableLinkedOrderedMap({ | ||
mode: ImmutableLinkedOrderedMapMode.LIGHTWEIGHT | ||
mode: ImmutableLinkedOrderedMapMode.LIGHTWEIGHT, | ||
}); | ||
@@ -105,3 +105,3 @@ | ||
let onNetworkRestoredHandlers = new ImmutableLinkedOrderedMap({ | ||
mode: ImmutableLinkedOrderedMapMode.LIGHTWEIGHT | ||
mode: ImmutableLinkedOrderedMapMode.LIGHTWEIGHT, | ||
}); | ||
@@ -113,3 +113,3 @@ | ||
let onStillNoNetworkHandlers = new ImmutableLinkedOrderedMap({ | ||
mode: ImmutableLinkedOrderedMapMode.LIGHTWEIGHT | ||
mode: ImmutableLinkedOrderedMapMode.LIGHTWEIGHT, | ||
}); | ||
@@ -126,3 +126,3 @@ | ||
onNoNetworkHandlers = onNoNetworkHandlers.set({ | ||
[noNetworkHandlerId]: handler | ||
[noNetworkHandlerId]: handler, | ||
}); | ||
@@ -152,3 +152,3 @@ return noNetworkHandlerId; | ||
onNetworkRestoredHandlers = onNetworkRestoredHandlers.set({ | ||
[networkRestoredHandlerId]: handler | ||
[networkRestoredHandlerId]: handler, | ||
}); | ||
@@ -178,3 +178,3 @@ return networkRestoredHandlerId; | ||
onStillNoNetworkHandlers = onStillNoNetworkHandlers.set({ | ||
[stillNoNetworkHandlerId]: handler | ||
[stillNoNetworkHandlerId]: handler, | ||
}); | ||
@@ -273,5 +273,5 @@ return stillNoNetworkHandlerId; | ||
CSRFTokenValue && { | ||
[CSRFTokenName]: crossSiteRequestForgeryTokenValue(CSRFTokenValue) | ||
[CSRFTokenName]: crossSiteRequestForgeryTokenValue(CSRFTokenValue), | ||
}) || | ||
{}) | ||
{}), | ||
}; | ||
@@ -292,3 +292,3 @@ } | ||
...(init || {}), | ||
method: "GET" | ||
method: "GET", | ||
}) | ||
@@ -319,3 +319,3 @@ ); | ||
method: "POST", | ||
body: data || {} | ||
body: data || {}, | ||
}) | ||
@@ -339,4 +339,4 @@ ); | ||
...(options.headers || {}), | ||
"Content-Type": "application/json" | ||
} | ||
"Content-Type": "application/json", | ||
}, | ||
}); | ||
@@ -359,4 +359,4 @@ } | ||
...(options.headers || {}), | ||
"Content-Type": "application/x-www-form-urlencoded" | ||
} | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
}, | ||
}); | ||
@@ -363,0 +363,0 @@ } |
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
16955