math-core 0.6.3 → 0.6.4

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.
@@ -27,6 +27,7 @@ export class LatexError {
27
27
  end: number;
28
28
  start: number;
29
29
  readonly context: string | undefined;
30
+ readonly label: string;
30
31
  readonly message: string;
31
32
  readonly report: string | undefined;
32
33
  }
package/dist/math_core.js CHANGED
@@ -67,6 +67,13 @@ export class LatexError {
67
67
  const ret = wasm.latexerror_context(this.__wbg_ptr);
68
68
  return ret;
69
69
  }
70
+ /**
71
+ * @returns {string}
72
+ */
73
+ get label() {
74
+ const ret = wasm.latexerror_label(this.__wbg_ptr);
75
+ return ret;
76
+ }
70
77
  /**
71
78
  * @returns {string}
72
79
  */
@@ -166,11 +173,11 @@ function __wbg_get_imports() {
166
173
  __wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
167
174
  throw new Error(getStringFromWasm0(arg0, arg1));
168
175
  },
169
- __wbg_allowUnreliableRendering_f578e9493c5ee42b: function(arg0) {
176
+ __wbg_allowUnreliableRendering_85799e8d6aea3b13: function(arg0) {
170
177
  const ret = arg0.allowUnreliableRendering;
171
178
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
172
179
  },
173
- __wbg_annotation_a53850e7e0dfbbdd: function(arg0) {
180
+ __wbg_annotation_787a5a6d7b450089: function(arg0) {
174
181
  const ret = arg0.annotation;
175
182
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
176
183
  },
@@ -190,7 +197,7 @@ function __wbg_get_imports() {
190
197
  const ret = arg0[arg1 >>> 0];
191
198
  return ret;
192
199
  },
193
- __wbg_ignoreUnknownCommands_5c06f89ac9f1eaa3: function(arg0) {
200
+ __wbg_ignoreUnknownCommands_2e5f9e0782e159a4: function(arg0) {
194
201
  const ret = arg0.ignoreUnknownCommands;
195
202
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
196
203
  },
@@ -202,7 +209,7 @@ function __wbg_get_imports() {
202
209
  const ret = LatexError.__wrap(arg0);
203
210
  return ret;
204
211
  },
205
- __wbg_macros_bdc9bb0d856575a1: function(arg0) {
212
+ __wbg_macros_b577b47d3bca5e4c: function(arg0) {
206
213
  const ret = arg0.macros;
207
214
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
208
215
  },
@@ -210,7 +217,7 @@ function __wbg_get_imports() {
210
217
  const ret = arg0.next();
211
218
  return ret;
212
219
  }, arguments); },
213
- __wbg_prettyPrint_11a1aec7a0aa6121: function(arg0, arg1) {
220
+ __wbg_prettyPrint_3bde870ba3a210c7: function(arg0, arg1) {
214
221
  const ret = arg1.prettyPrint;
215
222
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
216
223
  var len1 = WASM_VECTOR_LEN;
@@ -221,7 +228,7 @@ function __wbg_get_imports() {
221
228
  const ret = arg0.size;
222
229
  return ret;
223
230
  },
224
- __wbg_throwOnError_a879b6d1b0b3007a: function(arg0) {
231
+ __wbg_throwOnError_f0f4b6c0a179492b: function(arg0) {
225
232
  const ret = arg0.throwOnError;
226
233
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
227
234
  },
@@ -229,7 +236,7 @@ function __wbg_get_imports() {
229
236
  const ret = arg0.value;
230
237
  return ret;
231
238
  },
232
- __wbg_xmlNamespace_7b1a4146ccfb1b6a: function(arg0) {
239
+ __wbg_xmlNamespace_64127331da9c1367: function(arg0) {
233
240
  const ret = arg0.xmlNamespace;
234
241
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
235
242
  },
Binary file
@@ -10,6 +10,7 @@ export const __wbg_set_latexerror_end: (a: number, b: number) => void;
10
10
  export const __wbg_set_latexerror_start: (a: number, b: number) => void;
11
11
  export const configparseerror_message: (a: number) => any;
12
12
  export const latexerror_context: (a: number) => any;
13
+ export const latexerror_label: (a: number) => any;
13
14
  export const latexerror_message: (a: number) => any;
14
15
  export const latexerror_report: (a: number) => any;
15
16
  export const latextomathml_convert_with_global_counter: (a: number, b: number, c: number, d: number) => [number, number, number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-core",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Convert LaTeX to MathML Core",
5
5
  "homepage": "https://github.com/tmke8/math-core#readme",
6
6
  "bugs": {