@ninetailed/experience.js 1.0.1-beta.17 → 1.0.1-beta.20

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.esm.js CHANGED
@@ -4266,7 +4266,7 @@ const selectVariant = (baseline, variants, {
4266
4266
  return {
4267
4267
  loading: false,
4268
4268
  variant: Object.assign({
4269
- id: 'baseline',
4269
+ id: baseline.id,
4270
4270
  audience: {
4271
4271
  id: 'baseline'
4272
4272
  }
package/index.umd.js CHANGED
@@ -4039,7 +4039,7 @@
4039
4039
  return {
4040
4040
  loading: false,
4041
4041
  variant: __assign({
4042
- id: 'baseline',
4042
+ id: baseline.id,
4043
4043
  audience: {
4044
4044
  id: 'baseline'
4045
4045
  }
@@ -31,5 +31,7 @@ declare type Fail<T> = {
31
31
  error: Error;
32
32
  };
33
33
  declare type Result<T> = Loading<T> | Success<T> | Fail<T>;
34
- export declare const selectVariant: <T>(baseline: T, variants: Variant<T>[], { loading, profile, error }: ProfileState, options?: Options) => Result<T>;
34
+ export declare const selectVariant: <T extends {
35
+ id: string;
36
+ }>(baseline: T, variants: Variant<T>[], { loading, profile, error }: ProfileState, options?: Options) => Result<T>;
35
37
  export {};
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js",
3
- "version": "1.0.1-beta.17",
3
+ "version": "1.0.1-beta.20",
4
4
  "main": "./index.umd.js",
5
5
  "module": "./index.esm.js",
6
6
  "typings": "./index.d.ts",
7
7
  "dependencies": {
8
- "@ninetailed/experience.js-shared": "1.0.1-beta.17",
8
+ "@ninetailed/experience.js-shared": "1.0.1-beta.20",
9
9
  "uuid": "^8.3.2",
10
10
  "ts-toolbelt": "^9.6.0",
11
11
  "locale-enum": "^1.1.1",