simplecrawler
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -199,3 +199,3 @@ /** | ||
.map(function(cookie) { | ||
return cookie.toString(); | ||
return cookie.toOutboundString(); | ||
}); | ||
@@ -334,2 +334,10 @@ | ||
/** | ||
* Outputs the cookie as a string, in the form of an outbound Cookie header | ||
* @return {String} Stringified version of the cookie | ||
*/ | ||
Cookie.prototype.toOutboundString = function() { | ||
return this.name + "=" + this.value; | ||
}; | ||
/** | ||
* Outputs the cookie as a string, in the form of a Set-Cookie header | ||
@@ -336,0 +344,0 @@ * @param {Boolean} [includeHeader] Controls whether to include the 'Set-Cookie: ' header name at the beginning of the string. |
{ | ||
"name": "simplecrawler", | ||
"description": "Very straightforward, event driven web crawler. Features a flexible queue interface and a basic cache mechanism with extensible backend.", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"homepage": "https://github.com/cgiffard/node-simplecrawler", | ||
@@ -6,0 +6,0 @@ "author": "Christopher Giffard <christopher.giffard@cgiffard.com>", |
@@ -137,3 +137,3 @@ # Simple web crawler for node.js | ||
Fired when the crawl begins or is restarted. | ||
* `queueadd` (queueItem) - | ||
* `queueadd` (queueItem, referrerQueueItem) - | ||
Fired when a new item is added to the queue. | ||
@@ -175,2 +175,4 @@ * `queueduplicate` (URLData) - | ||
Fired when an error was caught trying to add a cookie to the cookie jar. | ||
`setCookieHeader` is the Set-Cookie header that was provided in the HTTP | ||
response. | ||
* `fetchredirect` (oldQueueItem, redirectQueueItem, responseObject) - | ||
@@ -177,0 +179,0 @@ Fired when a redirect header is encountered. The new URL is processed and |
Sorry, the diff of this file is too big to display
158298
2698
942