@tpzdsp/next-toolkit 1.4.1 → 1.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpzdsp/next-toolkit",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "A reusable React component library for Next.js applications",
5
5
  "type": "module",
6
6
  "private": false,
package/src/utils/http.ts CHANGED
@@ -134,7 +134,7 @@ const post = <Ok, Error = ApiFailure>(
134
134
  if (body && typeof body === 'object' && !Array.isArray(body) && Object.keys(body).length === 0) {
135
135
  requestBody = '';
136
136
  } else if (body === undefined || body === null) {
137
- requestBody = '';
137
+ requestBody = '{}';
138
138
  } else {
139
139
  requestBody = JSON.stringify(body);
140
140
  }