Skip to content

Commit

Permalink
deps: proc-log@4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Apr 16, 2024
1 parent 9123de4 commit 7678a3d
Show file tree
Hide file tree
Showing 9 changed files with 104 additions and 20 deletions.
92 changes: 88 additions & 4 deletions node_modules/proc-log/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ module.exports = {
'error',
'buffer',
],
KEYS: {
standard: 'standard',
error: 'error',
buffer: 'buffer',
},
standard: function (...args) {
return process.emit('output', 'standard', ...args)
},
Expand All @@ -28,6 +33,18 @@ module.exports = {
'pause',
'resume',
],
KEYS: {
notice: 'notice',
error: 'error',
warn: 'warn',
info: 'info',
verbose: 'verbose',
http: 'http',
silly: 'silly',
timing: 'timing',
pause: 'pause',
resume: 'resume',
},
error: function (...args) {
return process.emit('log', 'error', ...args)
},
Expand All @@ -52,11 +69,78 @@ module.exports = {
timing: function (...args) {
return process.emit('log', 'timing', ...args)
},
pause: function (...args) {
return process.emit('log', 'pause', ...args)
pause: function () {
return process.emit('log', 'pause')
},
resume: function () {
return process.emit('log', 'resume')
},
},
time: {
LEVELS: [
'start',
'end',
],
KEYS: {
start: 'start',
end: 'end',
},
start: function (name, fn) {
process.emit('time', 'start', name)
function end () {
return process.emit('time', 'end', name)
}
if (typeof fn === 'function') {
const res = fn()
if (res && res.finally) {
return res.finally(end)
}
end()
return res
}
return end
},
end: function (name) {
return process.emit('time', 'end', name)
},
},
input: {
LEVELS: [
'start',
'end',
'read',
],
KEYS: {
start: 'start',
end: 'end',
read: 'read',
},
start: function (fn) {
process.emit('input', 'start')
function end () {
return process.emit('input', 'end')
}
if (typeof fn === 'function') {
const res = fn()
if (res && res.finally) {
return res.finally(end)
}
end()
return res
}
return end
},
end: function () {
return process.emit('input', 'end')
},
resume: function (...args) {
return process.emit('log', 'resume', ...args)
read: function (...args) {
let resolve, reject
const promise = new Promise((_resolve, _reject) => {
resolve = _resolve
reject = _reject
})
process.emit('input', 'read', resolve, reject, ...args)
return promise
},
},
}
2 changes: 1 addition & 1 deletion node_modules/proc-log/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proc-log",
"version": "4.0.0",
"version": "4.1.0",
"files": [
"bin/",
"lib/"
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"p-map": "^4.0.0",
"pacote": "^18.0.0",
"parse-conflict-json": "^3.0.1",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"proggy": "^2.0.0",
"qrcode-terminal": "^0.12.0",
"read": "^3.0.1",
Expand Down Expand Up @@ -10972,9 +10972,9 @@
}
},
"node_modules/proc-log": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.0.0.tgz",
"integrity": "sha512-v1lzmYxGDs2+OZnmYtYZK3DG8zogt+CbQ+o/iqqtTfpyCmGWulCTEQu5GIbivf7OjgIkH2Nr8SH8UxAGugZNbg==",
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.1.0.tgz",
"integrity": "sha512-dmQ2iPw2nJMi9/4dpaG1wd0m1GE+K5kW7RGbjy5hoEEGnhPIzsm+klBO5RGGdcoYbWsNtU2KSNAdEldts+icLg==",
"inBundle": true,
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
Expand Down Expand Up @@ -16182,7 +16182,7 @@
"npm-registry-fetch": "^16.2.1",
"pacote": "^18.0.0",
"parse-conflict-json": "^3.0.0",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"proggy": "^2.0.0",
"promise-all-reject-late": "^1.0.0",
"promise-call-limit": "^3.0.1",
Expand Down Expand Up @@ -16218,7 +16218,7 @@
"ci-info": "^4.0.0",
"ini": "^4.1.2",
"nopt": "^7.0.0",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.5",
"walk-up-path": "^3.0.1"
Expand Down Expand Up @@ -16283,7 +16283,7 @@
"ci-info": "^4.0.0",
"npm-package-arg": "^11.0.2",
"pacote": "^18.0.0",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"read": "^3.0.1",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.7",
Expand Down Expand Up @@ -16381,7 +16381,7 @@
"normalize-package-data": "^6.0.0",
"npm-package-arg": "^11.0.2",
"npm-registry-fetch": "^16.2.1",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"semver": "^7.3.7",
"sigstore": "^2.2.0",
"ssri": "^10.0.5"
Expand Down Expand Up @@ -16438,7 +16438,7 @@
"@npmcli/git": "^5.0.6",
"@npmcli/run-script": "^8.0.0",
"json-parse-even-better-errors": "^3.0.0",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"semver": "^7.3.7"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"p-map": "^4.0.0",
"pacote": "^18.0.0",
"parse-conflict-json": "^3.0.1",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"proggy": "^2.0.0",
"qrcode-terminal": "^0.12.0",
"read": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion workspaces/arborist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"npm-registry-fetch": "^16.2.1",
"pacote": "^18.0.0",
"parse-conflict-json": "^3.0.0",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"proggy": "^2.0.0",
"promise-all-reject-late": "^1.0.0",
"promise-call-limit": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion workspaces/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"ci-info": "^4.0.0",
"ini": "^4.1.2",
"nopt": "^7.0.0",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.5",
"walk-up-path": "^3.0.1"
Expand Down
2 changes: 1 addition & 1 deletion workspaces/libnpmexec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"ci-info": "^4.0.0",
"npm-package-arg": "^11.0.2",
"pacote": "^18.0.0",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"read": "^3.0.1",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.7",
Expand Down
2 changes: 1 addition & 1 deletion workspaces/libnpmpublish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"normalize-package-data": "^6.0.0",
"npm-package-arg": "^11.0.2",
"npm-registry-fetch": "^16.2.1",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"semver": "^7.3.7",
"sigstore": "^2.2.0",
"ssri": "^10.0.5"
Expand Down
2 changes: 1 addition & 1 deletion workspaces/libnpmversion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@npmcli/git": "^5.0.6",
"@npmcli/run-script": "^8.0.0",
"json-parse-even-better-errors": "^3.0.0",
"proc-log": "^4.0.0",
"proc-log": "^4.1.0",
"semver": "^7.3.7"
},
"engines": {
Expand Down

0 comments on commit 7678a3d

Please sign in to comment.