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

@midwayjs/axios

Package Overview
Dependencies
Maintainers
7
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@midwayjs/axios - npm Package Compare versions

Comparing version

to
3.7.0

LICENSE

7

dist/serviceManager.d.ts

@@ -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"
}