@gmb/bitmark-parser 6.11.0 → 6.11.1
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.
- package/README.md +97 -5
- package/dist/browser/bitmark-parser.min.js +4 -4
- package/dist/browser/bitmark-parser.min.js.map +1 -1
- package/dist/browser/cjs/index.cjs +186 -24
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +146 -7
- package/dist/browser/esm/index.d.ts +146 -7
- package/dist/browser/esm/index.js +184 -24
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/esm/worker-entry.js +113 -0
- package/dist/browser/esm/worker-entry.js.map +1 -1
- package/dist/browser/wasm/bitmark_browser_full_wasm_bg.wasm +0 -0
- package/dist/browser/wasm/bitmark_json_wasm_bg.wasm +0 -0
- package/dist/browser/wasm/bitmark_wasm_bg.wasm +0 -0
- package/dist/index.cjs +73 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +146 -7
- package/dist/index.d.ts +146 -7
- package/dist/index.js +71 -24
- package/dist/index.js.map +1 -1
- package/dist/legacy.cjs +1 -1
- package/dist/legacy.cjs.map +1 -1
- package/dist/legacy.js +1 -1
- package/dist/legacy.js.map +1 -1
- package/dist/worker-entry.cjs.map +1 -1
- package/package.json +7 -7
- package/schema/bitmark.schema.json +1 -1
- package/wasm/bitmark_wasm.d.ts +23 -0
- package/wasm/bitmark_wasm.js +80 -0
- package/wasm/bitmark_wasm_bg.wasm +0 -0
- package/wasm/bitmark_wasm_bg.wasm.d.ts +2 -0
- package/wasm/package.json +1 -1
- package/wasm-bitmark-json/bitmark_json_wasm.d.ts +9 -0
- package/wasm-bitmark-json/bitmark_json_wasm.js +32 -0
- package/wasm-bitmark-json/bitmark_json_wasm_bg.wasm +0 -0
- package/wasm-bitmark-json/bitmark_json_wasm_bg.wasm.d.ts +1 -0
- package/wasm-bitmark-json/package.json +1 -1
- package/wasm-browser-full/bitmark_browser_full_wasm.d.ts +23 -0
- package/wasm-browser-full/bitmark_browser_full_wasm.js +80 -0
- package/wasm-browser-full/bitmark_browser_full_wasm_bg.wasm +0 -0
- package/wasm-browser-full/bitmark_browser_full_wasm_bg.wasm.d.ts +2 -0
- package/wasm-browser-full/package.json +1 -1
package/wasm/bitmark_wasm.d.ts
CHANGED
|
@@ -61,6 +61,29 @@ export function convert_text(input: string, direction: string, format: string, l
|
|
|
61
61
|
* runs sequentially. Returns the document text/JSON, or `error: …`.
|
|
62
62
|
*/
|
|
63
63
|
export function transform(input: string, input_format_sel: string, output_format_sel: string, mode: string, patch_json: string, pretty: boolean, indent: number, spaces_around_values: number): string;
|
|
64
|
+
/**
|
|
65
|
+
* Resolve a patch document against `input` (bitmark or JSON) into the
|
|
66
|
+
* ordered output items, so a JS per-bit planner (hooks, worker pool) can
|
|
67
|
+
* reorder, drop and insert jobs from the one Rust implementation
|
|
68
|
+
* (PLAN-179). Returns a JSON array of
|
|
69
|
+
* `{ "source": <original index> | null, "bit": <inner bit> | null,
|
|
70
|
+
* "patch": [ … ] }`, or `error: …`.
|
|
71
|
+
*/
|
|
72
|
+
export function resolve_patch_document(input: string, patch_json: string): string;
|
|
73
|
+
/**
|
|
74
|
+
* Semantic diff of two documents (PLAN-179). Flat arguments like every
|
|
75
|
+
* other export:
|
|
76
|
+
* - `input_format`: `"auto"` | `"bitmark"` | `"json"` | a mapping id,
|
|
77
|
+
* applied to both sides;
|
|
78
|
+
* - `output_format`: `"bitmark"` (unified-style text) | `"json"` |
|
|
79
|
+
* `"patch"`;
|
|
80
|
+
* - `context`, `locate`, `similarity`, `bbox_tolerance`,
|
|
81
|
+
* `spaces_around_values` as documented on `DiffOptions`.
|
|
82
|
+
* Returns the diff (empty text / `[]` of unchanged bits / a patch document
|
|
83
|
+
* with no entries when the documents are semantically equal), or
|
|
84
|
+
* `error: …`.
|
|
85
|
+
*/
|
|
86
|
+
export function diff(a: string, b: string, input_format_sel: string, output_format_sel: string, context: number, locate: boolean, similarity: number, bbox_tolerance: number, spaces_around_values: number): string;
|
|
64
87
|
/**
|
|
65
88
|
* Register data with the parser process (PLAN-173 P12).
|
|
66
89
|
*
|
package/wasm/bitmark_wasm.js
CHANGED
|
@@ -319,6 +319,86 @@ module.exports.transform = function(input, input_format_sel, output_format_sel,
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Resolve a patch document against `input` (bitmark or JSON) into the
|
|
324
|
+
* ordered output items, so a JS per-bit planner (hooks, worker pool) can
|
|
325
|
+
* reorder, drop and insert jobs from the one Rust implementation
|
|
326
|
+
* (PLAN-179). Returns a JSON array of
|
|
327
|
+
* `{ "source": <original index> | null, "bit": <inner bit> | null,
|
|
328
|
+
* "patch": [ … ] }`, or `error: …`.
|
|
329
|
+
* @param {string} input
|
|
330
|
+
* @param {string} patch_json
|
|
331
|
+
* @returns {string}
|
|
332
|
+
*/
|
|
333
|
+
module.exports.resolve_patch_document = function(input, patch_json) {
|
|
334
|
+
let deferred3_0;
|
|
335
|
+
let deferred3_1;
|
|
336
|
+
try {
|
|
337
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
338
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
339
|
+
const len0 = WASM_VECTOR_LEN;
|
|
340
|
+
const ptr1 = passStringToWasm0(patch_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
341
|
+
const len1 = WASM_VECTOR_LEN;
|
|
342
|
+
wasm.resolve_patch_document(retptr, ptr0, len0, ptr1, len1);
|
|
343
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
344
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
345
|
+
deferred3_0 = r0;
|
|
346
|
+
deferred3_1 = r1;
|
|
347
|
+
return getStringFromWasm0(r0, r1);
|
|
348
|
+
} finally {
|
|
349
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
350
|
+
wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Semantic diff of two documents (PLAN-179). Flat arguments like every
|
|
356
|
+
* other export:
|
|
357
|
+
* - `input_format`: `"auto"` | `"bitmark"` | `"json"` | a mapping id,
|
|
358
|
+
* applied to both sides;
|
|
359
|
+
* - `output_format`: `"bitmark"` (unified-style text) | `"json"` |
|
|
360
|
+
* `"patch"`;
|
|
361
|
+
* - `context`, `locate`, `similarity`, `bbox_tolerance`,
|
|
362
|
+
* `spaces_around_values` as documented on `DiffOptions`.
|
|
363
|
+
* Returns the diff (empty text / `[]` of unchanged bits / a patch document
|
|
364
|
+
* with no entries when the documents are semantically equal), or
|
|
365
|
+
* `error: …`.
|
|
366
|
+
* @param {string} a
|
|
367
|
+
* @param {string} b
|
|
368
|
+
* @param {string} input_format_sel
|
|
369
|
+
* @param {string} output_format_sel
|
|
370
|
+
* @param {number} context
|
|
371
|
+
* @param {boolean} locate
|
|
372
|
+
* @param {number} similarity
|
|
373
|
+
* @param {number} bbox_tolerance
|
|
374
|
+
* @param {number} spaces_around_values
|
|
375
|
+
* @returns {string}
|
|
376
|
+
*/
|
|
377
|
+
module.exports.diff = function(a, b, input_format_sel, output_format_sel, context, locate, similarity, bbox_tolerance, spaces_around_values) {
|
|
378
|
+
let deferred5_0;
|
|
379
|
+
let deferred5_1;
|
|
380
|
+
try {
|
|
381
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
382
|
+
const ptr0 = passStringToWasm0(a, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
383
|
+
const len0 = WASM_VECTOR_LEN;
|
|
384
|
+
const ptr1 = passStringToWasm0(b, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
385
|
+
const len1 = WASM_VECTOR_LEN;
|
|
386
|
+
const ptr2 = passStringToWasm0(input_format_sel, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
387
|
+
const len2 = WASM_VECTOR_LEN;
|
|
388
|
+
const ptr3 = passStringToWasm0(output_format_sel, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
389
|
+
const len3 = WASM_VECTOR_LEN;
|
|
390
|
+
wasm.diff(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, context, locate, similarity, bbox_tolerance, spaces_around_values);
|
|
391
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
392
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
393
|
+
deferred5_0 = r0;
|
|
394
|
+
deferred5_1 = r1;
|
|
395
|
+
return getStringFromWasm0(r0, r1);
|
|
396
|
+
} finally {
|
|
397
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
398
|
+
wasm.__wbindgen_export_2(deferred5_0, deferred5_1, 1);
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
|
|
322
402
|
/**
|
|
323
403
|
* Register data with the parser process (PLAN-173 P12).
|
|
324
404
|
*
|
|
Binary file
|
|
@@ -6,11 +6,13 @@ export const canonicalize: (a: number, b: number, c: number, d: number, e: numbe
|
|
|
6
6
|
export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
7
7
|
export const convert_text: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
8
8
|
export const count_bits: (a: number, b: number, c: number) => void;
|
|
9
|
+
export const diff: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
9
10
|
export const info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
10
11
|
export const is_bitmark: (a: number, b: number) => number;
|
|
11
12
|
export const lex: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
12
13
|
export const prettify: (a: number, b: number, c: number, d: number) => void;
|
|
13
14
|
export const register: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
15
|
+
export const resolve_patch_document: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
14
16
|
export const split_bits: (a: number, b: number, c: number) => void;
|
|
15
17
|
export const split_json_bits: (a: number, b: number, c: number) => void;
|
|
16
18
|
export const transform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
package/wasm/package.json
CHANGED
|
@@ -57,6 +57,15 @@ export function register(data_type: string, data: string): string;
|
|
|
57
57
|
* runs sequentially. Returns the document text/JSON, or `error: …`.
|
|
58
58
|
*/
|
|
59
59
|
export function transform(input: string, input_format_sel: string, output_format_sel: string, mode: string, patch_json: string, pretty: boolean, indent: number, spaces_around_values: number): string;
|
|
60
|
+
/**
|
|
61
|
+
* Resolve a patch document against `input` (bitmark or JSON) into the
|
|
62
|
+
* ordered output items, so a JS per-bit planner (hooks, worker pool) can
|
|
63
|
+
* reorder, drop and insert jobs from the one Rust implementation
|
|
64
|
+
* (PLAN-179). Returns a JSON array of
|
|
65
|
+
* `{ "source": <original index> | null, "bit": <inner bit> | null,
|
|
66
|
+
* "patch": [ … ] }`, or `error: …`.
|
|
67
|
+
*/
|
|
68
|
+
export function resolve_patch_document(input: string, patch_json: string): string;
|
|
60
69
|
/**
|
|
61
70
|
* Convert between bitmark and JSON with explicit input/output formats + mode.
|
|
62
71
|
*
|
|
@@ -286,6 +286,38 @@ module.exports.transform = function(input, input_format_sel, output_format_sel,
|
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
|
|
289
|
+
/**
|
|
290
|
+
* Resolve a patch document against `input` (bitmark or JSON) into the
|
|
291
|
+
* ordered output items, so a JS per-bit planner (hooks, worker pool) can
|
|
292
|
+
* reorder, drop and insert jobs from the one Rust implementation
|
|
293
|
+
* (PLAN-179). Returns a JSON array of
|
|
294
|
+
* `{ "source": <original index> | null, "bit": <inner bit> | null,
|
|
295
|
+
* "patch": [ … ] }`, or `error: …`.
|
|
296
|
+
* @param {string} input
|
|
297
|
+
* @param {string} patch_json
|
|
298
|
+
* @returns {string}
|
|
299
|
+
*/
|
|
300
|
+
module.exports.resolve_patch_document = function(input, patch_json) {
|
|
301
|
+
let deferred3_0;
|
|
302
|
+
let deferred3_1;
|
|
303
|
+
try {
|
|
304
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
305
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
306
|
+
const len0 = WASM_VECTOR_LEN;
|
|
307
|
+
const ptr1 = passStringToWasm0(patch_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
308
|
+
const len1 = WASM_VECTOR_LEN;
|
|
309
|
+
wasm.resolve_patch_document(retptr, ptr0, len0, ptr1, len1);
|
|
310
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
311
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
312
|
+
deferred3_0 = r0;
|
|
313
|
+
deferred3_1 = r1;
|
|
314
|
+
return getStringFromWasm0(r0, r1);
|
|
315
|
+
} finally {
|
|
316
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
317
|
+
wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
|
|
289
321
|
/**
|
|
290
322
|
* Convert between bitmark and JSON with explicit input/output formats + mode.
|
|
291
323
|
*
|
|
Binary file
|
|
@@ -10,6 +10,7 @@ export const info: (a: number, b: number, c: number, d: number, e: number, f: nu
|
|
|
10
10
|
export const is_bitmark: (a: number, b: number) => number;
|
|
11
11
|
export const prettify: (a: number, b: number, c: number, d: number) => void;
|
|
12
12
|
export const register: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
13
|
+
export const resolve_patch_document: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
13
14
|
export const split_bits: (a: number, b: number, c: number) => void;
|
|
14
15
|
export const split_json_bits: (a: number, b: number, c: number) => void;
|
|
15
16
|
export const transform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
@@ -61,6 +61,29 @@ export function convert_text(input: string, direction: string, format: string, l
|
|
|
61
61
|
* runs sequentially. Returns the document text/JSON, or `error: …`.
|
|
62
62
|
*/
|
|
63
63
|
export function transform(input: string, input_format_sel: string, output_format_sel: string, mode: string, patch_json: string, pretty: boolean, indent: number, spaces_around_values: number): string;
|
|
64
|
+
/**
|
|
65
|
+
* Resolve a patch document against `input` (bitmark or JSON) into the
|
|
66
|
+
* ordered output items, so a JS per-bit planner (hooks, worker pool) can
|
|
67
|
+
* reorder, drop and insert jobs from the one Rust implementation
|
|
68
|
+
* (PLAN-179). Returns a JSON array of
|
|
69
|
+
* `{ "source": <original index> | null, "bit": <inner bit> | null,
|
|
70
|
+
* "patch": [ … ] }`, or `error: …`.
|
|
71
|
+
*/
|
|
72
|
+
export function resolve_patch_document(input: string, patch_json: string): string;
|
|
73
|
+
/**
|
|
74
|
+
* Semantic diff of two documents (PLAN-179). Flat arguments like every
|
|
75
|
+
* other export:
|
|
76
|
+
* - `input_format`: `"auto"` | `"bitmark"` | `"json"` | a mapping id,
|
|
77
|
+
* applied to both sides;
|
|
78
|
+
* - `output_format`: `"bitmark"` (unified-style text) | `"json"` |
|
|
79
|
+
* `"patch"`;
|
|
80
|
+
* - `context`, `locate`, `similarity`, `bbox_tolerance`,
|
|
81
|
+
* `spaces_around_values` as documented on `DiffOptions`.
|
|
82
|
+
* Returns the diff (empty text / `[]` of unchanged bits / a patch document
|
|
83
|
+
* with no entries when the documents are semantically equal), or
|
|
84
|
+
* `error: …`.
|
|
85
|
+
*/
|
|
86
|
+
export function diff(a: string, b: string, input_format_sel: string, output_format_sel: string, context: number, locate: boolean, similarity: number, bbox_tolerance: number, spaces_around_values: number): string;
|
|
64
87
|
/**
|
|
65
88
|
* Register data with the parser process (PLAN-173 P12).
|
|
66
89
|
*
|
|
@@ -319,6 +319,86 @@ module.exports.transform = function(input, input_format_sel, output_format_sel,
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Resolve a patch document against `input` (bitmark or JSON) into the
|
|
324
|
+
* ordered output items, so a JS per-bit planner (hooks, worker pool) can
|
|
325
|
+
* reorder, drop and insert jobs from the one Rust implementation
|
|
326
|
+
* (PLAN-179). Returns a JSON array of
|
|
327
|
+
* `{ "source": <original index> | null, "bit": <inner bit> | null,
|
|
328
|
+
* "patch": [ … ] }`, or `error: …`.
|
|
329
|
+
* @param {string} input
|
|
330
|
+
* @param {string} patch_json
|
|
331
|
+
* @returns {string}
|
|
332
|
+
*/
|
|
333
|
+
module.exports.resolve_patch_document = function(input, patch_json) {
|
|
334
|
+
let deferred3_0;
|
|
335
|
+
let deferred3_1;
|
|
336
|
+
try {
|
|
337
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
338
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
339
|
+
const len0 = WASM_VECTOR_LEN;
|
|
340
|
+
const ptr1 = passStringToWasm0(patch_json, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
341
|
+
const len1 = WASM_VECTOR_LEN;
|
|
342
|
+
wasm.resolve_patch_document(retptr, ptr0, len0, ptr1, len1);
|
|
343
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
344
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
345
|
+
deferred3_0 = r0;
|
|
346
|
+
deferred3_1 = r1;
|
|
347
|
+
return getStringFromWasm0(r0, r1);
|
|
348
|
+
} finally {
|
|
349
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
350
|
+
wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Semantic diff of two documents (PLAN-179). Flat arguments like every
|
|
356
|
+
* other export:
|
|
357
|
+
* - `input_format`: `"auto"` | `"bitmark"` | `"json"` | a mapping id,
|
|
358
|
+
* applied to both sides;
|
|
359
|
+
* - `output_format`: `"bitmark"` (unified-style text) | `"json"` |
|
|
360
|
+
* `"patch"`;
|
|
361
|
+
* - `context`, `locate`, `similarity`, `bbox_tolerance`,
|
|
362
|
+
* `spaces_around_values` as documented on `DiffOptions`.
|
|
363
|
+
* Returns the diff (empty text / `[]` of unchanged bits / a patch document
|
|
364
|
+
* with no entries when the documents are semantically equal), or
|
|
365
|
+
* `error: …`.
|
|
366
|
+
* @param {string} a
|
|
367
|
+
* @param {string} b
|
|
368
|
+
* @param {string} input_format_sel
|
|
369
|
+
* @param {string} output_format_sel
|
|
370
|
+
* @param {number} context
|
|
371
|
+
* @param {boolean} locate
|
|
372
|
+
* @param {number} similarity
|
|
373
|
+
* @param {number} bbox_tolerance
|
|
374
|
+
* @param {number} spaces_around_values
|
|
375
|
+
* @returns {string}
|
|
376
|
+
*/
|
|
377
|
+
module.exports.diff = function(a, b, input_format_sel, output_format_sel, context, locate, similarity, bbox_tolerance, spaces_around_values) {
|
|
378
|
+
let deferred5_0;
|
|
379
|
+
let deferred5_1;
|
|
380
|
+
try {
|
|
381
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
382
|
+
const ptr0 = passStringToWasm0(a, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
383
|
+
const len0 = WASM_VECTOR_LEN;
|
|
384
|
+
const ptr1 = passStringToWasm0(b, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
385
|
+
const len1 = WASM_VECTOR_LEN;
|
|
386
|
+
const ptr2 = passStringToWasm0(input_format_sel, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
387
|
+
const len2 = WASM_VECTOR_LEN;
|
|
388
|
+
const ptr3 = passStringToWasm0(output_format_sel, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
389
|
+
const len3 = WASM_VECTOR_LEN;
|
|
390
|
+
wasm.diff(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, context, locate, similarity, bbox_tolerance, spaces_around_values);
|
|
391
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
392
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
393
|
+
deferred5_0 = r0;
|
|
394
|
+
deferred5_1 = r1;
|
|
395
|
+
return getStringFromWasm0(r0, r1);
|
|
396
|
+
} finally {
|
|
397
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
398
|
+
wasm.__wbindgen_export_2(deferred5_0, deferred5_1, 1);
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
|
|
322
402
|
/**
|
|
323
403
|
* Register data with the parser process (PLAN-173 P12).
|
|
324
404
|
*
|
|
Binary file
|
|
@@ -6,11 +6,13 @@ export const canonicalize: (a: number, b: number, c: number, d: number, e: numbe
|
|
|
6
6
|
export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
7
7
|
export const convert_text: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
8
8
|
export const count_bits: (a: number, b: number, c: number) => void;
|
|
9
|
+
export const diff: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
9
10
|
export const info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
10
11
|
export const is_bitmark: (a: number, b: number) => number;
|
|
11
12
|
export const lex: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
12
13
|
export const prettify: (a: number, b: number, c: number, d: number) => void;
|
|
13
14
|
export const register: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
15
|
+
export const resolve_patch_document: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
14
16
|
export const split_bits: (a: number, b: number, c: number) => void;
|
|
15
17
|
export const split_json_bits: (a: number, b: number, c: number) => void;
|
|
16
18
|
export const transform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|