@onecx/accelerator 4.30.1 → 4.31.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onecx/accelerator",
3
- "version": "4.30.1",
3
+ "version": "4.31.0",
4
4
  "peerDependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "rxjs": "7.8.1"
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Message = void 0;
4
- window['onecxMessageId'] = 0;
4
+ window['onecxMessageId'] = 1;
5
5
  class Message {
6
6
  type;
7
7
  timestamp;
@@ -61,7 +61,7 @@ class Topic extends topic_publisher_1.TopicPublisher {
61
61
  else if (this.data.value &&
62
62
  this.isInit &&
63
63
  m.data.timestamp === this.data.value.timestamp &&
64
- (m.data.id || this.data.value.id)) {
64
+ ((m.data.id && !this.data.value.id) || (!m.data.id && this.data.value.id))) {
65
65
  console.warn('Message was dropped because of equal timestamps, because there was an old style message in the system. Please upgrade all libraries to the latest version.');
66
66
  }
67
67
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"topic.js","sourceRoot":"","sources":["../../../../../../libs/accelerator/src/lib/topic/topic.ts"],"names":[],"mappings":";;;AAAA,8CAA4C;AAC5C,+BAQa;AAEb,mDAA8C;AAE9C,uDAAkD;AAElD,MAAa,KAAS,SAAQ,gCAAiB;IACnC,oBAAoB,CAAe;IACnC,IAAI,GAAG,IAAI,sBAAe,CAAkC,SAAS,CAAC,CAAA;IAEtE,MAAM,GAAG,KAAK,CAAA;IAChB,kBAAkB,CAA4C;IAC9D,aAAa,GAAG,CAAC,CAA6B,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;IAE5E,YAAY,IAAY,EAAE,OAAe,EAAE,cAAc,GAAG,IAAI;QAC9D,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;QAEpB,IAAI,CAAC,oBAAoB,GAAG,IAAI,OAAO,CA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