Skip to content

Commit 398fed4

Browse files
committed
deps: normalize-package-data@7.0.1
1 parent 5b242c9 commit 398fed4

File tree

4 files changed

+14
-17
lines changed

4 files changed

+14
-17
lines changed

node_modules/normalize-package-data/lib/fixer.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
var { URL } = require('node:url')
12
var isValidSemver = require('semver/functions/valid')
23
var cleanSemver = require('semver/functions/clean')
34
var validateLicense = require('validate-npm-package-license')
45
var hostedGitInfo = require('hosted-git-info')
5-
var moduleBuiltin = require('node:module')
6+
var { isBuiltin } = require('node:module')
67
var depTypes = ['dependencies', 'devDependencies', 'optionalDependencies']
78
var extractDescription = require('./extract_description')
8-
var url = require('url')
99
var typos = require('./typos.json')
1010

1111
var isEmail = str => str.includes('@') && (str.indexOf('@') < str.lastIndexOf('.'))
@@ -231,7 +231,7 @@ module.exports = {
231231
data.name = data.name.trim()
232232
}
233233
ensureValidName(data.name, strict, options.allowLegacyCase)
234-
if (moduleBuiltin.builtinModules.includes(data.name)) {
234+
if (isBuiltin(data.name)) {
235235
this.warn('conflictingName', data.name)
236236
}
237237
},
@@ -269,8 +269,7 @@ module.exports = {
269269
if (typeof data.bugs === 'string') {
270270
if (isEmail(data.bugs)) {
271271
data.bugs = { email: data.bugs }
272-
/* eslint-disable-next-line node/no-deprecated-api */
273-
} else if (url.parse(data.bugs).protocol) {
272+
} else if (URL.canParse(data.bugs)) {
274273
data.bugs = { url: data.bugs }
275274
} else {
276275
this.warn('nonEmailUrlBugsString')
@@ -280,8 +279,7 @@ module.exports = {
280279
var oldBugs = data.bugs
281280
data.bugs = {}
282281
if (oldBugs.url) {
283-
/* eslint-disable-next-line node/no-deprecated-api */
284-
if (typeof (oldBugs.url) === 'string' && url.parse(oldBugs.url).protocol) {
282+
if (URL.canParse(oldBugs.url)) {
285283
data.bugs.url = oldBugs.url
286284
} else {
287285
this.warn('nonUrlBugsUrlField')
@@ -317,8 +315,7 @@ module.exports = {
317315
this.warn('nonUrlHomepage')
318316
return delete data.homepage
319317
}
320-
/* eslint-disable-next-line node/no-deprecated-api */
321-
if (!url.parse(data.homepage).protocol) {
318+
if (!URL.canParse(data.homepage)) {
322319
data.homepage = 'http://' + data.homepage
323320
}
324321
},

node_modules/normalize-package-data/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "normalize-package-data",
3-
"version": "7.0.0",
3+
"version": "7.0.1",
44
"author": "GitHub Inc.",
55
"description": "Normalizes data that can be found in package.json files.",
66
"license": "BSD-2-Clause",
@@ -28,7 +28,7 @@
2828
},
2929
"devDependencies": {
3030
"@npmcli/eslint-config": "^5.0.0",
31-
"@npmcli/template-oss": "4.23.3",
31+
"@npmcli/template-oss": "4.25.0",
3232
"tap": "^16.0.1"
3333
},
3434
"files": [
@@ -40,7 +40,7 @@
4040
},
4141
"templateOSS": {
4242
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
43-
"version": "4.23.3",
43+
"version": "4.25.0",
4444
"publish": "true"
4545
},
4646
"tap": {

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"ms": "^2.1.2",
127127
"node-gyp": "^11.2.0",
128128
"nopt": "^8.1.0",
129-
"normalize-package-data": "^7.0.0",
129+
"normalize-package-data": "^7.0.1",
130130
"npm-audit-report": "^6.0.0",
131131
"npm-install-checks": "^7.1.1",
132132
"npm-package-arg": "^12.0.2",
@@ -12358,9 +12358,9 @@
1235812358
}
1235912359
},
1236012360
"node_modules/normalize-package-data": {
12361-
"version": "7.0.0",
12362-
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-7.0.0.tgz",
12363-
"integrity": "sha512-k6U0gKRIuNCTkwHGZqblCfLfBRh+w1vI6tBo+IeJwq2M8FUiOqhX7GH+GArQGScA7azd1WfyRCvxoXDO3hQDIA==",
12361+
"version": "7.0.1",
12362+
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-7.0.1.tgz",
12363+
"integrity": "sha512-linxNAT6M0ebEYZOx2tO6vBEFsVgnPpv+AVjk0wJHfaUIbq31Jm3T6vvZaarnOeWDh8ShnwXuaAyM7WT3RzErA==",
1236412364
"inBundle": true,
1236512365
"license": "BSD-2-Clause",
1236612366
"dependencies": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"ms": "^2.1.2",
9494
"node-gyp": "^11.2.0",
9595
"nopt": "^8.1.0",
96-
"normalize-package-data": "^7.0.0",
96+
"normalize-package-data": "^7.0.1",
9797
"npm-audit-report": "^6.0.0",
9898
"npm-install-checks": "^7.1.1",
9999
"npm-package-arg": "^12.0.2",

0 commit comments

Comments
 (0)