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

astrocite-bibtex

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astrocite-bibtex - npm Package Compare versions

Comparing version 0.16.2 to 0.16.3

2

lib/constants.js

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

['note', 'note'],
['number', 'number'],
['issue', 'issue'],
['organization', 'publisher'],

@@ -44,0 +44,0 @@ ['pages', 'page'],

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

var parseEntry = function (node, macros) {
var e_2, _a, _b, _c;
var e_2, _a, _b, _c, _d;
var entry = {

@@ -135,8 +135,9 @@ id: node.id,

var date = curriedDate();
var keys = node.properties.map(function (property) { return property.key; });
try {
for (var _d = __values(node.properties), _e = _d.next(); !_e.done; _e = _d.next()) {
var property = _e.value;
for (var _e = __values(node.properties), _f = _e.next(); !_f.done; _f = _e.next()) {
var property = _f.value;
switch (property.key) {
case 'year':
case 'month':
case 'month': {
date = date({

@@ -147,4 +148,5 @@ kind: property.key,

break;
}
case 'author':
case 'editor':
case 'editor': {
entry = __assign(__assign({}, entry), (_b = {}, _b[property.key] = parseValue(property.value, macros)

@@ -155,7 +157,16 @@ .split(/ and (?:others)?/g)

break;
default:
}
case 'number': {
// map "number" to "issue" unless there's an "issue" field
var field = keys.includes('issue') ? 'number' : 'issue';
entry = __assign(__assign({}, entry), (_c = {}, _c[field] = parseValue(property.value, macros), _c));
break;
}
default: {
var field = constants_1.FIELD_MAP.get(property.key);
if (field) {
entry = __assign(__assign({}, entry), (_c = {}, _c[field] = parseValue(property.value, macros), _c));
entry = __assign(__assign({}, entry), (_d = {}, _d[field] = parseValue(property.value, macros), _d));
}
break;
}
}

@@ -167,3 +178,3 @@ }

try {
if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
}

@@ -170,0 +181,0 @@ finally { if (e_2) throw e_2.error; }

{
"name": "astrocite-bibtex",
"version": "0.16.2",
"version": "0.16.3",
"description": "Parser and AST for converting BibTeX to CSL JSON",

@@ -27,3 +27,3 @@ "license": "MIT",

},
"gitHead": "baa27c2916eb8a8a716a74985dc6546d4fa127b9"
"gitHead": "cd17414b7a19a66d0393561320c69b20298d3cd0"
}
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