@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 +8 -0
- package/dist/index.js +5 -1
- package/dist/interface.d.ts +0 -2
- package/dist/interface.js +0 -3
- package/package.json +3 -3
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);
|
package/dist/interface.d.ts
CHANGED
package/dist/interface.js
CHANGED
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.
|
|
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.
|
|
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": "
|
|
40
|
+
"gitHead": "e8b53689c50aa8c9a691de7d985cafd62f5f70e7"
|
|
41
41
|
}
|