Skip to content

Commit

Permalink
Update dependencies, move to two validation libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Challen committed Aug 28, 2017
1 parent 3b8f6ec commit 83fb514
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
5 changes: 3 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var debug = require('debug')('metalsmith-spellcheck'),
async = require('async'),
_ = require('underscore'),
spellchecker = require('hunspell-spellchecker'),
validate = require('validate.js'),
validator = require('validator'),
cheerio = require('cheerio'),
jsonfile = require('jsonfile'),
Expand Down Expand Up @@ -76,10 +77,10 @@ function cleanText(text) {
return (word === "") ||
(word === "'s") ||
/^\d{2}:\d{2}/.test(word) ||
validator.isNumeric(word) ||
validate.isNumber(word) ||
validator.isEmail(word) ||
validator.isURL(word) ||
validator.isDate(word);
validate.isDate(word);
});
return _.toArray(words);
};
Expand Down
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,26 @@
},
"license": "MIT",
"dependencies": {
"async": "^2.1.4",
"cheerio": "^0.22.0",
"debug": "^2.6.0",
"async": "^2.5.0",
"cheerio": "^1.0.0-rc.2",
"debug": "^3.0.1",
"fs": "0.0.2",
"hunspell-spellchecker": "^1.0.2",
"jsonfile": "^2.4.0",
"jsonfile": "^3.0.1",
"md5": "^2.2.1",
"minimatch": "^3.0.3",
"object-hash": "^1.1.5",
"minimatch": "^3.0.4",
"object-hash": "^1.1.8",
"underscore": "^1.8.3",
"validator": "^6.2.1"
"validate.js": "^0.11.1",
"validator": "^8.1.0"
},
"devDependencies": {
"asciidoctor.js": "=1.5.3",
"chai": "^3.5.0",
"asciidoctor.js": "=1.5.6-preview.3",
"chai": "^4.1.1",
"chai-fs": "^1.0.0",
"metalsmith": "^2.3.0",
"metalsmith-asciidoc": "^1.1.0",
"mocha": "^3.2.0",
"power-assert": "^1.4.2"
"metalsmith-asciidoc": "https://github.com/gchallen/metalsmith-asciidoc.git",
"mocha": "^3.5.0",
"power-assert": "^1.4.4"
}
}

0 comments on commit 83fb514

Please sign in to comment.