@colyseus/schema 3.0.8 → 3.0.9

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.
@@ -4418,7 +4418,6 @@ function getDecoderStateCallbacks(decoder) {
4418
4418
  const onAddCalls = new WeakMap();
4419
4419
  let currentOnAddCallback;
4420
4420
  decoder.triggerChanges = function (allChanges) {
4421
- // console.log("ALL CHANGES =>", allChanges);
4422
4421
  const uniqueRefIds = new Set();
4423
4422
  for (let i = 0, l = allChanges.length; i < l; i++) {
4424
4423
  const change = allChanges[i];
@@ -4561,9 +4560,7 @@ function getDecoderStateCallbacks(decoder) {
4561
4560
  if (metadataField) {
4562
4561
  const instance = context.instance?.[prop];
4563
4562
  const onInstanceAvailable = ((callback) => {
4564
- console.log("onInstanceAvailable!!");
4565
4563
  const unbind = $(context.instance).listen(prop, (value, _) => {
4566
- console.log("prop changed!", prop);
4567
4564
  callback(value, false);
4568
4565
  // FIXME: by "unbinding" the callback here,
4569
4566
  // it will not support when the server
@@ -4611,11 +4608,9 @@ function getDecoderStateCallbacks(decoder) {
4611
4608
  });
4612
4609
  };
4613
4610
  const onRemove = function (ref, callback) {
4614
- console.log("REGISTER ON REMOVE ON", $root.refIds.get(ref));
4615
4611
  return $root.addCallback($root.refIds.get(ref), exports.OPERATION.DELETE, callback);
4616
4612
  };
4617
4613
  const onChange = function (ref, callback) {
4618
- console.log("REGISTER ON CHANGE ON", $root.refIds.get(ref));
4619
4614
  return $root.addCallback($root.refIds.get(ref), exports.OPERATION.REPLACE, callback);
4620
4615
  };
4621
4616
  return new Proxy({