@hype/clod 1.3.0 → 1.3.1
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/trash.js +3 -1
- package/dist/ui.js +2 -1
- package/package.json +1 -1
package/dist/trash.js
CHANGED
|
@@ -2,5 +2,7 @@
|
|
|
2
2
|
// this adapter stays out of the coverage gate.
|
|
3
3
|
export const trashPaths = async (paths) => {
|
|
4
4
|
const { default: trash } = await import('trash'); // lazy: only deletes need it
|
|
5
|
-
|
|
5
|
+
// one call per path: trash's WSL branch misroutes a batch to PowerShell
|
|
6
|
+
for (const p of paths)
|
|
7
|
+
await trash(p);
|
|
6
8
|
};
|
package/dist/ui.js
CHANGED
|
@@ -395,7 +395,8 @@ export default function App({ loadFirst, loadRest, initialSortMode, onResume, on
|
|
|
395
395
|
try {
|
|
396
396
|
await onDelete(current.filePath);
|
|
397
397
|
}
|
|
398
|
-
catch {
|
|
398
|
+
catch (err) {
|
|
399
|
+
setError(`could not delete: ${err.message}`);
|
|
399
400
|
setMode('list');
|
|
400
401
|
return;
|
|
401
402
|
}
|