Skip to content

Commit

Permalink
publish and fix latest npm
Browse files Browse the repository at this point in the history
  • Loading branch information
umutozel committed Feb 16, 2025
1 parent f518686 commit 76cc669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fetch-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function createRequest(o: FetchOptions) {
const ao = Object.fromEntries(Object.entries(oo).filter(([key]) => key[0] != "$"));

ao.method = ao.method || oo.$method;
if (oo.$data != null && ao.$method != "GET") {
if (ao.$method != "GET" && oo.$data != null && Object.keys(oo.$data).length > 0) {
ao.body = JSON.stringify(oo.$data);
}
if (oo.$headers != null) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jinqu-fetch",
"version": "2.0.2",
"version": "2.0.3",
"description": "Jinqu Fetch implementation",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 76cc669

Please sign in to comment.