Skip to content

Commit

Permalink
fix: use requestOptions instead of global options
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Aug 14, 2024
1 parent 2262f1d commit 8f458b4
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": "t-kassa-api",
"version": "0.3.0",
"version": "0.3.1",
"module": "./dist/index.js",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class TKassa<
});
}
requestOptions.mimeType = undefined;
const response = await fetch(this.options.server + path, options);
const response = await fetch(this.options.server + path, requestOptions);

if (!response.ok) throw new Error(`error${await response.text()}`);

Expand Down

0 comments on commit 8f458b4

Please sign in to comment.