UNPKG

@citation-js/plugin-zotero-translation-server

Version:
20 lines (15 loc) 505 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _config = _interopRequireDefault(require("./config")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _default(type, body, format) { if (typeof _config.default.host !== 'string') { throw new Error('No host configured'); } return [_config.default.host + '/' + type + (format ? '?format=' + format : ''), { body }]; }