Skip to content

Commit 0e23c00

Browse files
committed
1 parent 6755ca2 commit 0e23c00

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

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
@@ -151,7 +151,7 @@
151151
"text-table": "~0.2.0",
152152
"tiny-relative-date": "^1.3.0",
153153
"treeverse": "^3.0.0",
154-
"validate-npm-package-name": "^6.0.1",
154+
"validate-npm-package-name": "^6.0.2",
155155
"which": "^5.0.0",
156156
"write-file-atomic": "^6.0.0"
157157
},
@@ -16928,9 +16928,9 @@
1692816928
}
1692916929
},
1693016930
"node_modules/validate-npm-package-name": {
16931-
"version": "6.0.1",
16932-
"resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-6.0.1.tgz",
16933-
"integrity": "sha512-OaI//3H0J7ZkR1OqlhGA8cA+Cbk/2xFOQpJOt5+s27/ta9eZwpeervh4Mxh4w0im/kdgktowaqVNR7QOrUd7Yg==",
16931+
"version": "6.0.2",
16932+
"resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-6.0.2.tgz",
16933+
"integrity": "sha512-IUoow1YUtvoBBC06dXs8bR8B9vuA3aJfmQNKMoaPG/OFsPmoQvw8xh+6Ye25Gx9DQhoEom3Pcu9MKHerm/NpUQ==",
1693416934
"inBundle": true,
1693516935
"license": "ISC",
1693616936
"engines": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"text-table": "~0.2.0",
117117
"tiny-relative-date": "^1.3.0",
118118
"treeverse": "^3.0.0",
119-
"validate-npm-package-name": "^6.0.1",
119+
"validate-npm-package-name": "^6.0.2",
120120
"which": "^5.0.0",
121121
"write-file-atomic": "^6.0.0"
122122
},

0 commit comments

Comments
 (0)