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