amphora-rss
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -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 @@ |
{ | ||
"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", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
17595
330
1