Skip to content

Commit

Permalink
set version to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
florianburger committed Aug 29, 2017
1 parent 9ff7e42 commit bbfac69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# NodeModules
node_modules
package-lock.json

# Sitemap
sitemap.xml
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-sitemap-generator",
"version": "1.0.1",
"version": "1.1.0",
"description": "Create a XML sitemap for your website.",
"main": "src/SitemapGenerator.js",
"license": "MIT",
Expand All @@ -22,7 +22,7 @@
"google"
],
"dependencies": {
"cheerio": "^0.22.0",
"cheerio": "^1.0.0-rc.2",
"moment": "^2.18.1",
"simplecrawler": "^1.1.5",
"url": "^0.11.0"
Expand All @@ -34,4 +34,4 @@
"devDependencies": {
"gulp": "*"
}
}
}
6 changes: 5 additions & 1 deletion src/SitemapGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const DEFAULT_OPTIONS = {

onFetchComplete: function (urlItem, event) {},
onFetchError: function (queueItem, responseObject) {},
onComplete: function (sitemap, items) {},
onComplete: function (sitemap, queueItems) {},

filterFunction: function (urlItem) { return true }
};
Expand Down Expand Up @@ -138,6 +138,10 @@ SitemapGenerator.prototype = {
return sitemap;
},

/**
* @param {String} buffer
* @param {Object} queueItem
*/
_discoverResources: function (buffer, queueItem) {
var $ = cheerio.load(buffer.toString('utf8'));

Expand Down

0 comments on commit bbfac69

Please sign in to comment.