Update deps, fix build errors

This commit is contained in:
Darren Clarke 2023-08-07 09:27:51 +02:00
parent c47514d2f0
commit e9379fd1fb
20 changed files with 5120 additions and 2012 deletions

View file

@ -17,20 +17,20 @@
"@emotion/react": "^11.11.1", "@emotion/react": "^11.11.1",
"@emotion/server": "^11.11.0", "@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0", "@emotion/styled": "^11.11.0",
"@fontsource/playfair-display": "^5.0.5", "@fontsource/playfair-display": "^5.0.8",
"@fontsource/poppins": "^5.0.5", "@fontsource/poppins": "^5.0.8",
"@fontsource/roboto": "^5.0.5", "@fontsource/roboto": "^5.0.8",
"@mui/icons-material": "^5", "@mui/icons-material": "^5",
"@mui/lab": "^5.0.0-alpha.137", "@mui/lab": "^5.0.0-alpha.138",
"@mui/material": "^5", "@mui/material": "^5",
"@mui/x-data-grid-pro": "^6.10.1", "@mui/x-data-grid-pro": "^6.11.0",
"@mui/x-date-pickers-pro": "^6.10.1", "@mui/x-date-pickers-pro": "^6.11.0",
"@opensearch-project/opensearch": "^2.3.1", "@opensearch-project/opensearch": "^2.3.1",
"date-fns": "^2.30.0", "date-fns": "^2.30.0",
"http-proxy-middleware": "^2.0.6", "http-proxy-middleware": "^2.0.6",
"material-ui-popup-state": "^5.0.9", "material-ui-popup-state": "^5.0.9",
"next": "13.4.12", "next": "13.4.12",
"next-auth": "^4.22.3", "next-auth": "^4.22.4",
"next-http-proxy-middleware": "^1.2.5", "next-http-proxy-middleware": "^1.2.5",
"nodemailer": "^6.9.4", "nodemailer": "^6.9.4",
"react": "18.2.0", "react": "18.2.0",
@ -47,18 +47,18 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.22.9", "@babel/core": "^7.22.9",
"@types/node": "^20.4.4", "@types/node": "^20.4.8",
"@types/react": "18.2.15", "@types/react": "18.2.18",
"@types/uuid": "^9.0.2", "@types/uuid": "^9.0.2",
"babel-loader": "^9.1.3", "babel-loader": "^9.1.3",
"eslint": "^8.45.0", "eslint": "^8.46.0",
"eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "^13.4.12", "eslint-config-next": "^13.4.12",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^5.0.0", "eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.0", "eslint-plugin-react": "^7.33.1",
"typescript": "5.1.6" "typescript": "5.1.6"
} }
} }

View file

@ -15,20 +15,20 @@
"@emotion/react": "^11.11.1", "@emotion/react": "^11.11.1",
"@emotion/server": "^11.11.0", "@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0", "@emotion/styled": "^11.11.0",
"@fontsource/playfair-display": "^5.0.5", "@fontsource/playfair-display": "^5.0.8",
"@fontsource/poppins": "^5.0.5", "@fontsource/poppins": "^5.0.8",
"@fontsource/roboto": "^5.0.5", "@fontsource/roboto": "^5.0.8",
"@mui/icons-material": "^5", "@mui/icons-material": "^5",
"@mui/lab": "^5.0.0-alpha.137", "@mui/lab": "^5.0.0-alpha.138",
"@mui/material": "^5", "@mui/material": "^5",
"@mui/x-data-grid-pro": "^6.10.1", "@mui/x-data-grid-pro": "^6.11.0",
"@mui/x-date-pickers-pro": "^6.10.1", "@mui/x-date-pickers-pro": "^6.11.0",
"date-fns": "^2.30.0", "date-fns": "^2.30.0",
"graphql-request": "^6.1.0", "graphql-request": "^6.1.0",
"material-ui-popup-state": "^5.0.9", "material-ui-popup-state": "^5.0.9",
"mui-chips-input": "^2.0.2", "mui-chips-input": "^2.1.2",
"next": "13.4.12", "next": "13.4.12",
"next-auth": "^4.22.3", "next-auth": "^4.22.4",
"react": "18.2.0", "react": "18.2.0",
"react-cookie": "^4.1.1", "react-cookie": "^4.1.1",
"react-dom": "18.2.0", "react-dom": "18.2.0",
@ -40,18 +40,18 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.22.9", "@babel/core": "^7.22.9",
"@types/node": "^20.4.4", "@types/node": "^20.4.8",
"@types/react": "18.2.15", "@types/react": "18.2.18",
"@types/uuid": "^9.0.2", "@types/uuid": "^9.0.2",
"babel-loader": "^9.1.3", "babel-loader": "^9.1.3",
"eslint": "^8.45.0", "eslint": "^8.46.0",
"eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "^13.4.12", "eslint-config-next": "^13.4.12",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^5.0.0", "eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.0", "eslint-plugin-react": "^7.33.1",
"typescript": "5.1.6" "typescript": "5.1.6"
} }
} }

View file

@ -17,7 +17,7 @@
"@graphile-contrib/pg-simplify-inflector": "^6.1.0", "@graphile-contrib/pg-simplify-inflector": "^6.1.0",
"@hapi/basic": "^7.0.2", "@hapi/basic": "^7.0.2",
"@hapi/boom": "^10.0.1", "@hapi/boom": "^10.0.1",
"@hapi/vision": "^7.0.2", "@hapi/vision": "^7.0.3",
"@hapi/wreck": "^18.0.1", "@hapi/wreck": "^18.0.1",
"@hapipal/schmervice": "^3.0.0", "@hapipal/schmervice": "^3.0.0",
"@hapipal/toys": "^4.0.0", "@hapipal/toys": "^4.0.0",
@ -35,13 +35,13 @@
"jwks-rsa": "^3.0.1", "jwks-rsa": "^3.0.1",
"long": "^5.2.3", "long": "^5.2.3",
"p-memoize": "^7.1.1", "p-memoize": "^7.1.1",
"pg": "^8.11.1", "pg": "^8.11.2",
"pg-monitor": "^2.0.0", "pg-monitor": "^2.0.0",
"pg-promise": "^11.5.0", "pg-promise": "^11.5.3",
"postgraphile": "4.12.3", "postgraphile": "4.12.3",
"postgraphile-plugin-connection-filter": "^2.3.0", "postgraphile-plugin-connection-filter": "^2.3.0",
"remeda": "^1.24.0", "remeda": "^1.24.0",
"twilio": "^4.14.0", "twilio": "^4.14.1",
"typeorm": "^0.3.17", "typeorm": "^0.3.17",
"@whiskeysockets/baileys": "^6.4.0" "@whiskeysockets/baileys": "^6.4.0"
}, },
@ -54,7 +54,7 @@
"jest-config-link": "*", "jest-config-link": "*",
"nodemon": "^3.0.1", "nodemon": "^3.0.1",
"pg-monitor": "^2.0.0", "pg-monitor": "^2.0.0",
"pino-pretty": "^10.1.0", "pino-pretty": "^10.2.0",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"tsc-watch": "^6.0.4", "tsc-watch": "^6.0.4",
"tsconfig-link": "*", "tsconfig-link": "*",

View file

@ -24,7 +24,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^29.5.3", "@types/jest": "^29.5.3",
"pino-pretty": "^10.1.0", "pino-pretty": "^10.2.0",
"nodemon": "^3.0.1", "nodemon": "^3.0.1",
"tsconfig-link": "*", "tsconfig-link": "*",
"eslint-config-link": "*", "eslint-config-link": "*",

View file

@ -10,23 +10,23 @@
"@mui/icons-material": "^5", "@mui/icons-material": "^5",
"@mui/material": "^5", "@mui/material": "^5",
"@mui/styles": "^5", "@mui/styles": "^5",
"@twilio/voice-sdk": "^2.6.1", "@twilio/voice-sdk": "^2.7.1",
"http-proxy-middleware": "^2.0.6", "http-proxy-middleware": "^2.0.6",
"jsonwebtoken": "^9.0.1", "jsonwebtoken": "^9.0.1",
"jwks-rsa": "^3.0.1", "jwks-rsa": "^3.0.1",
"next": "13.4.12", "next": "13.4.12",
"next-auth": "4.22.3", "next-auth": "4.22.4",
"ra-data-graphql": "^4.12.2", "ra-data-graphql": "^4.12.2",
"ra-i18n-polyglot": "^4.12.2", "ra-i18n-polyglot": "^4.12.2",
"ra-input-rich-text": "^4.12.2", "ra-input-rich-text": "^4.12.3",
"ra-language-english": "^4.12.2", "ra-language-english": "^4.12.2",
"ra-postgraphile": "^6.1.1", "ra-postgraphile": "^6.1.1",
"react": "18.2.0", "react": "18.2.0",
"react-admin": "^4.12.2", "react-admin": "^4.12.3",
"react-digit-input": "^2.1.0", "react-digit-input": "^2.1.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-qr-code": "^2.0.11", "react-qr-code": "^2.0.11",
"react-redux": "^8.1.1", "react-redux": "^8.1.2",
"react-timer-hook": "^3.0.7", "react-timer-hook": "^3.0.7",
"swr": "^2.2.0", "swr": "^2.2.0",
"twilio-client": "^1.15.0" "twilio-client": "^1.15.0"
@ -43,7 +43,7 @@
"devDependencies": { "devDependencies": {
"@next/eslint-plugin-next": "^13.4.12", "@next/eslint-plugin-next": "^13.4.12",
"@types/hapi__wreck": "17.0.1", "@types/hapi__wreck": "17.0.1",
"@types/react": "18.2.15", "@types/react": "18.2.18",
"@types/react-mic": "12.4.3", "@types/react-mic": "12.4.3",
"babel-preset-link": "*", "babel-preset-link": "*",
"eslint-config-link": "*", "eslint-config-link": "*",

View file

@ -6,15 +6,16 @@
"author": "Abel Luck <abel@guardianproject.info>", "author": "Abel Luck <abel@guardianproject.info>",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"dependencies": { "dependencies": {
"graphile-worker": "^0.13.0",
"remeda": "^1.24.0",
"html-to-text": "^9.0.5",
"node-fetch": "^3",
"twilio": "^4.14.0",
"@digiresilience/montar": "*",
"@digiresilience/metamigo-common": "*", "@digiresilience/metamigo-common": "*",
"@digiresilience/metamigo-config": "*", "@digiresilience/metamigo-config": "*",
"@digiresilience/metamigo-db": "*" "@digiresilience/metamigo-db": "*",
"@digiresilience/montar": "*",
"graphile-worker": "^0.13.0",
"html-to-text": "^9.0.5",
"node-fetch": "^3",
"pg-promise": "^11.5.3",
"remeda": "^1.24.0",
"twilio": "^4.14.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.22.9", "@babel/core": "7.22.9",
@ -22,13 +23,13 @@
"@babel/preset-typescript": "7.22.5", "@babel/preset-typescript": "7.22.5",
"@types/fluent-ffmpeg": "^2.1.21", "@types/fluent-ffmpeg": "^2.1.21",
"@types/jest": "^29.5.3", "@types/jest": "^29.5.3",
"eslint": "^8.45.0", "eslint": "^8.46.0",
"jest": "^29.6.1", "jest": "^29.6.2",
"jest-circus": "^29.6.1", "jest-circus": "^29.6.2",
"jest-junit": "^16.0.0", "jest-junit": "^16.0.0",
"nodemon": "^3.0.1", "nodemon": "^3.0.1",
"pino-pretty": "^10.1.0", "pino-pretty": "^10.2.0",
"prettier": "^3.0.0", "prettier": "^3.0.1",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"typedoc": "^0.24.8", "typedoc": "^0.24.8",
"typescript": "^5.1.6" "typescript": "^5.1.6"

6967
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -57,7 +57,7 @@
"graphql": "15.8.0" "graphql": "15.8.0"
}, },
"devDependencies": { "devDependencies": {
"prettier": "^3.0.0", "prettier": "^3.0.1",
"dotenv-cli": "latest" "dotenv-cli": "latest"
}, },
"engines": { "engines": {

View file

@ -15,6 +15,6 @@
}, },
"peerDependencies": {}, "peerDependencies": {},
"devDependencies": { "devDependencies": {
"eslint": "^8.45.0" "eslint": "^8.46.0"
} }
} }

View file

@ -10,17 +10,17 @@
}, },
"dependencies": { "dependencies": {
"@rushstack/eslint-patch": "^1.3.2", "@rushstack/eslint-patch": "^1.3.2",
"@typescript-eslint/eslint-plugin": "^6.1.0", "@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.1.0", "@typescript-eslint/parser": "^6.2.1",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^9.0.0",
"eslint-config-xo-space": "^0.34.0", "eslint-config-xo-space": "^0.34.0",
"eslint-plugin-cypress": "^2.13.3", "eslint-plugin-cypress": "^2.13.3",
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.2.3", "eslint-plugin-jest": "^27.2.3",
"eslint-plugin-no-use-extend-native": "^0.5.0", "eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "48.0.0", "eslint-plugin-unicorn": "48.0.1",
"@babel/eslint-parser": "7.22.9" "@babel/eslint-parser": "7.22.9"
}, },
"peerDependencies": { "peerDependencies": {
@ -28,8 +28,8 @@
"typescript": "^4.9.5" "typescript": "^4.9.5"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.45.0", "eslint": "^8.46.0",
"jest": "^29.6.1", "jest": "^29.6.2",
"typescript": "^5.1.6" "typescript": "^5.1.6"
} }
} }

View file

@ -20,7 +20,7 @@
"@hapi/hapi": "^21.3.2", "@hapi/hapi": "^21.3.2",
"@hapi/hoek": "^11.0.2", "@hapi/hoek": "^11.0.2",
"joi": "^17.9.2", "joi": "^17.9.2",
"next-auth": "4.22.3" "next-auth": "4.22.4"
}, },
"scripts": { "scripts": {
"build": "tsc -p tsconfig.json", "build": "tsc -p tsconfig.json",

View file

@ -13,7 +13,7 @@
"dependencies": { "dependencies": {
"@hapi/hapi": "^21.3.2", "@hapi/hapi": "^21.3.2",
"pg-monitor": "^2.0.0", "pg-monitor": "^2.0.0",
"pg-promise": "^11.5.0" "pg-promise": "^11.5.3"
}, },
"scripts": { "scripts": {
"build": "tsc -p tsconfig.json", "build": "tsc -p tsconfig.json",

View file

@ -10,7 +10,7 @@
}, },
"dependencies": { "dependencies": {
"@types/jest": "^29.5.3", "@types/jest": "^29.5.3",
"jest": "^29.6.1", "jest": "^29.6.2",
"jest-junit": "^16.0.0" "jest-junit": "^16.0.0"
}, },
"peerDependencies": {} "peerDependencies": {}

View file

@ -18,7 +18,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/figlet": "^1.5.6", "@types/figlet": "^1.5.6",
"@types/lodash": "^4.14.195", "@types/lodash": "^4.14.196",
"@types/node": "*", "@types/node": "*",
"@types/uuid": "^9.0.2", "@types/uuid": "^9.0.2",
"camelcase-keys": "^8.0.2", "camelcase-keys": "^8.0.2",
@ -34,7 +34,7 @@
"@hapi/hapi": "^21.3.2", "@hapi/hapi": "^21.3.2",
"@hapi/hoek": "^11.0.2", "@hapi/hoek": "^11.0.2",
"@hapi/inert": "^7.1.0", "@hapi/inert": "^7.1.0",
"@hapi/vision": "^7.0.2", "@hapi/vision": "^7.0.3",
"@hapipal/schmervice": "^3.0.0", "@hapipal/schmervice": "^3.0.0",
"@promster/hapi": "^8.0.6", "@promster/hapi": "^8.0.6",
"@promster/server": "^7.0.8", "@promster/server": "^7.0.8",
@ -54,10 +54,10 @@
"http-terminator": "^3.2.0", "http-terminator": "^3.2.0",
"joi": "^17.9.2", "joi": "^17.9.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"next-auth": "^4.22.3", "next-auth": "^4.22.4",
"pg-promise": "^11.5.0", "pg-promise": "^11.5.3",
"pino": "^8.14.1", "pino": "^8.15.0",
"pino-pretty": "^10.1.0", "pino-pretty": "^10.2.0",
"prom-client": "^14.x.x", "prom-client": "^14.x.x",
"uuid": "^9.0.0" "uuid": "^9.0.0"
} }

View file

@ -12,10 +12,12 @@ import * as pino from "pino";
declare module "@hapi/hapi" { declare module "@hapi/hapi" {
interface Server { interface Server {
// @ts-expect-error
logger: pino.Logger; logger: pino.Logger;
} }
interface Request { interface Request {
// @ts-expect-error
logger: pino.Logger; logger: pino.Logger;
} }
} }

View file

@ -13,9 +13,9 @@
"@babel/core": "7.22.9", "@babel/core": "7.22.9",
"@babel/preset-env": "7.22.9", "@babel/preset-env": "7.22.9",
"@babel/preset-typescript": "7.22.5", "@babel/preset-typescript": "7.22.5",
"eslint": "^8.45.0", "eslint": "^8.46.0",
"pino-pretty": "^10.1.0", "pino-pretty": "^10.2.0",
"prettier": "^3.0.0", "prettier": "^3.0.1",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"tsc-watch": "^6.0.4", "tsc-watch": "^6.0.4",
"typedoc": "^0.24.8", "typedoc": "^0.24.8",

View file

@ -13,18 +13,18 @@
"graphile-migrate": "^1.4.1", "graphile-migrate": "^1.4.1",
"graphql": "15.8.0", "graphql": "15.8.0",
"postgraphile": "4.13.0", "postgraphile": "4.13.0",
"pg-promise": "^11.5.0" "pg-promise": "^11.5.3"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.22.9", "@babel/core": "7.22.9",
"@babel/preset-env": "7.22.9", "@babel/preset-env": "7.22.9",
"@babel/preset-typescript": "7.22.5", "@babel/preset-typescript": "7.22.5",
"@types/jest": "^29.5.3", "@types/jest": "^29.5.3",
"eslint": "^8.45.0", "eslint": "^8.46.0",
"jest": "^29.6.1", "jest": "^29.6.2",
"jest-junit": "^16.0.0", "jest-junit": "^16.0.0",
"pino-pretty": "^10.1.0", "pino-pretty": "^10.2.0",
"prettier": "^3.0.0", "prettier": "^3.0.1",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"tsc-watch": "^6.0.4", "tsc-watch": "^6.0.4",
"typedoc": "^0.24.8", "typedoc": "^0.24.8",

View file

@ -4,6 +4,7 @@ import {
UUID, UUID,
Flavor, Flavor,
} from "@digiresilience/metamigo-common"; } from "@digiresilience/metamigo-common";
import type { } from "pg-promise/typescript/pg-subset";
export type WhatsappAttachmentId = Flavor<UUID, "Whatsapp Attachment Id">; export type WhatsappAttachmentId = Flavor<UUID, "Whatsapp Attachment Id">;
@ -26,4 +27,5 @@ export const WhatsappAttachmentRecord = recordInfo<
export class WhatsappAttachmentRecordRepository extends RepositoryBase( export class WhatsappAttachmentRecordRepository extends RepositoryBase(
WhatsappAttachmentRecord WhatsappAttachmentRecord
) {} ) { };

View file

@ -4,6 +4,7 @@ import {
UUID, UUID,
Flavor, Flavor,
} from "@digiresilience/metamigo-common"; } from "@digiresilience/metamigo-common";
import type { } from "pg-promise/typescript/pg-subset";
export type WhatsappBotId = Flavor<UUID, "Whatsapp Bot Id">; export type WhatsappBotId = Flavor<UUID, "Whatsapp Bot Id">;

View file

@ -4,6 +4,7 @@ import {
UUID, UUID,
Flavor, Flavor,
} from "@digiresilience/metamigo-common"; } from "@digiresilience/metamigo-common";
import type { } from "pg-promise/typescript/pg-subset";
export type WhatsappMessageId = Flavor<UUID, "Whatsapp Message Id">; export type WhatsappMessageId = Flavor<UUID, "Whatsapp Message Id">;
@ -28,4 +29,4 @@ export const WhatsappMessageRecord = recordInfo<
export class WhatsappMessageRecordRepository extends RepositoryBase( export class WhatsappMessageRecordRepository extends RepositoryBase(
WhatsappMessageRecord WhatsappMessageRecord
) {} ) { }