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 2.0.0-alpha.1 to 2.0.0

1

es/createFactory.js

@@ -15,2 +15,3 @@ /**

const getMergedOptions = (options, defaultOptions) => {
// istanbul ignore next
if (typeof options === 'function') {

@@ -17,0 +18,0 @@ return Object.assign(Object.assign({}, defaultOptions), options(defaultOptions));

2

es/index.d.ts
import axios, { AxiosResponse, AxiosError } from 'axios';
import createFactory from './createFactory';
export { axios, createFactory };
export { AxiosResponse, AxiosError };
export type { AxiosResponse, AxiosError };
export * from './types';

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

import axios, { AxiosError } from 'axios';
import axios from 'axios';
import createFactory from './createFactory';
// 提供 axios 以测试
export { axios, createFactory };
// 提供 axios 的部分 ts 类型,在调整 createFactory 时可能会被使用
export { AxiosError };
export * from './types';

@@ -18,2 +18,3 @@ const getTransformKey = (options) => {

}
// @ts-ignore
options.headers['x-url-template'] = urlTemplate;

@@ -20,0 +21,0 @@ }

{
"name": "axios-interface",
"version": "2.0.0-alpha.1",
"version": "2.0.0",
"description": "create interface from axios",

@@ -8,3 +8,5 @@ "main": "es/index.js",

"types": "es/index.d.ts",
"files": ["es"],
"files": [
"es"
],
"sideEffects": false,

@@ -23,4 +25,4 @@ "scripts": {

"license": "MIT",
"peerDependencies": {
"axios": "^1.1.2"
"dependencies": {
"axios": "^1.2.2"
},

@@ -27,0 +29,0 @@ "devDependencies": {

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