@citation-js/core
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -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" | ||
} |
144585
4023