@commercelayer/sdk 2.3.1 → 2.3.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.
@@ -967,7 +967,7 @@ var ApiError = /*#__PURE__*/function (_Error) {
967
967
 
968
968
 
969
969
  ApiError.isApiError = function isApiError(error) {
970
- return error && error.name === 'ApiError' && error.type === ErrorType.RESPONSE;
970
+ return error && error.name === 'ApiError' && Object.values(ErrorType).includes(error.type);
971
971
  };
972
972
 
973
973
  var _proto = ApiError.prototype;