@great-detail/whatsapp
Advanced tools
Comparing version 5.4.0 to 5.4.1
@@ -24,3 +24,3 @@ /** | ||
*/ | ||
fetchProvider?: typeof fetch; | ||
fetch?: typeof fetch; | ||
} | ||
@@ -61,3 +61,3 @@ /** | ||
*/ | ||
send({ fetchProvider, ...requestInit }?: GraphRequestSendParams): Promise<GraphResponse<T>>; | ||
send({ fetch: fetchAlternative, ...requestInit }?: GraphRequestSendParams): Promise<GraphResponse<T>>; | ||
} |
@@ -22,6 +22,6 @@ "use strict"; | ||
async send({ | ||
fetchProvider = fetch, | ||
fetch: fetchAlternative = fetch, | ||
...requestInit | ||
} = {}) { | ||
return await fetchProvider(this, requestInit).then(({ | ||
return await fetchAlternative(this, requestInit).then(({ | ||
body, | ||
@@ -28,0 +28,0 @@ ...responseInit |
{ | ||
"name": "@great-detail/whatsapp", | ||
"version": "5.4.0", | ||
"version": "5.4.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.", |
@@ -26,3 +26,3 @@ /** | ||
*/ | ||
fetchProvider?: typeof fetch; | ||
fetch?: typeof fetch; | ||
} | ||
@@ -78,6 +78,6 @@ | ||
public async send({ | ||
fetchProvider = fetch, | ||
fetch: fetchAlternative = fetch, | ||
...requestInit | ||
}: GraphRequestSendParams = {}): Promise<GraphResponse<T>> { | ||
return await fetchProvider(this, requestInit).then( | ||
return await fetchAlternative(this, requestInit).then( | ||
({ body, ...responseInit }) => new GraphResponse(body, responseInit), | ||
@@ -84,0 +84,0 @@ ); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
296638