| ; | |
| var _core = require("@citation-js/core"); | |
| var _config = _interopRequireDefault(require("./config.json")); | |
| var _ris = require("./ris.js"); | |
| function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | |
| const oldProps = ['A1', 'AV', 'BT', 'CP', 'ED', 'EP', 'ID', 'J1', 'JA', 'JF', 'JO', 'L2', 'L3', 'N2', 'T1', 'U1', 'U2', 'U3', 'U4', 'U5', 'U6', 'Y1']; | |
| const newProps = ['A4', 'AD', 'AN', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'CA', 'CN', 'DA', 'DB', 'DO', 'DP', 'ET', 'LA', 'LB', 'NV', 'OP', 'PY', 'RI', 'RN', 'SE', 'ST', 'SV', 'TA', 'TT']; | |
| _core.plugins.add('@ris', { | |
| input: { | |
| '@ris/file': { | |
| parse: _ris.parse, | |
| parseType: { | |
| dataType: 'String', | |
| predicate: /^TY {2}- /m | |
| } | |
| }, | |
| '@ris/record': { | |
| parse: _ris.parseMixed, | |
| parseType: { | |
| dataType: 'SimpleObject', | |
| propertyConstraint: { | |
| props: ['TY'] | |
| } | |
| } | |
| }, | |
| '@ris/new+record': { | |
| parse: _ris.parseNew, | |
| parseType: { | |
| extends: '@ris/record', | |
| propertyConstraint: [{ | |
| props: newProps, | |
| match: 'some' | |
| }, { | |
| props: oldProps, | |
| match: 'none' | |
| }] | |
| } | |
| }, | |
| '@ris/old+record': { | |
| parse: _ris.parseOld, | |
| parseType: { | |
| extends: '@ris/record', | |
| propertyConstraint: [{ | |
| props: oldProps, | |
| match: 'some' | |
| }, { | |
| props: newProps, | |
| match: 'none' | |
| }] | |
| } | |
| } | |
| }, | |
| config: _config.default, | |
| output: { | |
| ris: _ris.format | |
| } | |
| }); |
Xet Storage Details
- Size:
- 1.57 kB
- Xet hash:
- 2505f0223be73f66aedcc9e153ddaa828c8388ea4d0b4c20db8b5df5c35a86ee
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.