@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.
package/lib/sdk.esm.js CHANGED
@@ -961,7 +961,7 @@ var ApiError = /*#__PURE__*/function (_Error) {
961
961
 
962
962
 
963
963
  ApiError.isApiError = function isApiError(error) {
964
- return error && error.name === 'ApiError' && error.type === ErrorType.RESPONSE;
964
+ return error && error.name === 'ApiError' && Object.values(ErrorType).includes(error.type);
965
965
  };
966
966
 
967
967
  var _proto = ApiError.prototype;