@supernova-studio/client 0.47.74 → 0.48.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/client",
3
- "version": "0.47.74",
3
+ "version": "0.48.0",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -242,7 +242,10 @@ export class FrontendVersionRoomYDoc {
242
242
  updatedDraftState.changes.previousTitle = publishedState.title;
243
243
  }
244
244
 
245
- if (generateHash(currentState.configuration) !== generateHash(publishedState.configuration)) {
245
+ const currentConfigHash = generateHash(currentState.configuration, this.debug);
246
+ const publishedConfigHash = generateHash(publishedState.configuration, this.debug);
247
+
248
+ if (currentConfigHash !== publishedConfigHash) {
246
249
  if (this.debug) {
247
250
  console.log(`Item ${itemPersistentId} (${currentState.title}): updated configuration`);
248
251
  }