minerender 2.1.0-alpha.135 → 2.1.0-alpha.136

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.
@@ -1620,15 +1620,18 @@ var init_util2 = __esm({
1620
1620
  });
1621
1621
 
1622
1622
  // src/nbt/NBTHelper.ts
1623
+ function commonJsExports(module) {
1624
+ return module.default ?? module;
1625
+ }
1623
1626
  var NBTHelper;
1624
1627
  var init_NBTHelper = __esm({
1625
1628
  "src/nbt/NBTHelper.ts"() {
1626
1629
  NBTHelper = class {
1627
1630
  /** Parses NBT bytes and preserves format and compression metadata. Omit `format` for automatic detection. */
1628
1631
  static async fromBuffer(data, format2) {
1629
- const { Buffer: Buffer3 } = await import("buffer");
1632
+ const { Buffer: Buffer3 } = commonJsExports(await import("buffer"));
1630
1633
  const buffer = Buffer3.from(data instanceof Uint8Array ? data : new Uint8Array(data));
1631
- const prismarineNbt = await import("prismarine-nbt");
1634
+ const prismarineNbt = commonJsExports(await import("prismarine-nbt"));
1632
1635
  const { parsed, type, metadata } = await prismarineNbt.parse(buffer, format2);
1633
1636
  return Object.assign(parsed, {
1634
1637
  format: type,