Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 7.1.0 to 7.2.0

4

CHANGELOG.md
# Changelog
## v7.2.0
- Update deps in package.json
- Fixed sitemap bug #169
## v7.1.0

@@ -4,0 +8,0 @@ Added junit report #171 @Lootjs.

2

lib/cli/index.js

@@ -47,2 +47,2 @@ 'use strict';

process.exit();
});
}).catch(() => {});

@@ -247,3 +247,3 @@ 'use strict';

} else {
throw Error(url + ': returns status code is ' + response.statusCode);
throw Error(url + ': returns status code is ' + response.status);
}

@@ -286,3 +286,3 @@ })

} else {
throw Error(url + ': returns status code is ' + res.statusCode);
throw Error(url + ': returns status code is ' + res.status);
}

@@ -302,13 +302,30 @@ })

const tasks = [];
if (result && result.urlset && Array.isArray(result.urlset.url)) {
result.urlset.url.forEach(function(el) {
el.loc && el.loc.forEach(function(url) {
tasks.push(function(cb) {
checkUrl(url, function(err, data, originalText) {
callback && callback(err, data, originalText);
cb(null, [err, data]);
}, settings);
if (result) {
const urlset = result.urlset;
if (urlset && Array.isArray(urlset.url)) {
urlset.url.forEach(function(el) {
el.loc && el.loc.forEach(function(url) {
tasks.push(function(cb) {
checkUrl(url, function(err, data, originalText) {
callback && callback(err, data, originalText);
cb(null, [err, data]);
}, settings);
});
});
});
});
}
const sitemapindex = result.sitemapindex;
if (sitemapindex && Array.isArray(sitemapindex.sitemap)) {
sitemapindex.sitemap.forEach(function(el) {
el.loc && el.loc.forEach(function(url) {
tasks.push(function(cb) {
checkUrl(url, function(err, data, originalText) {
callback && callback(err, data, originalText);
cb(null, [err, data]);
}, settings);
});
});
});
}
}

@@ -325,2 +342,3 @@

callback && callback.apply(this, obj);
commonCallback(results);

@@ -400,3 +418,3 @@ });

}
if (hasPosition) {

@@ -403,0 +421,0 @@ obj[code][word].position = el.position;

@@ -13,3 +13,3 @@ {

"description": "Search tool typos in the text, files and websites",
"version": "7.1.0",
"version": "7.2.0",
"license": "MIT",

@@ -36,16 +36,16 @@ "homepage": "https://github.com/hcodes/yaspeller",

"dependencies": {
"async": "^3.2.0",
"chalk": "^4.0.0",
"async": "^3.2.1",
"chalk": "^4.1.2",
"commander": "^3.0.0",
"cosmiconfig": "^6.0.0",
"entities": "^2.0.0",
"cosmiconfig": "^7.0.1",
"entities": "^3.0.1",
"escape-html": "^1.0.3",
"eyo-kernel": "^2.5.6",
"glob": "^7.1.6",
"isutf8": "^2.1.0",
"markdown-it": "^10.0.0",
"glob": "^7.2.0",
"isutf8": "^3.1.1",
"markdown-it": "^12.2.0",
"minimatch": "^3.0.4",
"node-fetch": "^2.6.0",
"parse-json": "^5.0.0",
"strip-json-comments": "^3.0.1",
"node-fetch": "^2.6.2",
"parse-json": "^5.2.0",
"strip-json-comments": "^3.1.1",
"xml2js": "^0.4.23",

@@ -56,3 +56,3 @@ "yandex-speller": "^4.1.0"

"chai": "^4.3.4",
"eslint": "^7.32.0",
"eslint": "^8.0.0",
"mocha": "^9.1.2",

@@ -59,0 +59,0 @@ "nyc": "^15.1.0",

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