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

@citation-js/core

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@citation-js/core - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

9

lib-mjs/plugins/input/parser.js

@@ -104,3 +104,3 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

props,
match = 'every',
match,
value

@@ -111,5 +111,2 @@ }) => {

switch (match) {
case 'every':
return input => props.every(prop => prop in input && (!value || value(input[prop])));
case 'any':

@@ -121,2 +118,6 @@ case 'some':

return input => !props.some(prop => prop in input && (!value || value(input[prop])));
case 'every':
default:
return input => props.every(prop => prop in input && (!value || value(input[prop])));
}

@@ -123,0 +124,0 @@ });

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

props,
match = 'every',
match,
value

@@ -118,5 +118,2 @@ }) => {

switch (match) {
case 'every':
return input => props.every(prop => prop in input && (!value || value(input[prop])));
case 'any':

@@ -128,2 +125,6 @@ case 'some':

return input => !props.some(prop => prop in input && (!value || value(input[prop])));
case 'every':
default:
return input => props.every(prop => prop in input && (!value || value(input[prop])));
}

@@ -130,0 +131,0 @@ });

{
"name": "@citation-js/core",
"version": "0.5.1",
"version": "0.5.2",
"description": "Convert different bibliographic metadata sources",

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

},
"gitHead": "3f3eee0813c7d578a454c34e402fa342d0693cfa"
"gitHead": "a902e8781abc685e8f99dbb9c5d35424bb02065c"
}
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