Update dependencies and improve type safety in webhook handling

This commit updates various dependencies across the project, including a version bump for 'lucide-react' and 'prettier'. Additionally, it improves type safety in the 'database-webhook-handler.service.ts' by making the 'DatabaseChangePayload' and 'handleEvent' function more type-safe.
This commit is contained in:
giancarlo
2024-06-03 00:33:49 +07:00
parent 26b2eed60d
commit 08de59a43a
14 changed files with 138 additions and 74 deletions

173
pnpm-lock.yaml generated
View File

@@ -17,7 +17,7 @@ importers:
version: 0.21.4
'@turbo/gen':
specifier: ^1.13.3
version: 1.13.3(@types/node@20.12.13)(typescript@5.4.5)
version: 1.13.3(@types/node@20.13.0)(typescript@5.4.5)
cross-env:
specifier: ^7.0.3
version: 7.0.3
@@ -25,8 +25,8 @@ importers:
specifier: ^9.1.4
version: 9.1.4
prettier:
specifier: ^3.2.5
version: 3.2.5
specifier: ^3.3.0
version: 3.3.0
turbo:
specifier: ^1.13.3
version: 1.13.3
@@ -136,8 +136,8 @@ importers:
specifier: ^3.6.0
version: 3.6.0
lucide-react:
specifier: ^0.381.0
version: 0.381.0(react@18.3.1)
specifier: ^0.383.0
version: 0.383.0(react@18.3.1)
next:
specifier: 14.2.3
version: 14.2.3(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -209,8 +209,8 @@ importers:
specifier: ^8.57.0
version: 8.57.0
prettier:
specifier: ^3.2.5
version: 3.2.5
specifier: ^3.3.0
version: 3.3.0
supabase:
specifier: ^1.172.2
version: 1.172.2
@@ -290,8 +290,8 @@ importers:
specifier: ^3.6.0
version: 3.6.0
lucide-react:
specifier: ^0.381.0
version: 0.381.0(react@18.3.1)
specifier: ^0.383.0
version: 0.383.0(react@18.3.1)
next:
specifier: 14.2.3
version: 14.2.3(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -604,8 +604,8 @@ importers:
specifier: ^18.3.0
version: 18.3.0
lucide-react:
specifier: ^0.381.0
version: 0.381.0(react@18.3.1)
specifier: ^0.383.0
version: 0.383.0(react@18.3.1)
next:
specifier: 14.2.3
version: 14.2.3(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -676,8 +676,8 @@ importers:
specifier: ^18.3.3
version: 18.3.3
lucide-react:
specifier: ^0.381.0
version: 0.381.0(react@18.3.1)
specifier: ^0.383.0
version: 0.383.0(react@18.3.1)
next:
specifier: 14.2.3
version: 14.2.3(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -736,8 +736,8 @@ importers:
specifier: ^18.3.3
version: 18.3.3
lucide-react:
specifier: ^0.381.0
version: 0.381.0(react@18.3.1)
specifier: ^0.383.0
version: 0.383.0(react@18.3.1)
next:
specifier: 14.2.3
version: 14.2.3(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -784,8 +784,8 @@ importers:
specifier: ^18.3.3
version: 18.3.3
lucide-react:
specifier: ^0.381.0
version: 0.381.0(react@18.3.1)
specifier: ^0.383.0
version: 0.383.0(react@18.3.1)
react:
specifier: 18.3.1
version: 18.3.1
@@ -866,8 +866,8 @@ importers:
specifier: ^3.6.0
version: 3.6.0
lucide-react:
specifier: ^0.381.0
version: 0.381.0(react@18.3.1)
specifier: ^0.383.0
version: 0.383.0(react@18.3.1)
next:
specifier: 14.2.3
version: 14.2.3(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -1243,8 +1243,8 @@ importers:
specifier: 1.2.4
version: 1.2.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
lucide-react:
specifier: ^0.381.0
version: 0.381.0(react@18.3.1)
specifier: ^0.383.0
version: 0.383.0(react@18.3.1)
react-top-loading-bar:
specifier: 2.3.1
version: 2.3.1(react@18.3.1)
@@ -1292,8 +1292,8 @@ importers:
specifier: 0.3.0
version: 0.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
prettier:
specifier: ^3.2.5
version: 3.2.5
specifier: ^3.3.0
version: 3.3.0
react-day-picker:
specifier: ^8.10.1
version: 8.10.1(date-fns@3.6.0)(react@18.3.1)
@@ -1308,10 +1308,10 @@ importers:
version: 1.4.41(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
tailwindcss:
specifier: 3.4.3
version: 3.4.3(ts-node@10.9.2(@types/node@20.12.13)(typescript@5.4.5))
version: 3.4.3(ts-node@10.9.2(@types/node@20.13.0)(typescript@5.4.5))
tailwindcss-animate:
specifier: ^1.0.7
version: 1.0.7(tailwindcss@3.4.3(ts-node@10.9.2(@types/node@20.12.13)(typescript@5.4.5)))
version: 1.0.7(tailwindcss@3.4.3(ts-node@10.9.2(@types/node@20.13.0)(typescript@5.4.5)))
typescript:
specifier: ^5.4.5
version: 5.4.5
@@ -1326,7 +1326,7 @@ importers:
version: 14.2.3
'@trivago/prettier-plugin-sort-imports':
specifier: ^4.3.0
version: 4.3.0(prettier@3.2.5)
version: 4.3.0(prettier@3.3.0)
'@types/eslint':
specifier: ^8.56.10
version: 8.56.10
@@ -1369,7 +1369,7 @@ importers:
dependencies:
'@ianvs/prettier-plugin-sort-imports':
specifier: ^4.2.1
version: 4.2.1(prettier@3.2.5)
version: 4.2.1(prettier@3.3.0)
'@tanstack/react-table':
specifier: ^8.17.3
version: 8.17.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -1377,11 +1377,11 @@ importers:
specifier: 14.2.3
version: 14.2.3(@babel/core@7.24.5)(@opentelemetry/api@1.8.0)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
prettier:
specifier: ^3.2.5
version: 3.2.5
specifier: ^3.3.0
version: 3.3.0
prettier-plugin-tailwindcss:
specifier: ^0.5.14
version: 0.5.14(@ianvs/prettier-plugin-sort-imports@4.2.1(prettier@3.2.5))(@trivago/prettier-plugin-sort-imports@4.3.0(prettier@3.2.5))(prettier@3.2.5)
specifier: ^0.6.1
version: 0.6.1(@ianvs/prettier-plugin-sort-imports@4.2.1(prettier@3.3.0))(@trivago/prettier-plugin-sort-imports@4.3.0(prettier@3.3.0))(prettier@3.3.0)
devDependencies:
'@kit/tsconfig':
specifier: workspace:^
@@ -1403,10 +1403,10 @@ importers:
version: 8.4.38
tailwindcss:
specifier: 3.4.3
version: 3.4.3(ts-node@10.9.2(@types/node@20.12.13)(typescript@5.4.5))
version: 3.4.3(ts-node@10.9.2(@types/node@20.13.0)(typescript@5.4.5))
tailwindcss-animate:
specifier: ^1.0.7
version: 1.0.7(tailwindcss@3.4.3(ts-node@10.9.2(@types/node@20.12.13)(typescript@5.4.5)))
version: 1.0.7(tailwindcss@3.4.3(ts-node@10.9.2(@types/node@20.13.0)(typescript@5.4.5)))
devDependencies:
'@kit/eslint-config':
specifier: workspace:^
@@ -1421,8 +1421,8 @@ importers:
specifier: ^8.57.0
version: 8.57.0
prettier:
specifier: ^3.2.5
version: 3.2.5
specifier: ^3.3.0
version: 3.3.0
typescript:
specifier: ^5.4.5
version: 5.4.5
@@ -4006,6 +4006,9 @@ packages:
'@types/node@20.12.13':
resolution: {integrity: sha512-gBGeanV41c1L171rR7wjbMiEpEI/l5XFQdLLfhr/REwpgDy/4U8y89+i8kRiLzDyZdOkXh+cRaTetUnCYutoXA==}
'@types/node@20.13.0':
resolution: {integrity: sha512-FM6AOb3khNkNIXPnHFDYaHerSv8uN22C91z098AnGccVu+Pcdhi+pNUFDi0iLmPIsVE0JBD0KVS7mzUYt4nRzQ==}
'@types/nodemailer@6.4.15':
resolution: {integrity: sha512-0EBJxawVNjPkng1zm2vopRctuWVCxk34JcIlRuXSf54habUWdz1FB7wHDqOqvDa8Mtpt0Q3LTXQkAs2LNyK5jQ==}
@@ -5883,8 +5886,8 @@ packages:
resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==}
engines: {node: '>=12'}
lucide-react@0.381.0:
resolution: {integrity: sha512-cft0ywFfHkGprX5pwKyS9jme/ksh9eYAHSZqFRKN0XGp70kia4uqZOTPB+i+O51cqiJlvGLqzMGWnMHaeJTs3g==}
lucide-react@0.383.0:
resolution: {integrity: sha512-13xlG0CQCJtzjSQYwwJ3WRqMHtRj3EXmLlorrARt7y+IHnxUCp3XyFNL1DfaGySWxHObDvnu1u1dV+0VMKHUSg==}
peerDependencies:
react: 18.3.1
@@ -6580,8 +6583,8 @@ packages:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
engines: {node: '>= 0.8.0'}
prettier-plugin-tailwindcss@0.5.14:
resolution: {integrity: sha512-Puaz+wPUAhFp8Lo9HuciYKM2Y2XExESjeT+9NQoVFXZsPPnc9VYss2SpxdQ6vbatmt8/4+SN0oe0I1cPDABg9Q==}
prettier-plugin-tailwindcss@0.6.1:
resolution: {integrity: sha512-AnbeYZu0WGj+QgKciUgdMnRxrqcxltleZPgdwfA5104BHM3siBLONN/HLW1yS2HvzSNkzpQ/JAj+LN0jcJO+0w==}
engines: {node: '>=14.21.3'}
peerDependencies:
'@ianvs/prettier-plugin-sort-imports': '*'
@@ -6632,8 +6635,8 @@ packages:
prettier-plugin-svelte:
optional: true
prettier@3.2.5:
resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==}
prettier@3.3.0:
resolution: {integrity: sha512-J9odKxERhCQ10OC2yb93583f6UnYutOeiV5i0zEDS7UGTdUt0u+y8erxl3lBKvwo/JHyyoEdXjwp4dke9oyZ/g==}
engines: {node: '>=14'}
hasBin: true
@@ -8276,14 +8279,14 @@ snapshots:
'@humanwhocodes/object-schema@2.0.3': {}
'@ianvs/prettier-plugin-sort-imports@4.2.1(prettier@3.2.5)':
'@ianvs/prettier-plugin-sort-imports@4.2.1(prettier@3.3.0)':
dependencies:
'@babel/core': 7.24.5
'@babel/generator': 7.24.5
'@babel/parser': 7.24.5
'@babel/traverse': 7.24.5
'@babel/types': 7.24.5
prettier: 3.2.5
prettier: 3.3.0
semver: 7.6.2
transitivePeerDependencies:
- supports-color
@@ -11151,7 +11154,7 @@ snapshots:
'@tootallnate/quickjs-emscripten@0.23.0': {}
'@trivago/prettier-plugin-sort-imports@4.3.0(prettier@3.2.5)':
'@trivago/prettier-plugin-sort-imports@4.3.0(prettier@3.3.0)':
dependencies:
'@babel/generator': 7.17.7
'@babel/parser': 7.24.5
@@ -11159,7 +11162,7 @@ snapshots:
'@babel/types': 7.17.0
javascript-natural-sort: 0.7.1
lodash: 4.17.21
prettier: 3.2.5
prettier: 3.3.0
transitivePeerDependencies:
- supports-color
@@ -11179,7 +11182,7 @@ snapshots:
'@tsconfig/node16@1.0.4': {}
'@turbo/gen@1.13.3(@types/node@20.12.13)(typescript@5.4.5)':
'@turbo/gen@1.13.3(@types/node@20.13.0)(typescript@5.4.5)':
dependencies:
'@turbo/workspaces': 1.13.3
chalk: 2.4.2
@@ -11189,7 +11192,7 @@ snapshots:
minimatch: 9.0.4
node-plop: 0.26.3
proxy-agent: 6.4.0
ts-node: 10.9.2(@types/node@20.12.13)(typescript@5.4.5)
ts-node: 10.9.2(@types/node@20.13.0)(typescript@5.4.5)
update-check: 1.5.4
validate-npm-package-name: 5.0.1
transitivePeerDependencies:
@@ -11387,6 +11390,10 @@ snapshots:
dependencies:
undici-types: 5.26.5
'@types/node@20.13.0':
dependencies:
undici-types: 5.26.5
'@types/nodemailer@6.4.15':
dependencies:
'@types/node': 20.12.13
@@ -13370,7 +13377,7 @@ snapshots:
jest-worker@27.5.1:
dependencies:
'@types/node': 20.12.13
'@types/node': 20.13.0
merge-stream: 2.0.0
supports-color: 8.1.1
@@ -13515,7 +13522,7 @@ snapshots:
lru-cache@7.18.3: {}
lucide-react@0.381.0(react@18.3.1):
lucide-react@0.383.0(react@18.3.1):
dependencies:
react: 18.3.1
@@ -14489,6 +14496,14 @@ snapshots:
postcss: 8.4.38
ts-node: 10.9.2(@types/node@20.12.13)(typescript@5.4.5)
postcss-load-config@4.0.2(postcss@8.4.38)(ts-node@10.9.2(@types/node@20.13.0)(typescript@5.4.5)):
dependencies:
lilconfig: 3.1.1
yaml: 2.4.2
optionalDependencies:
postcss: 8.4.38
ts-node: 10.9.2(@types/node@20.13.0)(typescript@5.4.5)
postcss-nested@6.0.1(postcss@8.4.38):
dependencies:
postcss: 8.4.38
@@ -14525,14 +14540,14 @@ snapshots:
prelude-ls@1.2.1: {}
prettier-plugin-tailwindcss@0.5.14(@ianvs/prettier-plugin-sort-imports@4.2.1(prettier@3.2.5))(@trivago/prettier-plugin-sort-imports@4.3.0(prettier@3.2.5))(prettier@3.2.5):
prettier-plugin-tailwindcss@0.6.1(@ianvs/prettier-plugin-sort-imports@4.2.1(prettier@3.3.0))(@trivago/prettier-plugin-sort-imports@4.3.0(prettier@3.3.0))(prettier@3.3.0):
dependencies:
prettier: 3.2.5
prettier: 3.3.0
optionalDependencies:
'@ianvs/prettier-plugin-sort-imports': 4.2.1(prettier@3.2.5)
'@trivago/prettier-plugin-sort-imports': 4.3.0(prettier@3.2.5)
'@ianvs/prettier-plugin-sort-imports': 4.2.1(prettier@3.3.0)
'@trivago/prettier-plugin-sort-imports': 4.3.0(prettier@3.3.0)
prettier@3.2.5: {}
prettier@3.3.0: {}
prismjs@1.29.0: {}
@@ -15228,9 +15243,9 @@ snapshots:
dependencies:
'@babel/runtime': 7.24.5
tailwindcss-animate@1.0.7(tailwindcss@3.4.3(ts-node@10.9.2(@types/node@20.12.13)(typescript@5.4.5))):
tailwindcss-animate@1.0.7(tailwindcss@3.4.3(ts-node@10.9.2(@types/node@20.13.0)(typescript@5.4.5))):
dependencies:
tailwindcss: 3.4.3(ts-node@10.9.2(@types/node@20.12.13)(typescript@5.4.5))
tailwindcss: 3.4.3(ts-node@10.9.2(@types/node@20.13.0)(typescript@5.4.5))
tailwindcss@3.4.3(ts-node@10.9.2(@types/node@20.12.13)(typescript@5.4.5)):
dependencies:
@@ -15259,6 +15274,33 @@ snapshots:
transitivePeerDependencies:
- ts-node
tailwindcss@3.4.3(ts-node@10.9.2(@types/node@20.13.0)(typescript@5.4.5)):
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
chokidar: 3.6.0
didyoumean: 1.2.2
dlv: 1.1.3
fast-glob: 3.3.2
glob-parent: 6.0.2
is-glob: 4.0.3
jiti: 1.21.0
lilconfig: 2.1.0
micromatch: 4.0.6
normalize-path: 3.0.0
object-hash: 3.0.0
picocolors: 1.0.1
postcss: 8.4.38
postcss-import: 15.1.0(postcss@8.4.38)
postcss-js: 4.0.1(postcss@8.4.38)
postcss-load-config: 4.0.2(postcss@8.4.38)(ts-node@10.9.2(@types/node@20.13.0)(typescript@5.4.5))
postcss-nested: 6.0.1(postcss@8.4.38)
postcss-selector-parser: 6.0.16
resolve: 1.22.8
sucrase: 3.35.0
transitivePeerDependencies:
- ts-node
tapable@2.2.1: {}
tar@7.2.0:
@@ -15365,6 +15407,25 @@ snapshots:
typescript: 5.4.5
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
optional: true
ts-node@10.9.2(@types/node@20.13.0)(typescript@5.4.5):
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
'@types/node': 20.13.0
acorn: 8.11.3
acorn-walk: 8.3.2
arg: 4.1.3
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
typescript: 5.4.5
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
tsconfig-paths@3.15.0:
dependencies: