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.5.2 to 0.5.3

lib-mjs/ignoredProps.json

7

lib-mjs/entity.js
import { logger } from '@citation-js/core';
import * as response from './response';
import { parseProp, getLabel } from './prop';
import { props, ignoredProps } from './props';
import * as response from './response.js';
import { parseProp, getLabel } from './prop.js';
import props from './props.json';
import ignoredProps from './ignoredProps.json';

@@ -6,0 +7,0 @@ function resolveProp(prop_, entity, unkown) {

import wdk from 'wikidata-sdk';
import config from './config';
import config from './config.json';

@@ -4,0 +4,0 @@ const parseWikidata = function (data, langs) {

import { plugins } from '@citation-js/core';
import * as id from './id';
import * as entity from './entity';
import * as prop from './prop';
import * as url from './url';
import * as api from './api';
import config from './config';
import * as id from './id.js';
import * as entity from './entity.js';
import * as prop from './prop.js';
import * as url from './url.js';
import * as api from './api.js';
import config from './config.json';
const ref = '@wikidata';

@@ -9,0 +9,0 @@ const parsers = {

import { logger } from '@citation-js/core';
import { parse as parseNameString } from '@citation-js/name';
import { parse as parseDate } from '@citation-js/date';
import config from './config';
import types from './types';
import config from './config.json';
import types from './types.json';

@@ -7,0 +7,0 @@ const getSeriesOrdinal = ({

{
"props": {
"author": {
"values": "all",
"props": ["P50", "P2093"]
},
"composer": {
"values": "all",
"props": ["P86"]
},
"author": {
"values": "all",
"props": ["P50", "P2093"]
},
"composer": {
"values": "all",
"props": ["P86"]
},
"collection-editor": {
"values": "all",
"props": ["P179.P98"]
},
"collection-number": {
"values": "all",
"props": ["P179"]
},
"collection-title": "P179",
"collection-editor": {
"values": "all",
"props": ["P179.P98"]
},
"collection-number": {
"values": "all",
"props": ["P179"]
},
"collection-title": "P179",
"container-author": {
"values": "all",
"props": ["P1433.P50", "P1433.P2093", "P361.P50", "P361.P2093"]
},
"container-title": { "values": "any", "props": ["P1433", "P361"] },
"container-title-short": { "values": "any", "props": ["P1433.P1813", "P1433.P1160"] },
"container-author": {
"values": "all",
"props": ["P1433.P50", "P1433.P2093", "P361.P50", "P361.P2093"]
},
"container-title": { "values": "any", "props": ["P1433", "P361"] },
"container-title-short": { "values": "any", "props": ["P1433.P1813", "P1433.P1160"] },
"director": {
"values": "all",
"props": ["P57"]
},
"DOI": "P356",
"edition": "P393",
"editor": {
"values": "all",
"props": ["P98"]
},
"director": {
"values": "all",
"props": ["P57"]
},
"DOI": "P356",
"edition": "P393",
"editor": {
"values": "all",
"props": ["P98"]
},
"event": "P1433.P4745",
"event-date": {
"values": "all",
"props": ["P1433.P4745.P580", "P1433.P4745.P582"]
},
"event-place": "P1433.P4745.P276",
"event": "P1433.P4745",
"event-date": {
"values": "all",
"props": ["P1433.P4745.P580", "P1433.P4745.P582"]
},
"event-place": "P1433.P4745.P276",
"illustrator": {
"values": "all",
"props": ["P110"]
},
"ISBN": {
"values": "any",
"props": ["P212", "P957"]
},
"ISSN": "P1433.P236",
"issue": "P433",
"issued": "P577",
"journalAbbreviation": { "values": "any", "props": ["P1433.P1813", "P1433.P1160"] },
"keyword": {
"values": "all",
"props": ["P921"]
},
"language": {
"values": "any",
"props": ["P407.P218", "P364.P218"]
},
"medium": { "values": "any", "props": ["P437", "P186"] },
"number-of-pages": "P1104",
"number-of-volumes": {
"values": "all",
"props": ["P179.P527"]
},
"illustrator": {
"values": "all",
"props": ["P110"]
},
"ISBN": {
"values": "any",
"props": ["P212", "P957"]
},
"ISSN": "P1433.P236",
"issue": "P433",
"issued": "P577",
"journalAbbreviation": { "values": "any", "props": ["P1433.P1813", "P1433.P1160"] },
"keyword": {
"values": "all",
"props": ["P921"]
},
"language": {
"values": "any",
"props": ["P407.P218", "P364.P218"]
},
"medium": { "values": "any", "props": ["P437", "P186"] },
"number-of-pages": "P1104",
"number-of-volumes": {
"values": "all",
"props": ["P179.P527"]
},
"original-author": {
"values": "all",
"props": ["P629.P50", "P629.P2093"]
},
"original-date": "P629.P577",
"original-publisher": "P629.P123",
"original-publisher-place": {
"values": "any",
"props": ["P629.P123.P740", "P629.P123.P159"]
},
"original-title": "P629.P1476",
"original-author": {
"values": "all",
"props": ["P629.P50", "P629.P2093"]
},
"original-date": "P629.P577",
"original-publisher": "P629.P123",
"original-publisher-place": {
"values": "any",
"props": ["P629.P123.P740", "P629.P123.P159"]
},
"original-title": "P629.P1476",
"page": "P304",
"PMID": "P698",
"PMCID": "P932",
"page": "P304",
"PMID": "P698",
"PMCID": "P932",
"publisher": "P123",
"publisher-place": { "values": "any", "props": ["P123.P740", "P123.P159"]},
"publisher": "P123",
"publisher-place": { "values": "any", "props": ["P123.P740", "P123.P159"]},
"recipient": {
"values": "all",
"props": ["P1817"]
},
"recipient": {
"values": "all",
"props": ["P1817"]
},
"reviewed-title": "P921.P1476",
"reviewed-author": {
"values": "all",
"props": ["P921.P50", "P921.P2093"]
},
"reviewed-title": "P921.P1476",
"reviewed-author": {
"values": "all",
"props": ["P921.P50", "P921.P2093"]
},
"scale": "P1752",
"title": "P1476",
"translator": {
"values": "all",
"props": ["P655"]
},
"type": "P31",
"version": "P348",
"volume": "P478",
"URL": {
"values": "any",
"props": ["P856", "P953", "P973", "P2699"]
}
"scale": "P1752",
"title": "P1476",
"translator": {
"values": "all",
"props": ["P655"]
},
"ignoredProps": {
"P2860": "Cites",
"P921": "Main subject",
"P3181": "OpenCitations bibliographic resource ID",
"P364": "Original language of work"
"type": "P31",
"version": "P348",
"volume": "P478",
"URL": {
"values": "any",
"props": ["P856", "P953", "P973", "P2699"]
}
}
import { simplify } from 'wikidata-sdk';
import { parse as fetch, parseAsync as fetchAsync } from './api';
import { parse as getUrls } from './id';
import { parse as fetch, parseAsync as fetchAsync } from './api.js';
import { parse as getUrls } from './id.js';
const SIMPLIFY_OPTS = {

@@ -5,0 +5,0 @@ keepQualifiers: true,

@@ -12,8 +12,12 @@ "use strict";

var response = _interopRequireWildcard(require("./response"));
var response = _interopRequireWildcard(require("./response.js"));
var _prop = require("./prop");
var _prop = require("./prop.js");
var _props = require("./props");
var _props = _interopRequireDefault(require("./props.json"));
var _ignoredProps = _interopRequireDefault(require("./ignoredProps.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -62,4 +66,4 @@

for (const prop in _props.props) {
const input = prepareValue(_props.props[prop], entity, unkown);
for (const prop in _props.default) {
const input = prepareValue(_props.default[prop], entity, unkown);

@@ -76,3 +80,3 @@ if (input) {

for (const prop of unkown) {
if (prop in _props.ignoredProps) {
if (prop in _ignoredProps.default) {
continue;

@@ -79,0 +83,0 @@ }

@@ -10,3 +10,3 @@ "use strict";

var _config = _interopRequireDefault(require("./config"));
var _config = _interopRequireDefault(require("./config.json"));

@@ -13,0 +13,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -10,13 +10,13 @@ "use strict";

var id = _interopRequireWildcard(require("./id"));
var id = _interopRequireWildcard(require("./id.js"));
var entity = _interopRequireWildcard(require("./entity"));
var entity = _interopRequireWildcard(require("./entity.js"));
var prop = _interopRequireWildcard(require("./prop"));
var prop = _interopRequireWildcard(require("./prop.js"));
var url = _interopRequireWildcard(require("./url"));
var url = _interopRequireWildcard(require("./url.js"));
var api = _interopRequireWildcard(require("./api"));
var api = _interopRequireWildcard(require("./api.js"));
var _config = _interopRequireDefault(require("./config"));
var _config = _interopRequireDefault(require("./config.json"));

@@ -23,0 +23,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -16,5 +16,5 @@ "use strict";

var _config = _interopRequireDefault(require("./config"));
var _config = _interopRequireDefault(require("./config.json"));
var _types = _interopRequireDefault(require("./types"));
var _types = _interopRequireDefault(require("./types.json"));

@@ -21,0 +21,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

{
"props": {
"author": {
"values": "all",
"props": ["P50", "P2093"]
},
"composer": {
"values": "all",
"props": ["P86"]
},
"author": {
"values": "all",
"props": ["P50", "P2093"]
},
"composer": {
"values": "all",
"props": ["P86"]
},
"collection-editor": {
"values": "all",
"props": ["P179.P98"]
},
"collection-number": {
"values": "all",
"props": ["P179"]
},
"collection-title": "P179",
"collection-editor": {
"values": "all",
"props": ["P179.P98"]
},
"collection-number": {
"values": "all",
"props": ["P179"]
},
"collection-title": "P179",
"container-author": {
"values": "all",
"props": ["P1433.P50", "P1433.P2093", "P361.P50", "P361.P2093"]
},
"container-title": { "values": "any", "props": ["P1433", "P361"] },
"container-title-short": { "values": "any", "props": ["P1433.P1813", "P1433.P1160"] },
"container-author": {
"values": "all",
"props": ["P1433.P50", "P1433.P2093", "P361.P50", "P361.P2093"]
},
"container-title": { "values": "any", "props": ["P1433", "P361"] },
"container-title-short": { "values": "any", "props": ["P1433.P1813", "P1433.P1160"] },
"director": {
"values": "all",
"props": ["P57"]
},
"DOI": "P356",
"edition": "P393",
"editor": {
"values": "all",
"props": ["P98"]
},
"director": {
"values": "all",
"props": ["P57"]
},
"DOI": "P356",
"edition": "P393",
"editor": {
"values": "all",
"props": ["P98"]
},
"event": "P1433.P4745",
"event-date": {
"values": "all",
"props": ["P1433.P4745.P580", "P1433.P4745.P582"]
},
"event-place": "P1433.P4745.P276",
"event": "P1433.P4745",
"event-date": {
"values": "all",
"props": ["P1433.P4745.P580", "P1433.P4745.P582"]
},
"event-place": "P1433.P4745.P276",
"illustrator": {
"values": "all",
"props": ["P110"]
},
"ISBN": {
"values": "any",
"props": ["P212", "P957"]
},
"ISSN": "P1433.P236",
"issue": "P433",
"issued": "P577",
"journalAbbreviation": { "values": "any", "props": ["P1433.P1813", "P1433.P1160"] },
"keyword": {
"values": "all",
"props": ["P921"]
},
"language": {
"values": "any",
"props": ["P407.P218", "P364.P218"]
},
"medium": { "values": "any", "props": ["P437", "P186"] },
"number-of-pages": "P1104",
"number-of-volumes": {
"values": "all",
"props": ["P179.P527"]
},
"illustrator": {
"values": "all",
"props": ["P110"]
},
"ISBN": {
"values": "any",
"props": ["P212", "P957"]
},
"ISSN": "P1433.P236",
"issue": "P433",
"issued": "P577",
"journalAbbreviation": { "values": "any", "props": ["P1433.P1813", "P1433.P1160"] },
"keyword": {
"values": "all",
"props": ["P921"]
},
"language": {
"values": "any",
"props": ["P407.P218", "P364.P218"]
},
"medium": { "values": "any", "props": ["P437", "P186"] },
"number-of-pages": "P1104",
"number-of-volumes": {
"values": "all",
"props": ["P179.P527"]
},
"original-author": {
"values": "all",
"props": ["P629.P50", "P629.P2093"]
},
"original-date": "P629.P577",
"original-publisher": "P629.P123",
"original-publisher-place": {
"values": "any",
"props": ["P629.P123.P740", "P629.P123.P159"]
},
"original-title": "P629.P1476",
"original-author": {
"values": "all",
"props": ["P629.P50", "P629.P2093"]
},
"original-date": "P629.P577",
"original-publisher": "P629.P123",
"original-publisher-place": {
"values": "any",
"props": ["P629.P123.P740", "P629.P123.P159"]
},
"original-title": "P629.P1476",
"page": "P304",
"PMID": "P698",
"PMCID": "P932",
"page": "P304",
"PMID": "P698",
"PMCID": "P932",
"publisher": "P123",
"publisher-place": { "values": "any", "props": ["P123.P740", "P123.P159"]},
"publisher": "P123",
"publisher-place": { "values": "any", "props": ["P123.P740", "P123.P159"]},
"recipient": {
"values": "all",
"props": ["P1817"]
},
"recipient": {
"values": "all",
"props": ["P1817"]
},
"reviewed-title": "P921.P1476",
"reviewed-author": {
"values": "all",
"props": ["P921.P50", "P921.P2093"]
},
"reviewed-title": "P921.P1476",
"reviewed-author": {
"values": "all",
"props": ["P921.P50", "P921.P2093"]
},
"scale": "P1752",
"title": "P1476",
"translator": {
"values": "all",
"props": ["P655"]
},
"type": "P31",
"version": "P348",
"volume": "P478",
"URL": {
"values": "any",
"props": ["P856", "P953", "P973", "P2699"]
}
"scale": "P1752",
"title": "P1476",
"translator": {
"values": "all",
"props": ["P655"]
},
"ignoredProps": {
"P2860": "Cites",
"P921": "Main subject",
"P3181": "OpenCitations bibliographic resource ID",
"P364": "Original language of work"
"type": "P31",
"version": "P348",
"volume": "P478",
"URL": {
"values": "any",
"props": ["P856", "P953", "P973", "P2699"]
}
}

@@ -13,5 +13,5 @@ "use strict";

var _api = require("./api");
var _api = require("./api.js");
var _id = require("./id");
var _id = require("./id.js");

@@ -18,0 +18,0 @@ const SIMPLIFY_OPTS = {

{
"name": "@citation-js/plugin-wikidata",
"version": "0.5.2",
"version": "0.5.3",
"description": "Plugin for Wikidata for Citation.js",

@@ -24,3 +24,3 @@ "keywords": [

"engines": {
"node": ">=8"
"node": ">=10"
},

@@ -35,3 +35,3 @@ "files": [

"dependencies": {
"@citation-js/date": "^0.4.4",
"@citation-js/date": "^0.5.0",
"@citation-js/name": "^0.4.2",

@@ -41,3 +41,3 @@ "wikidata-sdk": "7"

"devDependencies": {
"@citation-js/core": "^0.5.2"
"@citation-js/core": "^0.5.3"
},

@@ -47,3 +47,3 @@ "peerDependencies": {

},
"gitHead": "a902e8781abc685e8f99dbb9c5d35424bb02065c"
"gitHead": "665d4cd7983d85e6b8c1358c4ba6410f373b51d1"
}
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