Skip to content

Commit 5b242c9

Browse files
committed
deps: validate-npm-package-name@6.0.2
1 parent d4e8a8a commit 5b242c9

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

node_modules/validate-npm-package-name/lib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const { builtinModules: builtins } = require('module')
33

44
var scopedPackagePattern = new RegExp('^(?:@([^/]+?)[/])?([^/]+?)$')
5-
var blacklist = [
5+
var exclusionList = [
66
'node_modules',
77
'favicon.ico',
88
]
@@ -43,9 +43,9 @@ function validate (name) {
4343
}
4444

4545
// No funny business
46-
blacklist.forEach(function (blacklistedName) {
47-
if (name.toLowerCase() === blacklistedName) {
48-
errors.push(blacklistedName + ' is a blacklisted name')
46+
exclusionList.forEach(function (excludedName) {
47+
if (name.toLowerCase() === excludedName) {
48+
errors.push(excludedName + ' is not a valid package name')
4949
}
5050
})
5151

node_modules/validate-npm-package-name/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "validate-npm-package-name",
3-
"version": "6.0.1",
3+
"version": "6.0.2",
44
"description": "Give me a string and I'll tell you if it's a valid npm package name",
55
"main": "lib/",
66
"directories": {
77
"test": "test"
88
},
99
"devDependencies": {
1010
"@npmcli/eslint-config": "^5.0.0",
11-
"@npmcli/template-oss": "4.24.3",
11+
"@npmcli/template-oss": "4.25.0",
1212
"tap": "^16.0.1"
1313
},
1414
"scripts": {
@@ -49,7 +49,7 @@
4949
},
5050
"templateOSS": {
5151
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
52-
"version": "4.24.3",
52+
"version": "4.25.0",
5353
"publish": true
5454
},
5555
"tap": {

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"text-table": "~0.2.0",
149149
"tiny-relative-date": "^1.3.0",
150150
"treeverse": "^3.0.0",
151-
"validate-npm-package-name": "^6.0.1",
151+
"validate-npm-package-name": "^6.0.2",
152152
"which": "^5.0.0"
153153
},
154154
"bin": {
@@ -18271,9 +18271,9 @@
1827118271
}
1827218272
},
1827318273
"node_modules/validate-npm-package-name": {
18274-
"version": "6.0.1",
18275-
"resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-6.0.1.tgz",
18276-
"integrity": "sha512-OaI//3H0J7ZkR1OqlhGA8cA+Cbk/2xFOQpJOt5+s27/ta9eZwpeervh4Mxh4w0im/kdgktowaqVNR7QOrUd7Yg==",
18274+
"version": "6.0.2",
18275+
"resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-6.0.2.tgz",
18276+
"integrity": "sha512-IUoow1YUtvoBBC06dXs8bR8B9vuA3aJfmQNKMoaPG/OFsPmoQvw8xh+6Ye25Gx9DQhoEom3Pcu9MKHerm/NpUQ==",
1827718277
"inBundle": true,
1827818278
"license": "ISC",
1827918279
"engines": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"text-table": "~0.2.0",
116116
"tiny-relative-date": "^1.3.0",
117117
"treeverse": "^3.0.0",
118-
"validate-npm-package-name": "^6.0.1",
118+
"validate-npm-package-name": "^6.0.2",
119119
"which": "^5.0.0"
120120
},
121121
"bundleDependencies": [

tap-snapshots/test/lib/utils/error-message.js.test.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Object {
6767
],
6868
Array [
6969
"404",
70-
" 1. node_modules is a blacklisted name",
70+
" 1. node_modules is not a valid package name",
7171
],
7272
Array [
7373
"404",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy