Skip to content

Commit

Permalink
fix: wrong default content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Jul 28, 2024
1 parent 169abe6 commit f8899ed
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.2.0",
"version": "0.2.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 @@ -126,7 +126,7 @@ export class TKassa<
? { [key: string]: unknown; TerminalKey: string; Password: string }
: Record<string, unknown>,
method: "POST" | "GET" = "POST",
type: "json" | "x-www-form-urlencoded" = "x-www-form-urlencoded",
type: "json" | "x-www-form-urlencoded" = "json",
): Promise<T> {
const options: RequestInit & {
headers: Record<string, string>;
Expand Down

0 comments on commit f8899ed

Please sign in to comment.