resty-client
Advanced tools
+7
-0
@@ -5,2 +5,9 @@ # Changelog | ||
| ### [0.0.4](https://github.com/vnues/resty-client/compare/v0.0.3...v0.0.4) (2021-11-29) | ||
| ### Bug Fixes | ||
| * fix params ([0020840](https://github.com/vnues/resty-client/commit/0020840f0ec9e93d05ab0e8bb158fd54d997a3c6)) | ||
| ### [0.0.3](https://github.com/vnues/resty-client/compare/v0.0.2...v0.0.3) (2021-11-28) | ||
@@ -7,0 +14,0 @@ |
+3
-3
@@ -44,3 +44,3 @@ import axios from 'axios'; | ||
| var Client = /*#__PURE__*/function () { | ||
| function Client(serverMap, apiMap, common) { | ||
| function Client(common, serverMap, apiMap) { | ||
| _classCallCheck(this, Client); | ||
@@ -276,4 +276,4 @@ | ||
| key: "create", | ||
| value: function create(serverMap, apiMap, common) { | ||
| var client = new Client(serverMap, apiMap, common); | ||
| value: function create(common, serverMap, apiMap) { | ||
| var client = new Client(common, serverMap, apiMap); | ||
| return client; | ||
@@ -280,0 +280,0 @@ } |
+3
-3
@@ -50,3 +50,3 @@ 'use strict'; | ||
| var Client = /*#__PURE__*/function () { | ||
| function Client(serverMap, apiMap, common) { | ||
| function Client(common, serverMap, apiMap) { | ||
| _classCallCheck(this, Client); | ||
@@ -282,4 +282,4 @@ | ||
| key: "create", | ||
| value: function create(serverMap, apiMap, common) { | ||
| var client = new Client(serverMap, apiMap, common); | ||
| value: function create(common, serverMap, apiMap) { | ||
| var client = new Client(common, serverMap, apiMap); | ||
| return client; | ||
@@ -286,0 +286,0 @@ } |
+1
-1
| { | ||
| "name": "resty-client", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "description": "Simple HTTP and REST client library for Browser and Node", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -49,3 +49,3 @@ import { AxiosRequestConfig, AxiosPromise, AxiosResponse, AxiosInstance } from 'axios'; | ||
| static useRes(onFulfilled?: ResolvedMiddleWare<AxiosResponse>, onRejected?: RejectedMiddleWare): void; | ||
| static create(serverMap?: ServerMap, apiMap?: ApisMap, common?: RequestOptions): Client; | ||
| static create(common?: RequestOptions, serverMap?: ServerMap, apiMap?: ApisMap): Client; | ||
| common: RequestOptions; | ||
@@ -57,3 +57,3 @@ base: string; | ||
| instance: AxiosInstance; | ||
| constructor(serverMap?: ServerMap, apiMap?: ApisMap, common?: RequestOptions); | ||
| constructor(common?: RequestOptions, serverMap?: ServerMap, apiMap?: ApisMap); | ||
| /** | ||
@@ -60,0 +60,0 @@ * 获取默认的配置 |
38438
0.57%