From 7d6a9921b5c22f168e611c4a73fba05f63638c21 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 28 Jan 2021 12:39:31 +0000 Subject: [PATCH] fix(core): update --- package-lock.json | 6 +++--- package.json | 2 +- ts/smartsocket.classes.socketconnection.ts | 6 +----- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 202fe8f..ef5b298 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1567,9 +1567,9 @@ } }, "@pushrocks/smartjson": { - "version": "4.0.5", - "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartjson/-/smartjson-4.0.5.tgz", - "integrity": "sha512-i4kBjZSbs1t8swcAPEdPkDJHci2higzvMIkNUKTgXWrcxUFMuOis/B5huUnnIqg/Td8R+mAdf/B/CMfgjABTlg==", + "version": "4.0.6", + "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartjson/-/smartjson-4.0.6.tgz", + "integrity": "sha512-lykr068RSDHs0+EXCvIDVxjKnDtRQ2M7EXOo5jVrUU6/OEdfRl9ErM1K/oPafiEi47/PtTrwLlp1KdSgqkRjmg==", "requires": { "@types/buffer-json": "^2.0.0", "@types/fast-json-stable-stringify": "^2.0.0", diff --git a/package.json b/package.json index 9af9571..382fc12 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@pushrocks/smartdelay": "^2.0.10", "@pushrocks/smartenv": "^4.0.16", "@pushrocks/smartexpress": "^3.0.100", - "@pushrocks/smartjson": "^4.0.5", + "@pushrocks/smartjson": "^4.0.6", "@pushrocks/smartlog": "^2.0.39", "@pushrocks/smartpromise": "^3.1.3", "@pushrocks/smartrx": "^2.0.19", diff --git a/ts/smartsocket.classes.socketconnection.ts b/ts/smartsocket.classes.socketconnection.ts index aa35a93..0d99af9 100644 --- a/ts/smartsocket.classes.socketconnection.ts +++ b/ts/smartsocket.classes.socketconnection.ts @@ -192,11 +192,7 @@ export class SocketConnection { }); this.socket.on('updateTagStore', async (tagStoreArg: interfaces.TTagStore) => { - const exitingStoreString = plugins.smartjson.stringify(this.tagStore); - const newStoreString = plugins.smartjson.stringify(tagStoreArg); - console.log(exitingStoreString); - console.log(newStoreString); - if (exitingStoreString !== newStoreString) { + if (!plugins.smartjson.deepEqualObjects(this.tagStore, tagStoreArg)) { this.tagStore = tagStoreArg; this.socket.emit('updateTagStore', this.tagStore); this.tagStoreObservable.next(this.tagStore);