@streamlayer/sdk-web-features 0.9.5 → 0.10.0

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -22,7 +22,7 @@ export const initFeature = (overlay, source, instance) => {
22
22
  export { FeatureSource } from '@streamlayer/sdk-web-interfaces';
23
23
  export const features = (instance, opts, done) => {
24
24
  instance.features = new Map();
25
- instance.activeFeature = new SingleStore(createSingleStore(undefined), 'activeFeature');
25
+ instance.activeFeature = new SingleStore(createSingleStore(FeatureType.UNSET), 'activeFeature');
26
26
  instance.sdk.getFeatures = () => instance.features;
27
27
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
28
28
  // @ts-ignore
@@ -32,7 +32,7 @@ export const features = (instance, opts, done) => {
32
32
  instance.activeFeature.setValue(featureType);
33
33
  };
34
34
  instance.sdk.closeFeature = () => {
35
- instance.activeFeature.setValue(undefined);
35
+ instance.activeFeature.setValue(FeatureType.UNSET);
36
36
  };
37
37
  /**
38
38
  * A distinct object instance is created and initialized for each overlay.
package/package.json CHANGED
@@ -3,13 +3,13 @@
3
3
  "peerDependencies": {
4
4
  "@streamlayer/sdk-web-interfaces": "^0.18.0",
5
5
  "@streamlayer/sdk-web-types": "^0.16.0",
6
- "@streamlayer/feature-gamification": "^0.16.0",
7
- "@streamlayer/sdk-web-core": "^0.12.0"
6
+ "@streamlayer/feature-gamification": "^0.17.0",
7
+ "@streamlayer/sdk-web-core": "^0.13.0"
8
8
  },
9
9
  "devDependencies": {
10
10
  "tslib": "^2.6.2"
11
11
  },
12
- "version": "0.9.5",
12
+ "version": "0.10.0",
13
13
  "type": "module",
14
14
  "main": "./lib/index.js",
15
15
  "typings": "./lib/index.d.ts",