From e114f779d7e56caaa7be0d55ef2e3e87633bcf97 Mon Sep 17 00:00:00 2001 From: kellas Date: Fri, 7 Jan 2022 18:45:20 +0300 Subject: [PATCH 1/2] Close #3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Убрал лищние заголовки --- index.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/index.js b/index.js index 911c5bb..8fe74a8 100644 --- a/index.js +++ b/index.js @@ -67,9 +67,7 @@ class NalogAPI { headers: { accept: 'application/json, text/plain, */*', 'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7', - 'cache-control': 'no-cache', 'content-type': 'application/json', - pragma: 'no-cache' }, referrer: 'https://lknpd.nalog.ru/', referrerPolicy: 'strict-origin-when-cross-origin', @@ -132,9 +130,7 @@ class NalogAPI { headers: { accept: 'application/json, text/plain, */*', 'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7', - 'cache-control': 'no-cache', 'content-type': 'application/json', - pragma: 'no-cache' }, referrer: 'https://lknpd.nalog.ru/sales', referrerPolicy: 'strict-origin-when-cross-origin', @@ -165,9 +161,7 @@ class NalogAPI { authorization: 'Bearer ' + (await this.getToken()), accept: 'application/json, text/plain, */*', 'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7', - 'cache-control': 'no-cache', 'content-type': 'application/json', - pragma: 'no-cache' }, referrer: 'https://lknpd.nalog.ru/sales/create', referrerPolicy: 'strict-origin-when-cross-origin', From 5024357d664f563c6f691f811cada10f537299d3 Mon Sep 17 00:00:00 2001 From: kellas Date: Fri, 7 Jan 2022 18:46:09 +0300 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4cd7ef0..ab51298 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moy-nalog", - "version": "1.0.4", + "version": "1.0.5", "description": "Обёртка для API сервиса lknpd.nalog.ru", "main": "index.js", "scripts": {