From dd5fa82a6587a5ca568a2c7b5e04c65b5091b7ea Mon Sep 17 00:00:00 2001 From: mimamch Date: Mon, 26 Feb 2024 10:02:51 +0700 Subject: [PATCH] upgrade wa-multi-session@^3.4.0 --- README.md | 6 ++ package.json | 2 +- pnpm-lock.yaml | 163 +++++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 145 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 0a03e74..89f2df4 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,12 @@ V3.2.0 - Add Key for secret data - Update README.md +## Upgrading + +``` +npm install wa-multi-session@latest +``` + ## Documentation For detailed documentation, including guides and API references, please visit the [official documentation](https://github.com/mimamch/wa-gateway). diff --git a/package.json b/package.json index a25c3fe..2c6dfec 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "moment": "^2.29.4", "morgan": "~1.9.1", "qrcode": "^1.5.1", - "wa-multi-session": "^3.3.1" + "wa-multi-session": "^3.4.0" }, "repository": { "type": "git", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 30bddb1..57a9ccc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,8 +36,8 @@ dependencies: specifier: ^1.5.1 version: 1.5.1 wa-multi-session: - specifier: ^3.3.1 - version: 3.3.1(debug@2.6.9) + specifier: ^3.4.0 + version: 3.4.0(debug@2.6.9) packages: @@ -45,6 +45,10 @@ packages: resolution: {integrity: sha512-yprSnAtj80/VKuDqRcFFLDYltoNV8tChNwFfIgcf6PGD4sjzWIBgs08pRuTqGH5mk5wgL6PBRSsMCZqtZwzFEw==} dev: false + /@eshaz/web-worker@1.2.2: + resolution: {integrity: sha512-WxXiHFmD9u/owrzempiDlBB1ZYqiLnm9s6aPc8AlFQalq2tKmqdmMr9GXOupDgzXtqnBipj8Un0gkIm7Sjf8mw==} + dev: false + /@hapi/boom@10.0.1: resolution: {integrity: sha512-ERcCZaEjdH3OgSJlyjVk8pHIFeus91CjKP3v+MpgBNp5IvGzP2l/bRiD78nqYcKPaZdbKkK5vDBVPd2ohHBlsA==} dependencies: @@ -108,6 +112,18 @@ packages: resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} dev: false + /@thi.ng/bitstream@2.2.48: + resolution: {integrity: sha512-54W3wH7dGm6Xsz403CoskQbDCAK+E4doDzOaecjn8rtPFqftmG00q7j7TuRnxPDzVdn7rTxGyeyX51ipWjDAew==} + engines: {node: '>=18'} + dependencies: + '@thi.ng/errors': 2.4.18 + dev: false + + /@thi.ng/errors@2.4.18: + resolution: {integrity: sha512-sGrzZHsE16VWSUzhv53EESO5qLzw2pvzTd/+8xkM5x3BX+RhoK5yPB/tTOulS1OIXBQOgvpyiGuQpx/CxjzfDQ==} + engines: {node: '>=18'} + dev: false + /@tokenizer/token@0.3.0: resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==} dev: false @@ -124,13 +140,40 @@ packages: resolution: {integrity: sha512-JIzsAvJeA/5iY6Y/OxZbv1lUcc8dNSE77lb2gnBH+/PJ3lFR1Ccvgwl5JWnHAkNHcRsT0TbpVOsiMKZ1F/yyJg==} dev: false - /@whiskeysockets/baileys@6.3.1(debug@2.6.9)(qrcode-terminal@0.12.0): - resolution: {integrity: sha512-HYNnWP/8v5PvSCWmAusVM5zOrRLS3iwmxaFZn6BzgSs+wEHlVvdUJZkjwTQwxN7dOzMDCj0PrEh9Pi+HXSIQvQ==} + /@wasm-audio-decoders/common@9.0.4: + resolution: {integrity: sha512-+XdSt6mMfvir5D+vcW8gLqledJIgzkBAGXOG7ySJtbKdOTHduG2YAHvUNH9/Mb2hkiM8U9EJrGA6HhbsqG/bbg==} + dependencies: + '@eshaz/web-worker': 1.2.2 + dev: false + + /@wasm-audio-decoders/common@9.0.5: + resolution: {integrity: sha512-b9JNh9sPAvn8PVIizNh9D60WkfQong/u9ea873H47u7zvVDLctxYIp2aZw9CQqXaQdk7JB3MoU5UHiseO40swg==} + dependencies: + '@eshaz/web-worker': 1.2.2 + simple-yenc: 1.0.4 + dev: false + + /@wasm-audio-decoders/flac@0.2.4: + resolution: {integrity: sha512-bsUlwIjd5y+IAEyILCQdi8y0LocKEkZ0enA8ljDL+NVVwN+5Rv5Xkm/HcdUxnB7MtekxN2cNcTsv1zkb2aZyWg==} + dependencies: + '@wasm-audio-decoders/common': 9.0.5 + codec-parser: 2.4.3 + dev: false + + /@wasm-audio-decoders/ogg-vorbis@0.1.15: + resolution: {integrity: sha512-skAN3NIrRzMkVouyfyq3gYT/op/K9iutMZr7kr5/9fnIaCnpYdrdbv69X8PZ6y3K2J5zy5KuGno5kzH8yGLOOg==} + dependencies: + '@wasm-audio-decoders/common': 9.0.5 + codec-parser: 2.4.3 + dev: false + + /@whiskeysockets/baileys@6.6.0(debug@2.6.9)(qrcode-terminal@0.12.0): + resolution: {integrity: sha512-4aIPHztdLZP24Qac7mudZTMR7qIsEDQxlpCBJE4atYHFAa5tlwCGPcUy249q3aaayxYtQAwheVG42L6AkRxAwg==} peerDependencies: jimp: ^0.16.1 link-preview-js: ^3.0.0 qrcode-terminal: ^0.12.0 - sharp: ^0.30.5 + sharp: ^0.32.2 peerDependenciesMeta: jimp: optional: true @@ -143,15 +186,16 @@ packages: dependencies: '@adiwajshing/keyed-db': 0.2.4 '@hapi/boom': 9.1.4 + audio-decode: 2.2.0 axios: 1.4.0(debug@2.6.9) - cache-manager: 5.2.3 + cache-manager: 4.0.1 futoin-hkdf: 1.5.2 libphonenumber-js: 1.10.37 libsignal: github.com/adiwajshing/libsignal-node/11dbd962ea108187c79a7c46fe4d6f790e23da97 music-metadata: 7.13.4 node-cache: 5.1.2 pino: 7.11.0 - protobufjs: 6.11.3 + protobufjs: 7.2.6 qrcode-terminal: 0.12.0 uuid: 9.0.0 ws: 8.13.0 @@ -193,6 +237,10 @@ packages: resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} dev: false + /async@3.2.3: + resolution: {integrity: sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==} + dev: false + /async@3.2.4: resolution: {integrity: sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==} dev: false @@ -206,6 +254,28 @@ packages: engines: {node: '>=8.0.0'} dev: false + /audio-buffer@5.0.0: + resolution: {integrity: sha512-gsDyj1wwUp8u7NBB+eW6yhLb9ICf+0eBmDX8NGaAS00w8/fLqFdxUlL5Ge/U8kB64DlQhdonxYC59dXy1J7H/w==} + dev: false + + /audio-decode@2.2.0: + resolution: {integrity: sha512-3SLGQ4VL57+fuFHV5JBeTNx3frjdztOIm4LJBFqiFhMQGeerrcS3WQbfuPPOqcNmqFGmPeaAAFPCxF75cSK/pQ==} + dependencies: + '@wasm-audio-decoders/flac': 0.2.4 + '@wasm-audio-decoders/ogg-vorbis': 0.1.15 + audio-buffer: 5.0.0 + audio-type: 2.2.1 + mpg123-decoder: 0.4.12 + node-wav: 0.0.2 + ogg-opus-decoder: 1.6.12 + qoa-format: 1.0.1 + dev: false + + /audio-type@2.2.1: + resolution: {integrity: sha512-En9AY6EG1qYqEy5L/quryzbA4akBpJrnBZNxeKTqGHC2xT9Qc4aZ8b7CcbOMFTTc/MGdoNyp+SN4zInZNKxMYA==} + engines: {node: '>=14'} + dev: false + /axios@1.4.0(debug@2.6.9): resolution: {integrity: sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==} dependencies: @@ -276,11 +346,12 @@ packages: engines: {node: '>= 0.8'} dev: false - /cache-manager@5.2.3: - resolution: {integrity: sha512-9OErI8fksFkxAMJ8Mco0aiZSdphyd90HcKiOMJQncSlU1yq/9lHHxrT8PDayxrmr9IIIZPOAEfXuGSD7g29uog==} + /cache-manager@4.0.1: + resolution: {integrity: sha512-JWdtjdX8e0e6eMehAZsdJvBMvHn/pVQGYUjgzc1ILFH0vtcffb9R7XIEAqfYgEeaVJVCOSP4+dxCius+ciW0RA==} dependencies: + async: 3.2.3 lodash.clonedeep: 4.5.0 - lru-cache: 9.1.2 + lru-cache: 7.18.3 dev: false /call-bind@1.0.2: @@ -316,6 +387,10 @@ packages: engines: {node: '>=0.8'} dev: false + /codec-parser@2.4.3: + resolution: {integrity: sha512-3dAvFtdpxn4YLstqsB2ZiJXXNg7n1j7R5ONeDuk+2kBkb39PwrCRytOFHlSWA8q5jCjW3PumeMv9q37bFHsijg==} + dev: false + /color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -738,9 +813,13 @@ packages: resolution: {integrity: sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==} dev: false - /lru-cache@9.1.2: - resolution: {integrity: sha512-ERJq3FOzJTxBbFjZ7iDs+NiK4VI9Wz+RdrrAB8dio1oV+YvdPzUEE4QNiT2VD51DkIbCYRUUzCRkssXCHqSnKQ==} - engines: {node: 14 || >=16.14} + /long@5.2.3: + resolution: {integrity: sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==} + dev: false + + /lru-cache@7.18.3: + resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} + engines: {node: '>=12'} dev: false /media-typer@0.3.0: @@ -816,6 +895,12 @@ packages: - supports-color dev: false + /mpg123-decoder@0.4.12: + resolution: {integrity: sha512-BjeE7+D7FttqNRFtF3IgSSnG2Hn96ID4JDsCCmxhaPy2R1yuJu2gaabhlS9r12JibaRTT2SYDMXTyjD6xqe0fg==} + dependencies: + '@wasm-audio-decoders/common': 9.0.4 + dev: false + /ms@2.0.0: resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} dev: false @@ -855,6 +940,11 @@ packages: clone: 2.1.2 dev: false + /node-wav@0.0.2: + resolution: {integrity: sha512-M6Rm/bbG6De/gKGxOpeOobx/dnGuP0dz40adqx38boqHhlWssBJZgLCPBNtb9NkrmnKYiV04xELq+R6PFOnoLA==} + engines: {node: '>=4.4.0'} + dev: false + /object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} @@ -864,6 +954,14 @@ packages: resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} dev: false + /ogg-opus-decoder@1.6.12: + resolution: {integrity: sha512-6MY/rgFegJABKVE7LS10lmVoy8dFhvLDbIlcymgMnn0qZG0YHqcUU+bW+MkVyhhWN3H0vqtkRlPHGOXU6yR5YQ==} + dependencies: + '@wasm-audio-decoders/common': 9.0.5 + codec-parser: 2.4.3 + opus-decoder: 0.7.6 + dev: false + /on-exit-leak-free@0.2.0: resolution: {integrity: sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg==} dev: false @@ -897,6 +995,12 @@ packages: wrappy: 1.0.2 dev: false + /opus-decoder@0.7.6: + resolution: {integrity: sha512-5QYSl1YQYbSzWL7vM4dJoyrLC804xIvBFjfKTZZ6/z/EgmdFouOTT+8PDM2V18vzgnhRNPDuyB2aTfl/2hvMRA==} + dependencies: + '@wasm-audio-decoders/common': 9.0.5 + dev: false + /p-limit@2.3.0: resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} engines: {node: '>=6'} @@ -1009,8 +1113,8 @@ packages: engines: {node: '>= 0.6.0'} dev: false - /protobufjs@6.11.3: - resolution: {integrity: sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==} + /protobufjs@6.8.8: + resolution: {integrity: sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw==} hasBin: true requiresBuild: true dependencies: @@ -1025,13 +1129,13 @@ packages: '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 '@types/long': 4.0.2 - '@types/node': 20.4.1 + '@types/node': 10.17.60 long: 4.0.0 dev: false - /protobufjs@6.8.8: - resolution: {integrity: sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw==} - hasBin: true + /protobufjs@7.2.6: + resolution: {integrity: sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==} + engines: {node: '>=12.0.0'} requiresBuild: true dependencies: '@protobufjs/aspromise': 1.1.2 @@ -1044,9 +1148,8 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/long': 4.0.2 - '@types/node': 10.17.60 - long: 4.0.0 + '@types/node': 20.4.1 + long: 5.2.3 dev: false /proxy-addr@2.0.7: @@ -1061,6 +1164,12 @@ packages: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} dev: false + /qoa-format@1.0.1: + resolution: {integrity: sha512-dMB0Z6XQjdpz/Cw4Rf6RiBpQvUSPCfYlQMWvmuWlWkAT7nDQD29cVZ1SwDUB6DYJSitHENwbt90lqfI+7bvMcw==} + dependencies: + '@thi.ng/bitstream': 2.2.48 + dev: false + /qrcode-terminal@0.12.0: resolution: {integrity: sha512-EXtzRZmC+YGmGlDFbXKxQiMZNwCLEO6BANKXG4iCtSIM0yqc/pappSx3RIKr4r0uh5JsBckOXeKrB3Iz7mdQpQ==} hasBin: true @@ -1219,6 +1328,10 @@ packages: object-inspect: 1.12.3 dev: false + /simple-yenc@1.0.4: + resolution: {integrity: sha512-5gvxpSd79e9a3V4QDYUqnqxeD4HGlhCakVpb6gMnDD7lexJggSBJRBO5h52y/iJrdXRilX9UCuDaIJhSWm5OWw==} + dev: false + /sonic-boom@2.8.0: resolution: {integrity: sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==} dependencies: @@ -1344,12 +1457,12 @@ packages: engines: {node: '>= 0.8'} dev: false - /wa-multi-session@3.3.1(debug@2.6.9): - resolution: {integrity: sha512-CdYfW+rebYrPPa97yenfqJadnz3E5shIlWUcJhVzgm1HWBhyryMj/1MJErKkRNxi67LxoR/XwPOX9xU4X9dSUA==} + /wa-multi-session@3.4.0(debug@2.6.9): + resolution: {integrity: sha512-KmMnKWasrwg4lx/O1tu61NIv0xx0XL2zCPHoG7F2vOFf0w1E5vDz66vyMqT+J7c95cK0oebARWXmVhhj6CvViA==} dependencies: '@adiwajshing/keyed-db': 0.2.4 '@hapi/boom': 10.0.1 - '@whiskeysockets/baileys': 6.3.1(debug@2.6.9)(qrcode-terminal@0.12.0) + '@whiskeysockets/baileys': 6.6.0(debug@2.6.9)(qrcode-terminal@0.12.0) mime: 3.0.0 pino: 8.14.1 qrcode-terminal: 0.12.0