@colyseus/schema 3.0.31 → 3.0.32

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.
@@ -3129,6 +3129,10 @@ function dumpChanges(schema) {
3129
3129
  };
3130
3130
  // for (const refId in $root.changes) {
3131
3131
  $root.changes.forEach(changeTree => {
3132
+ // skip if ChangeTree is undefined
3133
+ if (changeTree === undefined) {
3134
+ return;
3135
+ }
3132
3136
  const changes = changeTree.indexedOperations;
3133
3137
  dump.refs.push(`refId#${changeTree.refId}`);
3134
3138
  for (const index in changes) {