Socket
Socket
Sign inDemoInstall

@vitrical/utils

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitrical/utils - npm Package Compare versions

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,

2

package.json
{
"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

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