Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Feb 18, 2025
1 parent 7fd70fa commit 80c3273
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions node_modules/read/dist/commonjs/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.read = read;
const mute_stream_1 = __importDefault(require("mute-stream"));
const readline_1 = require("readline");
async function read({ default: def, input = process.stdin, output = process.stdout, completer, prompt = '', silent, timeout, edit, terminal, replace, }) {
async function read({ default: def, input = process.stdin, output = process.stdout, completer, prompt = '', silent, timeout, edit, terminal, replace, history, }) {
if (typeof def !== 'undefined' &&
typeof def !== 'string' &&
typeof def !== 'number') {
Expand Down Expand Up @@ -34,7 +34,7 @@ async function read({ default: def, input = process.stdin, output = process.stdo
m.pipe(output, { end: false });
output = m;
return new Promise((resolve, reject) => {
const rl = (0, readline_1.createInterface)({ input, output, terminal, completer });
const rl = (0, readline_1.createInterface)({ input, output, terminal, completer, history });
// TODO: add tests for timeout
/* c8 ignore start */
const timer = timeout && setTimeout(() => onError(new Error('timed out')), timeout);
Expand Down
4 changes: 2 additions & 2 deletions node_modules/read/dist/esm/read.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Mute from 'mute-stream';
import { createInterface } from 'readline';
export async function read({ default: def, input = process.stdin, output = process.stdout, completer, prompt = '', silent, timeout, edit, terminal, replace, }) {
export async function read({ default: def, input = process.stdin, output = process.stdout, completer, prompt = '', silent, timeout, edit, terminal, replace, history, }) {
if (typeof def !== 'undefined' &&
typeof def !== 'string' &&
typeof def !== 'number') {
Expand Down Expand Up @@ -28,7 +28,7 @@ export async function read({ default: def, input = process.stdin, output = proce
m.pipe(output, { end: false });
output = m;
return new Promise((resolve, reject) => {
const rl = createInterface({ input, output, terminal, completer });
const rl = createInterface({ input, output, terminal, completer, history });
// TODO: add tests for timeout
/* c8 ignore start */
const timer = timeout && setTimeout(() => onError(new Error('timed out')), timeout);
Expand Down
2 changes: 1 addition & 1 deletion node_modules/read/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "read",
"version": "4.0.0",
"version": "4.1.0",
"exports": {
"./package.json": "./package.json",
".": {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"parse-conflict-json": "^4.0.0",
"proc-log": "^5.0.0",
"qrcode-terminal": "^0.12.0",
"read": "^4.0.0",
"read": "^4.1.0",
"semver": "^7.7.1",
"spdx-expression-parse": "^4.0.0",
"ssri": "^12.0.0",
Expand Down Expand Up @@ -13608,9 +13608,9 @@
}
},
"node_modules/read": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/read/-/read-4.0.0.tgz",
"integrity": "sha512-nbYGT3cec3J5NPUeJia7l72I3oIzMIB6yeNyDqi8CVHr3WftwjrCUqR0j13daoHEMVaZ/rxCpmHKrbods3hI2g==",
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/read/-/read-4.1.0.tgz",
"integrity": "sha512-uRfX6K+f+R8OOrYScaM3ixPY4erg69f8DN6pgTvMcA9iRc8iDhwrA4m3Yu8YYKsXJgVvum+m8PkRboZwwuLzYA==",
"inBundle": true,
"license": "ISC",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"parse-conflict-json": "^4.0.0",
"proc-log": "^5.0.0",
"qrcode-terminal": "^0.12.0",
"read": "^4.0.0",
"read": "^4.1.0",
"semver": "^7.7.1",
"spdx-expression-parse": "^4.0.0",
"ssri": "^12.0.0",
Expand Down

0 comments on commit 80c3273

Please sign in to comment.