@retorquere/bibtex-parser 6.0.0 → 6.1.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.
package/index.js CHANGED
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.jabref = exports.chunker = exports.promises = exports.ast = exports.parse = exports.fields = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /* eslint-disable @typescript-eslint/no-unsafe-argument */
6
- const bibtex = (0, tslib_1.__importStar)(require("./grammar"));
7
- const chunker = (0, tslib_1.__importStar)(require("./chunker"));
6
+ const bibtex = tslib_1.__importStar(require("./grammar"));
7
+ const chunker = tslib_1.__importStar(require("./chunker"));
8
8
  const jabref_1 = require("./jabref");
9
9
  const unicode2latex_1 = require("unicode2latex");
10
- const crossref_json_1 = (0, tslib_1.__importDefault)(require("./crossref.json"));
10
+ const crossref_json_1 = tslib_1.__importDefault(require("./crossref.json"));
11
11
  class ParserError extends Error {
12
12
  constructor(message, node) {
13
13
  super(message); // 'Error' breaks prototype chain here
@@ -203,7 +203,7 @@ class Parser {
203
203
  smallCaps: { open: '<span style="font-variant:small-caps;">', close: '</span>' },
204
204
  caseProtect: { open: '<span class="nocase">', close: '</span>' },
205
205
  roman: { open: '', close: '' },
206
- fixedWidth: { open: '', close: '' },
206
+ fixedWidth: { open: '<tt>', close: '</tt>' },
207
207
  };
208
208
  // patch in because the options will likely not have enquote and case-protect
209
209
  for (const [markup, { open, close }] of Object.entries(markup_defaults)) {
@@ -1437,6 +1437,6 @@ exports.promises = {
1437
1437
  return await parser.parseAsync(input);
1438
1438
  },
1439
1439
  };
1440
- exports.chunker = (0, tslib_1.__importStar)(require("./chunker"));
1441
- exports.jabref = (0, tslib_1.__importStar)(require("./jabref"));
1440
+ exports.chunker = tslib_1.__importStar(require("./chunker"));
1441
+ exports.jabref = tslib_1.__importStar(require("./jabref"));
1442
1442
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@retorquere/bibtex-parser",
3
- "version": "6.0.0",
3
+ "version": "6.1.2",
4
4
  "description": "BibTeX parser",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "check-env": "node -e 'console.log(process.env)' | grep npm",
8
7
  "lint": "eslint . --ext .ts --cache --cache-location .eslintcache/",
9
8
  "prestart": "npm run lint && peggy grammar.peggy",
10
9
  "start": "tsc -d",
11
10
  "poststart": "npm run docs",
12
11
  "pretest": "npm start",
13
- "test": "node test/jest",
14
- "presnap": "npm start",
15
- "snap": "node test/jest --updateSnapshot",
12
+ "test": "./test/tap",
13
+ "snap": "npm test --snapshot",
14
+ "snap:big": "npm test --snapshot --big",
16
15
  "minitest": "peggy grammar.peggy && tsc -d && node i.js",
17
16
  "list": "tar tvf $(npm pack)",
18
17
  "prepublishOnly": "npm start",
@@ -21,8 +20,7 @@
21
20
  "postversion": "git push --follow-tags",
22
21
  "update-cases": "curl -s https://raw.githubusercontent.com/retorquere/zotero-better-bibtex/master/test/loaded.json | jq -r '.[] | select(test(\"\\\\.bib((la)?tex)?$\"))' | rsync -av --delete -m --files-from=- ../better-bibtex/test/fixtures/ test/better-bibtex/",
23
22
  "docs": "rm -rf docs && typedoc --name 'BibTeX parser' index.ts && touch docs/.nojekyll",
24
- "prencu": "git submodule update --init --recursive --remote && git submodule foreach git reset --hard && git submodule foreach git checkout master && git submodule foreach git pull origin master && git add abbrv.jabref.org",
25
- "ncu": "ncu -u && npm i && git add package.json package-lock.json && git commit -m ncu"
23
+ "ncu": "./build/submodules.py && ncu -u && npm i && git add package.json package-lock.json && npm audit fix && git commit -m ncu"
26
24
  },
27
25
  "repository": {
28
26
  "type": "git",
@@ -34,30 +32,30 @@
34
32
  "author": "Emiliano Heyns",
35
33
  "license": "ISC",
36
34
  "devDependencies": {
37
- "@types/node": "^16.11.10",
38
- "@typescript-eslint/eslint-plugin": "^5.4.0",
39
- "@typescript-eslint/parser": "^5.4.0",
40
- "command-line-args": "^5.2.0",
41
- "csv": "^6.0.4",
35
+ "@types/node": "^17.0.21",
36
+ "@typescript-eslint/eslint-plugin": "^5.14.0",
37
+ "@typescript-eslint/parser": "^5.14.0",
38
+ "command-line-args": "^5.2.1",
39
+ "csv": "^6.0.5",
42
40
  "digital-tree": "^2.0.3",
43
41
  "ejs": "^3.1.6",
44
- "eslint": "^8.3.0",
45
- "eslint-plugin-import": "^2.25.3",
42
+ "eslint": "^8.10.0",
43
+ "eslint-plugin-import": "^2.25.4",
46
44
  "eslint-plugin-prefer-arrow": "^1.2.3",
47
- "jest": "^27.3.1",
48
- "jest-cli": "^27.3.1",
49
- "jest-specific-snapshot": "^5.0.0",
45
+ "glob": "^7.2.0",
50
46
  "mkdirp": "^1.0.4",
51
- "node-fetch": "^3.1.0",
47
+ "node-fetch": "^3.2.2",
52
48
  "peggy": "^1.2.0",
53
- "slug": "^5.1.0",
54
- "ts-node": "^10.4.0",
49
+ "piscina": "^3.2.0",
50
+ "slug": "^5.3.0",
51
+ "tap": "^16.0.0",
52
+ "ts-node": "^10.7.0",
55
53
  "tslib": "^2.3.1",
56
- "typedoc": "^0.22.9",
57
- "typescript": "^4.5.2"
54
+ "typedoc": "^0.22.13",
55
+ "typescript": "^4.6.2"
58
56
  },
59
57
  "dependencies": {
60
- "unicode2latex": "^2.1.36",
58
+ "unicode2latex": "^3.0.0",
61
59
  "xregexp": "^5.1.0"
62
60
  },
63
61
  "files": [
package/unabbrev.json CHANGED
@@ -11803,6 +11803,7 @@
11803
11803
  "AYASOFYAM\u00dcZYIL": "ayasofia m\u00fczesi y\u0131ll\u0131\u011f\u0131. annual of ayasofya museum",
11804
11804
  "AZ": "A/Z : ITU journal of Faculty of Architecture",
11805
11805
  "AZANIA": "Azania-archaeological Research in Africa",
11806
+ "AZANIA-ARCHAEOL. RES. AFR.": "Azania-Archaeological Research in Africa",
11806
11807
  "AZANIA.": "Azania-archaeological Research in Africa",
11807
11808
  "AZERB. J. MATH.": "Azerbaijan Journal of Mathematics",
11808
11809
  "AZERB. KHIM. ZH.": "Azerbaidzhanskii Khimicheskii Zhurnal",
@@ -66014,7 +66015,6 @@
66014
66015
  "MODEL. SIMUL. SCI. ENG.": "Transport Phenomena and Kinetic Theory",
66015
66016
  "MODEL. SIMUL. SCI. ENG. TECHNOL.": "Modeling and Simulation in Science, Engineering, & Technology",
66016
66017
  "MODELL. MEAS. CONTROL C": "Modelling Measurement & Control C",
66017
- "MODELLING SIMUL. MATER. SCI. ENG.": "Modelling and Simulation in Materials Science and Engineering",
66018
66018
  "MODELLING SIMULATION": "Proceedings of The Second International Conference On Modelling and Simulation (icms2009), Vol 8",
66019
66019
  "MODELLING SIMULATION.": "Modelling and Simulation-world Academic Union",
66020
66020
  "MODERN ACOUST. SIGNAL PROCESS.": "Modern Acoustics and Signal Processing",
@@ -77447,7 +77447,7 @@
77447
77447
  "PROC. R. SOC. LONDON": "Proceedings of the Royal Society of London",
77448
77448
  "PROC. R. SOC. LONDON A - MATH PHYS. SCI.": "Proceedings of the Royal Society of London. Series A - Mathematical and Physical Sciences",
77449
77449
  "PROC. R. SOC. LONDON A.": "Proceedings of the Royal Society of London. Series A, Containing Papers of a Mathematical and Physical Character",
77450
- "PROC. R. SOC. LONDON B": "Proceedings of the Royal Society of London. Series B",
77450
+ "PROC. R. SOC. LONDON B": "Proceedings of the Royal Society B-Biological Sciences",
77451
77451
  "PROC. R. SOC. LONDON, SER. A": "Proceedings of the Royal Society of London Series A",
77452
77452
  "PROC. R. SOC. LONDON, SER. A.": "Proceedings of the Royal Society of London. Series A",
77453
77453
  "PROC. R. SOC. LONDON, SER. A: MATH. PHYS. SCI.": "Proceedings of the Royal Society of London, Series A: Mathematical and Physical Sciences",
@@ -85389,6 +85389,7 @@
85389
85389
  "S. AFR. ARCHAEOL. BULL.": "South African Archaeological Bulletin",
85390
85390
  "S. AFR. GEOGR. J.": "South African Geographical Journal",
85391
85391
  "S. AFR. HIST. J.": "Suid-afrikaanse Historiese Joernaal-south African Historical Journal",
85392
+ "S. AFR. HUMANIT.": "South African Humanities",
85392
85393
  "S. AFR. J. ANIM. SCI.": "South African Journal of Animal Science-suid-afrikaanse Tydskrif Vir Veekunde",
85393
85394
  "S. AFR. J. BOT.": "South African Journal of Botany-suid-afrikaanse Tydskrif Vir Plantkunde",
85394
85395
  "S. AFR. J. BUS. MANAG.": "South African Journal of Business Management",