Skip to content

Commit 1943cc6

Browse files
authored
fix: remove validate.scopedPackagePattern (#42)
BREAKING CHANGE: scopedPackagePattern is no longer exported from this module.
1 parent 2c6129e commit 1943cc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var blacklist = [
77
'favicon.ico',
88
]
99

10-
var validate = module.exports = function (name) {
10+
function validate (name) {
1111
var warnings = []
1212
var errors = []
1313

@@ -88,8 +88,6 @@ var validate = module.exports = function (name) {
8888
return done(warnings, errors)
8989
}
9090

91-
validate.scopedPackagePattern = scopedPackagePattern
92-
9391
var done = function (warnings, errors) {
9492
var result = {
9593
validForNewPackages: errors.length === 0 && warnings.length === 0,
@@ -105,3 +103,5 @@ var done = function (warnings, errors) {
105103
}
106104
return result
107105
}
106+
107+
module.exports = validate

0 commit comments

Comments
 (0)