@bucketco/flag-evaluation
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -93,3 +93,3 @@ "use strict"; | ||
} | ||
const hashVal = hashInt(`${filter.flagKey}.${context[filter.partialRolloutAttribute]}`); | ||
const hashVal = hashInt(`${filter.key}.${context[filter.partialRolloutAttribute]}`); | ||
return hashVal < filter.partialRolloutThreshold; | ||
@@ -96,0 +96,0 @@ } |
@@ -44,3 +44,3 @@ export type FilterClass = { | ||
type: "rolloutPercentage"; | ||
flagKey: string; | ||
key: string; | ||
partialRolloutAttribute: string; | ||
@@ -47,0 +47,0 @@ partialRolloutThreshold: number; |
@@ -93,3 +93,3 @@ "use strict"; | ||
} | ||
const hashVal = hashInt(`${filter.flagKey}.${context[filter.partialRolloutAttribute]}`); | ||
const hashVal = hashInt(`${filter.key}.${context[filter.partialRolloutAttribute]}`); | ||
return hashVal < filter.partialRolloutThreshold; | ||
@@ -96,0 +96,0 @@ } |
{ | ||
"name": "@bucketco/flag-evaluation", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"license": "MIT", | ||
@@ -37,3 +37,3 @@ "repository": { | ||
}, | ||
"gitHead": "d034af928eb9fb7accebf3dfff34aa12776d15de" | ||
"gitHead": "a4f39af2ab2aa92e134a4f70d12c6abaeec7f591" | ||
} |
Sorry, the diff of this file is not supported yet
21917