Comparing version 1.0.0 to 1.0.1
@@ -67,8 +67,7 @@ 'use strict'; | ||
hasErrors = false, | ||
hasData = function(err, data) { | ||
return !err && data && Array.isArray(data.data) && data.data.length; | ||
}, | ||
onResource = function(err, data) { | ||
if(err || (data && data.data && data.data.length)) { | ||
hasErrors = true; | ||
} | ||
if(data && Array.isArray(data.data)) { | ||
if(hasData(err, data)) { | ||
data.data = utils.delDictWords(data.data, dictionary); | ||
@@ -78,2 +77,6 @@ data.data = utils.delDuplicates(data.data); | ||
if(err || hasData(err, data)) { | ||
hasErrors = true; | ||
} | ||
report.oneach(err, data); | ||
@@ -80,0 +83,0 @@ }; |
@@ -13,3 +13,3 @@ { | ||
"description": "Search tool typos in the text, files and websites", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
@@ -62,3 +62,3 @@ "homepage": "https://github.com/hcodes/yaspeller", | ||
"jshint": "./node_modules/.bin/jshint .", | ||
"yaspeller": ".bin/cli .", | ||
"yaspeller": "node bin/yaspeller .", | ||
"unit-test": "./node_modules/.bin/mocha -u bdd -R spec --recursive test", | ||
@@ -65,0 +65,0 @@ "unit-test-coverage": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- -u bdd -R spec --recursive test" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
42095
886