Socket
Socket
Sign inDemoInstall

@vitrical/utils

Package Overview
Dependencies
6
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.6 to 1.4.7

15

api.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeMicroserviceRequest = exports.request = exports.removeUndefined = exports.handleApiError = exports.ApiError = void 0;
const axios = require('axios');
const axios_1 = __importDefault(require("axios"));
function isFetchAvailable() {

@@ -134,3 +137,11 @@ return typeof fetch !== 'undefined';

}
const request = axios.request({
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);
}
const request = axios_1.default.request({
method: lcaseMethod,

@@ -137,0 +148,0 @@ url,

4

package.json
{
"name": "@vitrical/utils",
"version": "1.4.6",
"version": "1.4.7",
"description": "Collection of useful functions and typings",

@@ -26,3 +26,3 @@ "main": "index.js",

"@types/superagent": "^4.1.16",
"axios": "^1.4.0",
"axios": "^1.6.2",
"jsonwebtoken": "^9.0.0",

@@ -29,0 +29,0 @@ "typescript": "^4.9.4"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc