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