Comparing version 7.1.0 to 7.2.0
# 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. |
@@ -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", |
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
95898
2315
+ Addedargparse@2.0.1(transitive)
+ Addedcosmiconfig@7.1.0(transitive)
+ Addedentities@2.1.03.0.1(transitive)
+ Addedisutf8@3.1.1(transitive)
+ Addedlinkify-it@3.0.3(transitive)
+ Addedmarkdown-it@12.3.2(transitive)
- Removedargparse@1.0.10(transitive)
- Removedcosmiconfig@6.0.0(transitive)
- Removedentities@2.0.32.2.0(transitive)
- Removedisutf8@2.1.0(transitive)
- Removedlinkify-it@2.2.0(transitive)
- Removedmarkdown-it@10.0.0(transitive)
- Removedsprintf-js@1.0.3(transitive)
Updatedasync@^3.2.1
Updatedchalk@^4.1.2
Updatedcosmiconfig@^7.0.1
Updatedentities@^3.0.1
Updatedglob@^7.2.0
Updatedisutf8@^3.1.1
Updatedmarkdown-it@^12.2.0
Updatednode-fetch@^2.6.2
Updatedparse-json@^5.2.0
Updatedstrip-json-comments@^3.1.1