@kohost/api-client 4.0.6 → 4.0.7
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/{chunk-TBEXLKDH.js → chunk-6Y5F4SJH.js} +1 -1
- package/dist/{chunk-TBEXLKDH.js.map → chunk-6Y5F4SJH.js.map} +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/commands.cjs.map +1 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/events.cjs.map +1 -1
- package/dist/events.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.cjs.map +1 -1
- package/dist/useCases.cjs.map +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1022,7 +1022,7 @@ var KohostHTTPClient = class _KohostHTTPClient {
|
|
|
1022
1022
|
headers.set(key, config.headers[key]);
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
|
-
const body = ["POST", "PUT", "PATCH"].includes(method) ? headers.get("Content-Type") === "application/json" ? JSON.stringify(config.data) : config.data : void 0;
|
|
1025
|
+
const body = config.data !== null && ["POST", "PUT", "PATCH"].includes(method) ? headers.get("Content-Type") === "application/json" ? JSON.stringify(config.data) : config.data : void 0;
|
|
1026
1026
|
const request = new Request(url, {
|
|
1027
1027
|
method,
|
|
1028
1028
|
headers,
|