@citation-js/plugin-wikidata
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -43,5 +43,3 @@ "use strict"; | ||
function postProcess(data, { | ||
labels | ||
}, langs) { | ||
function postProcess(data, entity, langs) { | ||
for (let prop in data) { | ||
@@ -58,3 +56,3 @@ if (Array.isArray(data[prop])) { | ||
if (!data.title) { | ||
data.title = (0, _prop.getLabel)(langs); | ||
data.title = (0, _prop.getLabel)(entity, langs); | ||
} | ||
@@ -61,0 +59,0 @@ |
{ | ||
"name": "@citation-js/plugin-wikidata", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Plugin for Wikidata for Citation.js", | ||
@@ -36,6 +36,6 @@ "keywords": [ | ||
"@citation-js/name": "^0.4.2", | ||
"wikidata-sdk": "^6.0.0" | ||
"wikidata-sdk": "^6.3.0" | ||
}, | ||
"devDependencies": { | ||
"@citation-js/core": "^0.4.0" | ||
"@citation-js/core": "^0.4.1" | ||
}, | ||
@@ -45,3 +45,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "0567ecedfedcda44c18dad6345487e02ab9bdd33" | ||
"gitHead": "3ecde350a50b75e4672c4563dc6bec09410725b9" | ||
} |
@@ -33,3 +33,3 @@ /** | ||
function postProcess (data, { labels }, langs) { | ||
function postProcess (data, entity, langs) { | ||
for (let prop in data) { | ||
@@ -42,3 +42,3 @@ if (Array.isArray(data[prop])) { | ||
if (!data.title) { | ||
data.title = getLabel(langs) | ||
data.title = getLabel(entity, langs) | ||
} | ||
@@ -45,0 +45,0 @@ |
142591
1411
Updatedwikidata-sdk@^6.3.0