eyevinn-channel-engine 4.0.13 → 4.0.15

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.
@@ -226,7 +226,7 @@ var SharedSessionState = /** @class */ (function () {
226
226
  return [4 /*yield*/, this.store.isLeader(this.instanceId)];
227
227
  case 2:
228
228
  if (!_a.sent()) return [3 /*break*/, 4];
229
- valueToIncrement = inc || 1;
229
+ valueToIncrement = inc === 0 ? 0 : inc ? inc : 1;
230
230
  debug("[".concat(this.sessionId, "]: I am incrementing key ").concat(key, " with ").concat(valueToIncrement));
231
231
  value += valueToIncrement;
232
232
  return [4 /*yield*/, this.store.set(this.sessionId, key, value)];
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "4.0.13",
3
+ "version": "4.0.15",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@eyevinn/hls-repeat": "^0.2.0",
28
28
  "@eyevinn/hls-truncate": "^0.2.0",
29
- "@eyevinn/hls-vodtolive": "^2.3.3",
29
+ "@eyevinn/hls-vodtolive": "^2.3.5",
30
30
  "@eyevinn/m3u8": "^0.5.3",
31
31
  "abort-controller": "^3.0.0",
32
32
  "debug": "^3.2.7",
@@ -116,7 +116,7 @@ class SharedSessionState {
116
116
  async increment(key, inc) {
117
117
  let value = await this.get(key);
118
118
  if (await this.store.isLeader(this.instanceId)) {
119
- let valueToIncrement = inc || 1;
119
+ let valueToIncrement = inc === 0 ? 0 : inc ? inc : 1;
120
120
  debug(`[${this.sessionId}]: I am incrementing key ${key} with ${valueToIncrement}`);
121
121
  value += valueToIncrement;
122
122
  return await this.store.set(this.sessionId, key, value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "4.0.13",
3
+ "version": "4.0.15",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@eyevinn/hls-repeat": "^0.2.0",
28
28
  "@eyevinn/hls-truncate": "^0.2.0",
29
- "@eyevinn/hls-vodtolive": "^2.3.3",
29
+ "@eyevinn/hls-vodtolive": "^2.3.5",
30
30
  "@eyevinn/m3u8": "^0.5.3",
31
31
  "abort-controller": "^3.0.0",
32
32
  "debug": "^3.2.7",