File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
node_modules/validate-npm-package-name
tap-snapshots/test/lib/utils Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 2
2
const { builtinModules : builtins } = require ( 'module' )
3
3
4
4
var scopedPackagePattern = new RegExp ( '^(?:@([^/]+?)[/])?([^/]+?)$' )
5
- var blacklist = [
5
+ var exclusionList = [
6
6
'node_modules' ,
7
7
'favicon.ico' ,
8
8
]
@@ -43,9 +43,9 @@ function validate (name) {
43
43
}
44
44
45
45
// 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' )
49
49
}
50
50
} )
51
51
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " validate-npm-package-name" ,
3
- "version" : " 6.0.1 " ,
3
+ "version" : " 6.0.2 " ,
4
4
"description" : " Give me a string and I'll tell you if it's a valid npm package name" ,
5
5
"main" : " lib/" ,
6
6
"directories" : {
7
7
"test" : " test"
8
8
},
9
9
"devDependencies" : {
10
10
"@npmcli/eslint-config" : " ^5.0.0" ,
11
- "@npmcli/template-oss" : " 4.24.3 " ,
11
+ "@npmcli/template-oss" : " 4.25.0 " ,
12
12
"tap" : " ^16.0.1"
13
13
},
14
14
"scripts" : {
49
49
},
50
50
"templateOSS" : {
51
51
"//@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 " ,
53
53
"publish" : true
54
54
},
55
55
"tap" : {
Original file line number Diff line number Diff line change 148
148
"text-table": "~0.2.0",
149
149
"tiny-relative-date": "^1.3.0",
150
150
"treeverse": "^3.0.0",
151
- "validate-npm-package-name": "^6.0.1 ",
151
+ "validate-npm-package-name": "^6.0.2 ",
152
152
"which": "^5.0.0"
153
153
},
154
154
"bin": {
18271
18271
}
18272
18272
},
18273
18273
"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 ==",
18277
18277
"inBundle": true,
18278
18278
"license": "ISC",
18279
18279
"engines": {
Original file line number Diff line number Diff line change 115
115
"text-table" : " ~0.2.0" ,
116
116
"tiny-relative-date" : " ^1.3.0" ,
117
117
"treeverse" : " ^3.0.0" ,
118
- "validate-npm-package-name" : " ^6.0.1 " ,
118
+ "validate-npm-package-name" : " ^6.0.2 " ,
119
119
"which" : " ^5.0.0"
120
120
},
121
121
"bundleDependencies" : [
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ Object {
67
67
],
68
68
Array [
69
69
"404",
70
- " 1. node_modules is a blacklisted name",
70
+ " 1. node_modules is not a valid package name",
71
71
],
72
72
Array [
73
73
"404",
You can’t perform that action at this time.
0 commit comments