@eppo/js-client-sdk-common
Advanced tools
Comparing version 4.8.3-alpha.4 to 4.8.3-alpha.5
@@ -197,2 +197,3 @@ "use strict"; | ||
} | ||
const assignedVariation = this.getStringAssignment(flagKey, defaultValue); | ||
const banditEvent = { | ||
@@ -220,3 +221,3 @@ timestamp: new Date().toISOString(), | ||
} | ||
return { variation: defaultValue, action: banditEvent.action }; | ||
return { variation: assignedVariation, action: banditEvent.action }; | ||
} | ||
@@ -223,0 +224,0 @@ getPrecomputedFlag(flagKey) { |
{ | ||
"name": "@eppo/js-client-sdk-common", | ||
"version": "4.8.3-alpha.4", | ||
"version": "4.8.3-alpha.5", | ||
"description": "Common library for Eppo JavaScript SDKs (web, react native, and node)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -310,3 +310,3 @@ import ApiEndpoints from '../api-endpoints'; | ||
getBanditAction( | ||
public getBanditAction( | ||
flagKey: string, | ||
@@ -322,2 +322,4 @@ defaultValue: string, | ||
const assignedVariation = this.getStringAssignment(flagKey, defaultValue); | ||
const banditEvent: IBanditEvent = { | ||
@@ -346,3 +348,3 @@ timestamp: new Date().toISOString(), | ||
return { variation: defaultValue, action: banditEvent.action }; | ||
return { variation: assignedVariation, action: banditEvent.action }; | ||
} | ||
@@ -349,0 +351,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1995093
27233