@momo2555/koppeliajs 0.0.113 → 0.0.115

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.
@@ -68,7 +68,6 @@ export class State {
68
68
  update[entry] = newState[entry];
69
69
  }
70
70
  else if (Array.isArray(newState[entry])) {
71
- console.log(entry, " array?yess=", JSON.stringify(this._previousStateValue[entry]), JSON.stringify(newState[entry]));
72
71
  if (JSON.stringify(this._previousStateValue[entry]) != JSON.stringify(newState[entry])) {
73
72
  update[entry] = newState[entry];
74
73
  }
@@ -98,6 +97,7 @@ export class State {
98
97
  let state = get(this._globalState);
99
98
  for (let entry in receivedState) {
100
99
  state[entry] = receivedState[entry];
100
+ this._previousStateValue[entry] = structuredClone(receivedState[entry]);
101
101
  }
102
102
  this._globalState.set(state);
103
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo2555/koppeliajs",
3
- "version": "0.0.113",
3
+ "version": "0.0.115",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",