@vitrical/utils
Advanced tools
Comparing version 1.4.8 to 1.4.9
11
api.js
@@ -93,3 +93,3 @@ "use strict"; | ||
const newStack = new Error().stack; | ||
if (isFetchAvailable() && !isXMLHttpRequestAvailable()) { | ||
if (isFetchAvailable() && (!isXMLHttpRequestAvailable() || !axios_1.default?.request)) { | ||
const request = fetch(!query || Object.keys(query).length === 0 | ||
@@ -138,11 +138,2 @@ ? url | ||
} | ||
if (!axios_1.default) { | ||
console.error('Axios is not available'); | ||
console.error(axios_1.default); | ||
} | ||
if (!axios_1.default.request) { | ||
console.error('Axios.request is not available'); | ||
console.error(axios_1.default); | ||
console.log(Object.keys(axios_1.default)); | ||
} | ||
const request = axios_1.default.request({ | ||
@@ -149,0 +140,0 @@ method: lcaseMethod, |
{ | ||
"name": "@vitrical/utils", | ||
"version": "1.4.8", | ||
"version": "1.4.9", | ||
"description": "Collection of useful functions and typings", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
63859
1127