@retorquere/bibtex-parser 13.0.5 → 13.0.7
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.
|
@@ -235,16 +235,6 @@ function __wbg_get_imports() {
|
|
|
235
235
|
const ret = result;
|
|
236
236
|
return ret;
|
|
237
237
|
},
|
|
238
|
-
__wbg_instanceof_Map_b2611749102d7ba3: function(arg0) {
|
|
239
|
-
let result;
|
|
240
|
-
try {
|
|
241
|
-
result = arg0 instanceof Map;
|
|
242
|
-
} catch (_) {
|
|
243
|
-
result = false;
|
|
244
|
-
}
|
|
245
|
-
const ret = result;
|
|
246
|
-
return ret;
|
|
247
|
-
},
|
|
248
238
|
__wbg_instanceof_Uint8Array_828cef2aaacafc31: function(arg0) {
|
|
249
239
|
let result;
|
|
250
240
|
try {
|
|
@@ -381,7 +371,7 @@ function __wbg_get_imports() {
|
|
|
381
371
|
return ret;
|
|
382
372
|
},
|
|
383
373
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
384
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
374
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 90, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
385
375
|
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
376
|
return ret;
|
|
387
377
|
},
|
|
Binary file
|
package/dist/wasm/index.d.ts
CHANGED
|
@@ -56,11 +56,30 @@ export interface Creator {
|
|
|
56
56
|
/** Whether the source separated the suffix from the name with a comma. */
|
|
57
57
|
juniorcomma?: boolean;
|
|
58
58
|
}
|
|
59
|
-
/**
|
|
60
|
-
export type
|
|
59
|
+
/** Value text in a Biber annotation clause. */
|
|
60
|
+
export type AnnotationContent = string | string[];
|
|
61
|
+
/** One Biber annotation clause with its explicit scope and one-based selector. */
|
|
62
|
+
export type Annotation = {
|
|
63
|
+
scope: 'field';
|
|
64
|
+
value: AnnotationContent;
|
|
65
|
+
} | {
|
|
66
|
+
scope: 'item';
|
|
67
|
+
index: number;
|
|
68
|
+
value: AnnotationContent;
|
|
69
|
+
} | {
|
|
70
|
+
scope: 'part';
|
|
71
|
+
index: number;
|
|
72
|
+
name: string;
|
|
73
|
+
value: AnnotationContent;
|
|
74
|
+
};
|
|
75
|
+
/** A normalized field value, including parsed creators and structured Biber annotations. */
|
|
76
|
+
export type OptionMap = Record<string, string>;
|
|
77
|
+
export type FieldValue = string | string[] | Creator[] | Annotation[] | OptionMap;
|
|
61
78
|
/** Creator-list fields whose values are returned as arrays of {@link Creator} objects. */
|
|
62
79
|
export type CreatorFields = {
|
|
80
|
+
afterword?: Creator[];
|
|
63
81
|
author?: Creator[];
|
|
82
|
+
annotator?: Creator[];
|
|
64
83
|
bookauthor?: Creator[];
|
|
65
84
|
collaborator?: Creator[];
|
|
66
85
|
commentator?: Creator[];
|
|
@@ -69,24 +88,50 @@ export type CreatorFields = {
|
|
|
69
88
|
editora?: Creator[];
|
|
70
89
|
editorb?: Creator[];
|
|
71
90
|
editors?: Creator[];
|
|
91
|
+
foreword?: Creator[];
|
|
72
92
|
holder?: Creator[];
|
|
93
|
+
introduction?: Creator[];
|
|
94
|
+
namea?: Creator[];
|
|
95
|
+
nameb?: Creator[];
|
|
96
|
+
namec?: Creator[];
|
|
73
97
|
scriptwriter?: Creator[];
|
|
98
|
+
shortauthor?: Creator[];
|
|
99
|
+
shorteditor?: Creator[];
|
|
100
|
+
sortname?: Creator[];
|
|
74
101
|
translator?: Creator[];
|
|
75
102
|
};
|
|
76
103
|
/** List-valued fields whose elements remain strings. */
|
|
77
104
|
export type ArrayFields = {
|
|
78
|
-
|
|
105
|
+
address?: string[];
|
|
106
|
+
entryset?: string[];
|
|
79
107
|
institution?: string[];
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
organization?: string[];
|
|
108
|
+
labelname?: string[];
|
|
109
|
+
language?: string[];
|
|
83
110
|
location?: string[];
|
|
111
|
+
organization?: string[];
|
|
84
112
|
origlocation?: string[];
|
|
113
|
+
origlanguage?: string[];
|
|
114
|
+
origpublisher?: string[];
|
|
115
|
+
pageref?: string[];
|
|
116
|
+
publisher?: string[];
|
|
117
|
+
related?: string[];
|
|
118
|
+
relatedoptions?: string[];
|
|
119
|
+
school?: string[];
|
|
120
|
+
xdata?: string[];
|
|
121
|
+
keywords?: string[];
|
|
122
|
+
ids?: string[];
|
|
123
|
+
lista?: string[];
|
|
124
|
+
listb?: string[];
|
|
125
|
+
listc?: string[];
|
|
126
|
+
};
|
|
127
|
+
/** Biber annotation field names carry structured annotation clauses. */
|
|
128
|
+
export type AnnotationFields = Partial<Record<`${string}+an${string}`, Annotation[]>>;
|
|
129
|
+
/** The known structured fields in a normalized entry. */
|
|
130
|
+
export type TypedFields = CreatorFields & ArrayFields & AnnotationFields & {
|
|
131
|
+
options?: OptionMap;
|
|
85
132
|
};
|
|
86
|
-
/**
|
|
87
|
-
export type
|
|
88
|
-
/** Normalized BibTeX fields: known list fields have structured values; other fields are strings. */
|
|
89
|
-
export type Fields = TypedFields & Omit<Record<string, string>, keyof TypedFields>;
|
|
133
|
+
/** Normalized fields with precise types for field names handled by the default parser modes. */
|
|
134
|
+
export type Fields = TypedFields & Omit<Record<string, FieldValue>, keyof TypedFields>;
|
|
90
135
|
/** A normalized BibTeX entry returned by the parser. */
|
|
91
136
|
export interface Entry {
|
|
92
137
|
/** Entry type from the source, such as `article` or `inproceedings`. */
|