reallysimple 0.4.12 → 0.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/reallysimple.js +3 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reallysimple",
3
3
  "description": "A Node package that reads RSS-like feeds and calls back with a simple, consistent JavaScript object. Easy to use, hides the history.",
4
- "version": "0.4.12",
4
+ "version": "0.4.13",
5
5
  "author": "Dave Winer <dave@scripting.com>",
6
6
  "license": "MIT",
7
7
  "files": [
package/reallysimple.js CHANGED
@@ -1,4 +1,4 @@
1
- var myProductName = "reallysimple", myVersion = "0.4.12";
1
+ var myProductName = "reallysimple", myVersion = "0.4.13";
2
2
 
3
3
  exports.readFeed = readFeed;
4
4
  exports.convertFeedToOpml = convertFeedToOpml;
@@ -234,12 +234,13 @@ function convertFeed (oldFeed, whenstart) {
234
234
  }
235
235
 
236
236
  function readFeed (url, callback) {
237
+ const whenstart = new Date ();
237
238
  davefeedread.parseUrl (url, config.timeOutSecs, function (err, theFeed) {
238
239
  if (err) {
239
240
  callback (err);
240
241
  }
241
242
  else {
242
- callback (undefined, convertFeed (theFeed));
243
+ callback (undefined, convertFeed (theFeed, whenstart));
243
244
  }
244
245
  });
245
246
  }