@retorquere/bibtex-parser 9.0.21 → 9.0.22
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/README.md +1 -1
- package/package.json +36 -18
- package/crossref.json +0 -186
- package/fields.json +0 -6938
- package/index.d.ts +0 -193
- package/index.js +0 -1191
- package/index.js.map +0 -1
- package/jabref.d.ts +0 -58
- package/jabref.js +0 -110
- package/jabref.js.map +0 -1
- package/merge.d.ts +0 -2
- package/merge.js +0 -11
- package/merge.js.map +0 -1
- package/prepositions.json +0 -88
- package/sentence-case.d.ts +0 -9
- package/sentence-case.js +0 -110
- package/sentence-case.js.map +0 -1
- package/tokenizer.d.ts +0 -13
- package/tokenizer.js +0 -167
- package/tokenizer.js.map +0 -1
- package/verbatim.d.ts +0 -66
- package/verbatim.js +0 -430
- package/verbatim.js.map +0 -1
- package/yield.d.ts +0 -2
- package/yield.js +0 -7
- package/yield.js.map +0 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ While parsing, the parser will apply markup for commands such as `\textbf`, `\te
|
|
|
8
8
|
|
|
9
9
|
BibTeX is a reference management program that makes it easy for users of TeX and LaTeX to generate bibliographies for books and journal articles. When possible, it is usually stylized in the TeX font the way TeX and LaTeX are. LaTeX was first created in 1985 by Leslie Lamport and Oren Patashnik.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Documentation is available at [https://retorque.re/bibtex-parser/](https://retorque.re/bibtex-parser/).
|
|
12
12
|
|
|
13
13
|
# 9.0 is a breaking change!
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,24 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@retorquere/bibtex-parser",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.22",
|
|
4
4
|
"description": "BibTeX parser",
|
|
5
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/cjs/index.js",
|
|
7
|
+
"module": "./dist/esm/index.js",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
|
+
"default": "./dist/esm/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/types/index.d.ts",
|
|
17
|
+
"default": "./dist/cjs/index.js"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
6
21
|
"typings": "./index.d.ts",
|
|
7
22
|
"scripts": {
|
|
8
23
|
"unified": "tsx unified.ts",
|
|
9
24
|
"lint": "dprint fmt *.ts && dprint check *.ts",
|
|
10
25
|
"prestart": "npm run lint",
|
|
11
|
-
"start": "npm run
|
|
12
|
-
"
|
|
26
|
+
"start": "npm run build",
|
|
27
|
+
"build:esm": "rm -rf dist/esm && esbuild *.ts --outdir=dist/esm --format=esm --sourcemap --target=es2020 --loader:.ts=ts",
|
|
28
|
+
"build:cjs": "rm -rf dist/cjs && esbuild *.ts --outdir=dist/cjs --format=cjs --sourcemap --target=node16 --loader:.ts=ts",
|
|
29
|
+
"build:types": "rm -rf dist/cjs dist/types && tsc -d -p tsconfig.cjs.json",
|
|
30
|
+
"build": "npm run build:types && npm run build:cjs && npm run build:esm",
|
|
13
31
|
"pretest": "npm start",
|
|
14
|
-
"test": "
|
|
15
|
-
"
|
|
16
|
-
"snap:big": "npm test --snapshot --big",
|
|
17
|
-
"minitest": "./build/crossref.py && tsc -d && node i.js",
|
|
32
|
+
"test": "node test/run.js",
|
|
33
|
+
"minitest": "./build/crossref.py && npm run build && node i.js",
|
|
18
34
|
"list": "tar tvf $(npm pack)",
|
|
19
35
|
"prepublishOnly": "npm start",
|
|
20
36
|
"abbr": "./build/abbr.py",
|
|
21
|
-
"preversion": "
|
|
37
|
+
"preversion": "npm run abbr && npm run test",
|
|
22
38
|
"postversion": "git push --follow-tags",
|
|
23
39
|
"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/",
|
|
24
40
|
"predocs": "npm start",
|
|
@@ -35,23 +51,25 @@
|
|
|
35
51
|
"author": "Emiliano Heyns",
|
|
36
52
|
"license": "ISC",
|
|
37
53
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^24.0
|
|
54
|
+
"@types/node": "^24.9.0",
|
|
39
55
|
"command-line-args": "^6.0.1",
|
|
40
|
-
"csv": "^6.4.
|
|
56
|
+
"csv": "^6.4.1",
|
|
41
57
|
"digital-tree": "^2.0.4",
|
|
42
|
-
"dprint": "^0.50.
|
|
58
|
+
"dprint": "^0.50.2",
|
|
43
59
|
"ejs": "^3.1.10",
|
|
44
|
-
"esbuild": "^0.25.
|
|
60
|
+
"esbuild": "^0.25.11",
|
|
45
61
|
"glob": "^11.0.3",
|
|
62
|
+
"js-yaml": "^4.1.0",
|
|
63
|
+
"minimist": "^1.2.8",
|
|
46
64
|
"mkdirp": "^3.0.1",
|
|
47
65
|
"node-fetch": "^3.3.2",
|
|
48
66
|
"piscina": "^5.1.3",
|
|
49
|
-
"slug": "^11.0.
|
|
50
|
-
"tap": "^21.1.
|
|
67
|
+
"slug": "^11.0.1",
|
|
68
|
+
"tap": "^21.1.1",
|
|
51
69
|
"ts-node": "^10.9.2",
|
|
52
70
|
"tslib": "^2.8.1",
|
|
53
|
-
"typedoc": "^0.28.
|
|
54
|
-
"typescript": "^5.
|
|
71
|
+
"typedoc": "^0.28.14",
|
|
72
|
+
"typescript": "^5.9.3"
|
|
55
73
|
},
|
|
56
74
|
"dependencies": {
|
|
57
75
|
"@unified-latex/unified-latex-util-pegjs": "^1.8.1",
|
|
@@ -62,7 +80,7 @@
|
|
|
62
80
|
"lodash.merge": "^4.6.2",
|
|
63
81
|
"moo": "^0.5.2",
|
|
64
82
|
"nearley": "^2.20.1",
|
|
65
|
-
"unicode2latex": "^
|
|
83
|
+
"unicode2latex": "^7.0.8",
|
|
66
84
|
"wink-eng-lite-web-model": "^1.8.1",
|
|
67
85
|
"wink-nlp": "^2.4.0"
|
|
68
86
|
},
|
package/crossref.json
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"*": {
|
|
3
|
-
"*": {
|
|
4
|
-
"verbb": "verba"
|
|
5
|
-
}
|
|
6
|
-
},
|
|
7
|
-
"article": {
|
|
8
|
-
"periodical": {
|
|
9
|
-
"journalsubtitle": "subtitle",
|
|
10
|
-
"journaltitle": "title"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"book": {
|
|
14
|
-
"mvbook": {
|
|
15
|
-
"mainsubtitle": "subtitle",
|
|
16
|
-
"maintitle": "title",
|
|
17
|
-
"maintitleaddon": "titleaddon"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"bookinbook": {
|
|
21
|
-
"book": {
|
|
22
|
-
"author": "author",
|
|
23
|
-
"bookauthor": "author",
|
|
24
|
-
"booksubtitle": "subtitle",
|
|
25
|
-
"booktitle": "title",
|
|
26
|
-
"booktitleaddon": "titleaddon"
|
|
27
|
-
},
|
|
28
|
-
"mvbook": {
|
|
29
|
-
"author": "author",
|
|
30
|
-
"bookauthor": "author",
|
|
31
|
-
"mainsubtitle": "subtitle",
|
|
32
|
-
"maintitle": "title",
|
|
33
|
-
"maintitleaddon": "titleaddon"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"collection": {
|
|
37
|
-
"mvcollection": {
|
|
38
|
-
"mainsubtitle": "subtitle",
|
|
39
|
-
"maintitle": "title",
|
|
40
|
-
"maintitleaddon": "titleaddon"
|
|
41
|
-
},
|
|
42
|
-
"mvreference": {
|
|
43
|
-
"mainsubtitle": "subtitle",
|
|
44
|
-
"maintitle": "title",
|
|
45
|
-
"maintitleaddon": "titleaddon"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"inbook": {
|
|
49
|
-
"*": {
|
|
50
|
-
"bookauthor": "author"
|
|
51
|
-
},
|
|
52
|
-
"book": {
|
|
53
|
-
"author": "author",
|
|
54
|
-
"bookauthor": "author",
|
|
55
|
-
"booksubtitle": "subtitle",
|
|
56
|
-
"booktitle": "title",
|
|
57
|
-
"booktitleaddon": "titleaddon"
|
|
58
|
-
},
|
|
59
|
-
"mvbook": {
|
|
60
|
-
"author": "author",
|
|
61
|
-
"bookauthor": "author",
|
|
62
|
-
"mainsubtitle": "subtitle",
|
|
63
|
-
"maintitle": "title",
|
|
64
|
-
"maintitleaddon": "titleaddon"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"incollection": {
|
|
68
|
-
"collection": {
|
|
69
|
-
"booksubtitle": "subtitle",
|
|
70
|
-
"booktitle": "title",
|
|
71
|
-
"booktitleaddon": "titleaddon"
|
|
72
|
-
},
|
|
73
|
-
"mvcollection": {
|
|
74
|
-
"mainsubtitle": "subtitle",
|
|
75
|
-
"maintitle": "title",
|
|
76
|
-
"maintitleaddon": "titleaddon"
|
|
77
|
-
},
|
|
78
|
-
"mvreference": {
|
|
79
|
-
"mainsubtitle": "subtitle",
|
|
80
|
-
"maintitle": "title",
|
|
81
|
-
"maintitleaddon": "titleaddon"
|
|
82
|
-
},
|
|
83
|
-
"reference": {
|
|
84
|
-
"booksubtitle": "subtitle",
|
|
85
|
-
"booktitle": "title",
|
|
86
|
-
"booktitleaddon": "titleaddon"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"inproceedings": {
|
|
90
|
-
"mvproceedings": {
|
|
91
|
-
"mainsubtitle": "subtitle",
|
|
92
|
-
"maintitle": "title",
|
|
93
|
-
"maintitleaddon": "titleaddon"
|
|
94
|
-
},
|
|
95
|
-
"proceedings": {
|
|
96
|
-
"booksubtitle": "subtitle",
|
|
97
|
-
"booktitle": "title",
|
|
98
|
-
"booktitleaddon": "titleaddon"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"inreference": {
|
|
102
|
-
"collection": {
|
|
103
|
-
"booksubtitle": "subtitle",
|
|
104
|
-
"booktitle": "title",
|
|
105
|
-
"booktitleaddon": "titleaddon"
|
|
106
|
-
},
|
|
107
|
-
"mvcollection": {
|
|
108
|
-
"mainsubtitle": "subtitle",
|
|
109
|
-
"maintitle": "title",
|
|
110
|
-
"maintitleaddon": "titleaddon"
|
|
111
|
-
},
|
|
112
|
-
"mvreference": {
|
|
113
|
-
"mainsubtitle": "subtitle",
|
|
114
|
-
"maintitle": "title",
|
|
115
|
-
"maintitleaddon": "titleaddon"
|
|
116
|
-
},
|
|
117
|
-
"reference": {
|
|
118
|
-
"booksubtitle": "subtitle",
|
|
119
|
-
"booktitle": "title",
|
|
120
|
-
"booktitleaddon": "titleaddon"
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"proceedings": {
|
|
124
|
-
"mvproceedings": {
|
|
125
|
-
"mainsubtitle": "subtitle",
|
|
126
|
-
"maintitle": "title",
|
|
127
|
-
"maintitleaddon": "titleaddon"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"reference": {
|
|
131
|
-
"mvcollection": {
|
|
132
|
-
"mainsubtitle": "subtitle",
|
|
133
|
-
"maintitle": "title",
|
|
134
|
-
"maintitleaddon": "titleaddon"
|
|
135
|
-
},
|
|
136
|
-
"mvreference": {
|
|
137
|
-
"mainsubtitle": "subtitle",
|
|
138
|
-
"maintitle": "title",
|
|
139
|
-
"maintitleaddon": "titleaddon"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
"suppbook": {
|
|
143
|
-
"book": {
|
|
144
|
-
"author": "author",
|
|
145
|
-
"bookauthor": "author",
|
|
146
|
-
"booksubtitle": "subtitle",
|
|
147
|
-
"booktitle": "title",
|
|
148
|
-
"booktitleaddon": "titleaddon"
|
|
149
|
-
},
|
|
150
|
-
"mvbook": {
|
|
151
|
-
"author": "author",
|
|
152
|
-
"bookauthor": "author",
|
|
153
|
-
"mainsubtitle": "subtitle",
|
|
154
|
-
"maintitle": "title",
|
|
155
|
-
"maintitleaddon": "titleaddon"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
"suppcollection": {
|
|
159
|
-
"collection": {
|
|
160
|
-
"booksubtitle": "subtitle",
|
|
161
|
-
"booktitle": "title",
|
|
162
|
-
"booktitleaddon": "titleaddon"
|
|
163
|
-
},
|
|
164
|
-
"mvcollection": {
|
|
165
|
-
"mainsubtitle": "subtitle",
|
|
166
|
-
"maintitle": "title",
|
|
167
|
-
"maintitleaddon": "titleaddon"
|
|
168
|
-
},
|
|
169
|
-
"mvreference": {
|
|
170
|
-
"mainsubtitle": "subtitle",
|
|
171
|
-
"maintitle": "title",
|
|
172
|
-
"maintitleaddon": "titleaddon"
|
|
173
|
-
},
|
|
174
|
-
"reference": {
|
|
175
|
-
"booksubtitle": "subtitle",
|
|
176
|
-
"booktitle": "title",
|
|
177
|
-
"booktitleaddon": "titleaddon"
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
"suppperiodical": {
|
|
181
|
-
"periodical": {
|
|
182
|
-
"journalsubtitle": "subtitle",
|
|
183
|
-
"journaltitle": "title"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|