@midwayjs/axios
Advanced tools
Comparing version
@@ -55,3 +55,4 @@ "use strict"; | ||
async init() { | ||
this.instance = this.serviceFactory.get('default'); | ||
var _a, _b; | ||
this.instance = this.serviceFactory.get(((_b = (_a = this.serviceFactory).getDefaultClientName) === null || _b === void 0 ? void 0 : _b.call(_a)) || 'default'); | ||
if (!this.instance) { | ||
@@ -58,0 +59,0 @@ throw new core_1.MidwayCommonError('axios default instance not found.'); |
{ | ||
"name": "@midwayjs/axios", | ||
"description": "midway http client with axios", | ||
"version": "3.7.3", | ||
"version": "3.8.0", | ||
"main": "dist/index", | ||
@@ -13,4 +13,4 @@ "typings": "index.d.ts", | ||
"devDependencies": { | ||
"@midwayjs/core": "^3.7.0", | ||
"@midwayjs/mock": "^3.7.3" | ||
"@midwayjs/core": "^3.8.0", | ||
"@midwayjs/mock": "^3.8.0" | ||
}, | ||
@@ -40,3 +40,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "8e6c830bca52818e0086873b542423d16e609aef" | ||
"gitHead": "5c640c7182923587139f9f9c0aecf50585798e1e" | ||
} |
12784
1.02%230
0.44%