@midwayjs/axios 3.15.1 → 3.15.2

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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,12 @@
1
+ import axios from 'axios';
2
+ import * as Axios from 'axios';
1
3
  export { AxiosConfiguration as Configuration } from './configuration';
2
4
  export * from './interface';
3
5
  export * from './serviceManager';
6
+ export {
7
+ /**
8
+ * @deprecated Use `Axios` directly
9
+ */
10
+ axios, };
11
+ export { Axios };
4
12
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -14,7 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Configuration = void 0;
17
+ exports.Axios = exports.axios = exports.Configuration = void 0;
18
+ const axios_1 = require("axios");
19
+ exports.axios = axios_1.default;
20
+ const Axios = require("axios");
21
+ exports.Axios = Axios;
18
22
  var configuration_1 = require("./configuration");
19
23
  Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.AxiosConfiguration; } });
20
24
  __exportStar(require("./interface"), exports);
@@ -1,6 +1,4 @@
1
1
  import type { AxiosRequestConfig, AxiosResponse, AxiosInterceptorManager, AxiosDefaults } from 'axios';
2
- import axios from 'axios';
3
- export { axios };
4
2
  export interface AxiosHttpService {
5
3
  defaults: AxiosDefaults;
6
4
  interceptors: {
package/dist/interface.js CHANGED
@@ -1,6 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.axios = void 0;
4
- const axios_1 = require("axios");
5
- exports.axios = axios_1.default;
6
3
  //# sourceMappingURL=interface.js.map
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.15.1",
4
+ "version": "3.15.2",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "devDependencies": {
13
13
  "@midwayjs/core": "^3.15.0",
14
- "@midwayjs/mock": "^3.15.0",
14
+ "@midwayjs/mock": "^3.15.2",
15
15
  "nock": "13.5.4"
16
16
  },
17
17
  "dependencies": {
@@ -37,5 +37,5 @@
37
37
  "type": "git",
38
38
  "url": "https://github.com/midwayjs/midway.git"
39
39
  },
40
- "gitHead": "a7f834670739a422772a5b43c91ea4dd45803678"
40
+ "gitHead": "e8b53689c50aa8c9a691de7d985cafd62f5f70e7"
41
41
  }