@great-detail/whatsapp
Advanced tools
Comparing version 5.5.0 to 5.5.1
@@ -87,3 +87,3 @@ /// <reference types="node" /> | ||
*/ | ||
static createVerifyToken({ length, encoding, random, }: WhatsAppAPICreateVerifyTokenParams): string; | ||
static createVerifyToken({ length, encoding, random, }?: WhatsAppAPICreateVerifyTokenParams): string; | ||
} |
@@ -25,3 +25,3 @@ "use strict"; | ||
random = crypto_1.randomBytes | ||
}) { | ||
} = {}) { | ||
return random(length).toString(encoding); | ||
@@ -28,0 +28,0 @@ } |
{ | ||
"name": "@great-detail/whatsapp", | ||
"version": "5.5.0", | ||
"version": "5.5.1", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "description": "SDK for interfacing with WhatsApp Business Platform in Typescript or Node.js using the Cloud API, hosted by Meta.", |
@@ -104,5 +104,5 @@ /** | ||
random = randomBytes, | ||
}: WhatsAppAPICreateVerifyTokenParams): string { | ||
}: WhatsAppAPICreateVerifyTokenParams = {}): string { | ||
return random(length).toString(encoding); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
300317