Skip to content

Commit acb9120

Browse files
committedApr 17, 2023
deps: read@2.1.0
1 parent 2472205 commit acb9120

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed
 

‎node_modules/read/lib/read.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = async function read ({
55
default: def = '',
66
input = process.stdin,
77
output = process.stdout,
8+
completer,
89
prompt = '',
910
silent,
1011
timeout,
@@ -35,7 +36,7 @@ module.exports = async function read ({
3536
output = m
3637

3738
return new Promise((resolve, reject) => {
38-
const rl = readline.createInterface({ input, output, terminal })
39+
const rl = readline.createInterface({ input, output, terminal, silent: true, completer })
3940
const timer = timeout && setTimeout(() => onError(new Error('timed out')), timeout)
4041

4142
output.unmute()
@@ -66,11 +67,10 @@ module.exports = async function read ({
6667
rl.on('line', (line) => {
6768
if (silent && terminal) {
6869
output.unmute()
69-
output.write('\r\n')
7070
}
7171
done()
7272
// truncate the \n at the end.
73-
const res = line.replace(/\r?\n$/, '') || def || ''
73+
const res = line.replace(/\r?\n?$/, '') || def || ''
7474
return resolve(res)
7575
})
7676

‎node_modules/read/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "read",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"main": "lib/read.js",
55
"dependencies": {
66
"mute-stream": "~1.0.0"
77
},
88
"devDependencies": {
99
"@npmcli/eslint-config": "^4.0.0",
10-
"@npmcli/template-oss": "4.11.0",
10+
"@npmcli/template-oss": "4.13.0",
1111
"tap": "^16.3.0"
1212
},
1313
"engines": {
@@ -35,7 +35,8 @@
3535
],
3636
"templateOSS": {
3737
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
38-
"version": "4.11.0"
38+
"version": "4.13.0",
39+
"publish": "true"
3940
},
4041
"tap": {
4142
"statements": 77,

‎package-lock.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"parse-conflict-json": "^3.0.1",
138138
"proc-log": "^3.0.0",
139139
"qrcode-terminal": "^0.12.0",
140-
"read": "^2.0.0",
140+
"read": "^2.1.0",
141141
"read-package-json": "^6.0.1",
142142
"read-package-json-fast": "^3.0.2",
143143
"semver": "^7.3.8",
@@ -10346,9 +10346,9 @@
1034610346
}
1034710347
},
1034810348
"node_modules/read": {
10349-
"version": "2.0.0",
10350-
"resolved": "https://registry.npmjs.org/read/-/read-2.0.0.tgz",
10351-
"integrity": "sha512-88JMmpeeRYzW9gvIpYyXlYadWanW4vB2CYtDDVBfbRpbSogUNjTWEBXxJXMIVFSLjWVdCcdcIjI3+VV3Z2e9mw==",
10349+
"version": "2.1.0",
10350+
"resolved": "https://registry.npmjs.org/read/-/read-2.1.0.tgz",
10351+
"integrity": "sha512-bvxi1QLJHcaywCAEsAk4DG3nVoqiY2Csps3qzWalhj5hFqRn1d/OixkFXtLO1PrgHUcAP0FNaSY/5GYNfENFFQ==",
1035210352
"inBundle": true,
1035310353
"dependencies": {
1035410354
"mute-stream": "~1.0.0"

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"parse-conflict-json": "^3.0.1",
107107
"proc-log": "^3.0.0",
108108
"qrcode-terminal": "^0.12.0",
109-
"read": "^2.0.0",
109+
"read": "^2.1.0",
110110
"read-package-json": "^6.0.1",
111111
"read-package-json-fast": "^3.0.2",
112112
"semver": "^7.3.8",

0 commit comments

Comments
 (0)
Please sign in to comment.