@splitsoftware/splitio-commons 1.16.1-rc.4 → 1.16.1-rc.5

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.
@@ -70,6 +70,7 @@ function MySegmentsUpdateWorker(mySegmentsSyncTask, telemetryTracker, updateType
70
70
  },
71
71
  stop: function () {
72
72
  clearTimeout(_delayTimeoutID);
73
+ _delay = undefined;
73
74
  isHandlingEvent = false;
74
75
  backoff.reset();
75
76
  }
@@ -67,6 +67,7 @@ export function MySegmentsUpdateWorker(mySegmentsSyncTask, telemetryTracker, upd
67
67
  },
68
68
  stop: function () {
69
69
  clearTimeout(_delayTimeoutID);
70
+ _delay = undefined;
70
71
  isHandlingEvent = false;
71
72
  backoff.reset();
72
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio-commons",
3
- "version": "1.16.1-rc.4",
3
+ "version": "1.16.1-rc.5",
4
4
  "description": "Split JavaScript SDK common components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -76,12 +76,10 @@ export class SSEClient implements ISSEClient {
76
76
  open(authToken: IAuthTokenPushEnabled) {
77
77
  this.close(); // it closes connection if previously opened
78
78
 
79
- const channelsQueryParam = Object.keys(authToken.channels).map(
80
- function (channel) {
81
- const params = CONTROL_CHANNEL_REGEX.test(channel) ? '[?occupancy=metrics.publishers]' : '';
82
- return encodeURIComponent(params + channel);
83
- }
84
- ).join(',');
79
+ const channelsQueryParam = Object.keys(authToken.channels).map((channel) => {
80
+ const params = CONTROL_CHANNEL_REGEX.test(channel) ? '[?occupancy=metrics.publishers]' : '';
81
+ return encodeURIComponent(params + channel);
82
+ }).join(',');
85
83
  const url = `${this.streamingUrl}?channels=${channelsQueryParam}&accessToken=${authToken.token}&v=${ABLY_API_VERSION}&heartbeats=true`; // same results using `&heartbeats=false`
86
84
 
87
85
  this.connection = new this.eventSource!(
@@ -74,6 +74,7 @@ export function MySegmentsUpdateWorker(mySegmentsSyncTask: IMySegmentsSyncTask,
74
74
 
75
75
  stop() {
76
76
  clearTimeout(_delayTimeoutID);
77
+ _delay = undefined;
77
78
  isHandlingEvent = false;
78
79
  backoff.reset();
79
80
  }