@colyseus/schema 5.0.4 → 5.0.5

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/build/index.js CHANGED
@@ -5636,11 +5636,8 @@
5636
5636
  function isBuilder(value) {
5637
5637
  return value != null && value[$builder] === true;
5638
5638
  }
5639
- // ---------------------------------------------------------------------------
5640
- // Factory helpers
5641
- // ---------------------------------------------------------------------------
5642
5639
  function primitive(name) {
5643
- return () => new FieldBuilder(name);
5640
+ return (() => new FieldBuilder(name));
5644
5641
  }
5645
5642
  function resolveChild(child) {
5646
5643
  if (isBuilder(child)) {
package/build/index.mjs CHANGED
@@ -5630,11 +5630,8 @@ class FieldBuilder {
5630
5630
  function isBuilder(value) {
5631
5631
  return value != null && value[$builder] === true;
5632
5632
  }
5633
- // ---------------------------------------------------------------------------
5634
- // Factory helpers
5635
- // ---------------------------------------------------------------------------
5636
5633
  function primitive(name) {
5637
- return () => new FieldBuilder(name);
5634
+ return (() => new FieldBuilder(name));
5638
5635
  }
5639
5636
  function resolveChild(child) {
5640
5637
  if (isBuilder(child)) {