Socket
Socket
Sign inDemoInstall

amphora-rss

Package Overview
Dependencies
49
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.6.0

7

index.js

@@ -37,5 +37,6 @@ 'use strict';

* @param {String} [docs]
* @param {String} [opt]
* @return {Array}
*/
function feedMetaTags({ title, description, link, copyright, generator, docs }) {
function feedMetaTags({ title, description, link, copyright, generator, docs, opt }) {
return (group) => {

@@ -59,2 +60,6 @@ let now, siteMeta;

if (opt) {
siteMeta = siteMeta.concat(opt);
}
return siteMeta.concat(elevateCategory(group), group);

@@ -61,0 +66,0 @@ };

@@ -126,2 +126,9 @@ 'use strict';

});
it('accepts an `opt` object with additional meta tags', function () {
const language = {language: 'en-US'},
result = fn({title:'foo', description: 'bar', link: 'foobar', opt: language})([]);
expect(result).have.to.deep.include(language);
});
});

@@ -128,0 +135,0 @@

2

package.json
{
"name": "amphora-rss",
"version": "0.5.0",
"version": "0.6.0",
"description": "Convert JSON from Amphora into RSS",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc