Skip to content

Commit

Permalink
Version API bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Secreto31126 committed Sep 16, 2023
1 parent d280dda commit 18a0a74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class WhatsAppAPI {
token,
appSecret,
webhookVerifyToken,
v = "v17.0",
v = "v18.0",
parsed = true,
secure = true,
ponyfill = {}
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export type TheBasicConstructorArguments = {
*/
webhookVerifyToken?: string;
/**
* The version of the API, defaults to v17.0
* The version of the API, defaults to v18.0
*/
v?: string;
/**
Expand Down
4 changes: 2 additions & 2 deletions test/index.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe("WhatsAppAPI", function () {
});

describe("Version", function () {
it("should work with v17.0 as default", function () {
it("should work with v18.0 as default", function () {
const Whatsapp = new WhatsAppAPI({
token,
appSecret,
Expand All @@ -84,7 +84,7 @@ describe("WhatsAppAPI", function () {
subtle
}
});
equal(Whatsapp.v, "v17.0");
equal(Whatsapp.v, "v18.0");
});

it("should work with any specified version", function () {
Expand Down

0 comments on commit 18a0a74

Please sign in to comment.