@dvsa/cvs-feature-flags 1.1.0-canary.1 → 1.1.0-canary.2
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/feature-flags.js +3 -0
- package/package.json +1 -1
package/feature-flags.js
CHANGED
|
@@ -20,6 +20,7 @@ function resolveVariants(config, email) {
|
|
|
20
20
|
resolved[key] = flagValues;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
console.log('Resolving Variants', { resolved });
|
|
23
24
|
return resolved;
|
|
24
25
|
}
|
|
25
26
|
class FeatureFlagsClient {
|
|
@@ -29,8 +30,10 @@ class FeatureFlagsClient {
|
|
|
29
30
|
transform: 'json',
|
|
30
31
|
});
|
|
31
32
|
if (!email) {
|
|
33
|
+
console.log('no email returning config', { config });
|
|
32
34
|
return config;
|
|
33
35
|
}
|
|
36
|
+
console.log('Try to resolve variant', { config });
|
|
34
37
|
return resolveVariants(config, email);
|
|
35
38
|
}
|
|
36
39
|
}
|