Skip to content

Commit

Permalink
fix: Added support to 2.2147.14 WhatsApp version
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Dec 8, 2021
1 parent 0a92e98 commit 1343e04
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@types/shelljs": "^0.8.9",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"@wppconnect/wa-version": "^1.1.23",
"@wppconnect/wa-version": "^1.1.24",
"buffer": "^6.0.3",
"commitizen": "^4.2.4",
"conventional-changelog-cli": "^2.1.1",
Expand Down
6 changes: 3 additions & 3 deletions src/whatsapp/misc/Cmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ export declare const Cmd: CmdClass;
exportModule(
exports,
{
CmdClass: 'Cmd',
Cmd: 'default',
CmdClass: (m) => m.CmdImpl || m.Cmd,
Cmd: (m) => m.default || m.Cmd,
},
(m) => m.Cmd && m.default instanceof m.Cmd
(m) => (m.Cmd && m.CmdImpl) || (m.Cmd && m.default)
);
4 changes: 2 additions & 2 deletions src/whatsapp/misc/Features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@ export declare const Features: FeatureClass;

exportModule(
exports,
{ Features: 'default' },
(m) => m.default.supportsFeature
{ Features: (m) => m.GK || m.default },
(m) => m.GK?.supportsFeature || m.default?.supportsFeature
);

0 comments on commit 1343e04

Please sign in to comment.