@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.
Binary file
@@ -198,7 +198,7 @@ function unbreakscape_text(input, format, location) {
198
198
  wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
199
199
  }
200
200
  }
201
- function info(info_type, format, bit, pretty, indent) {
201
+ function info(info_type, format, bit, pretty, indent, include_deprecated, only_deprecated, full) {
202
202
  let deferred4_0;
203
203
  let deferred4_1;
204
204
  try {
@@ -209,7 +209,7 @@ function info(info_type, format, bit, pretty, indent) {
209
209
  const len1 = WASM_VECTOR_LEN;
210
210
  const ptr2 = passStringToWasm0(bit, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
211
211
  const len2 = WASM_VECTOR_LEN;
212
- wasm.info(retptr, ptr0, len0, ptr1, len1, ptr2, len2, pretty, indent);
212
+ wasm.info(retptr, ptr0, len0, ptr1, len1, ptr2, len2, pretty, indent, include_deprecated, only_deprecated, full);
213
213
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
214
214
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
215
215
  deferred4_0 = r0;
@@ -474,7 +474,7 @@ var bitmark_wasm_default = __wbg_init;
474
474
  // src/generated/package_info.ts
475
475
  var PACKAGE_INFO = {
476
476
  "name": "@gmb/bitmark-parser",
477
- "version": "6.8.0",
477
+ "version": "6.9.0",
478
478
  "author": "Get More Brain Ltd <info@getmorebrain.com>",
479
479
  "license": "ISC",
480
480
  "description": "A parser for bitmark text, powered by WebAssembly."
@@ -1009,8 +1009,8 @@ var Builder = class {
1009
1009
  const wasm2 = getLegacyWasm();
1010
1010
  if (bitType !== void 0) {
1011
1011
  try {
1012
- const info3 = JSON.parse(wasm2.info("bit", "json", bitType, false, 2));
1013
- if (info3.error === void 0) return info3;
1012
+ const info3 = JSON.parse(wasm2.info("bit", "json", bitType, false, 2, false, false, true));
1013
+ if (info3.error === void 0) return { bodyFormat: info3.body?.format };
1014
1014
  } catch {
1015
1015
  }
1016
1016
  }
@@ -1108,7 +1108,7 @@ var BitmarkParserGenerator = class {
1108
1108
  const format = opts.outputFormat ?? "text";
1109
1109
  const { pretty, indent } = prettyIndent(opts.prettify);
1110
1110
  const coreFormat = format === "pojo" ? "json" : format;
1111
- const out = wasm2.info(type, coreFormat, opts.bit ?? "", pretty, indent);
1111
+ const out = wasm2.info(type, coreFormat, opts.bit ?? "", pretty, indent, false, false, true);
1112
1112
  this.throwOnError(out);
1113
1113
  if (format === "pojo") return JSON.parse(out);
1114
1114
  return out;
@@ -1693,7 +1693,7 @@ var bitTypeCache;
1693
1693
  function loadBitTypes() {
1694
1694
  if (!bitTypeCache) {
1695
1695
  const wasm2 = getLegacyWasm();
1696
- const all = JSON.parse(wasm2.info("all", "json", "", false, 2));
1696
+ const all = JSON.parse(wasm2.info("all", "json", "", false, 2, true, false, false));
1697
1697
  const map = { _standard: "_standard" };
1698
1698
  for (const { name } of all) {
1699
1699
  map[bitNameToKey(name)] = name;
@@ -1878,7 +1878,10 @@ function info2(options = {}) {
1878
1878
  const bit = options.bit ?? "";
1879
1879
  const pretty = options.pretty ?? false;
1880
1880
  const indent = options.indent ?? 2;
1881
- return info(infoType, format, bit, pretty, indent);
1881
+ const includeDeprecated = options.includeDeprecated ?? false;
1882
+ const onlyDeprecated = options.onlyDeprecated ?? false;
1883
+ const full = options.full ?? false;
1884
+ return info(infoType, format, bit, pretty, indent, includeDeprecated, onlyDeprecated, full);
1882
1885
  }
1883
1886
  // Annotate the CommonJS export names for ESM import in node:
1884
1887
  0 && (module.exports = {