@hapaul/api 0.1.29 → 0.1.32
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/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,8 @@ var Client = class {
|
|
|
31
31
|
const body = requestConfig.body;
|
|
32
32
|
if (!contentType) headers.set("Content-Type", "application/json");
|
|
33
33
|
try {
|
|
34
|
-
|
|
34
|
+
let serializedBody;
|
|
35
|
+
if (body) serializedBody = await this.bodySerializer(body, headers);
|
|
35
36
|
let response = await this.fetch(url, {
|
|
36
37
|
...requestConfig,
|
|
37
38
|
body: serializedBody,
|