@gmb/bitmark-parser 6.5.0 → 6.7.0

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.
@@ -49,9 +49,11 @@ export function transform(input: string, input_format_sel: string, output_format
49
49
  * `input_format`: `"auto"` (default) | `"bitmark"` | `"json"`.
50
50
  * `output_format`: `"auto"` (opposite of input) | `"bitmark"` | `"json"`.
51
51
  * `mode`: `"optimized"` (default) | `"full"`.
52
+ * `mapping_report`: replace the output with a human-readable report of the
53
+ * input→output mappings, including inputs that are NOT mapped (PLAN-147).
52
54
  * Returns the converted text/JSON, or a string prefixed `error:` on failure.
53
55
  */
54
- export function convert(input: string, input_format_sel: string, output_format_sel: string, mode: string, pretty: boolean, indent: number, spaces_around_values: number, include_unknown_properties: boolean): string;
56
+ export function convert(input: string, input_format_sel: string, output_format_sel: string, mode: string, pretty: boolean, indent: number, spaces_around_values: number, include_unknown_properties: boolean, mapping_report: boolean): string;
55
57
  /**
56
58
  * Re-emit input in its own format in canonical form at `mode`.
57
59
  *
@@ -272,6 +272,8 @@ module.exports.transform = function(input, input_format_sel, output_format_sel,
272
272
  * `input_format`: `"auto"` (default) | `"bitmark"` | `"json"`.
273
273
  * `output_format`: `"auto"` (opposite of input) | `"bitmark"` | `"json"`.
274
274
  * `mode`: `"optimized"` (default) | `"full"`.
275
+ * `mapping_report`: replace the output with a human-readable report of the
276
+ * input→output mappings, including inputs that are NOT mapped (PLAN-147).
275
277
  * Returns the converted text/JSON, or a string prefixed `error:` on failure.
276
278
  * @param {string} input
277
279
  * @param {string} input_format_sel
@@ -281,9 +283,10 @@ module.exports.transform = function(input, input_format_sel, output_format_sel,
281
283
  * @param {number} indent
282
284
  * @param {number} spaces_around_values
283
285
  * @param {boolean} include_unknown_properties
286
+ * @param {boolean} mapping_report
284
287
  * @returns {string}
285
288
  */
286
- module.exports.convert = function(input, input_format_sel, output_format_sel, mode, pretty, indent, spaces_around_values, include_unknown_properties) {
289
+ module.exports.convert = function(input, input_format_sel, output_format_sel, mode, pretty, indent, spaces_around_values, include_unknown_properties, mapping_report) {
287
290
  let deferred5_0;
288
291
  let deferred5_1;
289
292
  try {
@@ -296,7 +299,7 @@ module.exports.convert = function(input, input_format_sel, output_format_sel, mo
296
299
  const len2 = WASM_VECTOR_LEN;
297
300
  const ptr3 = passStringToWasm0(mode, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
298
301
  const len3 = WASM_VECTOR_LEN;
299
- wasm.convert(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, pretty, indent, spaces_around_values, include_unknown_properties);
302
+ wasm.convert(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, pretty, indent, spaces_around_values, include_unknown_properties, mapping_report);
300
303
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
301
304
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
302
305
  deferred5_0 = r0;
Binary file
@@ -3,7 +3,7 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const breakscape_text: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
5
5
  export const canonicalize: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
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) => void;
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
9
  export const info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
package/wasm/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Get More Brain Ltd <info@getmorebrain.com>"
5
5
  ],
6
6
  "description": "WebAssembly bindings for the bitmark parser",
7
- "version": "6.5.0",
7
+ "version": "6.7.0",
8
8
  "license": "ISC",
9
9
  "repository": {
10
10
  "type": "git",