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 22const { builtinModules : builtins } = require ( 'module' )
33
44var 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
Original file line number Diff line number Diff line change 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" : {
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" : {
Original file line number Diff line number Diff line change 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": {
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": {
Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff 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",
You can’t perform that action at this time.
0 commit comments