@great-detail/whatsapp
Advanced tools
Comparing version 6.5.1 to 6.5.2
@@ -1,2 +0,2 @@ | ||
import t from"../GraphResponse/index.js";export default class e extends Request{static{this.DEFAULT_GRAPH_API_BASE_URL="https://graph.facebook.com"}static{this.DEFAULT_GRAPH_VERSION="v18.0"}constructor(t,{logger:s,version:i=e.DEFAULT_GRAPH_VERSION,baseUrl:r=e.DEFAULT_GRAPH_API_BASE_URL,...h}={}){let n=new URL([i?"/":"",i,t].join(""),r);super(n,h),this.version=i,this.endpoint=t,this.baseUrl=r,s?.http(`${n.toString()} ${JSON.stringify(h)}`)}async send({fetch:e=fetch,...s}={}){if(s.headers)for(let[t,e]of new Headers(s.headers))this.headers.set(t,e);return await e(this,s).then(({body:e,...s})=>new t(e,{request:this,...s}))}} | ||
import t from"../GraphResponse/index.js";export default class e extends Request{static{this.DEFAULT_GRAPH_API_BASE_URL="https://graph.facebook.com"}static{this.DEFAULT_GRAPH_VERSION="v18.0"}constructor(t,{logger:s,version:i=e.DEFAULT_GRAPH_VERSION,baseUrl:r=e.DEFAULT_GRAPH_API_BASE_URL,...h}={}){let n=new URL([i?"/":"",i,t].join(""),r);super(n,h),this.version=i,this.endpoint=t,this.baseUrl=r,s?.http(`${n.toString()} ${JSON.stringify(h)}`)}async send({fetch:e=fetch,...s}={}){if(s.headers)for(let[t,e]of new Headers(s.headers))this.headers.set(t,e);return await e(this).then(({body:e,...s})=>new t(e,{request:this,...s}))}} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@great-detail/whatsapp", | ||
"version": "6.5.1", | ||
"version": "6.5.2", | ||
"type": "module", | ||
@@ -22,3 +22,3 @@ "description": "SDK for interfacing with WhatsApp Business Platform in Typescript or Node.js using the Cloud API, hosted by Meta.", | ||
"engines": { | ||
"node": ">=16.19.1" | ||
"node": ">=18" | ||
}, | ||
@@ -77,2 +77,3 @@ "exports": "./dist/index.js", | ||
"@swc/core": "^1.3.101", | ||
"@swc/jest": "^0.2.29", | ||
"@types/jest": "^29.5.5", | ||
@@ -79,0 +80,0 @@ "@types/node": "^20.7.1", |
@@ -124,3 +124,3 @@ /** | ||
return await fetchAlternative(this, requestInit).then( | ||
return await fetchAlternative(this).then( | ||
({ body, ...responseInit }) => | ||
@@ -127,0 +127,0 @@ new GraphResponse(body, { request: this, ...responseInit }), |
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
298758
403
6773
24