diff --git a/node_modules/rss/.travis.yml b/node_modules/rss/.travis.yml index a55b235f9..05d299e67 100644 --- a/node_modules/rss/.travis.yml +++ b/node_modules/rss/.travis.yml @@ -1,5 +1,4 @@ language: node_js node_js: - - 0.8 - - 0.10 - - 0.11 \ No newline at end of file + - "0.10" + - "0.11" diff --git a/node_modules/rss/LICENSE b/node_modules/rss/LICENSE index 2118699e9..5daae2a10 100644 --- a/node_modules/rss/LICENSE +++ b/node_modules/rss/LICENSE @@ -1,6 +1,6 @@ (The MIT License) -Copyright (c) 2011 Dylan Greene +Copyright (c) 2011-2014 Dylan Greene Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/rss/lib/rss.js b/node_modules/rss/lib/rss.js index 45667060c..e0c1e531c 100755 --- a/node_modules/rss/lib/rss.js +++ b/node_modules/rss/lib/rss.js @@ -1,6 +1,4 @@ -/* - Documentation coming soon. -*/ +'use strict'; var XML = require('xml'), mime = require('mime'), diff --git a/node_modules/rss/node_modules/mime/package.json b/node_modules/rss/node_modules/mime/package.json index 6b9ebf48c..86c3107eb 100644 --- a/node_modules/rss/node_modules/mime/package.json +++ b/node_modules/rss/node_modules/mime/package.json @@ -31,9 +31,5 @@ "url": "https://github.com/broofa/node-mime/issues" }, "_id": "mime@1.2.11", - "dist": { - "shasum": "f944b2ee385e0afd62e0b5577562c7ad35190d8d" - }, - "_from": "mime@~1.2.11", - "_resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz" + "_from": "mime@^1.2.11" } diff --git a/node_modules/rss/node_modules/xml/.travis.yml b/node_modules/rss/node_modules/xml/.travis.yml index a55b235f9..fca8ef019 100644 --- a/node_modules/rss/node_modules/xml/.travis.yml +++ b/node_modules/rss/node_modules/xml/.travis.yml @@ -1,5 +1,4 @@ language: node_js node_js: - - 0.8 - 0.10 - - 0.11 \ No newline at end of file + - 0.11 diff --git a/node_modules/rss/node_modules/xml/lib/xml.js b/node_modules/rss/node_modules/xml/lib/xml.js index 20b13103d..b10df62d3 100644 --- a/node_modules/rss/node_modules/xml/lib/xml.js +++ b/node_modules/rss/node_modules/xml/lib/xml.js @@ -140,7 +140,7 @@ function resolve(data, indent, indent_count) { name = keys[0]; values = data[name]; - if (values._elem) { + if (values && values._elem) { values._elem.name = name; values._elem.icount = indent_count; values._elem.indent = indent; diff --git a/node_modules/rss/node_modules/xml/package.json b/node_modules/rss/node_modules/xml/package.json index c9e29f56f..1cb0ae81a 100644 --- a/node_modules/rss/node_modules/xml/package.json +++ b/node_modules/rss/node_modules/xml/package.json @@ -1,6 +1,6 @@ { "name": "xml", - "version": "0.0.12", + "version": "1.0.0", "description": "Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.", "homepage": "http://github.com/dylang/node-xml", "keywords": [ @@ -36,6 +36,9 @@ }, { "name": "Eric Vantillard https://github.com/evantill" + }, + { + "name": "Sean Dwyer https://github.com/reywood" } ], "repository": { @@ -46,28 +49,20 @@ "url": "http://github.com/dylang/node-xml/issues" }, "devDependencies": { - "chai": "~1.8.1", - "mocha": "~1.17.1" + "chai": "~1.9.0", + "mocha": "~1.21.4" }, "scripts": { - "test": "./node_modules/.bin/mocha --reporter spec" + "test": "mocha --reporter spec" }, "main": "lib/xml.js", - "engines": { - "node": ">=0.4.0" - }, - "licenses": [ - { - "type": "MIT", - "url": "http://github.com/dylang/node-xml/raw/master/LICENSE" - } - ], - "readme": "# XML for Node [![Build Status](https://secure.travis-ci.org/dylang/node-xml.png)](http://travis-ci.org/dylang/node-xml)\n\n [![NPM](https://nodei.co/npm/xml.png?downloads=true)](https://nodei.co/npm/xml/)\n\n> Fast and simple Javascript-based XML generator/builder for Node projects.\n\n## Install\n\n $ npm install xml\n\n## API\n\n### `xml(xmlObject, options)`\n\nReturns a `XML` string.\n\n```js\nvar xml = require('xml');\nvar xmlString = xml(xmlObject, options);\n```\n\n#### `xmlObject`\n\n`xmlObject` is a normal JavaScript Object/JSON object that defines the data for the XML string.\n\nKeys will become tag names.\nValues can be an `array of xmlObjects` or a value such as a `string` or `number`.\n\n```js\nxml({a: 1})) === '1'\nxml({nested: [{ keys: [{ fun: 'hi' }]}]}) === 'hi'\n```\n\nThere are two special keys:\n\n`_attr`\n\nSet attributes using a hash of key/value pairs.\n\n```js\nxml({a: [{ _attr: { attributes: 'are fun', too: '!' }}, 1]}) === '1'\n````\n`_cdata`\n\nValue of `_cdata` is wrapped in xml `![CDATA[]]` so the data does not need to be escaped.\n\n```js\nxml({a: { _cdata: \"i'm not escaped: !\"}}) === '!]]>'\n```\n\nMixed together:\n```js\nxml({a: { _attr: { attr:'hi'}, _cdata: \"I'm not escaped\" }}) === ''\n```\n\n#### `options`\n\n`indent` _optional_ **string** What to use as a tab. Defaults to no tabs (compressed).\n For example you can use `'\\t'` for tab character, or `' '` for two-space tabs.\n\n`stream` Return the result as a `stream`.\n\n**Stream Example**\n\n```js\nvar elem = xml.element({ _attr: { decade: '80s', locale: 'US'} });\nvar stream = xml({ toys: elem }, { stream: true });\nstream.on('data', function (chunk) {console.log(\"data:\", chunk)});\nelem.push({ toy: 'Transformers' });\nelem.push({ toy: 'GI Joe' });\nelem.push({ toy: [{name:'He-man'}] });\nelem.close();\n\n/*\nresult:\ndata: \ndata: Transformers\ndata: GI Joe\ndata: \n He-man\n \ndata: \n*/\n```\n\n`Declaration` _optional_ Add default xml declaration as first node.\n\n_options_ are:\n* encoding: 'value'\n* standalone: 'value'\n \n**Declaration Example**\n\n```js\nxml([ { a: 'test' }], { declaration: true })\n//result: 'test'\n\nxml([ { a: 'test' }], { declaration: { standalone: 'yes', encoding: 'UTF-16' }})\n//result: 'test'\n```\n\n## Examples\n\n**Simple Example**\n\n```js\nvar example1 = [ { url: 'http://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=opower' } ];\nconsole.log(XML(example1));\n//http://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=opower\n```\n\n**Example with attributes**\n\n```js\nvar example2 = [ { url: { _attr: { hostname: 'www.google.com', path: '/search?aq=f&sourceid=chrome&ie=UTF-8&q=opower' } } } ];\nconsole.log(XML(example2));\n//result: \n```\n\n**Example with array of same-named elements and nice formatting**\n\n```js\nvar example3 = [ { toys: [ { toy: 'Transformers' } , { toy: 'GI Joe' }, { toy: 'He-man' } ] } ];\nconsole.log(XML(example3));\n//result: TransformersGI JoeHe-man\nconsole.log(XML(example3, true));\n/*\nresult:\n\n Transformers\n GI Joe\n He-man\n\n*/\n```\n\n**More complex example**\n\n```js\nvar example4 = [ { toys: [ { _attr: { decade: '80s', locale: 'US'} }, { toy: 'Transformers' } , { toy: 'GI Joe' }, { toy: 'He-man' } ] } ];\nconsole.log(XML(example4, true));\n/*\nresult:\n\n Transformers\n GI Joe\n He-man\n\n*/\n```\n\n**Even more complex example**\n\n```js\nvar example5 = [ { toys: [ { _attr: { decade: '80s', locale: 'US'} }, { toy: 'Transformers' } , { toy: [ { _attr: { knowing: 'half the battle' } }, 'GI Joe'] }, { toy: [ { name: 'He-man' }, { description: { _cdata: 'Master of the Universe!'} } ] } ] } ];\nconsole.log(XML(example5, true));\n/*\nresult:\n\n Transformers\n \n GI Joe\n \n \n He-man\n Master of the Universe!]]>\n \n\n*/\n```\n\n## Tests\n\nTests included use Mocha. Use `npm test` to run the tests.\n\n $ npm test\n\n## Examples\n\nThere are examples in the examples directory.\n\n# Contributing\n\nContributions to the project are welcome. Feel free to fork and improve. I accept pull requests and issues,\nespecially when tests are included.\n\n# License\n\n(The MIT License)\n\nCopyright (c) 2011-2013 Dylan Greene \n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", + "license": "MIT", + "readme": "# XML for Node [![Build Status](https://secure.travis-ci.org/dylang/node-xml.png)](http://travis-ci.org/dylang/node-xml)\n\n [![NPM](https://nodei.co/npm/xml.png?downloads=true)](https://nodei.co/npm/xml/)\n\n> Fast and simple Javascript-based XML generator/builder for Node projects.\n\n## Install\n\n $ npm install xml\n\n## API\n\n### `xml(xmlObject, options)`\n\nReturns a `XML` string.\n\n```js\nvar xml = require('xml');\nvar xmlString = xml(xmlObject, options);\n```\n\n#### `xmlObject`\n\n`xmlObject` is a normal JavaScript Object/JSON object that defines the data for the XML string.\n\nKeys will become tag names.\nValues can be an `array of xmlObjects` or a value such as a `string` or `number`.\n\n```js\nxml({a: 1})) === '1'\nxml({nested: [{ keys: [{ fun: 'hi' }]}]}) === 'hi'\n```\n\nThere are two special keys:\n\n`_attr`\n\nSet attributes using a hash of key/value pairs.\n\n```js\nxml({a: [{ _attr: { attributes: 'are fun', too: '!' }}, 1]}) === '1'\n````\n`_cdata`\n\nValue of `_cdata` is wrapped in xml `![CDATA[]]` so the data does not need to be escaped.\n\n```js\nxml({a: { _cdata: \"i'm not escaped: !\"}}) === '!]]>'\n```\n\nMixed together:\n```js\nxml({a: { _attr: { attr:'hi'}, _cdata: \"I'm not escaped\" }}) === ''\n```\n\n#### `options`\n\n`indent` _optional_ **string** What to use as a tab. Defaults to no tabs (compressed).\n For example you can use `'\\t'` for tab character, or `' '` for two-space tabs.\n\n`stream` Return the result as a `stream`.\n\n**Stream Example**\n\n```js\nvar elem = xml.element({ _attr: { decade: '80s', locale: 'US'} });\nvar stream = xml({ toys: elem }, { stream: true });\nstream.on('data', function (chunk) {console.log(\"data:\", chunk)});\nelem.push({ toy: 'Transformers' });\nelem.push({ toy: 'GI Joe' });\nelem.push({ toy: [{name:'He-man'}] });\nelem.close();\n\n/*\nresult:\ndata: \ndata: Transformers\ndata: GI Joe\ndata: \n He-man\n \ndata: \n*/\n```\n\n`Declaration` _optional_ Add default xml declaration as first node.\n\n_options_ are:\n* encoding: 'value'\n* standalone: 'value'\n \n**Declaration Example**\n\n```js\nxml([ { a: 'test' }], { declaration: true })\n//result: 'test'\n\nxml([ { a: 'test' }], { declaration: { standalone: 'yes', encoding: 'UTF-16' }})\n//result: 'test'\n```\n\n## Examples\n\n**Simple Example**\n\n```js\nvar example1 = [ { url: 'http://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=opower' } ];\nconsole.log(XML(example1));\n//http://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=opower\n```\n\n**Example with attributes**\n\n```js\nvar example2 = [ { url: { _attr: { hostname: 'www.google.com', path: '/search?aq=f&sourceid=chrome&ie=UTF-8&q=opower' } } } ];\nconsole.log(XML(example2));\n//result: \n```\n\n**Example with array of same-named elements and nice formatting**\n\n```js\nvar example3 = [ { toys: [ { toy: 'Transformers' } , { toy: 'GI Joe' }, { toy: 'He-man' } ] } ];\nconsole.log(XML(example3));\n//result: TransformersGI JoeHe-man\nconsole.log(XML(example3, true));\n/*\nresult:\n\n Transformers\n GI Joe\n He-man\n\n*/\n```\n\n**More complex example**\n\n```js\nvar example4 = [ { toys: [ { _attr: { decade: '80s', locale: 'US'} }, { toy: 'Transformers' } , { toy: 'GI Joe' }, { toy: 'He-man' } ] } ];\nconsole.log(XML(example4, true));\n/*\nresult:\n\n Transformers\n GI Joe\n He-man\n\n*/\n```\n\n**Even more complex example**\n\n```js\nvar example5 = [ { toys: [ { _attr: { decade: '80s', locale: 'US'} }, { toy: 'Transformers' } , { toy: [ { _attr: { knowing: 'half the battle' } }, 'GI Joe'] }, { toy: [ { name: 'He-man' }, { description: { _cdata: 'Master of the Universe!'} } ] } ] } ];\nconsole.log(XML(example5, true));\n/*\nresult:\n\n Transformers\n \n GI Joe\n \n \n He-man\n Master of the Universe!]]>\n \n\n*/\n```\n\n## Tests\n\nTests included use Mocha. Use `npm test` to run the tests.\n\n $ npm test\n\n## Examples\n\nThere are examples in the examples directory.\n\n# Contributing\n\nContributions to the project are welcome. Feel free to fork and improve. I accept pull requests and issues,\nespecially when tests are included.\n\n# License\n\n(The MIT License)\n\nCopyright (c) 2011-2014 Dylan Greene \n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", "readmeFilename": "readme.md", - "_id": "xml@0.0.12", + "_id": "xml@1.0.0", "dist": { - "shasum": "521a156490860d1353d069c0264449b77830b49b" + "shasum": "b4a00948139762520bde859a88c354cca311ba64" }, - "_from": "xml@~0.0.12", - "_resolved": "https://registry.npmjs.org/xml/-/xml-0.0.12.tgz" + "_from": "xml@^1.0.0", + "_resolved": "https://registry.npmjs.org/xml/-/xml-1.0.0.tgz" } diff --git a/node_modules/rss/node_modules/xml/readme.md b/node_modules/rss/node_modules/xml/readme.md index 9223adcc6..7516151dd 100644 --- a/node_modules/rss/node_modules/xml/readme.md +++ b/node_modules/rss/node_modules/xml/readme.md @@ -188,7 +188,7 @@ especially when tests are included. (The MIT License) -Copyright (c) 2011-2013 Dylan Greene +Copyright (c) 2011-2014 Dylan Greene Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -207,4 +207,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/rss/node_modules/xml/test/xml.test.js b/node_modules/rss/node_modules/xml/test/xml.test.js index 3286cf6cd..fbf1b0ea9 100644 --- a/node_modules/rss/node_modules/xml/test/xml.test.js +++ b/node_modules/rss/node_modules/xml/test/xml.test.js @@ -19,11 +19,13 @@ describe('xml module', function(done) { it('works with simple options', function(done) { expect(xml([ { a: {} }])).to.equal(''); + expect(xml([ { a: null }])).to.equal(''); expect(xml([ { a: [] }])).to.equal(''); expect(xml([ { a: -1 }])).to.equal('-1'); expect(xml([ { a: false }])).to.equal('false'); expect(xml([ { a: 'test' }])).to.equal('test'); expect(xml( { a: {} })).to.equal(''); + expect(xml( { a: null })).to.equal(''); expect(xml( { a: [] })).to.equal(''); expect(xml( { a: -1 })).to.equal('-1'); expect(xml( { a: false })).to.equal('false'); diff --git a/node_modules/rss/package.json b/node_modules/rss/package.json index 91200b60a..7313c4780 100644 --- a/node_modules/rss/package.json +++ b/node_modules/rss/package.json @@ -1,6 +1,6 @@ { "name": "rss", - "version": "0.3.2", + "version": "1.0.0", "description": "RSS feed generator. A really simple API to add RSS feeds to any project.", "homepage": "http://github.com/dylang/node-rss", "author": { @@ -45,34 +45,26 @@ "url": "http://github.com/dylang/node-rss/issues" }, "dependencies": { - "xml": "~0.0.12", - "mime": "~1.2.11" + "mime": "^1.2.11", + "xml": "^1.0.0" }, "devDependencies": { - "chai": "~1.8.1", - "mocha": "~1.17.0", - "xml2js": "~0.4.1", - "q": "~1.0.0" + "chai": "^1.9.1", + "mocha": "^1.21.4", + "q": "^1.0.0", + "xml2js": "^0.4.1" }, "main": "lib/rss.js", "scripts": { - "test": "./node_modules/.bin/mocha --reporter spec" + "test": "mocha --reporter spec" }, - "engines": { - "node": ">=0.4.0" - }, - "licenses": [ - { - "type": "MIT", - "url": "http://github.com/dylang/node-rss/raw/master/LICENSE" - } - ], - "readme": "# RSS for Node [![Build Status](https://secure.travis-ci.org/dylang/node-rss.png)](http://travis-ci.org/dylang/node-rss)\n\n [![NPM](https://nodei.co/npm/rss.png?downloads=true)](https://nodei.co/npm/rss/)\n\n> Fast and simple RSS generator/builder for Node projects. Supports enclosures and GeoRSS.\n\n## Install\n\n $ npm install rss\n\n## Usage\n\n### Create a new feed\n\n```js\nvar RSS = require('rss');\n\nvar feed = new RSS(feedOptions);\n```\n\n#### `feedOptions`\n\n * `title` **string** Title of your site or feed\n * `description` _optional_ **string** A short description of the feed.\n * `generator` _optional_ **string** Feed generator.\n * `feed_url` **url string** Url to the rss feed.\n * `site_url` **url string** Url to the site that the feed is for.\n * `image_url` _optional_ **url string* Small image for feed readers to use.\n * `docs` _optional_ **url string** Url to documentation on this feed.\n * `author` **string** Who owns this feed.\n * `managingEditor` _optional_ **string** Who manages content in this feed.\n * `webMaster` _optional_ **string** Who manages feed availability and technical support.\n * `copyright` _optional_ **string** Copyright information for this feed.\n * `language` _optional_ **string** The language of the content of this feed.\n * `categories` _optional_ **array of strings** One or more categories this feed belongs to.\n * `pubDate` _optional_ **Date object or date string** The publication date for content in the feed\n * `ttl` _optional_ **integer** Number of minutes feed can be cached before refreshing from source.\n * `hub` _optional_ **PubSubHubbub hub url** Where is the PubSubHubb hub located.\n\n### Add items to a feed\n\nAn item can be used for a blog entry, project update, log entry, etc. Your RSS feed\nan have any number of items. Most feeds use 20 or fewer items.\n\n```js\nfeed.item(itemOptions);\n```\n\n#### itemOptions\n\n * `title` **string** Title of this particular item.\n * `description` **string** Content for the item. Can contain html but link and image urls must be absolute path including hostname.\n * `url` **url string** Url to the item. This could be a blog entry.\n * `guid` **unique string** A unique string feed readers use to know if an item is new or has already been seen.\n If you use a guid never change it. If you don't provide a guid then your item urls must\n be unique.\n * `categories` _optional_ **array of strings** If provided, each array item will be added as a category element\n * `author` _optional_ **string** If included it is the name of the item's creator.\n If not provided the item author will be the same as the feed author. This is typical\n except on multi-author blogs.\n * `date` **Date object or date string** The date and time of when the item was created. Feed\n readers use this to determine the sort order. Some readers will also use it to determine\n if the content should be presented as unread.\n * `lat` _optional_ **number** The latitude coordinate of the item.\n * `long` _optional_ **number** The longitude coordinate of the item.\n\n#### Feed XML\n\n```js\nvar xml = feed.xml(indent);\n```\n\nThis returns the XML as a string.\n\n`indent` _optional_ **string** What to use as a tab. Defaults to no tabs (compressed).\n For example you can use `'\\t'` for tab character, or `' '` for two-space tabs.\n\n## Example Usage\n\n```js\nvar RSS = require('rss');\n\n/* lets create an rss feed */\nvar feed = new RSS({\n title: 'title',\n description: 'description',\n feed_url: 'http://example.com/rss.xml',\n site_url: 'http://example.com',\n image_url: 'http://example.com/icon.png',\n docs: 'http://example.com/rss/docs.html',\n author: 'Dylan Greene',\n managingEditor: 'Dylan Greene',\n webMaster: 'Dylan Greene',\n copyright: '2013 Dylan Greene',\n language: 'en',\n categories: ['Category 1','Category 2','Category 3'],\n pubDate: 'May 20, 2012 04:00:00 GMT',\n ttl: '60'\n});\n\n/* loop over data and add to feed */\nfeed.item({\n title: 'item title',\n description: 'use this for the content. It can include html.',\n url: 'http://example.com/article4?this&that', // link to the item\n guid: '1123', // optional - defaults to url\n categories: ['Category 1','Category 2','Category 3','Category 4'], // optional - array of item categories\n author: 'Guest Author', // optional - defaults to feed author property\n date: 'May 27, 2012', // any format that js Date can parse.\n lat: 33.417974, //optional latitude field for GeoRSS\n long: -111.933231, //optional longitude field for GeoRSS\n enclosure: {url:'...', file:'path-to-file'} // optional enclosure\n});\n\n// cache the xml to send to clients\nvar xml = feed.xml();\n```\n\n## Tests\n\nTests included use Mocha. Use `npm test` to run the tests.\n\n $ npm test\n\n## Notes\n * You do not need to escape anything. This module will escape characters when necessary.\n * This module is very fast but you might as well cache the output of xml() and serve\n it until something changes.\n\n# History\n\nI started this module over two years ago (April 2011) because there weren't any Node modules\nfor creating RSS. Besides these [25 modules](https://npmjs.org/browse/depended/rss)\nI would love to know what other projects are using it.\n\n# Contributing\n\nContributions to the project are welcome. Feel free to fork and improve.\nI do my best accept pull requests in a timely manor, especially when tests and updated docs\nare included.\n\n# License\n\n(The MIT License)\n\nCopyright (c) 2011-2013 Dylan Greene \n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", + "licenses": "MIT", + "readme": "# RSS for Node [![Build Status](https://api.travis-ci.org/dylang/node-rss.svg)](http://travis-ci.org/dylang/node-rss)\n\n [![NPM](https://nodei.co/npm/rss.png?downloads=true)](https://nodei.co/npm/rss/)\n\n> Fast and simple RSS generator/builder for Node projects. Supports enclosures and GeoRSS.\n\n## Install\n\n $ npm install rss\n\n## Usage\n\n### Create a new feed\n\n```js\nvar RSS = require('rss');\n\nvar feed = new RSS(feedOptions);\n```\n\n#### `feedOptions`\n\n * `title` **string** Title of your site or feed\n * `description` _optional_ **string** A short description of the feed.\n * `generator` _optional_ **string** Feed generator.\n * `feed_url` **url string** Url to the rss feed.\n * `site_url` **url string** Url to the site that the feed is for.\n * `image_url` _optional_ **url string* Small image for feed readers to use.\n * `docs` _optional_ **url string** Url to documentation on this feed.\n * `managingEditor` _optional_ **string** Who manages content in this feed.\n * `webMaster` _optional_ **string** Who manages feed availability and technical support.\n * `copyright` _optional_ **string** Copyright information for this feed.\n * `language` _optional_ **string** The language of the content of this feed.\n * `categories` _optional_ **array of strings** One or more categories this feed belongs to.\n * `pubDate` _optional_ **Date object or date string** The publication date for content in the feed\n * `ttl` _optional_ **integer** Number of minutes feed can be cached before refreshing from source.\n * `hub` _optional_ **PubSubHubbub hub url** Where is the PubSubHubb hub located.\n\n### Add items to a feed\n\nAn item can be used for a blog entry, project update, log entry, etc. Your RSS feed\ncan have any number of items. Most feeds use 20 or fewer items.\n\n```js\nfeed.item(itemOptions);\n```\n\n#### itemOptions\n\n * `title` **string** Title of this particular item.\n * `description` **string** Content for the item. Can contain html but link and image urls must be absolute path including hostname.\n * `url` **url string** Url to the item. This could be a blog entry.\n * `guid` **unique string** A unique string feed readers use to know if an item is new or has already been seen.\n If you use a guid never change it. If you don't provide a guid then your item urls must\n be unique.\n * `categories` _optional_ **array of strings** If provided, each array item will be added as a category element\n * `author` _optional_ **string** If included it is the name of the item's creator.\n If not provided the item author will be the same as the feed author. This is typical\n except on multi-author blogs.\n * `date` **Date object or date string** The date and time of when the item was created. Feed\n readers use this to determine the sort order. Some readers will also use it to determine\n if the content should be presented as unread.\n * `lat` _optional_ **number** The latitude coordinate of the item.\n * `long` _optional_ **number** The longitude coordinate of the item.\n\n#### Feed XML\n\n```js\nvar xml = feed.xml(indent);\n```\n\nThis returns the XML as a string.\n\n`indent` _optional_ **string** What to use as a tab. Defaults to no tabs (compressed).\n For example you can use `'\\t'` for tab character, or `' '` for two-space tabs.\n\n## Example Usage\n\n```js\nvar RSS = require('rss');\n\n/* lets create an rss feed */\nvar feed = new RSS({\n title: 'title',\n description: 'description',\n feed_url: 'http://example.com/rss.xml',\n site_url: 'http://example.com',\n image_url: 'http://example.com/icon.png',\n docs: 'http://example.com/rss/docs.html',\n managingEditor: 'Dylan Greene',\n webMaster: 'Dylan Greene',\n copyright: '2013 Dylan Greene',\n language: 'en',\n categories: ['Category 1','Category 2','Category 3'],\n pubDate: 'May 20, 2012 04:00:00 GMT',\n ttl: '60'\n});\n\n/* loop over data and add to feed */\nfeed.item({\n title: 'item title',\n description: 'use this for the content. It can include html.',\n url: 'http://example.com/article4?this&that', // link to the item\n guid: '1123', // optional - defaults to url\n categories: ['Category 1','Category 2','Category 3','Category 4'], // optional - array of item categories\n author: 'Guest Author', // optional - defaults to feed author property\n date: 'May 27, 2012', // any format that js Date can parse.\n lat: 33.417974, //optional latitude field for GeoRSS\n long: -111.933231, //optional longitude field for GeoRSS\n enclosure: {url:'...', file:'path-to-file'} // optional enclosure\n});\n\n// cache the xml to send to clients\nvar xml = feed.xml();\n```\n\n## Tests\n\nTests included use Mocha. Use `npm test` to run the tests.\n\n $ npm test\n\n## Notes\n * You do not need to escape anything. This module will escape characters when necessary.\n * This module is very fast but you might as well cache the output of xml() and serve\n it until something changes.\n\n# History\n\nI started this module *years* ago (April 2011) because there weren't any Node modules\nfor creating RSS. [Nearly 50 modules](https://npmjs.org/browse/depended/rss)\nuse RSS, as well as many web sites and the popular [Ghost publishing platform](https://ghost.org/).\n\n# Contributing\n\nContributions to the project are welcome. Feel free to fork and improve.\nI do my best accept pull requests in a timely manor, especially when tests and updated docs\nare included.\n\n# License\n\n(The MIT License)\n\nCopyright (c) 2011-2014 Dylan Greene \n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", "readmeFilename": "readme.md", - "_id": "rss@0.3.2", + "_id": "rss@1.0.0", "dist": { - "shasum": "7654a2b039b98c219e05e8e106170348e7166a24" + "shasum": "9bd592ac8288a2507c606f93cb4d543fffc2c1e7" }, - "_from": "rss@~0.3", - "_resolved": "https://registry.npmjs.org/rss/-/rss-0.3.2.tgz" + "_from": "rss@~1.0", + "_resolved": "https://registry.npmjs.org/rss/-/rss-1.0.0.tgz" } diff --git a/node_modules/rss/readme.md b/node_modules/rss/readme.md index de49ca606..a9eb1a710 100644 --- a/node_modules/rss/readme.md +++ b/node_modules/rss/readme.md @@ -1,4 +1,4 @@ -# RSS for Node [![Build Status](https://secure.travis-ci.org/dylang/node-rss.png)](http://travis-ci.org/dylang/node-rss) +# RSS for Node [![Build Status](https://api.travis-ci.org/dylang/node-rss.svg)](http://travis-ci.org/dylang/node-rss) [![NPM](https://nodei.co/npm/rss.png?downloads=true)](https://nodei.co/npm/rss/) @@ -27,7 +27,6 @@ var feed = new RSS(feedOptions); * `site_url` **url string** Url to the site that the feed is for. * `image_url` _optional_ **url string* Small image for feed readers to use. * `docs` _optional_ **url string** Url to documentation on this feed. - * `author` **string** Who owns this feed. * `managingEditor` _optional_ **string** Who manages content in this feed. * `webMaster` _optional_ **string** Who manages feed availability and technical support. * `copyright` _optional_ **string** Copyright information for this feed. @@ -40,7 +39,7 @@ var feed = new RSS(feedOptions); ### Add items to a feed An item can be used for a blog entry, project update, log entry, etc. Your RSS feed -an have any number of items. Most feeds use 20 or fewer items. +can have any number of items. Most feeds use 20 or fewer items. ```js feed.item(itemOptions); @@ -88,7 +87,6 @@ var feed = new RSS({ site_url: 'http://example.com', image_url: 'http://example.com/icon.png', docs: 'http://example.com/rss/docs.html', - author: 'Dylan Greene', managingEditor: 'Dylan Greene', webMaster: 'Dylan Greene', copyright: '2013 Dylan Greene', @@ -129,9 +127,9 @@ Tests included use Mocha. Use `npm test` to run the tests. # History -I started this module over two years ago (April 2011) because there weren't any Node modules -for creating RSS. Besides these [25 modules](https://npmjs.org/browse/depended/rss) -I would love to know what other projects are using it. +I started this module *years* ago (April 2011) because there weren't any Node modules +for creating RSS. [Nearly 50 modules](https://npmjs.org/browse/depended/rss) +use RSS, as well as many web sites and the popular [Ghost publishing platform](https://ghost.org/). # Contributing @@ -143,7 +141,7 @@ are included. (The MIT License) -Copyright (c) 2011-2013 Dylan Greene +Copyright (c) 2011-2014 Dylan Greene Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/package.json b/package.json index 33e2cb01c..3394abd9a 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "fs-extra": "~0.12", "glob": "~4", "lodash": "~2.4", - "rss": "~0.3", + "rss": "~1.0", "superagent": "~0.19", "tarball-extract": "~0.0", "uglify-js": "~2.4",