@midwayjs/axios 3.7.1 → 3.8.0
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/serviceManager.js +2 -1
- package/package.json +4 -4
package/dist/serviceManager.js
CHANGED
|
@@ -52,7 +52,8 @@ let HttpService = class HttpService {
|
|
|
52
52
|
return this.instance.interceptors;
|
|
53
53
|
}
|
|
54
54
|
async init() {
|
|
55
|
-
|
|
55
|
+
var _a, _b;
|
|
56
|
+
this.instance = this.serviceFactory.get(((_b = (_a = this.serviceFactory).getDefaultClientName) === null || _b === void 0 ? void 0 : _b.call(_a)) || 'default');
|
|
56
57
|
if (!this.instance) {
|
|
57
58
|
throw new core_1.MidwayCommonError('axios default instance not found.');
|
|
58
59
|
}
|
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.
|
|
4
|
+
"version": "3.8.0",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@midwayjs/core": "^3.
|
|
14
|
-
"@midwayjs/mock": "^3.
|
|
13
|
+
"@midwayjs/core": "^3.8.0",
|
|
14
|
+
"@midwayjs/mock": "^3.8.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"axios": "1.1.3"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"type": "git",
|
|
37
37
|
"url": "https://github.com/midwayjs/midway.git"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "5c640c7182923587139f9f9c0aecf50585798e1e"
|
|
40
40
|
}
|