Skip to content

Commit ba66b21

Browse files
ruyadornocodebytere
authored andcommitted
deps: upgrade npm to 6.14.5
PR-URL: #33239 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent cae2051 commit ba66b21

File tree

185 files changed

+567
-797
lines changed

Some content is hidden

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

185 files changed

+567
-797
lines changed

deps/npm/.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ html/*.png
2424

2525
*.pyc
2626

27-
27+
Session.vim
2828
.nyc_output

deps/npm/.travis.yml

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ node_js:
1212

1313
env: "DEPLOY_VERSION=testing"
1414

15-
notifications:
16-
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
17-
1815
install:
1916
- "node . install"
2017

deps/npm/AUTHORS

+4
Original file line numberDiff line numberDiff line change
@@ -691,3 +691,7 @@ Vitaliy Markitanov <[email protected]>
691691
692692
John Kennedy <[email protected]>
693693
Bernard Kitchens <[email protected]>
694+
Jarda Snajdr <[email protected]>
695+
Naix Geng <[email protected]>
696+
Dylan Treisman <[email protected]>
697+
mum-never-proud <[email protected]>

deps/npm/CHANGELOG.md

+15

deps/npm/CONTRIBUTING.md

+3-3

deps/npm/docs/content/cli-commands/npm.md

+5-5

deps/npm/docs/content/using-npm/scripts.md

+28-14

deps/npm/docs/public/cli-commands/npm-access/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-adduser/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-audit/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-bin/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-bugs/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-build/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-bundle/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-cache/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-ci/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-completion/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-config/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-dedupe/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-deprecate/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-dist-tag/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-docs/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-doctor/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-edit/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-explore/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-fund/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-help-search/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-help/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-hook/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-init/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-install-ci-test/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-install-test/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-install/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-link/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-logout/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-ls/index.html

+4-4
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-org/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-outdated/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-owner/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-pack/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-ping/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-prefix/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-profile/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-prune/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-publish/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-rebuild/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-repo/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-restart/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-root/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-run-script/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-search/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-shrinkwrap/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-star/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-stars/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-start/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-stop/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-team/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-test/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-token/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-uninstall/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-unpublish/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-update/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-version/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-view/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm-whoami/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/cli-commands/npm/index.html

+9-9
Large diffs are not rendered by default.

deps/npm/docs/public/configuring-npm/folders/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/configuring-npm/install/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/configuring-npm/npmrc/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/configuring-npm/package-json/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/configuring-npm/package-lock-json/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/configuring-npm/package-locks/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/configuring-npm/shrinkwrap-json/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/index.html

+2-2
Large diffs are not rendered by default.

deps/npm/docs/public/using-npm/config/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/using-npm/developers/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/using-npm/disputes/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/using-npm/orgs/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/using-npm/registry/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/using-npm/removal/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/using-npm/scope/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/docs/public/using-npm/scripts/index.html

+31-17
Large diffs are not rendered by default.

deps/npm/docs/public/using-npm/semver/index.html

+3-3
Large diffs are not rendered by default.

deps/npm/lib/init.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function init (args, cb) {
6363
'This utility will walk you through creating a package.json file.',
6464
'It only covers the most common items, and tries to guess sensible defaults.',
6565
'',
66-
'See `npm help json` for definitive documentation on these fields',
66+
'See `npm help init` for definitive documentation on these fields',
6767
'and exactly what they do.',
6868
'',
6969
'Use `npm install <pkg>` afterwards to install a package and',

deps/npm/lib/install/deps.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ function doesChildVersionMatch (child, requested, requestor) {
7474
var childReq = child.package._requested
7575
if (childReq) {
7676
if (childReq.rawSpec === requested.rawSpec) return true
77-
if (childReq.type === requested.type && childReq.saveSpec === requested.saveSpec) return true
77+
if (childReq.type === requested.type) {
78+
if (childReq.saveSpec === requested.saveSpec) return true
79+
if (childReq.fetchSpec === requested.fetchSpec) return true
80+
}
7881
}
7982
// If _requested didn't exist OR if it didn't match then we'll try using
8083
// _from. We pass it through npa to normalize the specifier.
@@ -200,6 +203,7 @@ function removeObsoleteDep (child, log) {
200203
})
201204
}
202205

206+
exports.packageRelativePath = packageRelativePath
203207
function packageRelativePath (tree) {
204208
if (!tree) return ''
205209
var requested = tree.package._requested || {}
@@ -570,7 +574,7 @@ function addDependency (name, versionSpec, tree, log, done) {
570574
try {
571575
var req = childDependencySpecifier(tree, name, versionSpec)
572576
if (tree.swRequires && tree.swRequires[name]) {
573-
var swReq = childDependencySpecifier(tree, name, tree.swRequires[name], tree.package._where)
577+
var swReq = childDependencySpecifier(tree, name, tree.swRequires[name])
574578
}
575579
} catch (err) {
576580
return done(err)

deps/npm/lib/install/get-requested.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
'use strict'
22
const npa = require('npm-package-arg')
33
const moduleName = require('../utils/module-name.js')
4-
4+
const packageRelativePath = require('./deps').packageRelativePath
55
module.exports = function (child, reqBy) {
66
if (!child.requiredBy.length) return
77
if (!reqBy) reqBy = child.requiredBy[0]
88
const deps = reqBy.package.dependencies || {}
99
const devDeps = reqBy.package.devDependencies || {}
10+
const optDeps = reqBy.package.optionalDependencies || {}
1011
const name = moduleName(child)
11-
return npa.resolve(name, deps[name] || devDeps[name], reqBy.realpath)
12+
const spec = deps[name] || devDeps[name] || optDeps[name]
13+
const where = packageRelativePath(reqBy)
14+
return npa.resolve(name, spec, where)
1215
}

deps/npm/lib/install/inflate-shrinkwrap.js

+22-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,20 @@ function tarballToVersion (name, tb) {
8989
return match[2] || match[1]
9090
}
9191

92+
function relativizeLink (name, spec, topPath, requested) {
93+
if (!spec.startsWith('file:')) {
94+
return
95+
}
96+
97+
let requestedPath = requested.fetchSpec
98+
if (requested.type === 'file') {
99+
requestedPath = path.dirname(requestedPath)
100+
}
101+
102+
const relativized = path.relative(requestedPath, path.resolve(topPath, spec.slice(5)))
103+
return 'file:' + relativized
104+
}
105+
92106
function inflatableChild (onDiskChild, name, topPath, tree, sw, requested, opts) {
93107
validate('OSSOOOO|ZSSOOOO', arguments)
94108
const usesIntegrity = (
@@ -101,7 +115,14 @@ function inflatableChild (onDiskChild, name, topPath, tree, sw, requested, opts)
101115
sw.resolved = sw.version
102116
sw.version = regTarball
103117
}
104-
if (sw.requires) Object.keys(sw.requires).map(_ => { sw.requires[_] = tarballToVersion(_, sw.requires[_]) || sw.requires[_] })
118+
if (sw.requires) {
119+
Object.keys(sw.requires).forEach(name => {
120+
const spec = sw.requires[name]
121+
sw.requires[name] = tarballToVersion(name, spec) ||
122+
relativizeLink(name, spec, topPath, requested) ||
123+
spec
124+
})
125+
}
105126
const modernLink = requested.type === 'directory' && !sw.from
106127
if (hasModernMeta(onDiskChild) && childIsEquivalent(sw, requested, onDiskChild)) {
107128
// The version on disk matches the shrinkwrap entry.

deps/npm/man/man1/npm-README.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM" "1" "March 2020" "" ""
1+
.TH "NPM" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm\fR \- a JavaScript package manager
44
.P

deps/npm/man/man1/npm-access.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-ACCESS" "1" "March 2020" "" ""
1+
.TH "NPM\-ACCESS" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-access\fR \- Set access level on published packages
44
.SS Synopsis

deps/npm/man/man1/npm-adduser.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
section: cli\-commands
44
title: npm\-adduser
55
.SH description: Set access level on published packages
6-
.TH "NPM\-ADDUSER" "1" "March 2020" "" ""
6+
.TH "NPM\-ADDUSER" "1" "May 2020" "" ""
77
.SH "NAME"
88
\fBnpm-adduser\fR \- Add a registry user account
99
.SS Synopsis

deps/npm/man/man1/npm-audit.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-AUDIT" "1" "March 2020" "" ""
1+
.TH "NPM\-AUDIT" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-audit\fR \- Run a security audit
44
.SS Synopsis

deps/npm/man/man1/npm-bin.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-BIN" "1" "March 2020" "" ""
1+
.TH "NPM\-BIN" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-bin\fR \- Display npm bin folder
44
.SS Synopsis

deps/npm/man/man1/npm-bugs.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-BUGS" "1" "March 2020" "" ""
1+
.TH "NPM\-BUGS" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-bugs\fR \- Bugs for a package in a web browser maybe
44
.SS Synopsis

deps/npm/man/man1/npm-build.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-BUILD" "1" "March 2020" "" ""
1+
.TH "NPM\-BUILD" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-build\fR \- Build a package
44
.SS Synopsis

deps/npm/man/man1/npm-bundle.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-BUNDLE" "1" "March 2020" "" ""
1+
.TH "NPM\-BUNDLE" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-bundle\fR \- REMOVED
44
.SS Description

deps/npm/man/man1/npm-cache.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-CACHE" "1" "March 2020" "" ""
1+
.TH "NPM\-CACHE" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-cache\fR \- Manipulates packages cache
44
.SS Synopsis

deps/npm/man/man1/npm-ci.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-CI" "1" "March 2020" "" ""
1+
.TH "NPM\-CI" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-ci\fR \- Install a project with a clean slate
44
.SS Synopsis

deps/npm/man/man1/npm-completion.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-COMPLETION" "1" "March 2020" "" ""
1+
.TH "NPM\-COMPLETION" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-completion\fR \- Tab Completion for npm
44
.SS Synopsis

deps/npm/man/man1/npm-config.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-CONFIG" "1" "March 2020" "" ""
1+
.TH "NPM\-CONFIG" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-config\fR \- Manage the npm configuration files
44
.SS Synopsis

deps/npm/man/man1/npm-dedupe.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-DEDUPE" "1" "March 2020" "" ""
1+
.TH "NPM\-DEDUPE" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-dedupe\fR \- Reduce duplication
44
.SS Synopsis

deps/npm/man/man1/npm-deprecate.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-DEPRECATE" "1" "March 2020" "" ""
1+
.TH "NPM\-DEPRECATE" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-deprecate\fR \- Deprecate a version of a package
44
.SS Synopsis

deps/npm/man/man1/npm-dist-tag.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
section: cli\-commands
44
title: npm\-dist\-tag
55
.SH description: Modify package distribution tags
6-
.TH "NPM\-DIST\-TAG" "1" "March 2020" "" ""
6+
.TH "NPM\-DIST\-TAG" "1" "May 2020" "" ""
77
.SH "NAME"
88
\fBnpm-dist-tag\fR \- Modify package distribution tags
99
.SS Synopsis

deps/npm/man/man1/npm-docs.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-DOCS" "1" "March 2020" "" ""
1+
.TH "NPM\-DOCS" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-docs\fR \- Docs for a package in a web browser maybe
44
.SS Synopsis

deps/npm/man/man1/npm-doctor.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-DOCTOR" "1" "March 2020" "" ""
1+
.TH "NPM\-DOCTOR" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-doctor\fR \- Check your environments
44
.SS Synopsis

deps/npm/man/man1/npm-edit.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-EDIT" "1" "March 2020" "" ""
1+
.TH "NPM\-EDIT" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-edit\fR \- Edit an installed package
44
.SS Synopsis

deps/npm/man/man1/npm-explore.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
section: cli\-commands
44
title: npm\-explore
55
.SH description: Browse an installed package
6-
.TH "NPM\-EXPLORE" "1" "March 2020" "" ""
6+
.TH "NPM\-EXPLORE" "1" "May 2020" "" ""
77
.SH "NAME"
88
\fBnpm-explore\fR \- Browse an installed package
99
.SS Synopsis

deps/npm/man/man1/npm-fund.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-FUND" "1" "March 2020" "" ""
1+
.TH "NPM\-FUND" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-fund\fR \- Retrieve funding information
44
.SS Synopsis

deps/npm/man/man1/npm-help-search.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-HELP\-SEARCH" "1" "March 2020" "" ""
1+
.TH "NPM\-HELP\-SEARCH" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-help-search\fR \- Search npm help documentation
44
.SS Synopsis

deps/npm/man/man1/npm-help.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH "NPM\-HELP" "1" "March 2020" "" ""
1+
.TH "NPM\-HELP" "1" "May 2020" "" ""
22
.SH "NAME"
33
\fBnpm-help\fR \- Get help on npm
44
.SS Synopsis

0 commit comments

Comments
 (0)