Update Baileys to 7RC

This commit is contained in:
Darren Clarke 2025-12-02 16:55:07 +01:00
parent b82d3cc726
commit 8d3eeee1d9
9 changed files with 115 additions and 127 deletions

2
.nvmrc
View file

@ -1 +1 @@
v22.18.0 v24

View file

@ -1,33 +1,29 @@
{ {
"name": "@link-stack/bridge-whatsapp", "name": "@link-stack/bridge-whatsapp",
"version": "3.3.2", "version": "3.3.2",
"type": "module",
"main": "build/main/index.js", "main": "build/main/index.js",
"author": "Darren Clarke <darren@redaranj.com>", "author": "Darren Clarke <darren@redaranj.com>",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"dependencies": { "dependencies": {
"@adiwajshing/keyed-db": "0.2.4",
"@hapi/hapi": "^21.4.3", "@hapi/hapi": "^21.4.3",
"@hapipal/schmervice": "^3.0.0", "@hapipal/schmervice": "^3.0.0",
"@hapipal/toys": "^4.0.0", "@hapipal/toys": "^4.0.0",
"@link-stack/bridge-common": "workspace:*", "@link-stack/bridge-common": "workspace:*",
"@link-stack/logger": "workspace:*", "@link-stack/logger": "workspace:*",
"@whiskeysockets/baileys": "^6.7.21", "@whiskeysockets/baileys": "7.0.0-rc.9",
"hapi-pino": "^13.0.0", "hapi-pino": "^13.0.0"
"link-preview-js": "^3.1.0"
}, },
"devDependencies": { "devDependencies": {
"@link-stack/eslint-config": "workspace:*", "@link-stack/eslint-config": "workspace:*",
"@link-stack/jest-config": "workspace:*", "@link-stack/jest-config": "workspace:*",
"@link-stack/typescript-config": "workspace:*", "@link-stack/typescript-config": "workspace:*",
"@types/long": "^5",
"@types/node": "*", "@types/node": "*",
"dotenv-cli": "^10.0.0",
"tsx": "^4.20.6",
"typescript": "^5.9.3" "typescript": "^5.9.3"
}, },
"scripts": { "scripts": {
"build": "tsc -p tsconfig.json", "build": "tsc -p tsconfig.json",
"dev": "dotenv -- tsx src/index.ts", "dev": "node --env-file=.env --experimental-transform-types src/index.ts",
"start": "node build/main/index.js" "start": "node build/main/index.js"
} }
} }

View file

@ -1,17 +1,17 @@
import * as Hapi from "@hapi/hapi"; import * as Hapi from "@hapi/hapi";
import hapiPino from "hapi-pino"; import hapiPino from "hapi-pino";
import Schmervice from "@hapipal/schmervice"; import Schmervice from "@hapipal/schmervice";
import WhatsappService from "./service.js"; import WhatsappService from "./service.ts";
import { import {
RegisterBotRoute, RegisterBotRoute,
UnverifyBotRoute, UnverifyBotRoute,
GetBotRoute, GetBotRoute,
SendMessageRoute, SendMessageRoute,
ReceiveMessageRoute, ReceiveMessageRoute,
} from "./routes.js"; } from "./routes.ts";
import { createLogger } from "@link-stack/logger"; import { createLogger } from "@link-stack/logger";
const logger = createLogger('bridge-whatsapp-index'); const logger = createLogger("bridge-whatsapp-index");
const server = Hapi.server({ port: 5000 }); const server = Hapi.server({ port: 5000 });

View file

@ -1,6 +1,6 @@
import * as Hapi from "@hapi/hapi"; import * as Hapi from "@hapi/hapi";
import Toys from "@hapipal/toys"; import Toys from "@hapipal/toys";
import WhatsappService from "./service"; import WhatsappService from "./service.ts";
const withDefaults = Toys.withRouteDefaults({ const withDefaults = Toys.withRouteDefaults({
options: { options: {
@ -27,15 +27,9 @@ export const SendMessageRoute = withDefaults({
description: "Send a message", description: "Send a message",
async handler(request: Hapi.Request, _h: Hapi.ResponseToolkit) { async handler(request: Hapi.Request, _h: Hapi.ResponseToolkit) {
const { id } = request.params; const { id } = request.params;
const { phoneNumber, message, attachments } = const { phoneNumber, message, attachments } = request.payload as MessageRequest;
request.payload as MessageRequest;
const whatsappService = getService(request); const whatsappService = getService(request);
await whatsappService.send( await whatsappService.send(id, phoneNumber, message as string, attachments);
id,
phoneNumber,
message as string,
attachments,
);
request.logger.info( request.logger.info(
{ {
id, id,

View file

@ -4,12 +4,13 @@ import makeWASocket, {
DisconnectReason, DisconnectReason,
proto, proto,
downloadContentFromMessage, downloadContentFromMessage,
MediaType,
fetchLatestBaileysVersion, fetchLatestBaileysVersion,
isJidBroadcast, isJidBroadcast,
isJidStatusBroadcast, isJidStatusBroadcast,
useMultiFileAuthState, useMultiFileAuthState,
} from "@whiskeysockets/baileys"; } from "@whiskeysockets/baileys";
type MediaType = "audio" | "document" | "image" | "video" | "sticker";
import fs from "fs"; import fs from "fs";
import { createLogger } from "@link-stack/logger"; import { createLogger } from "@link-stack/logger";
import { import {
@ -26,11 +27,7 @@ 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] = ["Bridge", "Chrome", "2.0"];
"Bridge",
"Chrome",
"2.0",
];
constructor(server: Server, options: never) { constructor(server: Server, options: never) {
super(server, options); super(server, options);
@ -47,7 +44,7 @@ export default class WhatsappService extends Service {
} }
// Prevent path traversal by checking for suspicious patterns // Prevent path traversal by checking for suspicious patterns
if (id.includes('..') || id.includes('/') || id.includes('\\')) { if (id.includes("..") || id.includes("/") || id.includes("\\")) {
throw new Error(`Path traversal detected in bot ID: ${id}`); throw new Error(`Path traversal detected in bot ID: ${id}`);
} }
@ -102,20 +99,14 @@ export default class WhatsappService extends Service {
auth: state, auth: state,
generateHighQualityLinkPreview: false, generateHighQualityLinkPreview: false,
msgRetryCounterMap, msgRetryCounterMap,
shouldIgnoreJid: (jid) => shouldIgnoreJid: (jid) => isJidBroadcast(jid) || isJidStatusBroadcast(jid),
isJidBroadcast(jid) || isJidStatusBroadcast(jid),
}); });
let pause = 5000; let pause = 5000;
socket.ev.process(async (events) => { socket.ev.process(async (events) => {
if (events["connection.update"]) { if (events["connection.update"]) {
const update = events["connection.update"]; const update = events["connection.update"];
const { const { connection: connectionState, lastDisconnect, qr, isNewLogin } = update;
connection: connectionState,
lastDisconnect,
qr,
isNewLogin,
} = update;
if (qr) { if (qr) {
logger.info("got qr code"); logger.info("got qr code");
const botDirectory = this.getBotDirectory(botID); const botDirectory = this.getBotDirectory(botID);
@ -130,8 +121,7 @@ export default class WhatsappService extends Service {
logger.info("opened connection"); logger.info("opened connection");
} else if (connectionState === "close") { } else if (connectionState === "close") {
logger.info({ lastDisconnect }, "connection closed"); logger.info({ lastDisconnect }, "connection closed");
const disconnectStatusCode = (lastDisconnect?.error as any)?.output const disconnectStatusCode = (lastDisconnect?.error as any)?.output?.statusCode;
?.statusCode;
if (disconnectStatusCode === DisconnectReason.restartRequired) { if (disconnectStatusCode === DisconnectReason.restartRequired) {
logger.info("reconnecting after got new login"); logger.info("reconnecting after got new login");
await this.createConnection(botID, server, options); await this.createConnection(botID, server, options);
@ -174,10 +164,7 @@ export default class WhatsappService extends Service {
const verifiedFile = `${directory}/verified`; const verifiedFile = `${directory}/verified`;
if (fs.existsSync(verifiedFile)) { if (fs.existsSync(verifiedFile)) {
const { version, isLatest } = await fetchLatestBaileysVersion(); const { version, isLatest } = await fetchLatestBaileysVersion();
logger.info( logger.info({ version: version.join("."), isLatest }, "using WA version");
{ version: version.join("."), isLatest },
"using WA version",
);
await this.createConnection(botID, this.server, { await this.createConnection(botID, this.server, {
browser: WhatsappService.browserDescription, browser: WhatsappService.browserDescription,
@ -188,15 +175,13 @@ export default class WhatsappService extends Service {
} }
} }
private async queueMessage( private async queueMessage(botID: string, webMessageInfo: proto.IWebMessageInfo) {
botID: string, const { key, message, messageTimestamp } = webMessageInfo;
webMessageInfo: proto.IWebMessageInfo, if (!key) {
) { logger.warn("Message missing key, skipping");
const { return;
key: { id, fromMe, remoteJid }, }
message, const { id, fromMe, remoteJid } = key;
messageTimestamp,
} = webMessageInfo;
logger.info("Message type debug"); logger.info("Message type debug");
for (const key in message) { for (const key in message) {
logger.info( logger.info(
@ -204,11 +189,9 @@ export default class WhatsappService extends Service {
"Message field", "Message field",
); );
} }
const isValidMessage = const isValidMessage = message && remoteJid !== "status@broadcast" && !fromMe;
message && remoteJid !== "status@broadcast" && !fromMe;
if (isValidMessage) { if (isValidMessage) {
const { audioMessage, documentMessage, imageMessage, videoMessage } = const { audioMessage, documentMessage, imageMessage, videoMessage } = message;
message;
const isMediaMessage = const isMediaMessage =
audioMessage || documentMessage || imageMessage || videoMessage; audioMessage || documentMessage || imageMessage || videoMessage;
@ -288,10 +271,7 @@ export default class WhatsappService extends Service {
} }
} }
private async queueUnreadMessages( private async queueUnreadMessages(botID: string, messages: proto.IWebMessageInfo[]) {
botID: string,
messages: proto.IWebMessageInfo[],
) {
for await (const message of messages) { for await (const message of messages) {
await this.queueMessage(botID, message); await this.queueMessage(botID, message);
} }
@ -334,10 +314,7 @@ export default class WhatsappService extends Service {
} }
} }
async register( async register(botID: string, callback?: AuthCompleteCallback): Promise<void> {
botID: string,
callback?: AuthCompleteCallback,
): Promise<void> {
const { version } = await fetchLatestBaileysVersion(); const { version } = await fetchLatestBaileysVersion();
await this.createConnection( await this.createConnection(
botID, botID,
@ -368,7 +345,9 @@ export default class WhatsappService extends Service {
const MAX_TOTAL_SIZE = getMaxTotalAttachmentSize(); const MAX_TOTAL_SIZE = getMaxTotalAttachmentSize();
if (attachments.length > MAX_ATTACHMENTS) { if (attachments.length > MAX_ATTACHMENTS) {
throw new Error(`Too many attachments: ${attachments.length} (max ${MAX_ATTACHMENTS})`); throw new Error(
`Too many attachments: ${attachments.length} (max ${MAX_ATTACHMENTS})`,
);
} }
let totalSize = 0; let totalSize = 0;
@ -378,20 +357,26 @@ export default class WhatsappService extends Service {
const estimatedSize = (attachment.data.length * 3) / 4; const estimatedSize = (attachment.data.length * 3) / 4;
if (estimatedSize > MAX_ATTACHMENT_SIZE) { if (estimatedSize > MAX_ATTACHMENT_SIZE) {
logger.warn({ logger.warn(
{
filename: attachment.filename, filename: attachment.filename,
size: estimatedSize, size: estimatedSize,
maxSize: MAX_ATTACHMENT_SIZE maxSize: MAX_ATTACHMENT_SIZE,
}, 'Attachment exceeds size limit, skipping'); },
"Attachment exceeds size limit, skipping",
);
continue; continue;
} }
totalSize += estimatedSize; totalSize += estimatedSize;
if (totalSize > MAX_TOTAL_SIZE) { if (totalSize > MAX_TOTAL_SIZE) {
logger.warn({ logger.warn(
{
totalSize, totalSize,
maxTotalSize: MAX_TOTAL_SIZE maxTotalSize: MAX_TOTAL_SIZE,
}, 'Total attachment size exceeds limit, skipping remaining'); },
"Total attachment size exceeds limit, skipping remaining",
);
break; break;
} }

View file

@ -1,4 +1,4 @@
import type WhatsappService from "./service.js"; import type WhatsappService from "./service.ts";
declare module "@hapipal/schmervice" { declare module "@hapipal/schmervice" {
interface SchmerviceDecorator { interface SchmerviceDecorator {

View file

@ -1,16 +1,17 @@
{ {
"extends": "@link-stack/typescript-config/tsconfig.node.json", "extends": "@link-stack/typescript-config/tsconfig.node.json",
"compilerOptions": { "compilerOptions": {
"module": "commonjs", "module": "NodeNext",
"target": "es2018", "target": "es2022",
"esModuleInterop": true, "esModuleInterop": true,
"moduleResolution": "node", "moduleResolution": "NodeNext",
"outDir": "build/main", "outDir": "build/main",
"rootDir": "src", "rootDir": "src",
"skipLibCheck": true, "skipLibCheck": true,
"types": ["node"], "types": ["node"],
"lib": ["es2020", "DOM"], "lib": ["es2022", "DOM"],
"composite": true "composite": true,
"rewriteRelativeImportExtensions": true
}, },
"include": ["src/**/*.ts", "src/**/.*.ts"], "include": ["src/**/*.ts", "src/**/.*.ts"],
"exclude": ["node_modules/**"] "exclude": ["node_modules/**"]

View file

@ -49,7 +49,7 @@
"react": "19.2.0", "react": "19.2.0",
"react-dom": "19.2.0", "react-dom": "19.2.0",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"turbo": "^2.5.8", "turbo": "^2.6.0",
"typescript": "latest" "typescript": "latest"
}, },
"pnpm": { "pnpm": {

106
pnpm-lock.yaml generated
View file

@ -37,7 +37,7 @@ importers:
specifier: ^10.9.2 specifier: ^10.9.2
version: 10.9.2(@types/node@24.10.0)(typescript@5.9.3) version: 10.9.2(@types/node@24.10.0)(typescript@5.9.3)
turbo: turbo:
specifier: ^2.5.8 specifier: ^2.6.0
version: 2.6.0 version: 2.6.0
typescript: typescript:
specifier: latest specifier: latest
@ -146,9 +146,6 @@ importers:
apps/bridge-whatsapp: apps/bridge-whatsapp:
dependencies: dependencies:
'@adiwajshing/keyed-db':
specifier: 0.2.4
version: 0.2.4
'@hapi/hapi': '@hapi/hapi':
specifier: ^21.4.3 specifier: ^21.4.3
version: 21.4.4 version: 21.4.4
@ -165,14 +162,11 @@ importers:
specifier: workspace:* specifier: workspace:*
version: link:../../packages/logger version: link:../../packages/logger
'@whiskeysockets/baileys': '@whiskeysockets/baileys':
specifier: ^6.7.21 specifier: 7.0.0-rc.9
version: 6.7.21(link-preview-js@3.1.0)(sharp@0.34.5) version: 7.0.0-rc.9(link-preview-js@3.1.0)(sharp@0.34.5)
hapi-pino: hapi-pino:
specifier: ^13.0.0 specifier: ^13.0.0
version: 13.0.0 version: 13.0.0
link-preview-js:
specifier: ^3.1.0
version: 3.1.0
devDependencies: devDependencies:
'@link-stack/eslint-config': '@link-stack/eslint-config':
specifier: workspace:* specifier: workspace:*
@ -183,18 +177,9 @@ importers:
'@link-stack/typescript-config': '@link-stack/typescript-config':
specifier: workspace:* specifier: workspace:*
version: link:../../packages/typescript-config version: link:../../packages/typescript-config
'@types/long':
specifier: ^5
version: 5.0.0
'@types/node': '@types/node':
specifier: '*' specifier: '*'
version: 24.10.0 version: 24.10.0
dotenv-cli:
specifier: ^10.0.0
version: 10.0.0
tsx:
specifier: ^4.20.6
version: 4.20.6
typescript: typescript:
specifier: ^5.9.3 specifier: ^5.9.3
version: 5.9.3 version: 5.9.3
@ -589,9 +574,6 @@ importers:
packages: packages:
'@adiwajshing/keyed-db@0.2.4':
resolution: {integrity: sha512-yprSnAtj80/VKuDqRcFFLDYltoNV8tChNwFfIgcf6PGD4sjzWIBgs08pRuTqGH5mk5wgL6PBRSsMCZqtZwzFEw==}
'@auth/core@0.41.1': '@auth/core@0.41.1':
resolution: {integrity: sha512-t9cJ2zNYAdWMacGRMT6+r4xr1uybIdmYa49calBPeTqwgAFPV/88ac9TEvCR85pvATiSPt8VaNf+Gt24JIT/uw==} resolution: {integrity: sha512-t9cJ2zNYAdWMacGRMT6+r4xr1uybIdmYa49calBPeTqwgAFPV/88ac9TEvCR85pvATiSPt8VaNf+Gt24JIT/uw==}
peerDependencies: peerDependencies:
@ -2154,10 +2136,6 @@ packages:
'@types/long@4.0.2': '@types/long@4.0.2':
resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==} resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==}
'@types/long@5.0.0':
resolution: {integrity: sha512-eQs9RsucA/LNjnMoJvWG/nXa7Pot/RbBzilF/QRIU/xRl+0ApxrSUFsV5lmf01SvSlqMzJ7Zwxe440wmz2SJGA==}
deprecated: This is a stub types definition. long provides its own type definitions, so you do not need this installed.
'@types/ms@2.1.0': '@types/ms@2.1.0':
resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==}
@ -2361,8 +2339,8 @@ packages:
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
'@whiskeysockets/baileys@6.7.21': '@whiskeysockets/baileys@7.0.0-rc.9':
resolution: {integrity: sha512-xx9OHd6jlPiu5yZVuUdwEgFNAOXiEG8sULHxC6XfzNwssnwxnA9Lp44pR05H621GQcKyCfsH33TGy+Na6ygX4w==} resolution: {integrity: sha512-YFm5gKXfDP9byCXCW3OPHKXLzrAKzolzgVUlRosHHgwbnf2YOO3XknkMm6J7+F0ns8OA0uuSBhgkRHTDtqkacw==}
engines: {node: '>=20.0.0'} engines: {node: '>=20.0.0'}
peerDependencies: peerDependencies:
audio-decode: ^2.1.3 audio-decode: ^2.1.3
@ -2377,8 +2355,8 @@ packages:
link-preview-js: link-preview-js:
optional: true optional: true
'@whiskeysockets/libsignal-node@https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/e81ecfc32eb74951d789ab37f7e341ab66d5fff1': '@whiskeysockets/libsignal-node@https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67':
resolution: {tarball: https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/e81ecfc32eb74951d789ab37f7e341ab66d5fff1} resolution: {tarball: https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67}
version: 2.0.1 version: 2.0.1
abstract-logging@2.0.1: abstract-logging@2.0.1:
@ -3186,6 +3164,9 @@ packages:
resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
eventemitter3@5.0.1:
resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==}
execa@5.1.1: execa@5.1.1:
resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}
engines: {node: '>=10'} engines: {node: '>=10'}
@ -4306,6 +4287,14 @@ packages:
resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
engines: {node: '>=10'} engines: {node: '>=10'}
p-queue@9.0.1:
resolution: {integrity: sha512-RhBdVhSwJb7Ocn3e8ULk4NMwBEuOxe+1zcgphUy9c2e5aR/xbEsdVXxHJ3lynw6Qiqu7OINEyHlZkiblEpaq7w==}
engines: {node: '>=20'}
p-timeout@7.0.1:
resolution: {integrity: sha512-AxTM2wDGORHGEkPCt8yqxOTMgpfbEHqF51f/5fJCmwFC3C/zNcGT63SymH2ttOAaiIws2zVg4+izQCjrakcwHg==}
engines: {node: '>=20'}
p-try@2.2.0: p-try@2.2.0:
resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}
engines: {node: '>=6'} engines: {node: '>=6'}
@ -4849,6 +4838,7 @@ packages:
source-map@0.8.0-beta.0: source-map@0.8.0-beta.0:
resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}
engines: {node: '>= 8'} engines: {node: '>= 8'}
deprecated: The work that was done in this beta branch won't be included in future versions
split2@4.2.0: split2@4.2.0:
resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==}
@ -5340,8 +5330,6 @@ packages:
snapshots: snapshots:
'@adiwajshing/keyed-db@0.2.4': {}
'@auth/core@0.41.1': '@auth/core@0.41.1':
dependencies: dependencies:
'@panva/hkdf': 1.2.1 '@panva/hkdf': 1.2.1
@ -6937,10 +6925,6 @@ snapshots:
'@types/long@4.0.2': {} '@types/long@4.0.2': {}
'@types/long@5.0.0':
dependencies:
long: 5.3.2
'@types/ms@2.1.0': {} '@types/ms@2.1.0': {}
'@types/node@10.17.60': {} '@types/node@10.17.60': {}
@ -7139,14 +7123,15 @@ snapshots:
'@unrs/resolver-binding-win32-x64-msvc@1.11.1': '@unrs/resolver-binding-win32-x64-msvc@1.11.1':
optional: true optional: true
'@whiskeysockets/baileys@6.7.21(link-preview-js@3.1.0)(sharp@0.34.5)': '@whiskeysockets/baileys@7.0.0-rc.9(link-preview-js@3.1.0)(sharp@0.34.5)':
dependencies: dependencies:
'@cacheable/node-cache': 1.7.4 '@cacheable/node-cache': 1.7.4
'@hapi/boom': 9.1.4 '@hapi/boom': 9.1.4
async-mutex: 0.5.0 async-mutex: 0.5.0
axios: 1.13.2 libsignal: '@whiskeysockets/libsignal-node@https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67'
libsignal: '@whiskeysockets/libsignal-node@https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/e81ecfc32eb74951d789ab37f7e341ab66d5fff1' lru-cache: 11.2.2
music-metadata: 11.10.0 music-metadata: 11.10.0
p-queue: 9.0.1
pino: 9.14.0 pino: 9.14.0
protobufjs: 7.5.4 protobufjs: 7.5.4
sharp: 0.34.5 sharp: 0.34.5
@ -7155,11 +7140,10 @@ snapshots:
link-preview-js: 3.1.0 link-preview-js: 3.1.0
transitivePeerDependencies: transitivePeerDependencies:
- bufferutil - bufferutil
- debug
- supports-color - supports-color
- utf-8-validate - utf-8-validate
'@whiskeysockets/libsignal-node@https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/e81ecfc32eb74951d789ab37f7e341ab66d5fff1': '@whiskeysockets/libsignal-node@https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67':
dependencies: dependencies:
curve25519-js: 0.0.4 curve25519-js: 0.0.4
protobufjs: 6.8.8 protobufjs: 6.8.8
@ -7380,7 +7364,8 @@ snapshots:
inherits: 2.0.4 inherits: 2.0.4
readable-stream: 3.6.2 readable-stream: 3.6.2
boolbase@1.0.0: {} boolbase@1.0.0:
optional: true
brace-expansion@1.1.12: brace-expansion@1.1.12:
dependencies: dependencies:
@ -7480,6 +7465,7 @@ snapshots:
domelementtype: 2.3.0 domelementtype: 2.3.0
domhandler: 5.0.3 domhandler: 5.0.3
domutils: 3.2.2 domutils: 3.2.2
optional: true
cheerio@1.0.0-rc.11: cheerio@1.0.0-rc.11:
dependencies: dependencies:
@ -7491,6 +7477,7 @@ snapshots:
parse5: 7.3.0 parse5: 7.3.0
parse5-htmlparser2-tree-adapter: 7.1.0 parse5-htmlparser2-tree-adapter: 7.1.0
tslib: 2.8.1 tslib: 2.8.1
optional: true
chokidar@4.0.3: chokidar@4.0.3:
dependencies: dependencies:
@ -7621,8 +7608,10 @@ snapshots:
domhandler: 5.0.3 domhandler: 5.0.3
domutils: 3.2.2 domutils: 3.2.2
nth-check: 2.1.1 nth-check: 2.1.1
optional: true
css-what@6.2.2: {} css-what@6.2.2:
optional: true
csstype@3.1.3: {} csstype@3.1.3: {}
@ -7716,18 +7705,22 @@ snapshots:
domelementtype: 2.3.0 domelementtype: 2.3.0
domhandler: 5.0.3 domhandler: 5.0.3
entities: 4.5.0 entities: 4.5.0
optional: true
domelementtype@2.3.0: {} domelementtype@2.3.0:
optional: true
domhandler@5.0.3: domhandler@5.0.3:
dependencies: dependencies:
domelementtype: 2.3.0 domelementtype: 2.3.0
optional: true
domutils@3.2.2: domutils@3.2.2:
dependencies: dependencies:
dom-serializer: 2.0.0 dom-serializer: 2.0.0
domelementtype: 2.3.0 domelementtype: 2.3.0
domhandler: 5.0.3 domhandler: 5.0.3
optional: true
dotenv-cli@10.0.0: dotenv-cli@10.0.0:
dependencies: dependencies:
@ -7787,9 +7780,11 @@ snapshots:
dependencies: dependencies:
once: 1.4.0 once: 1.4.0
entities@4.5.0: {} entities@4.5.0:
optional: true
entities@6.0.1: {} entities@6.0.1:
optional: true
error-ex@1.3.4: error-ex@1.3.4:
dependencies: dependencies:
@ -8104,6 +8099,8 @@ snapshots:
esutils@2.0.3: {} esutils@2.0.3: {}
eventemitter3@5.0.1: {}
execa@5.1.1: execa@5.1.1:
dependencies: dependencies:
cross-spawn: 7.0.6 cross-spawn: 7.0.6
@ -8441,6 +8438,7 @@ snapshots:
domhandler: 5.0.3 domhandler: 5.0.3
domutils: 3.2.2 domutils: 3.2.2
entities: 4.5.0 entities: 4.5.0
optional: true
http-proxy-agent@7.0.2: http-proxy-agent@7.0.2:
dependencies: dependencies:
@ -9124,6 +9122,7 @@ snapshots:
dependencies: dependencies:
cheerio: 1.0.0-rc.11 cheerio: 1.0.0-rc.11
url: 0.11.0 url: 0.11.0
optional: true
load-esm@1.0.2: {} load-esm@1.0.2: {}
@ -9359,6 +9358,7 @@ snapshots:
nth-check@2.1.1: nth-check@2.1.1:
dependencies: dependencies:
boolbase: 1.0.0 boolbase: 1.0.0
optional: true
oauth4webapi@3.8.2: {} oauth4webapi@3.8.2: {}
@ -9472,6 +9472,13 @@ snapshots:
dependencies: dependencies:
p-limit: 3.1.0 p-limit: 3.1.0
p-queue@9.0.1:
dependencies:
eventemitter3: 5.0.1
p-timeout: 7.0.1
p-timeout@7.0.1: {}
p-try@2.2.0: {} p-try@2.2.0: {}
pac-proxy-agent@7.2.0: pac-proxy-agent@7.2.0:
@ -9509,10 +9516,12 @@ snapshots:
dependencies: dependencies:
domhandler: 5.0.3 domhandler: 5.0.3
parse5: 7.3.0 parse5: 7.3.0
optional: true
parse5@7.3.0: parse5@7.3.0:
dependencies: dependencies:
entities: 6.0.1 entities: 6.0.1
optional: true
path-exists@4.0.0: {} path-exists@4.0.0: {}
@ -9752,7 +9761,8 @@ snapshots:
end-of-stream: 1.4.5 end-of-stream: 1.4.5
once: 1.4.0 once: 1.4.0
punycode@1.3.2: {} punycode@1.3.2:
optional: true
punycode@2.3.1: {} punycode@2.3.1: {}
@ -9768,7 +9778,8 @@ snapshots:
dependencies: dependencies:
side-channel: 1.1.0 side-channel: 1.1.0
querystring@0.2.0: {} querystring@0.2.0:
optional: true
queue-microtask@1.2.3: {} queue-microtask@1.2.3: {}
@ -10507,6 +10518,7 @@ snapshots:
dependencies: dependencies:
punycode: 1.3.2 punycode: 1.3.2
querystring: 0.2.0 querystring: 0.2.0
optional: true
use-sync-external-store@1.6.0(react@19.2.0): use-sync-external-store@1.6.0(react@19.2.0):
dependencies: dependencies: