@momo2555/koppeliajs 0.0.112 → 0.0.114

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.
@@ -67,8 +67,10 @@ export class State {
67
67
  if (!Object.hasOwn(this._previousStateValue, entry)) {
68
68
  update[entry] = newState[entry];
69
69
  }
70
- else if (Array.isArray(newState[entry]) && JSON.stringify(this._previousStateValue[entry]) != JSON.stringify(newState[entry])) {
71
- update[entry] = newState[entry];
70
+ else if (Array.isArray(newState[entry])) {
71
+ if (JSON.stringify(this._previousStateValue[entry]) != JSON.stringify(newState[entry])) {
72
+ update[entry] = newState[entry];
73
+ }
72
74
  }
73
75
  else if (this._previousStateValue[entry] != newState[entry]) {
74
76
  update[entry] = newState[entry];
@@ -101,6 +103,7 @@ export class State {
101
103
  else {
102
104
  this._globalState.set(receivedState);
103
105
  }
106
+ this._previousStateValue = get(this._globalState);
104
107
  this._access = true;
105
108
  }
106
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo2555/koppeliajs",
3
- "version": "0.0.112",
3
+ "version": "0.0.114",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",