sitemapper
Advanced tools
Comparing version 2.1.7 to 2.1.12
@@ -178,3 +178,4 @@ /* global require,module */ | ||
uri: url, | ||
resolveWithFullResponse: true | ||
resolveWithFullResponse: true, | ||
gzip: true | ||
}; | ||
@@ -254,3 +255,3 @@ | ||
return resolve([].concat(sites)); | ||
} else if (data.sitemapindex) { | ||
} else if (data && data.sitemapindex) { | ||
// Map each child url into a promise to create an array of promises | ||
@@ -345,2 +346,2 @@ var sitemap = data.sitemapindex.sitemap.map(function (map) { | ||
exports['default'] = Sitemapper; | ||
module.exports = exports['default'];//# sourceMappingURL=sitemapper.map | ||
module.exports = exports['default'];//# sourceMappingURL=sitemapper.map |
@@ -144,2 +144,2 @@ /* global describe,it */ | ||
}); | ||
});//# sourceMappingURL=test.map | ||
});//# sourceMappingURL=test.map |
{ | ||
"name": "sitemapper", | ||
"version": "2.1.7", | ||
"version": "2.1.12", | ||
"description": "Parser for XML Sitemaps to be used with Robots.txt and web crawlers", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
"test": "mocha ./lib/test.js && npm run lint", | ||
"lint": "eslint .", | ||
"lint": "eslint /src", | ||
"clean": "rm -rf lib", | ||
@@ -41,0 +41,0 @@ "docs": "documentation -g -o docs.md -f md src/assets/sitemapper.js" |
@@ -8,3 +8,3 @@ ## Sitemap-parser | ||
Parse through a sitemaps xml to get all the urls for your crawler. | ||
##Version 2 | ||
## Version 2 | ||
@@ -87,3 +87,3 @@ ### Installation | ||
##Version 1 | ||
## Version 1 | ||
@@ -94,3 +94,3 @@ ```bash | ||
###Simple Example | ||
### Simple Example | ||
@@ -107,2 +107,2 @@ ```javascript | ||
}); | ||
``` | ||
``` |
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
39634
457
105