New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

axios-interface

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-interface - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

lib/createFactory.d.ts
import { Enhance, Options, Method, UrlTemplate } from './types';
declare const createFactory: (defaultOptions?: Options) => {
request: <TParams, T>(method: Method, url: string, params: TParams, options?: Options) => Promise<T>;
createInterface: <TParams_1 = void, T_1 = unknown>(method: Method, urlTemplate: UrlTemplate, optionsOrEnhance?: Options | Enhance, exOptions?: Options) => ((params: any, options?: Options | undefined) => Promise<any>) | ((params: TParams_1, requestOptions?: Options | undefined) => Promise<T_1>);
createInterface: <TParams_1 = void, T_1 = unknown>(method: Method, urlTemplate: UrlTemplate, optionsOrEnhance?: Options | Enhance, exOptions?: Options) => (params: TParams_1, requestOptions?: Options | undefined) => Promise<T_1>;
};
export default createFactory;

@@ -8,4 +8,3 @@ import { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';

export declare type OnReject = <TParams>(response: AxiosError, params: TParams, options: Options) => any;
declare type Request = (params: any, options?: Options) => Promise<any>;
export declare type Enhance = (request: Request, options: Options) => Request;
export declare type Enhance = <TRequest extends (params: any, options?: Options) => Promise<any>>(request: TRequest, options: Options) => TRequest;
export interface Options extends AxiosRequestConfig {

@@ -20,2 +19,1 @@ onPending?: OnPending;

}
export {};
{
"name": "axios-interface",
"version": "1.3.0",
"version": "1.3.1",
"description": "create interface from axios",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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