Comparing version
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.3.5](https://github.com/escaletech/tog-node/compare/v0.3.4...v0.3.5) (2020-03-03) | ||
### Features | ||
* add cluster support to session client ([5f80f60](https://github.com/escaletech/tog-node/commit/5f80f6062e7fbcb04a6fe26c9ac29467a5471fe9)) | ||
### [0.3.4](https://github.com/escaletech/tog-node/compare/v0.3.3...v0.3.4) (2020-03-03) | ||
@@ -7,0 +14,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { Session, SessionOptions } from "./types"; | ||
import { Session, SessionOptions, ClientOptions } from "./types"; | ||
import { Redis } from './redis'; | ||
@@ -18,3 +18,3 @@ /** | ||
*/ | ||
constructor(redisUrl: string); | ||
constructor(redisUrl: string, options?: ClientOptions); | ||
/** | ||
@@ -21,0 +21,0 @@ * Resolves a session, either by retrieving it or by computing a new one |
@@ -66,4 +66,5 @@ "use strict"; | ||
*/ | ||
function SessionClient(redisUrl) { | ||
this.flags = new flagClient_1.FlagClient(redisUrl); | ||
function SessionClient(redisUrl, options) { | ||
if (options === void 0) { options = {}; } | ||
this.flags = new flagClient_1.FlagClient(redisUrl, options); | ||
this.redis = this.flags.redis; | ||
@@ -70,0 +71,0 @@ } |
{ | ||
"name": "tog-node", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
32227
1.25%7
250%530
0.19%