summaryrefslogtreecommitdiff
path: root/deps/npm/lib
diff options
context:
space:
mode:
authornpm CLI robot <npm-cli+bot@github.com>2023-02-25 01:17:56 -0500
committerGitHub <noreply@github.com>2023-02-25 06:17:56 +0000
commit8d573d9985f06909fac4bcc3fc1ef7168c264e46 (patch)
tree49a2aa5f42786f859c6d53fde0c45e82c851e43d /deps/npm/lib
parentc1178c53ecfdc3fa800d8c1eac962c9b99e22511 (diff)
downloadnode-new-8d573d9985f06909fac4bcc3fc1ef7168c264e46.tar.gz
deps: upgrade npm to 9.5.1
PR-URL: https://github.com/nodejs/node/pull/46783 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Diffstat (limited to 'deps/npm/lib')
-rw-r--r--deps/npm/lib/commands/help.js2
-rw-r--r--deps/npm/lib/commands/link.js2
-rw-r--r--deps/npm/lib/utils/queryable.js8
-rw-r--r--deps/npm/lib/workspaces/update-workspaces.js2
4 files changed, 7 insertions, 7 deletions
diff --git a/deps/npm/lib/commands/help.js b/deps/npm/lib/commands/help.js
index 3ab2c56319..28f18e7edc 100644
--- a/deps/npm/lib/commands/help.js
+++ b/deps/npm/lib/commands/help.js
@@ -10,7 +10,7 @@ const BaseCommand = require('../base-command.js')
// Strips out the number from foo.7 or foo.7. or foo.7.tgz
// We don't currently compress our man pages but if we ever did this would
-// seemlessly continue supporting it
+// seamlessly continue supporting it
const manNumberRegex = /\.(\d+)(\.[^/\\]*)?$/
// Searches for the "npm-" prefix in page names, to prefer those.
const manNpmPrefixRegex = /\/npm-/
diff --git a/deps/npm/lib/commands/link.js b/deps/npm/lib/commands/link.js
index 5af2c7c269..6d8027f2b9 100644
--- a/deps/npm/lib/commands/link.js
+++ b/deps/npm/lib/commands/link.js
@@ -52,7 +52,7 @@ class Link extends ArboristWorkspaceCmd {
{ code: 'ELINKGLOBAL' }
)
}
- // install-links is implicitely false when running `npm link`
+ // install-links is implicitly false when running `npm link`
this.npm.config.set('install-links', false)
// link with no args: symlink the folder to the global location
diff --git a/deps/npm/lib/utils/queryable.js b/deps/npm/lib/utils/queryable.js
index 6acc1758ce..5ddcf636e8 100644
--- a/deps/npm/lib/utils/queryable.js
+++ b/deps/npm/lib/utils/queryable.js
@@ -4,7 +4,7 @@ const _append = Symbol('append')
const sqBracketsMatcher = str => str.match(/(.+)\[([^\]]+)\]\.?(.*)$/)
-// replaces any occurence of an empty-brackets (e.g: []) with a special
+// replaces any occurrence of an empty-brackets (e.g: []) with a special
// Symbol(append) to represent it, this is going to be useful for the setter
// method that will push values to the end of the array when finding these
const replaceAppendSymbols = str => {
@@ -29,7 +29,7 @@ const parseKeys = key => {
const preSqBracketPortion = index[1]
// we want to have a `new String` wrapper here in order to differentiate
- // between multiple occurences of the same string, e.g:
+ // between multiple occurrences of the same string, e.g:
// foo.bar[foo.bar] should split into { foo: { bar: { 'foo.bar': {} } }
/* eslint-disable-next-line no-new-wrappers */
const foundKey = new String(index[2])
@@ -41,7 +41,7 @@ const parseKeys = key => {
sqBracketItems.add(foundKey)
// returns an array that contains either dot-separate items (that will
- // be splitted appart during the next step OR the fully parsed keys
+ // be split apart during the next step OR the fully parsed keys
// read from square brackets, e.g:
// foo.bar[1.0.0].a.b -> ['foo.bar', '1.0.0', 'a.b']
return [
@@ -142,7 +142,7 @@ const setter = ({ data, key, value, force }) => {
const keys = parseKeys(key)
const setKeys = (_data, _key) => {
// handles array indexes, converting valid integers to numbers,
- // note that occurences of Symbol(append) will throw,
+ // note that occurrences of Symbol(append) will throw,
// so we just ignore these for now
let maybeIndex = Number.NaN
try {
diff --git a/deps/npm/lib/workspaces/update-workspaces.js b/deps/npm/lib/workspaces/update-workspaces.js
index 4cba1245ac..d22abda7c5 100644
--- a/deps/npm/lib/workspaces/update-workspaces.js
+++ b/deps/npm/lib/workspaces/update-workspaces.js
@@ -22,7 +22,7 @@ async function updateWorkspaces ({
? false
: config.get('save')
- // runs a minimalistic reify update, targetting only the workspaces
+ // runs a minimalistic reify update, targeting only the workspaces
// that had version updates and skipping fund/audit/save
const opts = {
...flatOptions,