@shipstatic/drop 2.10.4-beta.12 → 2.10.4-beta.14
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +1 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/testing.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1013,10 +1013,10 @@ async function processFiles(input, { limits, onStatus }) {
|
|
|
1013
1013
|
statusMessage: validation.files[i]?.statusMessage ?? file.statusMessage
|
|
1014
1014
|
}));
|
|
1015
1015
|
if (!validation.canDeploy) {
|
|
1016
|
+
const issues = validation.errors.map((e) => e.message);
|
|
1016
1017
|
return failure({
|
|
1017
1018
|
title: CANT_DEPLOY,
|
|
1018
|
-
details: `${
|
|
1019
|
-
errors: validation.errors.map((e) => e.message),
|
|
1019
|
+
...issues.length === 1 ? { details: issues[0] } : { details: `${issues.length} files refused`, errors: issues },
|
|
1020
1020
|
files: validated,
|
|
1021
1021
|
sourceName
|
|
1022
1022
|
});
|
|
@@ -1136,7 +1136,7 @@ function useDrop({ ship }) {
|
|
|
1136
1136
|
setState({
|
|
1137
1137
|
...initialState,
|
|
1138
1138
|
phase: "error",
|
|
1139
|
-
status: { title:
|
|
1139
|
+
status: { title: CANT_DEPLOY, details: "The folder has no files." }
|
|
1140
1140
|
});
|
|
1141
1141
|
return;
|
|
1142
1142
|
}
|