Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

feed

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feed - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

examples/sample.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc