wa-multi-mongodb 3.10.1 → 3.10.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"lid-utils.d.ts","sourceRoot":"","sources":["../../src/Utils/lid-utils.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,OAErC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,KAAG,MAQhD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAe1C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,OA2BxC,CAAC"}
1
+ {"version":3,"file":"lid-utils.d.ts","sourceRoot":"","sources":["../../src/Utils/lid-utils.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,KAAK,MAAM,KAAG,OAErC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,KAAG,MAQhD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAe1C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,OA6BxC,CAAC"}
@@ -68,7 +68,9 @@ const isValidJid = (jid) => {
68
68
  // Validasi format grup
69
69
  if (jid.includes('@g.us')) {
70
70
  const groupPart = jid.split('@')[0];
71
- return groupPart.length > 0 && groupPart.includes('-');
71
+ // Format grup WhatsApp bisa dengan atau tanpa tanda hubung
72
+ // Beberapa grup baru mungkin tidak menggunakan tanda hubung
73
+ return groupPart.length > 0;
72
74
  }
73
75
  // Validasi format broadcast
74
76
  if (jid.includes('@broadcast')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wa-multi-mongodb",
3
- "version": "3.10.1",
3
+ "version": "3.10.2",
4
4
  "description": "Multi Session Whatsapp Library with MongoDB Integration",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -816,7 +816,13 @@ export default WhatsAppQRComponent;
816
816
 
817
817
  ## Changelog
818
818
 
819
- ### v3.10.1 (latest)
819
+ ### v3.10.2 (latest)
820
+ - **Fixed Group JID Validation**: Resolved issue with group chat validation
821
+ - Fixed `isValidJid()` function to properly validate group JIDs without requiring dash (-) character
822
+ - Some WhatsApp group IDs don't use dash format, validation now accepts all valid group formats
823
+ - Error "Invalid JID format: [group-id]@g.us" has been resolved
824
+
825
+ ### v3.10.1
820
826
  - **Using Baileys New Version (7.x.x)**: Update & support function with latest baileys version
821
827
  - **Added @lid Format Support**: Full support for WhatsApp's new @lid identifier format
822
828
  - Updated `phoneToJid()` function to handle both @s.whatsapp.net and @lid formats