@ninetailed/experience.js-react 7.17.2 → 7.17.5

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.
package/index.cjs.js CHANGED
@@ -208,7 +208,8 @@ function useFlagWithManualTracking(flagKey, defaultValue) {
208
208
  if (change) {
209
209
  changeRef.current = change;
210
210
  const rawValue = change.value;
211
- const actualValue = rawValue && typeof rawValue === 'object' && rawValue !== null && 'value' in rawValue && typeof rawValue['value'] === 'object' ? rawValue['value'] : rawValue;
211
+ // Unwrap { value: ... } structure if present
212
+ const actualValue = rawValue && typeof rawValue === 'object' && rawValue !== null && 'value' in rawValue ? rawValue['value'] : rawValue;
212
213
  setResult({
213
214
  value: actualValue,
214
215
  status: 'success',
package/index.esm.js CHANGED
@@ -192,7 +192,9 @@ function useFlagWithManualTracking(flagKey, defaultValue) {
192
192
  if (change) {
193
193
  changeRef.current = change;
194
194
  const rawValue = change.value;
195
- const actualValue = rawValue && typeof rawValue === 'object' && rawValue !== null && 'value' in rawValue && typeof rawValue['value'] === 'object' ? rawValue['value'] : rawValue;
195
+
196
+ // Unwrap { value: ... } structure if present
197
+ const actualValue = rawValue && typeof rawValue === 'object' && rawValue !== null && 'value' in rawValue ? rawValue['value'] : rawValue;
196
198
  setResult({
197
199
  value: actualValue,
198
200
  status: 'success',
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js-react",
3
- "version": "7.17.2",
3
+ "version": "7.17.5",
4
4
  "description": "Ninetailed SDK for React",
5
5
  "dependencies": {
6
- "@ninetailed/experience.js": "7.17.2",
7
- "@ninetailed/experience.js-shared": "7.17.2",
8
- "@ninetailed/experience.js-plugin-analytics": "7.17.2",
6
+ "@ninetailed/experience.js": "7.17.5",
7
+ "@ninetailed/experience.js-shared": "7.17.5",
8
+ "@ninetailed/experience.js-plugin-analytics": "7.17.5",
9
9
  "radash": "10.9.0",
10
10
  "react-is": "18.2.0"
11
11
  },