@iebh/reflib 2.4.1 → 2.4.2

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.
@@ -7,7 +7,6 @@ import {formats} from '../lib/formats.js';
7
7
  */
8
8
  export function identifyFormat(path) {
9
9
  let ext = /^.*(?<ext>\..+?)$/.exec(path)?.groups.ext.toLowerCase();
10
- //console.log("Reflib-test:", ext);
11
10
  if (!ext) return null;
12
11
 
13
12
  return Object.values(formats).find(format => format.ext.includes(ext));
package/lib/readFile.js CHANGED
@@ -48,7 +48,7 @@ export function readFile(path, options) {
48
48
  }))
49
49
  }))
50
50
  .then(refs => {
51
- promiseEmitter.emitter.emit('end', { refsFound: refs.length })
51
+ promiseEmitter.emitter.emit('end', {refsFound: refs.length})
52
52
  return refs;
53
53
  })
54
54
 
package/modules/ris.js CHANGED
@@ -195,7 +195,7 @@ export let translations = {
195
195
  {rl: 'authors', raw: 'A4', sort: false, inputArray: true},
196
196
  {rl: 'abstract', raw: 'AB'},
197
197
  {rl: 'address', raw: 'AD'},
198
- {rl: 'accession', raw: 'AN'},
198
+ {rl: 'accessionNum', raw: 'AN'},
199
199
  {rl: 'authors', raw: 'AU', sort: 4, outputRepeat: true, inputArray: true},
200
200
  {rl: 'custom1', raw: 'C1'},
201
201
  {rl: 'custom2', raw: 'C2'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iebh/reflib",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Reference / Citation reference library utilities",
5
5
  "scripts": {
6
6
  "lint": "eslint .",