diff --git a/node_modules/npm-registry-fetch/lib/errors.js b/node_modules/npm-registry-fetch/lib/errors.js index 0efc923e3e900..cf5ddba6f300c 100644 --- a/node_modules/npm-registry-fetch/lib/errors.js +++ b/node_modules/npm-registry-fetch/lib/errors.js @@ -4,7 +4,7 @@ const url = require('url') function packageName (href) { try { - let basePath = new url.URL(href).pathname.substr(1) + let basePath = new url.URL(href).pathname.slice(1) if (!basePath.match(/^-/)) { basePath = basePath.split('/') var index = basePath.indexOf('_rewrite') diff --git a/node_modules/npm-registry-fetch/package.json b/node_modules/npm-registry-fetch/package.json index 9e15f627cd5a7..0ce12c633637a 100644 --- a/node_modules/npm-registry-fetch/package.json +++ b/node_modules/npm-registry-fetch/package.json @@ -1,6 +1,6 @@ { "name": "npm-registry-fetch", - "version": "13.1.0", + "version": "13.1.1", "description": "Fetch-based http client for use with npm registry APIs", "main": "lib", "files": [ @@ -44,12 +44,12 @@ }, "devDependencies": { "@npmcli/eslint-config": "^3.0.1", - "@npmcli/template-oss": "3.1.2", + "@npmcli/template-oss": "3.3.2", "cacache": "^16.0.2", "nock": "^13.2.4", "require-inject": "^1.4.4", - "ssri": "^8.0.1", - "tap": "^15.1.6" + "ssri": "^9.0.0", + "tap": "^16.0.1" }, "tap": { "check-coverage": true, @@ -60,6 +60,6 @@ }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "3.1.2" + "version": "3.3.2" } } diff --git a/package-lock.json b/package-lock.json index 066fe2f4191b6..a2f0677d3414d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -134,7 +134,7 @@ "npm-package-arg": "^9.0.2", "npm-pick-manifest": "^7.0.1", "npm-profile": "^6.0.2", - "npm-registry-fetch": "^13.1.0", + "npm-registry-fetch": "^13.1.1", "npm-user-validate": "^1.0.1", "npmlog": "^6.0.1", "opener": "^1.5.2", @@ -5152,9 +5152,10 @@ } }, "node_modules/npm-registry-fetch": { - "version": "13.1.0", + "version": "13.1.1", + "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-13.1.1.tgz", + "integrity": "sha512-5p8rwe6wQPLJ8dMqeTnA57Dp9Ox6GH9H60xkyJup07FmVlu3Mk7pf/kIIpl9gaN5bM8NM+UUx3emUWvDNTt39w==", "inBundle": true, - "license": "ISC", "dependencies": { "make-fetch-happen": "^10.0.6", "minipass": "^3.1.6", @@ -13369,7 +13370,9 @@ } }, "npm-registry-fetch": { - "version": "13.1.0", + "version": "13.1.1", + "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-13.1.1.tgz", + "integrity": "sha512-5p8rwe6wQPLJ8dMqeTnA57Dp9Ox6GH9H60xkyJup07FmVlu3Mk7pf/kIIpl9gaN5bM8NM+UUx3emUWvDNTt39w==", "requires": { "make-fetch-happen": "^10.0.6", "minipass": "^3.1.6", diff --git a/package.json b/package.json index da2cba63e220a..846510f5cb927 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "npm-package-arg": "^9.0.2", "npm-pick-manifest": "^7.0.1", "npm-profile": "^6.0.2", - "npm-registry-fetch": "^13.1.0", + "npm-registry-fetch": "^13.1.1", "npm-user-validate": "^1.0.1", "npmlog": "^6.0.1", "opener": "^1.5.2",