Comparing version 6.1.0 to 6.1.1
{ | ||
"name": "ora", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Elegant terminal spinner", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -82,5 +82,15 @@ import process from 'node:process'; | ||
const {stdin} = process; | ||
const wasPaused = stdin.isPaused(); | ||
this.#rl.close(); | ||
// Keep stdin unpaused across the readline close if it is already | ||
// unpaused. See #209 for more details. | ||
if (!wasPaused && stdin.isPaused()) { | ||
stdin.resume(); | ||
} | ||
this.#rl = undefined; | ||
} | ||
} |
26473
611