citation-js 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/citation.js +3 -5
- package/build/citation.min.js +1 -1
- package/package.json +3 -3
package/build/citation.js
CHANGED
|
@@ -9176,8 +9176,7 @@ function bibliography(data) {
|
|
|
9176
9176
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9177
9177
|
var _options$template = options.template,
|
|
9178
9178
|
template = _options$template === void 0 ? 'apa' : _options$template,
|
|
9179
|
-
|
|
9180
|
-
lang = _options$lang === void 0 ? 'en-US' : _options$lang,
|
|
9179
|
+
lang = options.lang,
|
|
9181
9180
|
_options$format = options.format,
|
|
9182
9181
|
format = _options$format === void 0 ? 'text' : _options$format,
|
|
9183
9182
|
_options$nosort = options.nosort,
|
|
@@ -9251,8 +9250,7 @@ function citation(data) {
|
|
|
9251
9250
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9252
9251
|
var _options$template = options.template,
|
|
9253
9252
|
template = _options$template === void 0 ? 'apa' : _options$template,
|
|
9254
|
-
|
|
9255
|
-
lang = _options$lang === void 0 ? 'en-US' : _options$lang,
|
|
9253
|
+
lang = options.lang,
|
|
9256
9254
|
_options$format = options.format,
|
|
9257
9255
|
format = _options$format === void 0 ? 'text' : _options$format;
|
|
9258
9256
|
var ids = data.map(function (_ref) {
|
|
@@ -9386,7 +9384,7 @@ var prepareEngine = function prepareEngine(data, templateName, language, format)
|
|
|
9386
9384
|
|
|
9387
9385
|
var template = _styles.templates.get(_styles.templates.has(templateName) ? templateName : 'apa');
|
|
9388
9386
|
|
|
9389
|
-
language = _locales.locales.has(language) ? language :
|
|
9387
|
+
language = _locales.locales.has(language) ? language : undefined;
|
|
9390
9388
|
|
|
9391
9389
|
var callback = function callback(key) {
|
|
9392
9390
|
if (Object.prototype.hasOwnProperty.call(items, key)) {
|