Comparing version 1.0.1 to 1.0.2
@@ -10,3 +10,2 @@ const Feed = require('../lib/feed') | ||
copyright: 'All rights reserved 2013, John Doe', | ||
updated: new Date('Sat, 13 Jul 2013 23:00:00 GMT'), // optional, default = today | ||
@@ -47,2 +46,2 @@ author: { | ||
console.log(feed.render()) | ||
console.log(feed.atom1()) |
@@ -59,3 +59,3 @@ 'use strict'; | ||
var feed = [{ _attr: { xmlns: 'http://www.w3.org/2005/Atom' } }, { id: options.id }, { title: options.title }, { updated: this.ISODateString(options.updated) }, { generator: GENERATOR }]; | ||
var feed = [{ _attr: { xmlns: 'http://www.w3.org/2005/Atom' } }, { id: options.id }, { title: options.title }, { updated: options.updated ? this.ISODateString(options.updated) : this.ISODateString(new Date()) }, { generator: GENERATOR }]; | ||
@@ -62,0 +62,0 @@ var root = [{ feed: feed }]; |
{ | ||
"name": "feed", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Feed is a RSS and Atom feed generator for Node.js, making content syndication simple and intuitive!", | ||
@@ -5,0 +5,0 @@ "homepage": "http://projets.jpmonette.net/en/feed", |
@@ -43,3 +43,3 @@ import xml from 'xml' | ||
{ title: options.title }, | ||
{ updated: this.ISODateString(options.updated) }, | ||
{ updated: (options.updated ? this.ISODateString(options.updated) : this.ISODateString(new Date())) }, | ||
{ generator: GENERATOR }, | ||
@@ -46,0 +46,0 @@ ] |
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
51686
835