@hiroosy/baileys-lite 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/WAProto/index.js +1530 -1514
  3. package/package.json +1 -1
  4. package/src/binary/wa-binary.js +4 -2
  5. package/src/defaults.js +2 -1
  6. package/src/foundation/ai-rich.js +1 -19
  7. package/src/foundation/cache.js +99 -24
  8. package/src/foundation/image-thumb.js +5 -106
  9. package/src/foundation/memory.js +103 -0
  10. package/src/signal/libsignal.js +1 -8
  11. package/src/signal/signal-repository.js +6 -4
  12. package/src/socket/chats.js +2 -0
  13. package/src/socket/messages-recv.js +5 -3
  14. package/src/socket/messages-send.js +19 -2
  15. package/src/socket/socket-core.js +3 -0
  16. package/src/utils/auth-state-core.js +2 -1
  17. package/src/utils/chat-sync.js +4 -0
  18. package/src/utils/media.js +16 -11
  19. package/src/utils/message-processing.js +22 -6
  20. package/src/utils/wa-protocol-core.js +6 -5
  21. package/src/wam/wam-constants.js +22 -22851
  22. package/src/wam/wam-data.json +1 -0
  23. package/src/vendor/jpeg-js/decoder.js +0 -1091
  24. package/src/vendor/jpeg-js/encoder.js +0 -739
  25. package/src/vendor/pngjs/LICENSE +0 -20
  26. package/src/vendor/pngjs/bitmapper.js +0 -251
  27. package/src/vendor/pngjs/bitpacker.js +0 -159
  28. package/src/vendor/pngjs/constants.js +0 -30
  29. package/src/vendor/pngjs/crc.js +0 -41
  30. package/src/vendor/pngjs/filter-pack.js +0 -173
  31. package/src/vendor/pngjs/filter-parse-sync.js +0 -21
  32. package/src/vendor/pngjs/filter-parse.js +0 -175
  33. package/src/vendor/pngjs/format-normaliser.js +0 -95
  34. package/src/vendor/pngjs/interlace.js +0 -84
  35. package/src/vendor/pngjs/packer-sync.js +0 -54
  36. package/src/vendor/pngjs/packer.js +0 -130
  37. package/src/vendor/pngjs/paeth-predictor.js +0 -16
  38. package/src/vendor/pngjs/parser-sync.js +0 -113
  39. package/src/vendor/pngjs/parser.js +0 -275
  40. package/src/vendor/pngjs/png-sync.js +0 -12
  41. package/src/vendor/pngjs/sync-inflate.js +0 -165
  42. package/src/vendor/pngjs/sync-reader.js +0 -47
package/README.md CHANGED
@@ -392,7 +392,7 @@ await sock.sendMessage(jid, {
392
392
  })
393
393
  ```
394
394
 
395
- **Bypass download:** `send()` edits its own message right after sending, so the client renders the rich response without having to download it first. It only runs for messages that carry a rich response. If the edit fails, the error is thrown with `error.relayedKey` set to the key of the message that was already sent.
395
+ **Bypass download:** enabled by default for both `send()` and `sock.sendMessage(jid, { aiRich })`. The message edits itself right after sending, so the client renders the rich response without having to download it first. Pass `bypassDownload: false` in the options to turn it off. It only runs for messages that carry a rich response. If the edit fails, the error is thrown with `error.relayedKey` set to the key of the message that was already sent.
396
396
 
397
397
  <details> <summary align=center>All AiRich Methods</summary>
398
398