@quantcdn/quant-client 4.21.0 → 4.21.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/common.ts +4 -2
- package/dist/api.d.ts +251 -251
- package/dist/common.js +2 -0
- package/dist/esm/api.d.ts +251 -251
- package/dist/esm/common.js +2 -0
- package/package.json +2 -2
package/dist/common.js
CHANGED
|
@@ -155,6 +155,8 @@ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, confi
|
|
|
155
155
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
156
156
|
var _a;
|
|
157
157
|
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
|
|
158
|
+
// axios >=1.20 widens request()'s return type (AxiosResponseResult); the
|
|
159
|
+
// SDK contract is still Promise<R>, so bridge the typing here. Runtime is unchanged.
|
|
158
160
|
return axios.request(axiosRequestArgs);
|
|
159
161
|
};
|
|
160
162
|
};
|