@dvsa/cvs-feature-flags 1.1.0-canary.4 → 1.1.0-canary.5

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/feature-flags.js +3 -1
  2. package/package.json +1 -1
package/feature-flags.js CHANGED
@@ -19,7 +19,9 @@ function resolveVariants(config, email) {
19
19
  continue;
20
20
  }
21
21
  const normalisedEmail = email?.toLowerCase();
22
+ console.log('got emails', { emails, normalisedEmail });
22
23
  const isTargeted = normalisedEmail && emails.map((e) => e.toLowerCase()).includes(normalisedEmail);
24
+ console.log('isTargeted', isTargeted);
23
25
  resolved[key] = isTargeted ? flagValues : { ...flagValues, enabled: false };
24
26
  }
25
27
  console.log('Resolving Variants', { resolved });
@@ -35,7 +37,7 @@ class FeatureFlagsClient {
35
37
  console.log('no email returning config', { config });
36
38
  return config;
37
39
  }
38
- console.log('Try to resolve variant', { config });
40
+ console.log('Try to resolve variant', { config, email });
39
41
  return resolveVariants(config, email);
40
42
  }
41
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvsa/cvs-feature-flags",
3
- "version": "1.1.0-canary.4",
3
+ "version": "1.1.0-canary.5",
4
4
  "description": "Common package to be used in CVS to manage feature flags",
5
5
  "author": "DVSA",
6
6
  "license": "ISC",