@openfeature/core
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -541,7 +541,7 @@ "use strict"; | ||
}; | ||
const data = {}; | ||
const body = {}; | ||
if (evaluationDetails.variant) { | ||
attributes[TelemetryAttribute.VARIANT] = evaluationDetails.variant; | ||
} else { | ||
data[TelemetryEvaluationData.VALUE] = evaluationDetails.value; | ||
body[TelemetryEvaluationData.VALUE] = evaluationDetails.value; | ||
} | ||
@@ -569,3 +569,3 @@ const contextId = evaluationDetails.flagMetadata[TelemetryFlagMetadata.CONTEXT_ID] || hookContext.context.targetingKey; | ||
attributes, | ||
data | ||
body | ||
}; | ||
@@ -572,0 +572,0 @@ } |
@@ -486,7 +486,7 @@ var __defProp = Object.defineProperty; | ||
}; | ||
const data = {}; | ||
const body = {}; | ||
if (evaluationDetails.variant) { | ||
attributes[TelemetryAttribute.VARIANT] = evaluationDetails.variant; | ||
} else { | ||
data[TelemetryEvaluationData.VALUE] = evaluationDetails.value; | ||
body[TelemetryEvaluationData.VALUE] = evaluationDetails.value; | ||
} | ||
@@ -514,3 +514,3 @@ const contextId = evaluationDetails.flagMetadata[TelemetryFlagMetadata.CONTEXT_ID] || hookContext.context.targetingKey; | ||
attributes, | ||
data | ||
body | ||
}; | ||
@@ -517,0 +517,0 @@ } |
@@ -744,3 +744,3 @@ type Metadata = Record<string, string>; | ||
attributes: Record<string, string | number | boolean>; | ||
data: Record<string, JsonValue>; | ||
body: Record<string, JsonValue>; | ||
}; | ||
@@ -747,0 +747,0 @@ /** |
{ | ||
"name": "@openfeature/core", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "Shared OpenFeature JS components (server and web)", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet