Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@4lch4/axios-aid

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@4lch4/axios-aid - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

4

dist/index.d.ts

@@ -1,5 +0,5 @@

import { AxiosInstance } from "axios";
import { AxiosBasicCredentials, AxiosInstance } from "axios";
declare class AxiosAid {
client: AxiosInstance;
constructor(baseUrl: string, headers?: Object);
constructor(baseUrl: string, headers?: Object, auth?: AxiosBasicCredentials);
performRequest(method: RequestMethod, endpoint: string, payload?: RequestPayload, headers?: Object): Promise<import("axios").AxiosResponse<any>>;

@@ -6,0 +6,0 @@ }

@@ -17,7 +17,8 @@ "use strict";

class AxiosAid {
constructor(baseUrl, headers) {
constructor(baseUrl, headers, auth) {
this.client = axios_1.default.create({
baseURL: baseUrl,
timeout: 60000,
headers: headers
headers: headers,
auth: auth
});

@@ -24,0 +25,0 @@ }

{
"name": "@4lch4/axios-aid",
"displayName": "AxiosAid",
"version": "1.0.1",
"version": "1.1.0",
"description": "A lightweight wrapper around Axios for type data and ease of use.",

@@ -32,5 +32,5 @@ "main": "dist/index.js",

"devDependencies": {
"eslint": "^7.0.0",
"typescript": "^3.9.2"
"eslint": "7.0.0",
"typescript": "3.9.3"
}
}

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