@gmb/bitmark-parser 6.8.0 → 6.9.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.
@@ -158,7 +158,7 @@ function unbreakscape_text(input, format, location) {
158
158
  wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
159
159
  }
160
160
  }
161
- function info(info_type, format, bit, pretty, indent) {
161
+ function info(info_type, format, bit, pretty, indent, include_deprecated, only_deprecated, full) {
162
162
  let deferred4_0;
163
163
  let deferred4_1;
164
164
  try {
@@ -169,7 +169,7 @@ function info(info_type, format, bit, pretty, indent) {
169
169
  const len1 = WASM_VECTOR_LEN;
170
170
  const ptr2 = passStringToWasm0(bit, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
171
171
  const len2 = WASM_VECTOR_LEN;
172
- wasm.info(retptr, ptr0, len0, ptr1, len1, ptr2, len2, pretty, indent);
172
+ wasm.info(retptr, ptr0, len0, ptr1, len1, ptr2, len2, pretty, indent, include_deprecated, only_deprecated, full);
173
173
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
174
174
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
175
175
  deferred4_0 = r0;
@@ -434,7 +434,7 @@ var bitmark_wasm_default = __wbg_init;
434
434
  // src/generated/package_info.ts
435
435
  var PACKAGE_INFO = {
436
436
  "name": "@gmb/bitmark-parser",
437
- "version": "6.8.0",
437
+ "version": "6.9.0",
438
438
  "author": "Get More Brain Ltd <info@getmorebrain.com>",
439
439
  "license": "ISC",
440
440
  "description": "A parser for bitmark text, powered by WebAssembly."
@@ -969,8 +969,8 @@ var Builder = class {
969
969
  const wasm2 = getLegacyWasm();
970
970
  if (bitType !== void 0) {
971
971
  try {
972
- const info3 = JSON.parse(wasm2.info("bit", "json", bitType, false, 2));
973
- if (info3.error === void 0) return info3;
972
+ const info3 = JSON.parse(wasm2.info("bit", "json", bitType, false, 2, false, false, true));
973
+ if (info3.error === void 0) return { bodyFormat: info3.body?.format };
974
974
  } catch {
975
975
  }
976
976
  }
@@ -1068,7 +1068,7 @@ var BitmarkParserGenerator = class {
1068
1068
  const format = opts.outputFormat ?? "text";
1069
1069
  const { pretty, indent } = prettyIndent(opts.prettify);
1070
1070
  const coreFormat = format === "pojo" ? "json" : format;
1071
- const out = wasm2.info(type, coreFormat, opts.bit ?? "", pretty, indent);
1071
+ const out = wasm2.info(type, coreFormat, opts.bit ?? "", pretty, indent, false, false, true);
1072
1072
  this.throwOnError(out);
1073
1073
  if (format === "pojo") return JSON.parse(out);
1074
1074
  return out;
@@ -1653,7 +1653,7 @@ var bitTypeCache;
1653
1653
  function loadBitTypes() {
1654
1654
  if (!bitTypeCache) {
1655
1655
  const wasm2 = getLegacyWasm();
1656
- const all = JSON.parse(wasm2.info("all", "json", "", false, 2));
1656
+ const all = JSON.parse(wasm2.info("all", "json", "", false, 2, true, false, false));
1657
1657
  const map = { _standard: "_standard" };
1658
1658
  for (const { name } of all) {
1659
1659
  map[bitNameToKey(name)] = name;
@@ -1838,7 +1838,10 @@ function info2(options = {}) {
1838
1838
  const bit = options.bit ?? "";
1839
1839
  const pretty = options.pretty ?? false;
1840
1840
  const indent = options.indent ?? 2;
1841
- return info(infoType, format, bit, pretty, indent);
1841
+ const includeDeprecated = options.includeDeprecated ?? false;
1842
+ const onlyDeprecated = options.onlyDeprecated ?? false;
1843
+ const full = options.full ?? false;
1844
+ return info(infoType, format, bit, pretty, indent, includeDeprecated, onlyDeprecated, full);
1842
1845
  }
1843
1846
  export {
1844
1847
  bitmarkToObjects,