@algolia/requester-browser-xhr
Advanced tools
Comparing version 5.10.0 to 5.10.1
@@ -1,3 +0,5 @@ | ||
function m(){function r(t){return new Promise(s=>{let e=new XMLHttpRequest;e.open(t.method,t.url,!0),Object.keys(t.headers).forEach(n=>e.setRequestHeader(n,t.headers[n]));let i=(n,a)=>setTimeout(()=>{e.abort(),s({status:0,content:a,isTimedOut:!0});},n),u=i(t.connectTimeout,"Connection timeout"),o;e.onreadystatechange=()=>{e.readyState>e.OPENED&&o===void 0&&(clearTimeout(u),o=i(t.responseTimeout,"Socket timeout"));},e.onerror=()=>{e.status===0&&(clearTimeout(u),clearTimeout(o),s({content:e.responseText||"Network request failed",status:e.status,isTimedOut:!1}));},e.onload=()=>{clearTimeout(u),clearTimeout(o),s({content:e.responseText,status:e.status,isTimedOut:!1});},e.send(t.data);})}return {send:r}} | ||
import { Requester } from '@algolia/client-common'; | ||
export { m as createXhrRequester }; | ||
declare function createXhrRequester(): Requester; | ||
export { createXhrRequester }; |
{ | ||
"name": "@algolia/requester-browser-xhr", | ||
"version": "5.10.0", | ||
"version": "5.10.1", | ||
"description": "Promise-based request library for browser using xhr.", | ||
@@ -34,3 +34,3 @@ "repository": { | ||
"dependencies": { | ||
"@algolia/client-common": "5.10.0" | ||
"@algolia/client-common": "5.10.1" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
5393
8
+ Added@algolia/client-common@5.10.1(transitive)
- Removed@algolia/client-common@5.10.0(transitive)