Skip to content

Commit 81da28b

Browse files
committed
deps: update major versions of top level and nested npm deps
- @npmcli/[email protected] - @npmcli/[email protected] - @npmcli/[email protected] - [email protected] - [email protected] - [email protected] - [email protected] - [email protected] - [email protected]
1 parent fb13bda commit 81da28b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1794
-559
lines changed

node_modules/@npmcli/config/lib/env-replace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// replace any ${ENV} values with the appropriate environ.
22

3-
const envExpr = /(\\*)\$\{([^}]+)\}/g
3+
const envExpr = /(?<!\\)(\\*)\$\{([^${}]+)\}/g
44

55
module.exports = (f, env) => f.replace(envExpr, (orig, esc, name) => {
66
const val = env[name] !== undefined ? env[name] : `$\{${name}}`

node_modules/@npmcli/config/lib/index.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const nopt = require('nopt')
55
const mkdirp = require('mkdirp-infer-owner')
66
const mapWorkspaces = require('@npmcli/map-workspaces')
77
const rpj = require('read-package-json-fast')
8+
const log = require('proc-log')
89

910
/* istanbul ignore next */
1011
const myUid = process.getuid && process.getuid()
@@ -88,7 +89,6 @@ class Config {
8889
// options just to override in tests, mostly
8990
env = process.env,
9091
argv = process.argv,
91-
log = require('./proc-log.js'),
9292
platform = process.platform,
9393
execPath = process.execPath,
9494
cwd = process.cwd(),
@@ -114,7 +114,6 @@ class Config {
114114
this.defaults = defaults
115115

116116
this.npmPath = npmPath
117-
this.log = log
118117
this.argv = argv
119118
this.env = env
120119
this.execPath = execPath
@@ -436,7 +435,7 @@ class Config {
436435
}
437436

438437
invalidHandler (k, val, type, source, where) {
439-
this.log.warn(
438+
log.warn(
440439
'invalid config',
441440
k + '=' + JSON.stringify(val),
442441
`set in ${source}`
@@ -469,7 +468,7 @@ class Config {
469468
: mustBe.filter(m => m !== Array)
470469
.map(n => typeof n === 'string' ? n : JSON.stringify(n))
471470
.join(', ')
472-
this.log.warn('invalid config', msg, desc)
471+
log.warn('invalid config', msg, desc)
473472
}
474473

475474
[_loadObject] (obj, where, source, er = null) {
@@ -491,7 +490,7 @@ class Config {
491490
if (er) {
492491
conf.loadError = er
493492
if (er.code !== 'ENOENT') {
494-
this.log.verbose('config', `error loading ${where} config`, er)
493+
log.verbose('config', `error loading ${where} config`, er)
495494
}
496495
} else {
497496
conf.raw = obj
@@ -510,7 +509,7 @@ class Config {
510509
// XXX a future npm version will make this a warning.
511510
// An even more future npm version will make this an error.
512511
if (this.deprecated[key]) {
513-
this.log.verbose('config', key, this.deprecated[key])
512+
log.verbose('config', key, this.deprecated[key])
514513
}
515514
}
516515

@@ -607,14 +606,14 @@ class Config {
607606
.catch(() => false)
608607

609608
if (hasNpmrc) {
610-
this.log.warn(`ignoring workspace config at ${this.localPrefix}/.npmrc`)
609+
log.warn(`ignoring workspace config at ${this.localPrefix}/.npmrc`)
611610
}
612611

613612
// set the workspace in the default layer, which allows it to be overridden easily
614613
const { data } = this.data.get('default')
615614
data.workspace = [this.localPrefix]
616615
this.localPrefix = p
617-
this.log.info(`found workspace root at ${this.localPrefix}`)
616+
log.info(`found workspace root at ${this.localPrefix}`)
618617
// we found a root, so we return now
619618
return
620619
}

node_modules/@npmcli/config/lib/proc-log.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

node_modules/@npmcli/config/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@npmcli/config",
3-
"version": "3.0.0",
3+
"version": "4.0.0",
44
"files": [
55
"bin",
66
"lib"
@@ -30,22 +30,23 @@
3030
"coverage-map": "map.js"
3131
},
3232
"devDependencies": {
33-
"@npmcli/template-oss": "^2.5.1",
34-
"tap": "^15.0.4"
33+
"@npmcli/template-oss": "^2.7.1",
34+
"tap": "^15.1.6"
3535
},
3636
"dependencies": {
3737
"@npmcli/map-workspaces": "^2.0.0",
3838
"ini": "^2.0.0",
3939
"mkdirp-infer-owner": "^2.0.0",
4040
"nopt": "^5.0.0",
41+
"proc-log": "^2.0.0",
4142
"read-package-json-fast": "^2.0.3",
42-
"semver": "^7.3.4",
43+
"semver": "^7.3.5",
4344
"walk-up-path": "^1.0.0"
4445
},
4546
"engines": {
4647
"node": "^12.13.0 || ^14.15.0 || >=16"
4748
},
4849
"templateOSS": {
49-
"version": "2.6.0"
50+
"version": "2.7.1"
5051
}
5152
}

node_modules/@npmcli/git/lib/clone.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const shallowHosts = new Set([
1515
'gist.github.com',
1616
'gitlab.com',
1717
'bitbucket.com',
18-
'bitbucket.org'
18+
'bitbucket.org',
1919
])
2020
// we have to use url.parse until we add the same shim that hosted-git-info has
2121
// to handle scp:// urls
@@ -113,10 +113,14 @@ const branch = (repo, revDoc, target, opts) => {
113113
revDoc.ref,
114114
repo,
115115
target,
116-
'--recurse-submodules'
116+
'--recurse-submodules',
117117
]
118-
if (maybeShallow(repo, opts)) { args.push('--depth=1') }
119-
if (isWindows(opts)) { args.push('--config', 'core.longpaths=true') }
118+
if (maybeShallow(repo, opts)) {
119+
args.push('--depth=1')
120+
}
121+
if (isWindows(opts)) {
122+
args.push('--config', 'core.longpaths=true')
123+
}
120124
return spawn(args, opts).then(() => revDoc.sha)
121125
}
122126

@@ -126,10 +130,14 @@ const plain = (repo, revDoc, target, opts) => {
126130
'clone',
127131
repo,
128132
target,
129-
'--recurse-submodules'
133+
'--recurse-submodules',
130134
]
131-
if (maybeShallow(repo, opts)) { args.push('--depth=1') }
132-
if (isWindows(opts)) { args.push('--config', 'core.longpaths=true') }
135+
if (maybeShallow(repo, opts)) {
136+
args.push('--depth=1')
137+
}
138+
if (isWindows(opts)) {
139+
args.push('--config', 'core.longpaths=true')
140+
}
133141
return spawn(args, opts).then(() => revDoc.sha)
134142
}
135143

@@ -143,7 +151,7 @@ const updateSubmodules = (target, opts) => new Promise(resolve =>
143151
'update',
144152
'-q',
145153
'--init',
146-
'--recursive'
154+
'--recursive',
147155
], { ...opts, cwd: target }))
148156
}))
149157

node_modules/@npmcli/git/lib/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ class GitUnknownError extends GitError {
3232
module.exports = {
3333
GitConnectionError,
3434
GitPathspecError,
35-
GitUnknownError
35+
GitUnknownError,
3636
}

node_modules/@npmcli/git/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ module.exports = {
55
is: require('./is.js'),
66
find: require('./find.js'),
77
isClean: require('./is-clean.js'),
8-
errors: require('./errors.js')
8+
errors: require('./errors.js'),
99
}

node_modules/@npmcli/git/lib/lines-to-revs.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = lines => finish(lines.reduce(linesToRevsReducer, {
77
versions: {},
88
'dist-tags': {},
99
refs: {},
10-
shas: {}
10+
shas: {},
1111
}))
1212

1313
const finish = revs => distTags(shaList(peelTags(revs)))
@@ -52,7 +52,9 @@ const distTags = revs => {
5252
revs['dist-tags'].latest = v
5353
} else if (ver.sha === HEAD.sha) {
5454
revs['dist-tags'].HEAD = v
55-
if (!revs.refs.latest) { revs['dist-tags'].latest = v }
55+
if (!revs.refs.latest) {
56+
revs['dist-tags'].latest = v
57+
}
5658
}
5759
})
5860
return revs
@@ -79,7 +81,9 @@ const refType = ref => {
7981
// return the doc, or null if we should ignore it.
8082
const lineToRevDoc = line => {
8183
const split = line.trim().split(/\s+/, 2)
82-
if (split.length < 2) { return null }
84+
if (split.length < 2) {
85+
return null
86+
}
8387

8488
const sha = split[0].trim()
8589
const rawRef = split[1].trim()
@@ -122,7 +126,9 @@ const lineToRevDoc = line => {
122126
const linesToRevsReducer = (revs, line) => {
123127
const doc = lineToRevDoc(line)
124128

125-
if (!doc) { return revs }
129+
if (!doc) {
130+
return revs
131+
}
126132

127133
revs.refs[doc.ref] = doc
128134
revs.refs[doc.rawRef] = doc

node_modules/@npmcli/git/lib/make-error.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const {
22
GitConnectionError,
33
GitPathspecError,
4-
GitUnknownError
4+
GitUnknownError,
55
} = require('./errors.js')
66

77
const connectionErrorRe = new RegExp([
@@ -12,7 +12,7 @@ const connectionErrorRe = new RegExp([
1212
'Failed to connect to .* Timed out',
1313
'Connection reset by peer',
1414
'SSL_ERROR_SYSCALL',
15-
'The requested URL returned error: 503'
15+
'The requested URL returned error: 503',
1616
].join('|'))
1717

1818
const missingPathspecRe = /pathspec .* did not match any file\(s\) known to git/

node_modules/@npmcli/git/lib/opts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// This defaults to accepting new ssh host key fingerprints
33
const gitEnv = {
44
GIT_ASKPASS: 'echo',
5-
GIT_SSH_COMMAND: 'ssh -oStrictHostKeyChecking=accept-new'
5+
GIT_SSH_COMMAND: 'ssh -oStrictHostKeyChecking=accept-new',
66
}
77
module.exports = (opts = {}) => ({
88
stdioString: true,
99
...opts,
1010
shell: false,
11-
env: opts.env || { ...gitEnv, ...process.env }
11+
env: opts.env || { ...gitEnv, ...process.env },
1212
})

0 commit comments

Comments
 (0)