slnodejs 6.2.59 → 6.2.62

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.
@@ -416,7 +416,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
416
416
  this.backendProxy = backendProxy;
417
417
  }
418
418
  static getCreateAgentTimeSynchronizer(syncIntervalSec, logger, backendProxy) {
419
- return this._instance || (this._instance = new this(syncIntervalSec, logger, backendProxy));
419
+ return agent_time_1.AgentTime._instance || (agent_time_1.AgentTime._instance = new this(syncIntervalSec, logger, backendProxy));
420
420
  }
421
421
  getSynchronizationTime() {
422
422
  return __awaiter(this, void 0, void 0, function* () {
@@ -1093,7 +1093,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
1093
1093
  value: true
1094
1094
  });
1095
1095
  exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
1096
- exports.SL_AGENT_VERSION = '6.2.59';
1096
+ exports.SL_AGENT_VERSION = '6.2.62';
1097
1097
  exports.SL_AGENT_TYPE = 'browser';
1098
1098
  });
1099
1099
 
@@ -3306,7 +3306,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
3306
3306
  this.agentInstanceData = agentInstanceData;
3307
3307
  }
3308
3308
  static getCreateAgentTimeSynchronizer(syncIntervalSec, logger, agentBaseData, agentInstanceData) {
3309
- return this._instance || (this._instance = new this(syncIntervalSec, logger, agentBaseData, agentInstanceData));
3309
+ return agent_time_1.AgentTime._instance || (agent_time_1.AgentTime._instance = new this(syncIntervalSec, logger, agentBaseData, agentInstanceData));
3310
3310
  }
3311
3311
  getSynchronizationTime() {
3312
3312
  return __awaiter(this, void 0, void 0, function* () {
@@ -4438,7 +4438,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
4438
4438
  }
4439
4439
  static getOffset() {
4440
4440
  var _a, _b;
4441
- return (_b = (_a = this._instance) === null || _a === void 0 ? void 0 : _a.timeSyncOffset) !== null && _b !== void 0 ? _b : 0;
4441
+ return (_b = (_a = AgentTime._instance) === null || _a === void 0 ? void 0 : _a.timeSyncOffset) !== null && _b !== void 0 ? _b : 0;
4442
4442
  }
4443
4443
  initiateClockSync() {
4444
4444
  return __awaiter(this, void 0, void 0, function* () {
@@ -6654,7 +6654,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
6654
6654
  this.start = this.end;
6655
6655
  }
6656
6656
  this.end = this.toSeconds((0, system_date_1.getSystemDateValueOf)());
6657
- if (this.end - this.start > this.intervalInSeconds) {
6657
+ if (this.end <= this.start || this.end - this.start > this.intervalInSeconds) {
6658
6658
  this.start = this.end - this.intervalInSeconds;
6659
6659
  }
6660
6660
  }