@alwaysmeticulous/client
Advanced tools
Comparing version 2.127.0 to 2.128.0
@@ -16,5 +16,11 @@ "use strict"; | ||
.catch((error) => { | ||
var _a; | ||
if (error instanceof axios_1.AxiosError && ((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 404) { | ||
return { data: null }; | ||
var _a, _b, _c; | ||
if ((0, axios_1.isAxiosError)(error)) { | ||
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 404) { | ||
return { data: null }; | ||
} | ||
const errorMessage = (_c = (_b = error.response) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.message; | ||
if (errorMessage) { | ||
throw new Error(errorMessage); | ||
} | ||
} | ||
@@ -21,0 +27,0 @@ throw error; |
{ | ||
"name": "@alwaysmeticulous/client", | ||
"version": "2.127.0", | ||
"version": "2.128.0", | ||
"description": "Helper methods for using the Meticulous backend API", | ||
@@ -45,3 +45,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "7df6ec6621664f3f533218d0ae5086b408684519" | ||
"gitHead": "a903dff6f3d8a91915b2110defa15655ee6923dc" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26750
359