From 8d573d9985f06909fac4bcc3fc1ef7168c264e46 Mon Sep 17 00:00:00 2001 From: npm CLI robot Date: Sat, 25 Feb 2023 01:17:56 -0500 Subject: deps: upgrade npm to 9.5.1 PR-URL: https://github.com/nodejs/node/pull/46783 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Debadree Chatterjee --- deps/npm/lib/commands/help.js | 2 +- deps/npm/lib/commands/link.js | 2 +- deps/npm/lib/utils/queryable.js | 8 ++++---- deps/npm/lib/workspaces/update-workspaces.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'deps/npm/lib') 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, -- cgit v1.2.1