@streamlayer/sdk-web-features
Advanced tools
Comparing version 0.11.17 to 0.11.18
@@ -31,8 +31,6 @@ import { FeatureType } from '@streamlayer/sdk-web-types'; | ||
instance.sdk.closeFeature = (destroy = false) => { | ||
if (destroy) { | ||
const activeFeature = instance.activeFeature.getValue(); | ||
instance.activeFeature.setValue(FeatureType.UNSET); | ||
if (activeFeature) { | ||
instance.features.delete(activeFeature); | ||
} | ||
const activeFeature = instance.activeFeature.getValue(); | ||
instance.activeFeature.setValue(FeatureType.UNSET); | ||
if (destroy && activeFeature) { | ||
instance.features.delete(activeFeature); | ||
} | ||
@@ -39,0 +37,0 @@ }; |
{ | ||
"name": "@streamlayer/sdk-web-features", | ||
"peerDependencies": { | ||
"@streamlayer/feature-gamification": "^0.36.0", | ||
"@streamlayer/sdk-web-core": "^0.19.0", | ||
"@streamlayer/sdk-web-interfaces": "^0.20.2", | ||
"@streamlayer/sdk-web-types": "^0.22.0" | ||
"@streamlayer/feature-gamification": "^0.37.0", | ||
"@streamlayer/sdk-web-core": "^0.20.0", | ||
"@streamlayer/sdk-web-interfaces": "^0.20.3", | ||
"@streamlayer/sdk-web-types": "^0.22.1" | ||
}, | ||
@@ -12,3 +12,3 @@ "devDependencies": { | ||
}, | ||
"version": "0.11.17", | ||
"version": "0.11.18", | ||
"type": "module", | ||
@@ -15,0 +15,0 @@ "main": "./lib/index.js", |
7670
155