Skip to content
Open
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
2 changes: 2 additions & 0 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ graph LR;
npm-->npmcli-fs["@npmcli/fs"];
npm-->npmcli-git["@npmcli/git"];
npm-->npmcli-map-workspaces["@npmcli/map-workspaces"];
npm-->npmcli-metavuln-calculator["@npmcli/metavuln-calculator"];
npm-->npmcli-mock-globals["@npmcli/mock-globals"];
npm-->npmcli-mock-registry["@npmcli/mock-registry"];
npm-->npmcli-package-json["@npmcli/package-json"];
Expand Down Expand Up @@ -490,6 +491,7 @@ graph LR;
npm-->npmcli-fs["@npmcli/fs"];
npm-->npmcli-git["@npmcli/git"];
npm-->npmcli-map-workspaces["@npmcli/map-workspaces"];
npm-->npmcli-metavuln-calculator["@npmcli/metavuln-calculator"];
npm-->npmcli-mock-globals["@npmcli/mock-globals"];
npm-->npmcli-mock-registry["@npmcli/mock-registry"];
npm-->npmcli-package-json["@npmcli/package-json"];
Expand Down
23 changes: 23 additions & 0 deletions node_modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,25 @@
!/@npmcli/installed-package-contents
!/@npmcli/map-workspaces
!/@npmcli/metavuln-calculator
!/@npmcli/metavuln-calculator/node_modules/
/@npmcli/metavuln-calculator/node_modules/*
!/@npmcli/metavuln-calculator/node_modules/proc-log
!/@npmcli/name-from-folder
!/@npmcli/node-gyp
!/@npmcli/package-json
!/@npmcli/package-json/node_modules/
/@npmcli/package-json/node_modules/*
!/@npmcli/package-json/node_modules/proc-log
!/@npmcli/promise-spawn
!/@npmcli/query
!/@npmcli/redact
!/@npmcli/run-script
!/@npmcli/run-script/node_modules/
/@npmcli/run-script/node_modules/*
!/@npmcli/run-script/node_modules/@npmcli/
/@npmcli/run-script/node_modules/@npmcli/*
!/@npmcli/run-script/node_modules/@npmcli/promise-spawn
!/@npmcli/run-script/node_modules/proc-log
!/@pkgjs/
/@pkgjs/*
!/@pkgjs/parseargs
Expand Down Expand Up @@ -136,12 +148,14 @@
!/node-gyp/node_modules/@npmcli/
/node-gyp/node_modules/@npmcli/*
!/node-gyp/node_modules/@npmcli/agent
!/node-gyp/node_modules/abbrev
!/node-gyp/node_modules/cacache
!/node-gyp/node_modules/glob
!/node-gyp/node_modules/jackspeak
!/node-gyp/node_modules/lru-cache
!/node-gyp/node_modules/make-fetch-happen
!/node-gyp/node_modules/minimatch
!/node-gyp/node_modules/nopt
!/node-gyp/node_modules/path-scurry
!/nopt
!/npm-audit-report
Expand All @@ -150,8 +164,17 @@
!/npm-normalize-package-bin
!/npm-package-arg
!/npm-packlist
!/npm-packlist/node_modules/
/npm-packlist/node_modules/*
!/npm-packlist/node_modules/proc-log
!/npm-pick-manifest
!/npm-pick-manifest/node_modules/
/npm-pick-manifest/node_modules/*
!/npm-pick-manifest/node_modules/npm-normalize-package-bin
!/npm-profile
!/npm-profile/node_modules/
/npm-profile/node_modules/*
!/npm-profile/node_modules/proc-log
!/npm-registry-fetch
!/npm-user-validate
!/p-map
Expand Down
8 changes: 4 additions & 4 deletions node_modules/@npmcli/map-workspaces/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@npmcli/map-workspaces",
"version": "5.0.0",
"version": "5.0.1",
"main": "lib/index.js",
"files": [
"bin/",
Expand Down Expand Up @@ -44,18 +44,18 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.25.0",
"@npmcli/template-oss": "4.27.1",
"tap": "^16.0.1"
},
"dependencies": {
"@npmcli/name-from-folder": "^3.0.0",
"@npmcli/name-from-folder": "^4.0.0",
"@npmcli/package-json": "^7.0.0",
"glob": "^11.0.3",
"minimatch": "^10.0.3"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.25.0",
"version": "4.27.1",
"publish": "true"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The ISC License

Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors
Copyright (c) GitHub, Inc.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
const META = Symbol('proc-log.meta')
module.exports = {
META: META,
output: {
LEVELS: [
'standard',
'error',
'buffer',
'flush',
],
KEYS: {
standard: 'standard',
error: 'error',
buffer: 'buffer',
flush: 'flush',
},
standard: function (...args) {
return process.emit('output', 'standard', ...args)
},
error: function (...args) {
return process.emit('output', 'error', ...args)
},
buffer: function (...args) {
return process.emit('output', 'buffer', ...args)
},
flush: function (...args) {
return process.emit('output', 'flush', ...args)
},
},
log: {
LEVELS: [
'notice',
'error',
'warn',
'info',
'verbose',
'http',
'silly',
'timing',
'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)
},
notice: function (...args) {
return process.emit('log', 'notice', ...args)
},
warn: function (...args) {
return process.emit('log', 'warn', ...args)
},
info: function (...args) {
return process.emit('log', 'info', ...args)
},
verbose: function (...args) {
return process.emit('log', 'verbose', ...args)
},
http: function (...args) {
return process.emit('log', 'http', ...args)
},
silly: function (...args) {
return process.emit('log', 'silly', ...args)
},
timing: function (...args) {
return process.emit('log', 'timing', ...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')
},
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
},
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "proc-log",
"version": "6.0.0",
"files": [
"bin/",
"lib/"
],
"main": "lib/index.js",
"description": "just emit 'log' events on the process object",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/proc-log.git"
},
"author": "GitHub Inc.",
"license": "ISC",
"scripts": {
"test": "tap",
"snap": "tap",
"posttest": "npm run lint",
"postsnap": "eslint index.js test/*.js --fix",
"lint": "npm run eslint",
"postlint": "template-oss-check",
"lintfix": "npm run eslint -- --fix",
"template-oss-apply": "template-oss-apply --force",
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
},
"devDependencies": {
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.27.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",
"publish": true
},
"tap": {
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
}
}
10 changes: 5 additions & 5 deletions node_modules/@npmcli/metavuln-calculator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@npmcli/metavuln-calculator",
"version": "9.0.2",
"version": "9.0.3",
"main": "lib/index.js",
"files": [
"bin/",
Expand Down Expand Up @@ -34,23 +34,23 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.25.0",
"@npmcli/template-oss": "4.27.1",
"require-inject": "^1.4.4",
"tap": "^16.0.1"
},
"dependencies": {
"cacache": "^20.0.0",
"json-parse-even-better-errors": "^4.0.0",
"json-parse-even-better-errors": "^5.0.0",
"pacote": "^21.0.0",
"proc-log": "^5.0.0",
"proc-log": "^6.0.0",
"semver": "^7.3.5"
},
"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.25.0",
"version": "4.27.1",
"publish": "true",
"ciVersions": [
"16.14.0",
Expand Down
8 changes: 4 additions & 4 deletions node_modules/@npmcli/name-from-folder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@npmcli/name-from-folder",
"version": "3.0.0",
"version": "4.0.0",
"files": [
"bin/",
"lib/"
Expand All @@ -25,15 +25,15 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.23.3",
"@npmcli/template-oss": "4.27.1",
"tap": "^16.3.2"
},
"engines": {
"node": "^18.17.0 || >=20.5.0"
"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.23.3",
"version": "4.27.1",
"publish": true
},
"tap": {
Expand Down
Loading
Loading