+10
-10
lines changedFilter options
+10
-10
lines changed Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
exports.read = read;
7
7
const mute_stream_1 = __importDefault(require("mute-stream"));
8
8
const 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, }) {
10
10
if (typeof def !== 'undefined' &&
11
11
typeof def !== 'string' &&
12
12
typeof def !== 'number') {
@@ -34,7 +34,7 @@ async function read({ default: def, input = process.stdin, output = process.stdo
34
34
m.pipe(output, { end: false });
35
35
output = m;
36
36
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 });
38
38
// TODO: add tests for timeout
39
39
/* c8 ignore start */
40
40
const timer = timeout && setTimeout(() => onError(new Error('timed out')), timeout);
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1
1
import Mute from 'mute-stream';
2
2
import { createInterface } from 'readline';
3
-
export async function read({ default: def, input = process.stdin, output = process.stdout, completer, prompt = '', silent, timeout, edit, terminal, replace, }) {
3
+
export async function read({ default: def, input = process.stdin, output = process.stdout, completer, prompt = '', silent, timeout, edit, terminal, replace, history, }) {
4
4
if (typeof def !== 'undefined' &&
5
5
typeof def !== 'string' &&
6
6
typeof def !== 'number') {
@@ -28,7 +28,7 @@ export async function read({ default: def, input = process.stdin, output = proce
28
28
m.pipe(output, { end: false });
29
29
output = m;
30
30
return new Promise((resolve, reject) => {
31
-
const rl = createInterface({ input, output, terminal, completer });
31
+
const rl = createInterface({ input, output, terminal, completer, history });
32
32
// TODO: add tests for timeout
33
33
/* c8 ignore start */
34
34
const timer = timeout && setTimeout(() => onError(new Error('timed out')), timeout);
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "read",
3
-
"version": "4.0.0",
3
+
"version": "4.1.0",
4
4
"exports": {
5
5
"./package.json": "./package.json",
6
6
".": {
Original file line number Diff line number Diff line change
@@ -139,7 +139,7 @@
139
139
"parse-conflict-json": "^4.0.0",
140
140
"proc-log": "^5.0.0",
141
141
"qrcode-terminal": "^0.12.0",
142
-
"read": "^4.0.0",
142
+
"read": "^4.1.0",
143
143
"semver": "^7.7.1",
144
144
"spdx-expression-parse": "^4.0.0",
145
145
"ssri": "^12.0.0",
@@ -13608,9 +13608,9 @@
13608
13608
}
13609
13609
},
13610
13610
"node_modules/read": {
13611
-
"version": "4.0.0",
13612
-
"resolved": "https://registry.npmjs.org/read/-/read-4.0.0.tgz",
13613
-
"integrity": "sha512-nbYGT3cec3J5NPUeJia7l72I3oIzMIB6yeNyDqi8CVHr3WftwjrCUqR0j13daoHEMVaZ/rxCpmHKrbods3hI2g==",
13611
+
"version": "4.1.0",
13612
+
"resolved": "https://registry.npmjs.org/read/-/read-4.1.0.tgz",
13613
+
"integrity": "sha512-uRfX6K+f+R8OOrYScaM3ixPY4erg69f8DN6pgTvMcA9iRc8iDhwrA4m3Yu8YYKsXJgVvum+m8PkRboZwwuLzYA==",
13614
13614
"inBundle": true,
13615
13615
"license": "ISC",
13616
13616
"dependencies": {
Original file line number Diff line number Diff line change
@@ -106,7 +106,7 @@
106
106
"parse-conflict-json": "^4.0.0",
107
107
"proc-log": "^5.0.0",
108
108
"qrcode-terminal": "^0.12.0",
109
-
"read": "^4.0.0",
109
+
"read": "^4.1.0",
110
110
"semver": "^7.7.1",
111
111
"spdx-expression-parse": "^4.0.0",
112
112
"ssri": "^12.0.0",
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4