Skip to content

Commit

Permalink
Merge pull request #21 from WillianAgostini/feat/bun-support
Browse files Browse the repository at this point in the history
fix: sending [object Object] on data
  • Loading branch information
WillianAgostini committed Oct 2, 2023
2 parents 8274199 + 4714565 commit 12e7f06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nordus",
"version": "0.0.9",
"version": "0.0.10",
"description": "Promise based HTTP client for the node.js using Fetch",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ export class NordusRequest {
const body = this.getBody(nordusConfigApi);
const properties: any = {
method: nordusConfigApi?.method,
body: body,
};
if (abort.signal) {
properties.signal = abort.signal;
}
const init = {
...properties,
...nordusConfigApi,
body: body,
};

request = new Request(urlRequest, init);
Expand Down

0 comments on commit 12e7f06

Please sign in to comment.