@retorquere/bibtex-parser 6.0.1 → 6.1.0

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.
Files changed (3) hide show
  1. package/grammar.js +1 -0
  2. package/index.js +1 -1
  3. package/package.json +10 -11
package/grammar.js CHANGED
@@ -4298,6 +4298,7 @@ function peg$parse(input, options) {
4298
4298
  scshape: 'smallCaps',
4299
4299
 
4300
4300
  tt: 'fixedWidth',
4301
+ texttt: 'fixedWidth',
4301
4302
  rm: 'roman',
4302
4303
  sf: 'sansSerif',
4303
4304
  verb: 'verbatim',
package/index.js CHANGED
@@ -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)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retorquere/bibtex-parser",
3
- "version": "6.0.1",
3
+ "version": "6.1.0",
4
4
  "description": "BibTeX parser",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,8 +21,7 @@
21
21
  "postversion": "git push --follow-tags",
22
22
  "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
23
  "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"
24
+ "ncu": "./build/submodules.py && ncu -u && npm i && git add package.json package-lock.json && git commit -m ncu"
26
25
  },
27
26
  "repository": {
28
27
  "type": "git",
@@ -34,18 +33,18 @@
34
33
  "author": "Emiliano Heyns",
35
34
  "license": "ISC",
36
35
  "devDependencies": {
37
- "@types/node": "^16.11.10",
38
- "@typescript-eslint/eslint-plugin": "^5.4.0",
39
- "@typescript-eslint/parser": "^5.4.0",
36
+ "@types/node": "^16.11.12",
37
+ "@typescript-eslint/eslint-plugin": "^5.6.0",
38
+ "@typescript-eslint/parser": "^5.6.0",
40
39
  "command-line-args": "^5.2.0",
41
40
  "csv": "^6.0.4",
42
41
  "digital-tree": "^2.0.3",
43
42
  "ejs": "^3.1.6",
44
- "eslint": "^8.3.0",
43
+ "eslint": "^8.4.1",
45
44
  "eslint-plugin-import": "^2.25.3",
46
45
  "eslint-plugin-prefer-arrow": "^1.2.3",
47
- "jest": "^27.3.1",
48
- "jest-cli": "^27.3.1",
46
+ "jest": "^27.4.4",
47
+ "jest-cli": "^27.4.4",
49
48
  "jest-specific-snapshot": "^5.0.0",
50
49
  "mkdirp": "^1.0.4",
51
50
  "node-fetch": "^3.1.0",
@@ -53,8 +52,8 @@
53
52
  "slug": "^5.1.0",
54
53
  "ts-node": "^10.4.0",
55
54
  "tslib": "^2.3.1",
56
- "typedoc": "^0.22.9",
57
- "typescript": "^4.5.2"
55
+ "typedoc": "^0.22.10",
56
+ "typescript": "^4.5.3"
58
57
  },
59
58
  "dependencies": {
60
59
  "unicode2latex": "^2.1.36",