Comparing version 2.0.1 to 2.0.2
@@ -123,1 +123,2 @@ "use strict"; | ||
}; | ||
//# sourceMappingURL=atom1.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generator = "https://github.com/jpmonette/feed"; | ||
//# sourceMappingURL=index.js.map |
@@ -35,1 +35,2 @@ "use strict"; | ||
exports.Feed = Feed; | ||
//# sourceMappingURL=feed.js.map |
@@ -39,3 +39,3 @@ "use strict"; | ||
// but since we only take a single type, we'll assume HTML | ||
html_content: item.content | ||
content_html: item.content | ||
}; | ||
@@ -83,1 +83,2 @@ if (item.link) { | ||
}); | ||
//# sourceMappingURL=json.js.map |
@@ -129,1 +129,2 @@ "use strict"; | ||
}); | ||
//# sourceMappingURL=rss2.js.map |
"use strict"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "feed", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Feed is a RSS, Atom and JSON feed generator for Node.js, making content syndication simple and intuitive!", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/jpmonette", |
@@ -105,2 +105,20 @@ <p align="center"> | ||
## Migrating from `< 3.0.0` | ||
If you are migrating from a version older than `3.0.0`, be sure to update your import as we migrated to ES6 named imports. | ||
If your environment supports the ES6 module syntax, you can `import` as described above: | ||
```ts | ||
import { Feed } from 'feed'; | ||
``` | ||
Otherwise, you can stick with `require()`: | ||
```diff | ||
- const Feed = require('feed'); | ||
+ const Feed = require('feed').Feed; | ||
``` | ||
## More Information | ||
@@ -107,0 +125,0 @@ |
@@ -45,3 +45,3 @@ /// <reference path="types/index.ts" /> | ||
// but since we only take a single type, we'll assume HTML | ||
html_content: item.content | ||
content_html: item.content | ||
}; | ||
@@ -48,0 +48,0 @@ if (item.link) { |
@@ -11,2 +11,3 @@ { | ||
"allowUnusedLabels": false, | ||
"sourceMap": true, | ||
"baseUrl": ".", | ||
@@ -13,0 +14,0 @@ "target": "es5" |
Sorry, the diff of this file is not supported yet
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
289488
47
985
137