bingocode 1.1.146 → 1.1.147
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/package.json
CHANGED
|
@@ -685,6 +685,11 @@ async function getFeatureValueInternal<T>(
|
|
|
685
685
|
}
|
|
686
686
|
|
|
687
687
|
if (!isGrowthBookEnabled()) {
|
|
688
|
+
// No network-based GrowthBook; fall back to disk cache via GlobalConfig.
|
|
689
|
+
try {
|
|
690
|
+
const cc = getGlobalConfig().cachedGrowthBookFeatures
|
|
691
|
+
if (cc && feature in cc) return cc[feature] as T
|
|
692
|
+
} catch {}
|
|
688
693
|
return defaultValue
|
|
689
694
|
}
|
|
690
695
|
|
|
@@ -748,6 +753,11 @@ export function getFeatureValue_CACHED_MAY_BE_STALE<T>(
|
|
|
748
753
|
}
|
|
749
754
|
|
|
750
755
|
if (!isGrowthBookEnabled()) {
|
|
756
|
+
// No network-based GrowthBook; fall back to disk cache via GlobalConfig.
|
|
757
|
+
try {
|
|
758
|
+
const cc = getGlobalConfig().cachedGrowthBookFeatures
|
|
759
|
+
if (cc && feature in cc) return cc[feature] as T
|
|
760
|
+
} catch {}
|
|
751
761
|
return defaultValue
|
|
752
762
|
}
|
|
753
763
|
|