Socket
Socket
Sign inDemoInstall

yaspeller

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaspeller - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

13

lib/cli.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc