Skip to content

Commit f56bb13

Browse files
authored
1 parent b118364 commit f56bb13

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

node_modules/proc-log/lib/index.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,15 @@ module.exports = {
122122
end: 'end',
123123
read: 'read',
124124
},
125-
start: function (fn) {
126-
process.emit('input', 'start')
125+
start: function (...args) {
126+
// Support callback for backwards compatibility and pass additional args to event
127+
let fn
128+
if (typeof args[0] === 'function') {
129+
fn = args.shift()
130+
}
131+
process.emit('input', 'start', ...args)
127132
function end () {
128-
return process.emit('input', 'end')
133+
return process.emit('input', 'end', ...args)
129134
}
130135
if (typeof fn === 'function') {
131136
const res = fn()
@@ -137,8 +142,8 @@ module.exports = {
137142
}
138143
return end
139144
},
140-
end: function () {
141-
return process.emit('input', 'end')
145+
end: function (...args) {
146+
return process.emit('input', 'end', ...args)
142147
},
143148
read: function (...args) {
144149
let resolve, reject

node_modules/proc-log/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "proc-log",
3-
"version": "6.0.0",
3+
"version": "6.1.0",
44
"files": [
55
"bin/",
66
"lib/"
@@ -25,16 +25,16 @@
2525
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
2626
},
2727
"devDependencies": {
28-
"@npmcli/eslint-config": "^5.0.0",
29-
"@npmcli/template-oss": "4.27.1",
28+
"@npmcli/eslint-config": "^6.0.0",
29+
"@npmcli/template-oss": "4.28.1",
3030
"tap": "^16.0.1"
3131
},
3232
"engines": {
3333
"node": "^20.17.0 || >=22.9.0"
3434
},
3535
"templateOSS": {
3636
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
37-
"version": "4.27.1",
37+
"version": "4.28.1",
3838
"publish": true
3939
},
4040
"tap": {

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"p-map": "^7.0.4",
138138
"pacote": "^21.0.4",
139139
"parse-conflict-json": "^5.0.1",
140-
"proc-log": "^6.0.0",
140+
"proc-log": "^6.1.0",
141141
"qrcode-terminal": "^0.12.0",
142142
"read": "^5.0.1",
143143
"semver": "^7.7.3",
@@ -9441,9 +9441,9 @@
94419441
}
94429442
},
94439443
"node_modules/proc-log": {
9444-
"version": "6.0.0",
9445-
"resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.0.0.tgz",
9446-
"integrity": "sha512-KG/XsTDN901PNfPfAMmj6N/Ywg9tM+bHK8pAz+27fS4N4Pcr+4zoYBOcGSBu6ceXYNPxkLpa4ohtfxV1XcLAfA==",
9444+
"version": "6.1.0",
9445+
"resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz",
9446+
"integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==",
94479447
"inBundle": true,
94489448
"license": "ISC",
94499449
"engines": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"p-map": "^7.0.4",
105105
"pacote": "^21.0.4",
106106
"parse-conflict-json": "^5.0.1",
107-
"proc-log": "^6.0.0",
107+
"proc-log": "^6.1.0",
108108
"qrcode-terminal": "^0.12.0",
109109
"read": "^5.0.1",
110110
"semver": "^7.7.3",

0 commit comments

Comments
 (0)