Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions node_modules/proc-log/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,15 @@ module.exports = {
end: 'end',
read: 'read',
},
start: function (fn) {
process.emit('input', 'start')
start: function (...args) {
// Support callback for backwards compatibility and pass additional args to event
let fn
if (typeof args[0] === 'function') {
fn = args.shift()
}
process.emit('input', 'start', ...args)
function end () {
return process.emit('input', 'end')
return process.emit('input', 'end', ...args)
}
if (typeof fn === 'function') {
const res = fn()
Expand All @@ -137,8 +142,8 @@ module.exports = {
}
return end
},
end: function () {
return process.emit('input', 'end')
end: function (...args) {
return process.emit('input', 'end', ...args)
},
read: function (...args) {
let resolve, reject
Expand Down
8 changes: 4 additions & 4 deletions node_modules/proc-log/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proc-log",
"version": "6.0.0",
"version": "6.1.0",
"files": [
"bin/",
"lib/"
Expand All @@ -25,16 +25,16 @@
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
},
"devDependencies": {
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.27.1",
"@npmcli/eslint-config": "^6.0.0",
"@npmcli/template-oss": "4.28.1",
"tap": "^16.0.1"
},
"engines": {
"node": "^20.17.0 || >=22.9.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.27.1",
"version": "4.28.1",
"publish": true
},
"tap": {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"p-map": "^7.0.4",
"pacote": "^21.0.4",
"parse-conflict-json": "^5.0.1",
"proc-log": "^6.0.0",
"proc-log": "^6.1.0",
"qrcode-terminal": "^0.12.0",
"read": "^5.0.1",
"semver": "^7.7.3",
Expand Down Expand Up @@ -9441,9 +9441,9 @@
}
},
"node_modules/proc-log": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.0.0.tgz",
"integrity": "sha512-KG/XsTDN901PNfPfAMmj6N/Ywg9tM+bHK8pAz+27fS4N4Pcr+4zoYBOcGSBu6ceXYNPxkLpa4ohtfxV1XcLAfA==",
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz",
"integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==",
"inBundle": true,
"license": "ISC",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"p-map": "^7.0.4",
"pacote": "^21.0.4",
"parse-conflict-json": "^5.0.1",
"proc-log": "^6.0.0",
"proc-log": "^6.1.0",
"qrcode-terminal": "^0.12.0",
"read": "^5.0.1",
"semver": "^7.7.3",
Expand Down
Loading