@getcommunity/gc-validators 0.0.186 → 0.0.187

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/dist/index.cjs CHANGED
@@ -3287,7 +3287,7 @@ function isStrapiAttributeError(result) {
3287
3287
  return "error" in result && "details" in result.error && typeof result.error.details === "object" && result.error.details !== null && "errors" in result.error.details && Array.isArray(result.error.details.errors);
3288
3288
  }
3289
3289
  function isStrapiStandardError(result) {
3290
- return "error" in result && "details" in result.error && typeof result.error.details === "object" && result.error.details !== null;
3290
+ return "error" in result && "details" in result.error && typeof result.error.details === "object" && result.error.details !== null && "errors" in result.error.details === false;
3291
3291
  }
3292
3292
  function validateAndClean(schema, input) {
3293
3293
  var _a, _b;