1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/util
Nuno Góis 4adc977ba0
fix: properly handle flag resolver variants (#3808)
Variants were not being properly handled in the `flag-resolver`: The
fact that the default value of the variant is not falsy made it so we
never asked the external flag resolver for the value.

This also moves the logic from `Variant | undefined` to `Variant` where
we use the `getDefaultVariant()` helper method to return us a [default
variant](55274e4953/src/variant.ts (L37-L42)).
2023-05-18 17:04:55 +01:00
..
feature-evaluator feat: message banner (variants) (#3788) 2023-05-18 09:38:59 +01:00
validators Clean up old errors (#3633) 2023-05-11 11:10:57 +02:00
anonymise.test.ts test: add anonymise unit tests (#3722) 2023-05-09 14:20:39 +01:00
anonymise.ts fix: anonymise PII fields in user access if flag is set (#3773) 2023-05-15 14:12:03 +02:00
anyEventEmitter.test.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
anyEventEmitter.ts
arraysHaveSameItems.test.ts
arraysHaveSameItems.ts
collapseHourlyMetrics.test.ts
collapseHourlyMetrics.ts feat: metrics for variants (#3685) 2023-05-05 11:10:54 +03:00
collect-ids.ts feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
constants.ts
constantTimeCompare.test.ts Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
constantTimeCompare.ts
db-lock.test.ts feat: postgres lock (#3443) 2023-04-04 13:28:17 +02:00
db-lock.ts feat: postgres lock (#3443) 2023-04-04 13:28:17 +02:00
ensureStringValue.test.ts fix: ensure that param values from /api/admin/features are strings (#1761) 2022-06-29 10:11:34 +02:00
ensureStringValue.ts
escape-regex.ts
extract-user.ts chore: make event store accept IUser (#3076) 2023-02-21 14:11:39 +00:00
findPublicFolder.ts
flag-resolver.test.ts fix: properly handle flag resolver variants (#3808) 2023-05-18 17:04:55 +01:00
flag-resolver.ts fix: properly handle flag resolver variants (#3808) 2023-05-18 17:04:55 +01:00
format-base-uri.test.ts Migrate to jest (#854) 2021-05-28 11:10:24 +02:00
format-base-uri.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
generateImageUrl.ts
get-prop-from-string.ts Clean up old errors (#3633) 2023-05-11 11:10:57 +02:00
graceful-shutdown.ts Feat/api key scoping (#941) 2021-09-15 20:28:10 +02:00
index.ts
is-email.test.ts chore: add linter rules for regexp (#3500) 2023-04-17 07:11:22 +00:00
is-email.ts chore: add linter rules for regexp (#3500) 2023-04-17 07:11:22 +00:00
isDefined.test.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
isDefined.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
isEmpty.ts
load-index-html.ts
map-values.test.ts
map-values.ts
metrics-helper.ts
offline-unleash-client.test.ts fix(deps): update dependency unleash-client to v3.18.0 (#2956) 2023-02-10 10:51:53 +01:00
offline-unleash-client.ts feat: message banner (variants) (#3788) 2023-05-18 09:38:59 +01:00
omit-keys.test.ts
omit-keys.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
parseEnvVar.test.ts
parseEnvVar.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
random-id.ts
rewriteHTML.test.ts Merge frontend with backend (#1962) 2022-08-26 07:25:31 +00:00
rewriteHTML.ts
segments.ts chore: expand default segment limits to 1000 (#3710) 2023-05-08 14:44:48 +02:00
semver.test.ts
semver.ts
snakeCase.test.ts
snakeCase.ts feat: Move environments to enterprise (#935) 2021-09-13 15:57:38 +02:00
time-utils.test.ts fix: generate all hour buckets if missing (#2319) 2022-11-04 09:30:02 +01:00
time-utils.ts
timer.test.ts task: use swc instead of ts-jest (#2042) 2022-09-06 13:22:41 +02:00
timer.ts
unique.test.ts
unique.ts
validateJsonString.test.ts fix: when payload type is 'json' validate value on toggle variable validation (#1704) 2022-06-14 13:08:38 +02:00
validateJsonString.ts
validateOrigin.test.ts
validateOrigin.ts feat: add CORS instance settings (#1957) 2022-08-26 09:09:48 +02:00
version.ts