eyevinn-channel-engine 4.0.10 → 4.0.11

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.
@@ -34,7 +34,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- var redis = require("redis");
37
+ var createClient = require("redis").createClient;
38
38
  var debug = require("debug")("redis-state-store");
39
39
  var DEFAULT_VOLATILE_KEY_TTL = 5; // Timeout so it should not expire within one normal increment iteration (in seconds)
40
40
  var RedisStateStore = /** @class */ (function () {
@@ -50,7 +50,7 @@ var RedisStateStore = /** @class */ (function () {
50
50
  debug("Overriding default, volatileKeyTTL=".concat(opts.volatileKeyTTL, "s"));
51
51
  this.volatileKeyTTL = opts.volatileKeyTTL;
52
52
  }
53
- this.client = redis.createClient(opts.redisUrl);
53
+ this.client = createClient(opts.redisUrl);
54
54
  }
55
55
  RedisStateStore.prototype.initAsync = function (id, initData) {
56
56
  return __awaiter(this, void 0, void 0, function () {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "4.0.10",
3
+ "version": "4.0.11",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "nock": "^13.1.1",
35
35
  "node-fetch": "^2.6.1",
36
36
  "promise.allsettled": "^1.0.4",
37
- "redis": "^3.0.2",
37
+ "redis": "3.1.0",
38
38
  "request": ">=2.88.0",
39
39
  "restify": "9.0.0",
40
40
  "restify-errors": "^8.0.2",
@@ -1,4 +1,4 @@
1
- const redis = require("redis");
1
+ const { createClient } = require("redis");
2
2
  const debug = require("debug")("redis-state-store");
3
3
 
4
4
  const DEFAULT_VOLATILE_KEY_TTL = 5; // Timeout so it should not expire within one normal increment iteration (in seconds)
@@ -16,7 +16,7 @@ class RedisStateStore {
16
16
  debug(`Overriding default, volatileKeyTTL=${opts.volatileKeyTTL}s`);
17
17
  this.volatileKeyTTL = opts.volatileKeyTTL;
18
18
  }
19
- this.client = redis.createClient(opts.redisUrl);
19
+ this.client = createClient(opts.redisUrl);
20
20
  }
21
21
 
22
22
  async initAsync(id, initData) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "4.0.10",
3
+ "version": "4.0.11",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "nock": "^13.1.1",
35
35
  "node-fetch": "^2.6.1",
36
36
  "promise.allsettled": "^1.0.4",
37
- "redis": "^3.0.2",
37
+ "redis": "3.1.0",
38
38
  "request": ">=2.88.0",
39
39
  "restify": "9.0.0",
40
40
  "restify-errors": "^8.0.2",