@midwayjs/axios 3.6.0 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,9 +8,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.HttpService = exports.HttpServiceFactory = void 0;
13
- const axios_1 = require("axios");
16
+ const axios_1 = __importDefault(require("axios"));
14
17
  const core_1 = require("@midwayjs/core");
15
18
  let HttpServiceFactory = class HttpServiceFactory extends core_1.ServiceFactory {
16
19
  async init() {
package/index.d.ts CHANGED
@@ -4,6 +4,6 @@ export * from './dist/index';
4
4
 
5
5
  declare module '@midwayjs/core/dist/interface' {
6
6
  interface MidwayConfig {
7
- axios?: AxiosRequestConfig;
7
+ axios?: ServiceFactoryConfigOption<AxiosRequestConfig> & AxiosRequestConfig;
8
8
  }
9
9
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/axios",
3
3
  "description": "midway http client with axios",
4
- "version": "3.6.0",
4
+ "version": "3.6.1",
5
5
  "main": "dist/index",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -14,7 +14,7 @@
14
14
  "@midwayjs/mock": "^3.6.0"
15
15
  },
16
16
  "dependencies": {
17
- "axios": "0.27.2"
17
+ "axios": "1.1.2"
18
18
  },
19
19
  "keywords": [
20
20
  "http client",
@@ -36,5 +36,5 @@
36
36
  "type": "git",
37
37
  "url": "https://github.com/midwayjs/midway.git"
38
38
  },
39
- "gitHead": "22643b0e8519766bb7c68b975930199fc136336e"
39
+ "gitHead": "7aa8d1d712ff5ae7e3b27eb2e154d3f7ee40889a"
40
40
  }