@retorquere/bibtex-parser 13.0.1 → 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.
@@ -381,7 +381,7 @@ function __wbg_get_imports() {
381
381
  return ret;
382
382
  },
383
383
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
384
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 87, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
384
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 92, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
385
385
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7c27bb0bb2b93bf___convert__closures_____invoke___wasm_bindgen_7c27bb0bb2b93bf___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_7c27bb0bb2b93bf___JsError___true_);
386
386
  return ret;
387
387
  },
Binary file
@@ -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[];
@@ -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 withJabRef(parseVerbatimWasm(prepared.input, prepared.options));
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 withJabRef(await parseVerbatimAsyncWasm(prepared.input, prepared.options));
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.1",
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:all",
46
+ "prepublishOnly": "npm run build:all && npm run test:release",
45
47
  "abbr": "./build/abbr.py",
46
- "preversion": "npm run abbr && npm run test:all",
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",