@retorquere/bibtex-parser 12.1.9 → 12.1.10
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.
|
@@ -38,8 +38,8 @@ export interface InitOutput {
|
|
|
38
38
|
readonly start: () => void;
|
|
39
39
|
readonly toSentenceCase: (a: number, b: number, c: number) => [number, number, number, number];
|
|
40
40
|
readonly tokenize: (a: number, b: number) => [number, number, number];
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
41
|
+
readonly wasm_bindgen_27e16af4bbf8dd6f___convert__closures_____invoke___js_sys_8149d826ad841366___Function_fn_wasm_bindgen_27e16af4bbf8dd6f___JsValue_____wasm_bindgen_27e16af4bbf8dd6f___sys__Undefined___js_sys_8149d826ad841366___Function_fn_wasm_bindgen_27e16af4bbf8dd6f___JsValue_____wasm_bindgen_27e16af4bbf8dd6f___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
42
|
+
readonly wasm_bindgen_27e16af4bbf8dd6f___convert__closures_____invoke___wasm_bindgen_27e16af4bbf8dd6f___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_27e16af4bbf8dd6f___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
43
43
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
44
44
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
45
45
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -312,7 +312,7 @@ function __wbg_get_imports() {
|
|
|
312
312
|
const a = state0.a;
|
|
313
313
|
state0.a = 0;
|
|
314
314
|
try {
|
|
315
|
-
return
|
|
315
|
+
return wasm_bindgen_27e16af4bbf8dd6f___convert__closures_____invoke___js_sys_8149d826ad841366___Function_fn_wasm_bindgen_27e16af4bbf8dd6f___JsValue_____wasm_bindgen_27e16af4bbf8dd6f___sys__Undefined___js_sys_8149d826ad841366___Function_fn_wasm_bindgen_27e16af4bbf8dd6f___JsValue_____wasm_bindgen_27e16af4bbf8dd6f___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
316
316
|
} finally {
|
|
317
317
|
state0.a = a;
|
|
318
318
|
}
|
|
@@ -392,7 +392,7 @@ function __wbg_get_imports() {
|
|
|
392
392
|
},
|
|
393
393
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
394
394
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 85, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
395
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
395
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_27e16af4bbf8dd6f___convert__closures_____invoke___wasm_bindgen_27e16af4bbf8dd6f___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_27e16af4bbf8dd6f___JsError___true_);
|
|
396
396
|
return ret;
|
|
397
397
|
},
|
|
398
398
|
__wbindgen_generic_0000000000000002: function(arg0) {
|
|
@@ -432,15 +432,15 @@ function __wbg_get_imports() {
|
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
function
|
|
436
|
-
const ret = wasm.
|
|
435
|
+
function wasm_bindgen_27e16af4bbf8dd6f___convert__closures_____invoke___wasm_bindgen_27e16af4bbf8dd6f___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_27e16af4bbf8dd6f___JsError___true_(arg0, arg1, arg2) {
|
|
436
|
+
const ret = wasm.wasm_bindgen_27e16af4bbf8dd6f___convert__closures_____invoke___wasm_bindgen_27e16af4bbf8dd6f___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_27e16af4bbf8dd6f___JsError___true_(arg0, arg1, arg2);
|
|
437
437
|
if (ret[1]) {
|
|
438
438
|
throw takeFromExternrefTable0(ret[0]);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
function
|
|
443
|
-
wasm.
|
|
442
|
+
function wasm_bindgen_27e16af4bbf8dd6f___convert__closures_____invoke___js_sys_8149d826ad841366___Function_fn_wasm_bindgen_27e16af4bbf8dd6f___JsValue_____wasm_bindgen_27e16af4bbf8dd6f___sys__Undefined___js_sys_8149d826ad841366___Function_fn_wasm_bindgen_27e16af4bbf8dd6f___JsValue_____wasm_bindgen_27e16af4bbf8dd6f___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
443
|
+
wasm.wasm_bindgen_27e16af4bbf8dd6f___convert__closures_____invoke___js_sys_8149d826ad841366___Function_fn_wasm_bindgen_27e16af4bbf8dd6f___JsValue_____wasm_bindgen_27e16af4bbf8dd6f___sys__Undefined___js_sys_8149d826ad841366___Function_fn_wasm_bindgen_27e16af4bbf8dd6f___JsValue_____wasm_bindgen_27e16af4bbf8dd6f___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
function addToExternrefTable0(obj) {
|
|
Binary file
|
|
@@ -8,8 +8,8 @@ export const parseVerbatimAsync: (a: number, b: number, c: number) => any;
|
|
|
8
8
|
export const start: () => void;
|
|
9
9
|
export const toSentenceCase: (a: number, b: number, c: number) => [number, number, number, number];
|
|
10
10
|
export const tokenize: (a: number, b: number) => [number, number, number];
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
11
|
+
export const wasm_bindgen_27e16af4bbf8dd6f___convert__closures_____invoke___js_sys_8149d826ad841366___Function_fn_wasm_bindgen_27e16af4bbf8dd6f___JsValue_____wasm_bindgen_27e16af4bbf8dd6f___sys__Undefined___js_sys_8149d826ad841366___Function_fn_wasm_bindgen_27e16af4bbf8dd6f___JsValue_____wasm_bindgen_27e16af4bbf8dd6f___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
12
|
+
export const wasm_bindgen_27e16af4bbf8dd6f___convert__closures_____invoke___wasm_bindgen_27e16af4bbf8dd6f___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_27e16af4bbf8dd6f___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
13
13
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
14
14
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
15
15
|
export const __wbindgen_exn_store: (a: number) => void;
|
package/dist/wasm/index.d.ts
CHANGED
|
@@ -18,11 +18,36 @@ export interface Creator {
|
|
|
18
18
|
juniorcomma?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export type FieldValue = string | string[] | Creator[];
|
|
21
|
+
export type CreatorFields = {
|
|
22
|
+
author?: Creator[];
|
|
23
|
+
bookauthor?: Creator[];
|
|
24
|
+
collaborator?: Creator[];
|
|
25
|
+
commentator?: Creator[];
|
|
26
|
+
director?: Creator[];
|
|
27
|
+
editor?: Creator[];
|
|
28
|
+
editora?: Creator[];
|
|
29
|
+
editorb?: Creator[];
|
|
30
|
+
editors?: Creator[];
|
|
31
|
+
holder?: Creator[];
|
|
32
|
+
scriptwriter?: Creator[];
|
|
33
|
+
translator?: Creator[];
|
|
34
|
+
};
|
|
35
|
+
export type ArrayFields = {
|
|
36
|
+
keywords?: string[];
|
|
37
|
+
institution?: string[];
|
|
38
|
+
publisher?: string[];
|
|
39
|
+
origpublisher?: string[];
|
|
40
|
+
organization?: string[];
|
|
41
|
+
location?: string[];
|
|
42
|
+
origlocation?: string[];
|
|
43
|
+
};
|
|
44
|
+
export type TypedFields = CreatorFields & ArrayFields;
|
|
45
|
+
export type Fields = TypedFields & Omit<Record<string, string>, keyof TypedFields>;
|
|
21
46
|
/** A normalized BibTeX entry returned by the parser. */
|
|
22
47
|
export interface Entry {
|
|
23
48
|
type: string;
|
|
24
49
|
key: string;
|
|
25
|
-
fields:
|
|
50
|
+
fields: Fields;
|
|
26
51
|
mode: Record<string, ParseMode>;
|
|
27
52
|
crossref?: Record<string, {
|
|
28
53
|
parent: string;
|