@shipstatic/drop 1.0.0 → 1.0.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/dist/index.js CHANGED
@@ -10132,14 +10132,13 @@ function useDrop(options) {
10132
10132
  needsBuild,
10133
10133
  status: {
10134
10134
  title: "Validation Failed",
10135
- details: message,
10136
- errors: [message]
10135
+ details: message
10137
10136
  }
10138
10137
  });
10139
10138
  onValidationError?.({
10140
10139
  error: "Validation Failed",
10141
10140
  details: message,
10142
- errors: [message],
10141
+ errors: [],
10143
10142
  isClientError: true
10144
10143
  });
10145
10144
  return;
@@ -10246,7 +10245,7 @@ function useDrop(options) {
10246
10245
  const clientError = {
10247
10246
  error: isValidation ? "Validation Failed" : "Processing Failed",
10248
10247
  details: isValidation ? message : `Failed to process files: ${message}`,
10249
- errors: isValidation ? [message] : [],
10248
+ errors: [],
10250
10249
  isClientError: true
10251
10250
  };
10252
10251
  setState({
@@ -10256,8 +10255,7 @@ function useDrop(options) {
10256
10255
  needsBuild: false,
10257
10256
  status: {
10258
10257
  title: clientError.error,
10259
- details: clientError.details,
10260
- ...clientError.errors.length > 0 && { errors: clientError.errors }
10258
+ details: clientError.details
10261
10259
  }
10262
10260
  });
10263
10261
  onValidationError?.(clientError);