Comparing version 0.0.1 to 0.0.2
11
index.js
var native = require('./build/Release/parser'); | ||
function parseDate(article) { | ||
if (typeof article.date !== 'undefined') { | ||
article.date = new Date(Date.parse(article.date)); | ||
} | ||
} | ||
exports.parse = function(xml, cb) { | ||
@@ -8,2 +14,3 @@ var result; | ||
result = native.parse(xml); | ||
result.items.forEach(parseDate); | ||
cb(null, result); | ||
@@ -14,4 +21,6 @@ } catch (err) { | ||
} else { | ||
return native.parse(xml); | ||
result = native.parse(xml); | ||
result.items.forEach(parseDate); | ||
return result; | ||
} | ||
}; |
{ | ||
"name": "fast-feed", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "rss", |
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
221693
28