@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.
- package/README.md +12 -0
- package/dist/browser/bitmark-parser.min.js +4 -4
- package/dist/browser/bitmark-parser.min.js.map +1 -1
- package/dist/browser/bitmark_wasm_bg.wasm +0 -0
- package/dist/browser/cjs/bitmark_wasm_bg.wasm +0 -0
- package/dist/browser/cjs/index.cjs +25 -13
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +351 -51
- package/dist/browser/esm/bitmark_wasm_bg.wasm +0 -0
- package/dist/browser/esm/index.d.ts +351 -51
- package/dist/browser/esm/index.js +25 -13
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/esm/worker-entry.js.map +1 -1
- package/dist/index.cjs +23 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +350 -50
- package/dist/index.d.ts +350 -50
- package/dist/index.js +23 -11
- package/dist/index.js.map +1 -1
- package/dist/legacy.cjs +8 -8
- package/dist/legacy.cjs.map +1 -1
- package/dist/legacy.js +8 -8
- package/dist/legacy.js.map +1 -1
- package/package.json +6 -6
- package/schema/bitmark.schema.json +1500 -321
- package/wasm/bitmark_wasm.d.ts +3 -1
- package/wasm/bitmark_wasm.js +5 -2
- package/wasm/bitmark_wasm_bg.wasm +0 -0
- package/wasm/bitmark_wasm_bg.wasm.d.ts +1 -1
- package/wasm/package.json +1 -1
package/wasm/bitmark_wasm.d.ts
CHANGED
|
@@ -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
|
*
|
package/wasm/bitmark_wasm.js
CHANGED
|
@@ -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;
|