@midwayjs/axios
Advanced tools
Comparing version
@@ -1,2 +0,3 @@ | ||
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; | ||
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; | ||
import * as axios from 'axios'; | ||
import { ServiceFactory } from '@midwayjs/core'; | ||
@@ -14,4 +15,4 @@ import { AxiosHttpService } from './interface'; | ||
get interceptors(): { | ||
request: import("axios").AxiosInterceptorManager<AxiosRequestConfig<any>>; | ||
response: import("axios").AxiosInterceptorManager<AxiosResponse<any, any>>; | ||
request: axios.AxiosInterceptorManager<AxiosRequestConfig<any>>; | ||
response: axios.AxiosInterceptorManager<AxiosResponse<any, any>>; | ||
}; | ||
@@ -18,0 +19,0 @@ protected init(): Promise<void>; |
@@ -13,3 +13,3 @@ "use strict"; | ||
exports.HttpService = exports.HttpServiceFactory = void 0; | ||
const axios_1 = require("axios"); | ||
const axios = require("axios"); | ||
const core_1 = require("@midwayjs/core"); | ||
@@ -30,3 +30,3 @@ let HttpServiceFactory = class HttpServiceFactory extends core_1.ServiceFactory { | ||
async createClient(config, clientName) { | ||
return axios_1.default.create(config); | ||
return axios.create(config); | ||
} | ||
@@ -33,0 +33,0 @@ getName() { |
{ | ||
"name": "@midwayjs/axios", | ||
"description": "midway http client with axios", | ||
"version": "3.6.2-beta.1", | ||
"version": "3.7.0", | ||
"main": "dist/index", | ||
@@ -13,7 +13,7 @@ "typings": "index.d.ts", | ||
"devDependencies": { | ||
"@midwayjs/core": "^3.6.0", | ||
"@midwayjs/mock": "^3.6.0" | ||
"@midwayjs/core": "^3.7.0", | ||
"@midwayjs/mock": "^3.7.0" | ||
}, | ||
"dependencies": { | ||
"axios": "1.1.0" | ||
"axios": "1.1.3" | ||
}, | ||
@@ -39,3 +39,4 @@ "keywords": [ | ||
"url": "https://github.com/midwayjs/midway.git" | ||
} | ||
}, | ||
"gitHead": "99386083ee26b386fd508b9c892091c914e77535" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
12655
9.77%12
9.09%229
0.44%1
-50%+ Added
- Removed
Updated