cal.pub0.org/packages
jemiluv8 15e50fcd34
fix: Route Builder rules should be case insensitive (#9040)
* override jsonLogic operators on string operands to allow for case insensitive comparisons.

Affected Operators: "==", "===", "!=", "!==", "in"

* disable no-explicit-any on jsonLogicOverrides file since most of the code there will be from jsonLogic and may not meet our coding style.

Majority of overrides require us to copy over functions and their signatures from jsonLogic and then modify their implementation.

The signature of functions implementing most operators take the operands typed as "any", which is intended, but doesn't adhere to our coding style. Hence the need to override the eslint rule

* run linter to fix issues

* Fix bug in in operator when second arg is an array

* remove redundant indexOf check on overriden jsonLogic "in" operator.

Note: this deviates from the original implementation in the jsonLogic library because our current useage ensures that the second operand is always a string or string[] and will therefore always have .index function. Whenever our invariants change in the future, make sure to modify this implementation to prevent any unexpected

---------

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
2023-05-29 20:11:55 +01:00
..
app-store fix: Route Builder rules should be case insensitive (#9040) 2023-05-29 20:11:55 +01:00
app-store-cli imageSrc field is commented for solving this issue and can be removed (#9045) 2023-05-23 06:51:17 +00:00
atoms
config Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
core issue#8601: fix (#8713) 2023-05-17 12:57:12 +00:00
dayjs Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
emails Add the or operator to the emails package.json as well (#9013) 2023-05-29 20:11:45 +01:00
embeds change /ee to /commercial (#8948) 2023-05-25 17:50:30 +00:00
eslint-plugin Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
features feat: filter bookings by event type (#9011) 2023-05-29 17:01:17 +01:00
lib fix: Change Detroit to New York as a default for EST time zone (#8218) 2023-05-29 19:57:34 +01:00
prisma [Feat] Bulk Invite of Users + Google Workspace (#8969) 2023-05-24 01:01:31 +00:00
trpc feat: filter bookings by event type (#9011) 2023-05-29 17:01:17 +01:00
tsconfig
types remove isPro check (#8967) 2023-05-23 08:44:57 +00:00
ui fix: Change Detroit to New York as a default for EST time zone (#8218) 2023-05-29 19:57:34 +01:00