Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
import Feed from '../lib/feed2' | ||
const Feed = require('../lib/feed') | ||
@@ -3,0 +3,0 @@ var feed = new Feed({ |
{ | ||
"name": "feed", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Feed is a RSS and Atom feed generator for Node.js, making content syndication simple and intuitive!", | ||
@@ -16,5 +16,4 @@ "homepage": "http://projets.jpmonette.net/en/feed", | ||
"scripts": { | ||
"build": "babel -d lib/ src/ --ignore **/*.spec.js -s", | ||
"prebuild": "rm -rf lib/ && mkdir lib", | ||
"prepublish": "npm run prebuild", | ||
"build": "rm -rf lib/ && mkdir lib && babel -d lib/ src/ --ignore **/*.spec.js -s", | ||
"prepublish": "npm run build", | ||
"test": "export NODE_ENV=test && jest", | ||
@@ -21,0 +20,0 @@ "test-travis": "export NODE_ENV=test && jest" |
@@ -25,3 +25,3 @@ # Feed for Node.js | ||
```js | ||
var Feed = require('feed'); | ||
const Feed = require('feed') | ||
``` | ||
@@ -32,3 +32,3 @@ | ||
```js | ||
var feed = new Feed({ | ||
let feed = new Feed({ | ||
title: 'Feed Title', | ||
@@ -47,3 +47,3 @@ description: 'This is my personnal feed!', | ||
} | ||
}); | ||
}) | ||
``` | ||
@@ -54,8 +54,8 @@ | ||
```js | ||
for (var key in posts) { | ||
posts.forEach(post => { | ||
feed.addItem({ | ||
title: posts[key].title, | ||
id: posts[key].url, | ||
link: posts[key].url, | ||
description: posts[key].description, | ||
title: post.title, | ||
id: post.url, | ||
link: post.url, | ||
description: post.description, | ||
author: [{ | ||
@@ -79,6 +79,6 @@ name: 'Jane Doe', | ||
}], | ||
date: posts[key].date, | ||
image: posts[key].image | ||
}); | ||
} | ||
date: post.date, | ||
image: post.image | ||
}) | ||
}) | ||
``` | ||
@@ -89,3 +89,3 @@ | ||
```js | ||
feed.addCategory('Technologie'); | ||
feed.addCategory('Technologie') | ||
``` | ||
@@ -100,3 +100,3 @@ | ||
link: 'https://example.com/johancruyff' | ||
}); | ||
}) | ||
``` | ||
@@ -107,3 +107,3 @@ | ||
```js | ||
feed.rss2(); | ||
feed.rss2() | ||
``` | ||
@@ -114,3 +114,3 @@ | ||
```js | ||
feed.atom1(); | ||
feed.atom1() | ||
``` | ||
@@ -117,0 +117,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
51542
13
836
0