From f8899ed63c9aae3d08bf396c0ac022c4e217b975 Mon Sep 17 00:00:00 2001 From: Kravets <57632712+kravetsone@users.noreply.github.com> Date: Sun, 28 Jul 2024 23:50:44 +0300 Subject: [PATCH] fix: wrong default content-type --- package.json | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1843aaa..6eb7c61 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index 16a9b44..1b7ae2c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -126,7 +126,7 @@ export class TKassa< ? { [key: string]: unknown; TerminalKey: string; Password: string } : Record, method: "POST" | "GET" = "POST", - type: "json" | "x-www-form-urlencoded" = "x-www-form-urlencoded", + type: "json" | "x-www-form-urlencoded" = "json", ): Promise { const options: RequestInit & { headers: Record;