grab-url 0.9.138 → 0.9.139
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/package.json +1 -1
- package/src/grab-url-cli.js +4 -4
package/package.json
CHANGED
package/src/grab-url-cli.js
CHANGED
|
@@ -29,7 +29,7 @@ try {
|
|
|
29
29
|
spinners = JSON.parse(readFileSync(join(process.cwd(), 'src', 'spinners.json'), 'utf8'));
|
|
30
30
|
} catch (error3) {
|
|
31
31
|
// Fallback to default spinners if file not found
|
|
32
|
-
console.warn('
|
|
32
|
+
console.warn('Could not load spinners.json, using defaults');
|
|
33
33
|
spinners = {
|
|
34
34
|
dots: { frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'] },
|
|
35
35
|
line: { frames: ['-', '\\', '|', '/'] },
|
|
@@ -879,14 +879,14 @@ async downloadMultipleFiles(downloads) {
|
|
|
879
879
|
this.setPauseCallback(() => {
|
|
880
880
|
if (!pausedMessageShown) {
|
|
881
881
|
this.multiBar.stop();
|
|
882
|
-
console.log(this.colors.warning('
|
|
882
|
+
console.log(this.colors.warning('Paused. Press p to resume, a to add URL'));
|
|
883
883
|
pausedMessageShown = true;
|
|
884
884
|
}
|
|
885
885
|
});
|
|
886
886
|
|
|
887
887
|
this.setResumeCallback(() => {
|
|
888
888
|
if (pausedMessageShown) {
|
|
889
|
-
console.log(this.colors.success('
|
|
889
|
+
console.log(this.colors.success('Resumed. Press p to pause, a to add URL'));
|
|
890
890
|
pausedMessageShown = false;
|
|
891
891
|
}
|
|
892
892
|
});
|
|
@@ -1700,7 +1700,7 @@ setupFallbackKeyboardListener() {
|
|
|
1700
1700
|
};
|
|
1701
1701
|
|
|
1702
1702
|
process.stdin.on('data', handleKeypress);
|
|
1703
|
-
console.log(this.colors.info('
|
|
1703
|
+
console.log(this.colors.info('Keyboard active: p=pause/resume, a=add URL'));
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
1706
|
|