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