Personal calendar manager https://cal.maronato.dev
Go to file
jemiluv8 e7ddcf23a3
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-26 12:16:39 +00:00
__checks__ [Checkly] adds "Location Link" code (#5752) 2022-11-28 16:52:24 -07:00
.changeset Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
.github feat: Auto check PR titles if they follow conventional commits spec (#9109) 2023-05-26 12:04:58 +00:00
.husky Fixes over Turborepo improvements (#3144) 2022-06-24 09:38:17 -06:00
.snaplet Upgaded Snaplet CLI 2022-11-11 10:32:35 -07:00
.vscode perf: lazy load tRPC routes (#8167) 2023-04-25 19:39:47 -03:00
.yarn Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
apps refactor: radio area group (#9113) 2023-05-26 11:55:08 +00:00
deploy fixes codespace login msg spelling (#6288) 2023-01-06 12:37:03 -07:00
packages fix: Route Builder rules should be case insensitive (#9040) 2023-05-26 12:16:39 +00:00
scripts Move all files into apps/api directory 2023-05-23 13:08:56 -07:00
tests/libs/__mocks__ refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
.editorconfig Added .editorconfig file as suggested in #270 2021-07-03 17:02:26 +00:00
.env.appStore.example feat: Add Zoho Bigin app to appstore (#8158) 2023-05-04 20:19:48 +00:00
.env.example Move all files into apps/api directory 2023-05-23 13:08:56 -07:00
.eslintignore Upgrades yarn v1 to v3. Improves CI times by 2x (#7738) 2023-03-15 15:01:04 -07:00
.eslintrc.js Move all files into apps/api directory 2023-05-23 13:08:56 -07:00
.gitignore Updates git init scripts 2023-05-23 13:18:27 -07:00
.gitpod.yml Gitpod setup And Bio Detail Overflow Bug Fixed (#8824) 2023-05-15 13:18:31 +00:00
.kodiak.toml Allows auto approvals for crowdin 2022-07-11 18:49:40 -06:00
.npmrc chore: add some dx configs (#650) 2021-09-29 09:41:38 +00:00
.nvmrc chore: bump node version to v18 (#7310) 2023-03-15 20:15:16 +00:00
.prettierignore refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
.prettierrc.js Linting (#2083) 2022-03-09 17:52:48 +00:00
.yarnrc.yml Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
app.json Updates heroku deployment template (#6879) 2023-02-05 14:50:04 +00:00
CODE_OF_CONDUCT.md Runs format script 2022-06-24 07:37:56 -06:00
CONTRIBUTING.md Guide to setup enviroment variable added in contributing mardown file (#8911) 2023-05-17 15:11:28 -07:00
crowdin.yml Ignores vital for now 2022-06-03 14:18:43 -06:00
gh.env Solves Github actions caching issues (#7431) 2023-02-28 10:41:55 +00:00
git-init.sh Updates git init scripts 2023-05-23 13:18:27 -07:00
git-setup.sh Updates git init scripts 2023-05-23 13:18:27 -07:00
LICENSE Move all files into apps/api directory 2023-05-23 13:08:56 -07:00
package.json refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
playwright.config.ts fix: Route Builder rules should be case insensitive (#9040) 2023-05-26 12:16:39 +00:00
Procfile fix: deployment setup to Heroku (#1834) 2022-02-14 16:29:48 +00:00
README.md Move all files into apps/api directory 2023-05-23 13:08:56 -07:00
SECURITY.md Formatting 2022-07-12 11:52:13 -06:00
turbo.json feat: add user hash for intercom (#8263) 2023-04-19 22:22:07 +02:00
vitest.config.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
vitest.workspace.ts Ignores API unit tests for now 2023-05-25 11:53:47 -07:00
yarn.lock Removes jest from API 2023-05-25 15:22:06 -07:00