@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
66exports . read = read ;
77const mute_stream_1 = __importDefault ( require ( "mute-stream" ) ) ;
88const readline_1 = require ( "readline" ) ;
9- async function read ( { default : def , input = process . stdin , output = process . stdout , completer, prompt = '' , silent, timeout, edit, terminal, replace, } ) {
9+ async function read ( { default : def , input = process . stdin , output = process . stdout , completer, prompt = '' , silent, timeout, edit, terminal, replace, history , } ) {
1010 if ( typeof def !== 'undefined' &&
1111 typeof def !== 'string' &&
1212 typeof def !== 'number' ) {
@@ -34,7 +34,7 @@ async function read({ default: def, input = process.stdin, output = process.stdo
3434 m . pipe ( output , { end : false } ) ;
3535 output = m ;
3636 return new Promise ( ( resolve , reject ) => {
37- const rl = ( 0 , readline_1 . createInterface ) ( { input, output, terminal, completer } ) ;
37+ const rl = ( 0 , readline_1 . createInterface ) ( { input, output, terminal, completer, history } ) ;
3838 // TODO: add tests for timeout
3939 /* c8 ignore start */
4040 const timer = timeout && setTimeout ( ( ) => onError ( new Error ( 'timed out' ) ) , timeout ) ;
0 commit comments