Skip to content

Commit e0f5fa2

Browse files
Vikram KaltaVikram Kalta
authored andcommitted
fix: fixed defaultAdapters implementation
1 parent ddcb219 commit e0f5fa2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/core",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"type": "commonjs",
55
"main": "./dist/cjs/src/index.js",
66
"types": "./dist/cjs/src/index.d.ts",

src/lib/contentstack-core.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { cloneDeep } from 'lodash';
22
import { serialize } from './param-serializer';
3-
import axios, { AxiosRequestHeaders } from 'axios';
3+
import axios, { AxiosRequestHeaders, getAdapter } from 'axios';
44
import { AxiosInstance, HttpClientParams } from './types';
55

66
export function httpClient(options: HttpClientParams): AxiosInstance {
@@ -55,6 +55,7 @@ export function httpClient(options: HttpClientParams): AxiosInstance {
5555
const instance = axios.create({
5656
// Axios
5757
baseURL,
58+
adapter: getAdapter(axios.defaults.adapter),
5859
...config,
5960
paramsSerializer: {
6061
serialize,

0 commit comments

Comments
 (0)