validate-npm-package-name
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -61,4 +61,4 @@ var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"); | ||
// really-long-package-names-------------------------------such--length-----many---wow | ||
if (name.length > 50) { | ||
warnings.push("name can no longer contain more than 50 characters") | ||
if (name.length > 128) { | ||
warnings.push("name can no longer contain more than 128 characters") | ||
} | ||
@@ -65,0 +65,0 @@ |
{ | ||
"name": "validate-npm-package-name", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Give me a string and I'll tell you if it's a valid npm package name", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -61,3 +61,3 @@ # validate-npm-package-name | ||
```js | ||
validate("cRaZY-paCkAgE-with-mixed-case-and-more-than-fifty-characters") | ||
validate("cRaZY-paCkAgE-with-mixed-case-and-more-than-128-characters----------------------------------------------------------------------") | ||
``` | ||
@@ -73,3 +73,3 @@ | ||
"name can no longer contain capital letters", | ||
"name can no longer contain more than 50 characters" | ||
"name can no longer contain more than 128 characters" | ||
] | ||
@@ -76,0 +76,0 @@ } |
@@ -83,6 +83,6 @@ var validate = require("..") | ||
t.deepEqual(validate("1234567890123456789012345678901234567890-more-than-fifty"), { | ||
t.deepEqual(validate("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"), { | ||
validForNewPackages: false, | ||
validForOldPackages: true, | ||
warnings: ["name can no longer contain more than 50 characters"] | ||
warnings: ["name can no longer contain more than 128 characters"] | ||
}) | ||
@@ -89,0 +89,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8456