@retorquere/bibtex-parser 13.0.2 → 13.0.3
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.
|
Binary file
|
package/dist/wasm/index.d.ts
CHANGED
|
@@ -193,8 +193,6 @@ export interface VerbatimLibrary {
|
|
|
193
193
|
errors: ParseError[];
|
|
194
194
|
/** Values from `@preamble` directives, in source order. */
|
|
195
195
|
preambles: string[];
|
|
196
|
-
/** JabRef metadata extracted from the library. */
|
|
197
|
-
jabref: JabRefMetadata;
|
|
198
196
|
}
|
|
199
197
|
/** Default language identifiers treated as English. */
|
|
200
198
|
export declare const english: string[];
|
package/dist/wasm/index.js
CHANGED
|
@@ -67,12 +67,12 @@ function withJabRef(result) {
|
|
|
67
67
|
*/
|
|
68
68
|
export function parseVerbatim(input, options = {}) {
|
|
69
69
|
const prepared = prepare(input, options);
|
|
70
|
-
return
|
|
70
|
+
return parseVerbatimWasm(prepared.input, prepared.options);
|
|
71
71
|
}
|
|
72
72
|
/** Asynchronous variant of {@link parseVerbatim}; yields while processing large inputs. */
|
|
73
73
|
export async function parseVerbatimAsync(input, options = {}) {
|
|
74
74
|
const prepared = prepare(input, options);
|
|
75
|
-
return
|
|
75
|
+
return await parseVerbatimAsyncWasm(prepared.input, prepared.options);
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* Parses BibTeX or BibLaTeX source into normalized entries and field values.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@retorquere/bibtex-parser",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.3",
|
|
4
4
|
"description": "BibTeX parser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/wasm/index.js",
|
|
@@ -39,11 +39,13 @@
|
|
|
39
39
|
"test:js": "node test/js.js",
|
|
40
40
|
"pretest:all": "npm run build:all",
|
|
41
41
|
"test:all": "npm run test:wasm && npm run test:js && node --test test/package.test.js",
|
|
42
|
+
"test:release": "npm run test:wasm && node --test test/package.test.js",
|
|
43
|
+
"test:rust": "cargo test --manifest-path rust/Cargo.toml",
|
|
42
44
|
"minitest": "./build/crossref.py && npm run build && node i.js",
|
|
43
45
|
"list": "tar tvf $(npm pack)",
|
|
44
|
-
"prepublishOnly": "npm run build:all && npm run test:
|
|
46
|
+
"prepublishOnly": "npm run build:all && npm run test:release",
|
|
45
47
|
"abbr": "./build/abbr.py",
|
|
46
|
-
"preversion": "npm run abbr && npm run test:
|
|
48
|
+
"preversion": "npm run abbr && npm run test:release",
|
|
47
49
|
"postversion": "git push --follow-tags",
|
|
48
50
|
"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/",
|
|
49
51
|
"predocs": "npm run build:all",
|