New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@citation-js/plugin-wikidata

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@citation-js/plugin-wikidata - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

6

lib/entity.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc