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

Update deps #7480

Merged
merged 21 commits into from
May 7, 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
2 changes: 0 additions & 2 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ graph LR;
bin-links-->read-cmd-shim;
bin-links-->write-file-atomic;
brace-expansion-->balanced-match;
builtins-->semver;
cacache-->fs-minipass;
cacache-->glob;
cacache-->lru-cache;
Expand Down Expand Up @@ -777,7 +776,6 @@ graph LR;
unique-slug-->imurmurhash;
validate-npm-package-license-->spdx-correct;
validate-npm-package-license-->spdx-expression-parse;
validate-npm-package-name-->builtins;
which-->isexe;
wrap-ansi-->ansi-styles;
wrap-ansi-->string-width;
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.22.0",
"front-matter": "^4.0.2",
"ignore-walk": "^6.0.1",
"ignore-walk": "^6.0.5",
"jsdom": "^24.0.0",
"rehype-stringify": "^9.0.3",
"remark-gfm": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion mock-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"json-stringify-safe": "^5.0.1",
"nock": "^13.3.3",
"npm-package-arg": "^11.0.2",
"pacote": "^18.0.1",
"pacote": "^18.0.5",
"tap": "^16.3.8"
}
}
1 change: 0 additions & 1 deletion node_modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
!/bin-links
!/binary-extensions
!/brace-expansion
!/builtins
!/cacache
!/chalk
!/chownr
Expand Down
6 changes: 3 additions & 3 deletions node_modules/@npmcli/git/lib/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class GitError extends Error {
}

class GitConnectionError extends GitError {
constructor (message) {
constructor () {
super('A git connection error occurred')
}

Expand All @@ -18,13 +18,13 @@ class GitConnectionError extends GitError {
}

class GitPathspecError extends GitError {
constructor (message) {
constructor () {
super('The git reference could not be found')
}
}

class GitUnknownError extends GitError {
constructor (message) {
constructor () {
super('An unknown git error occurred')
}
}
Expand Down
8 changes: 4 additions & 4 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.6",
"version": "5.0.7",
"main": "lib/index.js",
"files": [
"bin/",
Expand All @@ -9,7 +9,7 @@
"description": "a util for spawning git from npm CLI contexts",
"repository": {
"type": "git",
"url": "https://github.com/npm/git.git"
"url": "git+https://github.com/npm/git.git"
},
"author": "GitHub Inc.",
"license": "ISC",
Expand All @@ -31,7 +31,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.21.3",
"@npmcli/template-oss": "4.22.0",
"npm-package-arg": "^11.0.0",
"slash": "^3.0.0",
"tap": "^16.0.1"
Expand All @@ -51,7 +51,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.21.3",
"version": "4.22.0",
"publish": true
}
}
2 changes: 1 addition & 1 deletion node_modules/@npmcli/metavuln-calculator/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class Calculator {

const timeEnd = time.start(`metavuln:packument:${name}`)
const p = pacote.packument(name, { ...this[_options] })
.catch((er) => {
.catch(() => {
// presumably not something from the registry.
// an empty packument will have an effective range of *
return {
Expand Down
8 changes: 4 additions & 4 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": "7.1.0",
"version": "7.1.1",
"main": "lib/index.js",
"files": [
"bin/",
Expand All @@ -9,7 +9,7 @@
"description": "Calculate meta-vulnerabilities from package security advisories",
"repository": {
"type": "git",
"url": "https://github.com/npm/metavuln-calculator.git"
"url": "git+https://github.com/npm/metavuln-calculator.git"
},
"author": "GitHub Inc.",
"license": "ISC",
Expand All @@ -34,7 +34,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.21.4",
"@npmcli/template-oss": "4.22.0",
"require-inject": "^1.4.4",
"tap": "^16.0.1"
},
Expand All @@ -50,7 +50,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.21.4",
"version": "4.22.0",
"publish": "true",
"ciVersions": [
"16.14.0",
Expand Down
77 changes: 39 additions & 38 deletions node_modules/@npmcli/promise-spawn/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,54 +12,55 @@ const promiseSpawn = (cmd, args, opts = {}, extra = {}) => {
return spawnWithShell(cmd, args, opts, extra)
}

let proc
let resolve, reject
const promise = new Promise((_resolve, _reject) => {
resolve = _resolve
reject = _reject
})

const p = new Promise((res, rej) => {
proc = spawn(cmd, args, opts)
// Create error here so we have a more useful stack trace when rejecting
const closeError = new Error('command failed')

const stdout = []
const stderr = []
const stdout = []
const stderr = []

const reject = er => rej(Object.assign(er, {
cmd,
args,
...stdioResult(stdout, stderr, opts),
...extra,
}))
const getResult = (result) => ({
cmd,
args,
...result,
...stdioResult(stdout, stderr, opts),
...extra,
})
const rejectWithOpts = (er, erOpts) => {
const resultError = getResult(erOpts)
reject(Object.assign(er, resultError))
}

proc.on('error', reject)
const proc = spawn(cmd, args, opts)
promise.stdin = proc.stdin
promise.process = proc

if (proc.stdout) {
proc.stdout.on('data', c => stdout.push(c)).on('error', reject)
proc.stdout.on('error', er => reject(er))
}
proc.on('error', rejectWithOpts)

if (proc.stderr) {
proc.stderr.on('data', c => stderr.push(c)).on('error', reject)
proc.stderr.on('error', er => reject(er))
}
if (proc.stdout) {
proc.stdout.on('data', c => stdout.push(c))
proc.stdout.on('error', rejectWithOpts)
}

proc.on('close', (code, signal) => {
const result = {
cmd,
args,
code,
signal,
...stdioResult(stdout, stderr, opts),
...extra,
}
if (proc.stderr) {
proc.stderr.on('data', c => stderr.push(c))
proc.stderr.on('error', rejectWithOpts)
}

if (code || signal) {
rej(Object.assign(new Error('command failed'), result))
} else {
res(result)
}
})
proc.on('close', (code, signal) => {
if (code || signal) {
rejectWithOpts(closeError, { code, signal })
} else {
resolve(getResult({ code, signal }))
}
})

p.stdin = proc.stdin
p.process = proc
return p
return promise
}

const spawnWithShell = (cmd, args, opts, extra) => {
Expand Down
8 changes: 4 additions & 4 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.1",
"version": "7.0.2",
"files": [
"bin/",
"lib/"
Expand All @@ -9,7 +9,7 @@
"description": "spawn processes the way the npm cli likes to do",
"repository": {
"type": "git",
"url": "https://github.com/npm/promise-spawn.git"
"url": "git+https://github.com/npm/promise-spawn.git"
},
"author": "GitHub Inc.",
"license": "ISC",
Expand All @@ -32,7 +32,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.21.3",
"@npmcli/template-oss": "4.22.0",
"spawk": "^1.7.1",
"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.21.3",
"version": "4.22.0",
"publish": true
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion node_modules/bin-links/lib/shim-bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const fixBin = require('./fix-bin.js')
// nondeterminism.
const seen = new Set()

const failEEXIST = ({ path, to, from }) =>
const failEEXIST = ({ to, from }) =>
Promise.reject(Object.assign(new Error('EEXIST: file already exists'), {
path: to,
dest: from,
Expand Down
10 changes: 5 additions & 5 deletions node_modules/bin-links/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "bin-links",
"version": "4.0.3",
"version": "4.0.4",
"description": "JavaScript package binary linker",
"main": "./lib/index.js",
"scripts": {
"snap": "tap",
"test": "tap",
"lint": "eslint \"**/*.js\"",
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"postlint": "template-oss-check",
"lintfix": "npm run lint -- --fix",
"posttest": "npm run lint",
"template-oss-apply": "template-oss-apply --force"
},
"repository": {
"type": "git",
"url": "https://github.com/npm/bin-links.git"
"url": "git+https://github.com/npm/bin-links.git"
},
"keywords": [
"npm",
Expand All @@ -30,7 +30,7 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.19.0",
"@npmcli/template-oss": "4.22.0",
"require-inject": "^1.4.4",
"tap": "^16.0.1"
},
Expand All @@ -53,7 +53,7 @@
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"windowsCI": false,
"version": "4.19.0",
"version": "4.22.0",
"publish": true
}
}
20 changes: 0 additions & 20 deletions node_modules/builtins/License

This file was deleted.

Loading
Loading