Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deps updates #7121

Merged
merged 10 commits into from
Jan 9, 2024
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
11 changes: 0 additions & 11 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,20 +261,15 @@ graph LR;
## all dependencies
```mermaid
graph LR;
abort-controller-->event-target-shim;
agent-base-->debug;
aggregate-error-->clean-stack;
aggregate-error-->indent-string;
ansi-styles-->color-convert;
are-we-there-yet-->delegates;
are-we-there-yet-->readable-stream;
bin-links-->cmd-shim;
bin-links-->npm-normalize-package-bin;
bin-links-->read-cmd-shim;
bin-links-->write-file-atomic;
brace-expansion-->balanced-match;
buffer-->base64-js;
buffer-->ieee754;
builtins-->semver;
cacache-->fs-minipass;
cacache-->glob;
Expand Down Expand Up @@ -759,11 +754,6 @@ graph LR;
read-package-json-->npm-normalize-package-bin;
read-package-json-fast-->json-parse-even-better-errors;
read-package-json-fast-->npm-normalize-package-bin;
readable-stream-->abort-controller;
readable-stream-->buffer;
readable-stream-->events;
readable-stream-->process;
readable-stream-->string_decoder;
semver-->lru-cache;
shebang-command-->shebang-regex;
sigstore-->sigstore-bundle["@sigstore/bundle"];
Expand All @@ -790,7 +780,6 @@ graph LR;
string-width-->emoji-regex;
string-width-->is-fullwidth-code-point;
string-width-->strip-ansi;
string_decoder-->safe-buffer;
strip-ansi-->ansi-regex;
tar-->chownr;
tar-->fs-minipass;
Expand Down
11 changes: 0 additions & 11 deletions node_modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
!/@tufjs/canonical-json
!/@tufjs/models
!/abbrev
!/abort-controller
!/agent-base
!/aggregate-error
!/ansi-regex
Expand All @@ -55,11 +54,9 @@
!/archy
!/are-we-there-yet
!/balanced-match
!/base64-js
!/bin-links
!/binary-extensions
!/brace-expansion
!/buffer
!/builtins
!/cacache
!/chalk
Expand Down Expand Up @@ -95,15 +92,12 @@
/debug/node_modules/*
!/debug/node_modules/ms
!/defaults
!/delegates
!/diff
!/eastasianwidth
!/emoji-regex
!/encoding
!/env-paths
!/err-code
!/event-target-shim
!/events
!/exponential-backoff
!/fastest-levenshtein
!/foreground-child
Expand All @@ -123,7 +117,6 @@
!/http-proxy-agent
!/https-proxy-agent
!/iconv-lite
!/ieee754
!/ignore-walk
!/imurmurhash
!/indent-string
Expand Down Expand Up @@ -193,7 +186,6 @@
!/path-scurry
!/postcss-selector-parser
!/proc-log
!/process
!/promise-all-reject-late
!/promise-call-limit
!/promise-inflight
Expand All @@ -204,9 +196,7 @@
!/read-package-json-fast
!/read-package-json
!/read
!/readable-stream
!/retry
!/safe-buffer
!/safer-buffer
!/semver
!/semver/node_modules/
Expand All @@ -225,7 +215,6 @@
!/spdx-expression-parse
!/spdx-license-ids
!/ssri
!/string_decoder
!/string-width-cjs
!/string-width-cjs/node_modules/
/string-width-cjs/node_modules/*
Expand Down
2 changes: 1 addition & 1 deletion node_modules/@npmcli/git/lib/spawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const spawn = require('@npmcli/promise-spawn')
const promiseRetry = require('promise-retry')
const log = require('proc-log')
const makeError = require('./make-error.js')
const whichGit = require('./which.js')
const makeOpts = require('./opts.js')

module.exports = (gitArgs, opts = {}) => {
const whichGit = require('./which.js')
const gitPath = whichGit(opts)

if (gitPath instanceof Error) {
Expand Down
16 changes: 5 additions & 11 deletions node_modules/@npmcli/git/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@npmcli/git",
"version": "5.0.3",
"version": "5.0.4",
"main": "lib/index.js",
"files": [
"bin/",
Expand All @@ -14,7 +14,7 @@
"author": "GitHub Inc.",
"license": "ISC",
"scripts": {
"lint": "eslint \"**/*.js\"",
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"snap": "tap",
"test": "tap",
"posttest": "npm run lint",
Expand All @@ -31,7 +31,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.18.0",
"@npmcli/template-oss": "4.21.3",
"npm-package-arg": "^11.0.0",
"slash": "^3.0.0",
"tap": "^16.0.1"
Expand All @@ -51,13 +51,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.18.0",
"publish": true,
"ciVersions": [
"16.14.0",
"16.x",
"18.0.0",
"18.x"
]
"version": "4.21.3",
"publish": true
}
}
14 changes: 12 additions & 2 deletions node_modules/@npmcli/promise-spawn/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ const spawnWithShell = (cmd, args, opts, extra) => {
let pathToInitial
try {
pathToInitial = which.sync(initialCmd, {
path: (options.env && options.env.PATH) || process.env.PATH,
pathext: (options.env && options.env.PATHEXT) || process.env.PATHEXT,
path: (options.env && findInObject(options.env, 'PATH')) || process.env.PATH,
pathext: (options.env && findInObject(options.env, 'PATHEXT')) || process.env.PATHEXT,
}).toLowerCase()
} catch (err) {
pathToInitial = initialCmd.toLowerCase()
Expand Down Expand Up @@ -192,4 +192,14 @@ const stdioResult = (stdout, stderr, { stdioString = true, stdio }) => {
return result
}

// case insensitive lookup in an object
const findInObject = (obj, key) => {
key = key.toLowerCase()
for (const objKey of Object.keys(obj).sort()) {
if (objKey.toLowerCase() === key) {
return obj[objKey]
}
}
}

module.exports = promiseSpawn
14 changes: 4 additions & 10 deletions node_modules/@npmcli/promise-spawn/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@npmcli/promise-spawn",
"version": "7.0.0",
"version": "7.0.1",
"files": [
"bin/",
"lib/"
Expand All @@ -16,7 +16,7 @@
"scripts": {
"test": "tap",
"snap": "tap",
"lint": "eslint \"**/*.js\"",
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"lintfix": "npm run lint -- --fix",
"posttest": "npm run lint",
"postsnap": "npm run lintfix --",
Expand All @@ -32,7 +32,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.18.0",
"@npmcli/template-oss": "4.21.3",
"spawk": "^1.7.1",
"tap": "^16.0.1"
},
Expand All @@ -41,13 +41,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"ciVersions": [
"16.14.0",
"16.x",
"18.0.0",
"18.x"
],
"version": "4.18.0",
"version": "4.21.3",
"publish": true
},
"dependencies": {
Expand Down
11 changes: 6 additions & 5 deletions node_modules/@npmcli/run-script/lib/signal-manager.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const runningProcs = new Set()
let handlersInstalled = false

// NOTE: these signals aren't actually forwarded anywhere. they're trapped and
// ignored until all child processes have exited. in our next breaking change
// we should rename this
const forwardedSignals = [
'SIGINT',
'SIGTERM',
Expand All @@ -12,8 +9,12 @@ const forwardedSignals = [
// no-op, this is so receiving the signal doesn't cause us to exit immediately
// instead, we exit after all children have exited when we re-send the signal
// to ourselves. see the catch handler at the bottom of run-script-pkg.js
// istanbul ignore next - this function does nothing
const handleSignal = () => {}
const handleSignal = signal => {
for (const proc of runningProcs) {
proc.kill(signal)
}
}

const setupListeners = () => {
for (const signal of forwardedSignals) {
process.on(signal, handleSignal)
Expand Down
8 changes: 4 additions & 4 deletions node_modules/@npmcli/run-script/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@npmcli/run-script",
"version": "7.0.2",
"version": "7.0.3",
"description": "Run a lifecycle script for a package (descendant of npm-lifecycle)",
"author": "GitHub Inc.",
"license": "ISC",
"scripts": {
"test": "tap",
"eslint": "eslint",
"lint": "eslint \"**/*.js\"",
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"lintfix": "npm run lint -- --fix",
"postlint": "template-oss-check",
"snap": "tap",
Expand All @@ -16,7 +16,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.19.0",
"@npmcli/template-oss": "4.21.3",
"require-inject": "^1.4.4",
"tap": "^16.0.1"
},
Expand All @@ -41,7 +41,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.19.0",
"version": "4.21.3",
"publish": "true"
},
"tap": {
Expand Down
21 changes: 0 additions & 21 deletions node_modules/abort-controller/LICENSE

This file was deleted.

13 changes: 0 additions & 13 deletions node_modules/abort-controller/browser.js

This file was deleted.

11 changes: 0 additions & 11 deletions node_modules/abort-controller/browser.mjs

This file was deleted.

Loading