@citation-js/plugin-bibtex
Advanced tools
Comparing version 0.4.0-rc.1 to 0.4.0-rc.2
@@ -18,3 +18,3 @@ "use strict"; | ||
bib.properties.type = bib.type; | ||
const properties = Object.entries(bib.properties).map(([prop, value]) => dict.listItem.join(`${prop}: ${value}`)).join(''); | ||
const properties = Object.keys(bib.properties).map(prop => dict.listItem.join(`${prop}: ${bib.properties[prop]}`)).join(''); | ||
return dict.entry.join(`[${bib.label}]${dict.list.join(properties)}`); | ||
@@ -21,0 +21,0 @@ }).join('\n'); |
@@ -76,6 +76,2 @@ "use strict"; | ||
function serializePropertyList(properties, dict) { | ||
return properties.map(([prop, value]) => serializeValue(prop, value, dict)).join(''); | ||
} | ||
function serializeEntry(entry, dict) { | ||
@@ -87,3 +83,3 @@ let _getBibTeXJSON = (0, _json.default)(entry), | ||
properties = serializePropertyList(Object.entries(properties), dict); | ||
properties = Object.keys(properties).map(prop => serializeValue(prop, properties[prop], dict)).join(''); | ||
return dict.entry.join(`@${type}{${label},${dict.list.join(properties)}}`); | ||
@@ -90,0 +86,0 @@ } |
{ | ||
"name": "@citation-js/plugin-bibtex", | ||
"version": "0.4.0-rc.1", | ||
"version": "0.4.0-rc.2", | ||
"description": "Plugin for BibTeX formats for Citation.js", | ||
@@ -33,12 +33,11 @@ "keywords": [ | ||
"dependencies": { | ||
"@citation-js/date": "^0.4.1", | ||
"@citation-js/name": "^0.4.1" | ||
"@citation-js/date": "^0.4.3", | ||
"@citation-js/name": "^0.4.2" | ||
}, | ||
"devDependencies": { | ||
"@citation-js/core": "^0.4.0-rc.1" | ||
"@citation-js/core": "^0.4.0-rc.2" | ||
}, | ||
"peerDependencies": { | ||
"@citation-js/core": "^0.4.0-rc.0" | ||
}, | ||
"gitHead": "09ff47215f95d87cbf58062ca19912dcd8d2eb77" | ||
} | ||
} |
41369
16
793
Updated@citation-js/date@^0.4.3
Updated@citation-js/name@^0.4.2