jsonfeed-to-atom
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,2 +5,5 @@ # jsonfeed-to-atom Change Log | ||
## 1.1.2 - 2018-05-25 | ||
* Fix enclosure tags [#3](https://github.com/bcomnes/jsonfeed-to-atom/pull/3) Thanks [@xriss](https://github.com/xriss) | ||
## 1.1.1 - 2018-04-15 | ||
@@ -7,0 +10,0 @@ * Fix tests during release stage |
@@ -126,5 +126,5 @@ const packageInfo = require('./package.json') | ||
const enclosure = { '@rel': 'enclosure' } | ||
enclosure.type = attachment.mime_type | ||
enclosure.href = attachment.url | ||
if (attachment.size_in_bytes) enclosure.length = attachment.size_in_bytes | ||
enclosure['@type'] = attachment.mime_type | ||
enclosure['@href'] = attachment.url | ||
if (attachment.size_in_bytes) enclosure['@length'] = attachment.size_in_bytes | ||
entry.link.push(enclosure) | ||
@@ -131,0 +131,0 @@ }) |
{ | ||
"name": "jsonfeed-to-atom", | ||
"description": "Convert a JSON feed to an atom feed", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"author": "Bret Comnes", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -34,3 +34,3 @@ { | ||
"@uri": "https://github.com/bcomnes/jsonfeed-to-atom#readme", | ||
"@version": "1.1.1", | ||
"@version": "1.1.2", | ||
"#text": "jsonfeed-to-atom" | ||
@@ -112,10 +112,10 @@ }, | ||
"@rel": "enclosure", | ||
"type": "audio/mpeg", | ||
"href": "https://example.com/attatchments.mp4" | ||
"@type": "audio/mpeg", | ||
"@href": "https://example.com/attatchments.mp4" | ||
}, | ||
{ | ||
"@rel": "enclosure", | ||
"type": "audio/mpeg", | ||
"href": "https://example.com/attatchments-45.mp4", | ||
"length": 1234 | ||
"@type": "audio/mpeg", | ||
"@href": "https://example.com/attatchments-45.mp4", | ||
"@length": 1234 | ||
} | ||
@@ -122,0 +122,0 @@ ] |
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
36599