@citation-js/plugin-bibtex
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -312,3 +312,3 @@ import { util } from '@citation-js/core'; | ||
}, { | ||
source: ['year', 'month'], | ||
source: ['year', 'month', 'day'], | ||
target: 'issued', | ||
@@ -315,0 +315,0 @@ convert: Converters.YEAR_MONTH, |
@@ -94,3 +94,3 @@ import { util } from '@citation-js/core'; | ||
}, { | ||
source: ['year', 'month'], | ||
source: ['year', 'month', 'day'], | ||
target: 'issued', | ||
@@ -97,0 +97,0 @@ convert: Converters.YEAR_MONTH |
@@ -182,3 +182,3 @@ import { util } from '@citation-js/core'; | ||
YEAR_MONTH: { | ||
toTarget(year, month) { | ||
toTarget(year, month, day) { | ||
if (isNaN(+year)) { | ||
@@ -188,2 +188,6 @@ return { | ||
}; | ||
} else if (!isNaN(+day) && !isNaN(+month)) { | ||
return { | ||
'date-parts': [[+year, +month, +day]] | ||
}; | ||
} else { | ||
@@ -190,0 +194,0 @@ return { |
@@ -326,3 +326,3 @@ "use strict"; | ||
}, { | ||
source: ['year', 'month'], | ||
source: ['year', 'month', 'day'], | ||
target: 'issued', | ||
@@ -329,0 +329,0 @@ convert: _shared.Converters.YEAR_MONTH, |
@@ -107,3 +107,3 @@ "use strict"; | ||
}, { | ||
source: ['year', 'month'], | ||
source: ['year', 'month', 'day'], | ||
target: 'issued', | ||
@@ -110,0 +110,0 @@ convert: _shared.Converters.YEAR_MONTH |
@@ -205,3 +205,3 @@ "use strict"; | ||
YEAR_MONTH: { | ||
toTarget(year, month) { | ||
toTarget(year, month, day) { | ||
if (isNaN(+year)) { | ||
@@ -211,2 +211,6 @@ return { | ||
}; | ||
} else if (!isNaN(+day) && !isNaN(+month)) { | ||
return { | ||
'date-parts': [[+year, +month, +day]] | ||
}; | ||
} else { | ||
@@ -213,0 +217,0 @@ return { |
{ | ||
"name": "@citation-js/plugin-bibtex", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Plugin for BibTeX formats for Citation.js", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@citation-js/core": "^0.5.1" | ||
"@citation-js/core": "^0.5.2" | ||
}, | ||
@@ -46,3 +46,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "3f3eee0813c7d578a454c34e402fa342d0693cfa" | ||
"gitHead": "a902e8781abc685e8f99dbb9c5d35424bb02065c" | ||
} |
170962
5273