Skip to content

Commit

Permalink
fix: remove validate.scopedPackagePattern (#42)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: scopedPackagePattern is no longer exported from this
module.
  • Loading branch information
wraithgar authored Mar 29, 2022
1 parent 2c6129e commit 1943cc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var blacklist = [
'favicon.ico',
]

var validate = module.exports = function (name) {
function validate (name) {
var warnings = []
var errors = []

Expand Down Expand Up @@ -88,8 +88,6 @@ var validate = module.exports = function (name) {
return done(warnings, errors)
}

validate.scopedPackagePattern = scopedPackagePattern

var done = function (warnings, errors) {
var result = {
validForNewPackages: errors.length === 0 && warnings.length === 0,
Expand All @@ -105,3 +103,5 @@ var done = function (warnings, errors) {
}
return result
}

module.exports = validate

0 comments on commit 1943cc6

Please sign in to comment.