Update dependencies

This commit is contained in:
Darren Clarke 2023-07-05 06:56:01 +00:00 committed by GitHub
parent d404901583
commit 9b05288b40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 83 additions and 84 deletions

View file

@ -17,19 +17,19 @@
"@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.3", "@fontsource/playfair-display": "^5.0.4",
"@fontsource/poppins": "^5.0.3", "@fontsource/poppins": "^5.0.4",
"@fontsource/roboto": "^5.0.3", "@fontsource/roboto": "^5.0.4",
"@mui/icons-material": "^5", "@mui/icons-material": "^5",
"@mui/lab": "^5.0.0-alpha.134", "@mui/lab": "^5.0.0-alpha.135",
"@mui/material": "^5", "@mui/material": "^5",
"@mui/x-data-grid-pro": "^6.9.0", "@mui/x-data-grid-pro": "^6.9.1",
"@mui/x-date-pickers-pro": "^6.9.0", "@mui/x-date-pickers-pro": "^6.9.1",
"@opensearch-project/opensearch": "^2.0.0", "@opensearch-project/opensearch": "^2.0.0",
"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.7", "next": "13.4.8",
"next-auth": "^4.22.1", "next-auth": "^4.22.1",
"next-http-proxy-middleware": "^1.2.5", "next-http-proxy-middleware": "^1.2.5",
"nodemailer": "^6.9.3", "nodemailer": "^6.9.3",
@ -46,19 +46,19 @@
"uuid": "^9.0.0" "uuid": "^9.0.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.22.5", "@babel/core": "^7.22.6",
"@types/node": "^20.3.1", "@types/node": "^20.3.3",
"@types/react": "18.2.14", "@types/react": "18.2.14",
"@types/uuid": "^9.0.2", "@types/uuid": "^9.0.2",
"babel-loader": "^9.1.2", "babel-loader": "^9.1.2",
"eslint": "^8.43.0", "eslint": "^8.44.0",
"eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "^13.4.7", "eslint-config-next": "^13.4.8",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2", "eslint-plugin-react": "^7.32.2",
"typescript": "5.1.3" "typescript": "5.1.6"
} }
} }

View file

@ -15,18 +15,18 @@
"@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.3", "@fontsource/playfair-display": "^5.0.4",
"@fontsource/poppins": "^5.0.3", "@fontsource/poppins": "^5.0.4",
"@fontsource/roboto": "^5.0.3", "@fontsource/roboto": "^5.0.4",
"@mui/icons-material": "^5", "@mui/icons-material": "^5",
"@mui/lab": "^5.0.0-alpha.134", "@mui/lab": "^5.0.0-alpha.135",
"@mui/material": "^5", "@mui/material": "^5",
"@mui/x-data-grid-pro": "^6.9.0", "@mui/x-data-grid-pro": "^6.9.1",
"@mui/x-date-pickers-pro": "^6.9.0", "@mui/x-date-pickers-pro": "^6.9.1",
"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",
"next": "13.4.7", "next": "13.4.8",
"next-auth": "^4.22.1", "next-auth": "^4.22.1",
"react": "18.2.0", "react": "18.2.0",
"react-cookie": "^4.1.1", "react-cookie": "^4.1.1",
@ -38,19 +38,19 @@
"tss-react": "^4.8.6" "tss-react": "^4.8.6"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.22.5", "@babel/core": "^7.22.6",
"@types/node": "^20.3.1", "@types/node": "^20.3.3",
"@types/react": "18.2.14", "@types/react": "18.2.14",
"@types/uuid": "^9.0.2", "@types/uuid": "^9.0.2",
"babel-loader": "^9.1.2", "babel-loader": "^9.1.2",
"eslint": "^8.43.0", "eslint": "^8.44.0",
"eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "^13.4.7", "eslint-config-next": "^13.4.8",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2", "eslint-plugin-react": "^7.32.2",
"typescript": "5.1.3" "typescript": "5.1.6"
} }
} }

View file

@ -6,7 +6,6 @@
"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": {
"@adiwajshing/baileys": "5.0.0",
"@adiwajshing/keyed-db": "0.2.4", "@adiwajshing/keyed-db": "0.2.4",
"@digiresilience/hapi-nextauth": "*", "@digiresilience/hapi-nextauth": "*",
"@digiresilience/hapi-pg-promise": "*", "@digiresilience/hapi-pg-promise": "*",
@ -30,20 +29,21 @@
"graphile-worker": "^0.13.0", "graphile-worker": "^0.13.0",
"hapi-auth-bearer-token": "^8.0.0", "hapi-auth-bearer-token": "^8.0.0",
"hapi-auth-jwt2": "^10.4.0", "hapi-auth-jwt2": "^10.4.0",
"hapi-swagger": "^17.0.0", "hapi-swagger": "^17.0.1",
"joi": "^17.9.2", "joi": "^17.9.2",
"jsonwebtoken": "^9.0.0", "jsonwebtoken": "^9.0.0",
"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.0", "pg": "^8.11.1",
"pg-monitor": "^2.0.0", "pg-monitor": "^2.0.0",
"pg-promise": "^11.5.0", "pg-promise": "^11.5.0",
"postgraphile": "4.13.0", "postgraphile": "4.12.3",
"postgraphile-plugin-connection-filter": "^2.3.0", "postgraphile-plugin-connection-filter": "^2.3.0",
"remeda": "^1.21.0", "remeda": "^1.23.0",
"twilio": "^4.12.0", "twilio": "^4.13.0",
"typeorm": "^0.3.17" "typeorm": "^0.3.17",
"@whiskeysockets/baileys": "^6.3.0"
}, },
"devDependencies": { "devDependencies": {
"@types/long": "^4.0.2", "@types/long": "^4.0.2",
@ -54,12 +54,12 @@
"jest-config-link": "*", "jest-config-link": "*",
"nodemon": "^2.0.22", "nodemon": "^2.0.22",
"pg-monitor": "^2.0.0", "pg-monitor": "^2.0.0",
"pino-pretty": "^10.0.0", "pino-pretty": "^10.0.1",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"tsc-watch": "^6.0.4", "tsc-watch": "^6.0.4",
"tsconfig-link": "*", "tsconfig-link": "*",
"typedoc": "^0.24.8", "typedoc": "^0.24.8",
"typescript": "^5.1.3" "typescript": "^5.1.6"
}, },
"nodemonConfig": { "nodemonConfig": {
"ignore": [ "ignore": [

View file

@ -11,17 +11,16 @@ import makeWASocket, {
fetchLatestBaileysVersion, fetchLatestBaileysVersion,
isJidBroadcast, isJidBroadcast,
isJidStatusBroadcast, isJidStatusBroadcast,
MessageRetryMap,
useMultiFileAuthState, useMultiFileAuthState,
} from "@adiwajshing/baileys"; } from "@whiskeysockets/baileys";
import fs from "fs"; import fs from "fs";
import workerUtils from "../../worker-utils.js"; import workerUtils from "../../worker-utils.js";
export type AuthCompleteCallback = (error?: string) => void; export type AuthCompleteCallback = (error?: string) => void;
export default class WhatsappService extends Service { export default class WhatsappService extends Service {
connections: { [key: string]: any } = {}; connections: { [key: string]: any; } = {};
loginConnections: { [key: string]: any } = {}; loginConnections: { [key: string]: any; } = {};
static browserDescription: [string, string, string] = [ static browserDescription: [string, string, string] = [
"Metamigo", "Metamigo",
@ -69,7 +68,7 @@ export default class WhatsappService extends Service {
) { ) {
const directory = this.getAuthDirectory(bot); const directory = this.getAuthDirectory(bot);
const { state, saveCreds } = await useMultiFileAuthState(directory); const { state, saveCreds } = await useMultiFileAuthState(directory);
const msgRetryCounterMap: MessageRetryMap = {}; const msgRetryCounterMap: any = {};
const socket = makeWASocket({ const socket = makeWASocket({
...options, ...options,
auth: state, auth: state,

View file

@ -24,13 +24,13 @@
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^29.5.2", "@types/jest": "^29.5.2",
"pino-pretty": "^10.0.0", "pino-pretty": "^10.0.1",
"nodemon": "^2.0.22", "nodemon": "^2.0.22",
"tsconfig-link": "*", "tsconfig-link": "*",
"eslint-config-link": "*", "eslint-config-link": "*",
"jest-config-link": "*", "jest-config-link": "*",
"babel-preset-link": "*", "babel-preset-link": "*",
"typescript": "^5.1.3" "typescript": "^5.1.6"
}, },
"scripts": { "scripts": {
"migrate": "NODE_ENV=development node --unhandled-rejections=strict build/main/index.js db -- migrate", "migrate": "NODE_ENV=development node --unhandled-rejections=strict build/main/index.js db -- migrate",

View file

@ -14,15 +14,15 @@
"http-proxy-middleware": "^2.0.6", "http-proxy-middleware": "^2.0.6",
"jsonwebtoken": "^9.0.0", "jsonwebtoken": "^9.0.0",
"jwks-rsa": "^3.0.1", "jwks-rsa": "^3.0.1",
"next": "13.4.7", "next": "13.4.8",
"next-auth": "4.22.1", "next-auth": "4.22.1",
"ra-data-graphql": "^4.11.3", "ra-data-graphql": "^4.12.0",
"ra-i18n-polyglot": "^4.11.4", "ra-i18n-polyglot": "^4.12.0",
"ra-input-rich-text": "^4.11.4", "ra-input-rich-text": "^4.12.0",
"ra-language-english": "^4.11.4", "ra-language-english": "^4.12.0",
"ra-postgraphile": "^6.1.1", "ra-postgraphile": "^6.1.1",
"react": "18.2.0", "react": "18.2.0",
"react-admin": "^4.11.4", "react-admin": "^4.12.0",
"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",
@ -41,7 +41,7 @@
"fmt": "prettier --ignore-path .eslintignore \"**/*.{js,jsx,ts,tsx,graphql,md}\" --write" "fmt": "prettier --ignore-path .eslintignore \"**/*.{js,jsx,ts,tsx,graphql,md}\" --write"
}, },
"devDependencies": { "devDependencies": {
"@next/eslint-plugin-next": "^13.4.7", "@next/eslint-plugin-next": "^13.4.8",
"@types/hapi__wreck": "17.0.1", "@types/hapi__wreck": "17.0.1",
"@types/react": "18.2.14", "@types/react": "18.2.14",
"@types/react-mic": "12.4.3", "@types/react-mic": "12.4.3",
@ -49,7 +49,7 @@
"eslint-config-link": "*", "eslint-config-link": "*",
"jest-config-link": "*", "jest-config-link": "*",
"tsconfig-link": "*", "tsconfig-link": "*",
"typescript": "5.1.3" "typescript": "5.1.6"
}, },
"overrides": { "overrides": {
"@mui/styles": { "@mui/styles": {

View file

@ -7,31 +7,31 @@
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"dependencies": { "dependencies": {
"graphile-worker": "^0.13.0", "graphile-worker": "^0.13.0",
"remeda": "^1.21.0", "remeda": "^1.23.0",
"html-to-text": "^9.0.5", "html-to-text": "^9.0.5",
"node-fetch": "^3", "node-fetch": "^3",
"twilio": "^4.12.0", "twilio": "^4.13.0",
"@digiresilience/montar": "*", "@digiresilience/montar": "*",
"@digiresilience/metamigo-common": "*", "@digiresilience/metamigo-common": "*",
"@digiresilience/metamigo-config": "*", "@digiresilience/metamigo-config": "*",
"@digiresilience/metamigo-db": "*" "@digiresilience/metamigo-db": "*"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.22.5", "@babel/core": "7.22.6",
"@babel/preset-env": "7.22.5", "@babel/preset-env": "7.22.6",
"@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.2", "@types/jest": "^29.5.2",
"eslint": "^8.43.0", "eslint": "^8.44.0",
"jest": "^29.5.0", "jest": "^29.6.0",
"jest-circus": "^29.5.0", "jest-circus": "^29.6.0",
"jest-junit": "^16.0.0", "jest-junit": "^16.0.0",
"nodemon": "^2.0.22", "nodemon": "^2.0.22",
"pino-pretty": "^10.0.0", "pino-pretty": "^10.0.1",
"prettier": "^2.8.8", "prettier": "^2.8.8",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"typedoc": "^0.24.8", "typedoc": "^0.24.8",
"typescript": "^5.1.3" "typescript": "^5.1.6"
}, },
"nodemonConfig": { "nodemonConfig": {
"ignore": [ "ignore": [

View file

@ -25,8 +25,8 @@
"docker:metamigo:up": "docker compose -f docker-compose.zammad.yml -f docker-compose.metamigo-postgresql.yml -f docker-compose.metamigo.yml up -d", "docker:metamigo:up": "docker compose -f docker-compose.zammad.yml -f docker-compose.metamigo-postgresql.yml -f docker-compose.metamigo.yml up -d",
"docker:metamigo:down": "docker compose -f docker-compose.zammad.yml -f docker-compose.metamigo-postgresql.yml -f docker-compose.metamigo.yml down", "docker:metamigo:down": "docker compose -f docker-compose.zammad.yml -f docker-compose.metamigo-postgresql.yml -f docker-compose.metamigo.yml down",
"upgrade:setup": "npm i -g npm-check-updates", "upgrade:setup": "npm i -g npm-check-updates",
"upgrade:check": "ncu -ws -x graphql", "upgrade:check": "ncu && ncu -ws -x graphql -x postgraphile",
"upgrade:all": "ncu -ws -u -x graphql" "upgrade:all": "ncu -u && ncu -ws -u -x graphql -x postgraphile"
}, },
"packageManager": "npm@9.6.7", "packageManager": "npm@9.6.7",
"workspaces": [ "workspaces": [

View file

@ -9,12 +9,12 @@
"lint": "eslint index.js" "lint": "eslint index.js"
}, },
"dependencies": { "dependencies": {
"@babel/core": "7.22.5", "@babel/core": "7.22.6",
"@babel/preset-env": "7.22.5", "@babel/preset-env": "7.22.6",
"@babel/preset-typescript": "7.22.5" "@babel/preset-typescript": "7.22.5"
}, },
"peerDependencies": {}, "peerDependencies": {},
"devDependencies": { "devDependencies": {
"eslint": "^8.43.0" "eslint": "^8.44.0"
} }
} }

View file

@ -10,8 +10,8 @@
}, },
"dependencies": { "dependencies": {
"@rushstack/eslint-patch": "^1.3.2", "@rushstack/eslint-patch": "^1.3.2",
"@typescript-eslint/eslint-plugin": "^5.60.0", "@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.60.0", "@typescript-eslint/parser": "^5.61.0",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^8.8.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",
@ -21,15 +21,15 @@
"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": "47.0.0", "eslint-plugin-unicorn": "47.0.0",
"@babel/eslint-parser": "7.22.5" "@babel/eslint-parser": "7.22.6"
}, },
"peerDependencies": { "peerDependencies": {
"eslint": "^7.32.0", "eslint": "^7.32.0",
"typescript": "^4.9.5" "typescript": "^4.9.5"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.43.0", "eslint": "^8.44.0",
"jest": "^29.5.0", "jest": "^29.6.0",
"typescript": "^5.1.3" "typescript": "^5.1.6"
} }
} }

View file

@ -10,7 +10,7 @@
}, },
"dependencies": { "dependencies": {
"@types/jest": "^29.5.2", "@types/jest": "^29.5.2",
"jest": "^29.5.0", "jest": "^29.6.0",
"jest-junit": "^16.0.0" "jest-junit": "^16.0.0"
}, },
"peerDependencies": {} "peerDependencies": {}

View file

@ -25,7 +25,7 @@
"pg-monitor": "^2.0.0", "pg-monitor": "^2.0.0",
"tsc-watch": "^6.0.4", "tsc-watch": "^6.0.4",
"typedoc": "^0.24.8", "typedoc": "^0.24.8",
"typescript": "^5.1.3" "typescript": "^5.1.6"
}, },
"dependencies": { "dependencies": {
"@digiresilience/hapi-nextauth": "*", "@digiresilience/hapi-nextauth": "*",
@ -39,13 +39,13 @@
"@promster/hapi": "^8.0.6", "@promster/hapi": "^8.0.6",
"@promster/server": "^7.0.8", "@promster/server": "^7.0.8",
"@promster/types": "^3.2.5", "@promster/types": "^3.2.5",
"@types/convict": "^6.1.2", "@types/convict": "^6.1.3",
"@types/hapi__glue": "^6.1.6", "@types/hapi__glue": "^6.1.6",
"@types/hapi__hapi": "^20.0.13", "@types/hapi__hapi": "^20.0.13",
"@types/hapi__inert": "^5.2.6", "@types/hapi__inert": "^5.2.6",
"@types/hapi__vision": "^5.5.4", "@types/hapi__vision": "^5.5.4",
"@types/hapipal__schmervice": "^2.0.3", "@types/hapipal__schmervice": "^2.0.3",
"chalk": "^5.2.0", "chalk": "^5.3.0",
"commander": "^11.0.0", "commander": "^11.0.0",
"convict": "^6.2.4", "convict": "^6.2.4",
"decamelcase-keys": "^1.1.1", "decamelcase-keys": "^1.1.1",
@ -57,7 +57,7 @@
"next-auth": "^4.22.1", "next-auth": "^4.22.1",
"pg-promise": "^11.5.0", "pg-promise": "^11.5.0",
"pino": "^8.14.1", "pino": "^8.14.1",
"pino-pretty": "^10.0.0", "pino-pretty": "^10.0.1",
"prom-client": "^14.x.x", "prom-client": "^14.x.x",
"uuid": "^9.0.0" "uuid": "^9.0.0"
} }

View file

@ -10,16 +10,16 @@
"@digiresilience/montar": "*" "@digiresilience/montar": "*"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.22.5", "@babel/core": "7.22.6",
"@babel/preset-env": "7.22.5", "@babel/preset-env": "7.22.6",
"@babel/preset-typescript": "7.22.5", "@babel/preset-typescript": "7.22.5",
"eslint": "^8.43.0", "eslint": "^8.44.0",
"pino-pretty": "^10.0.0", "pino-pretty": "^10.0.1",
"prettier": "^2.8.8", "prettier": "^2.8.8",
"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",
"typescript": "^5.1.3" "typescript": "^5.1.6"
}, },
"files": [ "files": [
"build", "build",

View file

@ -16,19 +16,19 @@
"pg-promise": "^11.5.0" "pg-promise": "^11.5.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.22.5", "@babel/core": "7.22.6",
"@babel/preset-env": "7.22.5", "@babel/preset-env": "7.22.6",
"@babel/preset-typescript": "7.22.5", "@babel/preset-typescript": "7.22.5",
"@types/jest": "^29.5.2", "@types/jest": "^29.5.2",
"eslint": "^8.43.0", "eslint": "^8.44.0",
"jest": "^29.5.0", "jest": "^29.6.0",
"jest-junit": "^16.0.0", "jest-junit": "^16.0.0",
"pino-pretty": "^10.0.0", "pino-pretty": "^10.0.1",
"prettier": "^2.8.8", "prettier": "^2.8.8",
"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",
"typescript": "^5.1.3" "typescript": "^5.1.6"
}, },
"scripts": { "scripts": {
"build": "tsc -p tsconfig.json", "build": "tsc -p tsconfig.json",