@or-sdk/base
Advanced tools
Comparing version 0.30.0 to 0.30.1-beta.2371.0
@@ -17,5 +17,5 @@ "use strict"; | ||
} | ||
return new Error(res); | ||
return new Error(typeof res === 'string' ? res : e.message); | ||
}; | ||
exports.default = parseAxiosError; | ||
//# sourceMappingURL=parseAxiosError.js.map |
@@ -15,5 +15,5 @@ const parseAxiosError = (e) => { | ||
} | ||
return new Error(res); | ||
return new Error(typeof res === 'string' ? res : e.message); | ||
}; | ||
export default parseAxiosError; | ||
//# sourceMappingURL=parseAxiosError.js.map |
{ | ||
"name": "@or-sdk/base", | ||
"version": "0.30.0", | ||
"version": "0.30.1-beta.2371.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -35,4 +35,3 @@ "module": "dist/esm/index.js", | ||
"access": "public" | ||
}, | ||
"gitHead": "407b4e1a98e29b1c65cdf7131e039867e10e8419" | ||
} | ||
} |
@@ -17,5 +17,5 @@ import { AxiosError, AxiosResponse } from 'axios'; | ||
return new Error(res); | ||
return new Error(typeof res === 'string' ? res : e.message); | ||
}; | ||
export default parseAxiosError; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
117836