mailgun.js 4.2.0 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +128 -27
- package/dist/mailgun.node.js +2 -2
- package/dist/mailgun.node.js.LICENSE.txt +1 -1
- package/dist/mailgun.web.js +2 -2
- package/dist/mailgun.web.js.LICENSE.txt +1 -1
- package/lib/request.ts +2 -4
- package/package.json +1 -1
package/lib/request.ts
CHANGED
|
@@ -83,9 +83,7 @@ class Request {
|
|
|
83
83
|
params.searchParams = options.query;
|
|
84
84
|
delete params.query;
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
console.log('method --------->', method);
|
|
88
|
-
console.log('params --------->', params);
|
|
86
|
+
|
|
89
87
|
const response = await ky(
|
|
90
88
|
urljoin(this.url, url),
|
|
91
89
|
{
|
|
@@ -113,7 +111,7 @@ class Request {
|
|
|
113
111
|
body: await response?.json(),
|
|
114
112
|
status: response?.status
|
|
115
113
|
};
|
|
116
|
-
|
|
114
|
+
|
|
117
115
|
return res;
|
|
118
116
|
}
|
|
119
117
|
|