ygopro-msg-encode 1.1.16 → 1.1.17

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/dist/index.cjs CHANGED
@@ -594,7 +594,9 @@ var _PayloadBase = class _PayloadBase {
594
594
  return toBinaryFields(this);
595
595
  }
596
596
  copy() {
597
- return this.fromPartial(this);
597
+ const Constructor = this.constructor;
598
+ const copied = new Constructor();
599
+ return copied.fromPartial(this);
598
600
  }
599
601
  };
600
602
  __name(_PayloadBase, "PayloadBase");