typescript-telegram-bot-api
Advanced tools
Comparing version 0.1.12 to 0.1.13
@@ -56,3 +56,3 @@ "use strict"; | ||
catch (error) { | ||
reject(error); | ||
reject(new Error(`Invalid response`)); | ||
} | ||
@@ -66,3 +66,5 @@ }); | ||
request.on('error', (error) => { | ||
reject(error); | ||
if (error.name !== 'AbortError') { | ||
reject(error); | ||
} | ||
}); | ||
@@ -69,0 +71,0 @@ formData.pipe(request); |
{ | ||
"type": "commonjs", | ||
"name": "typescript-telegram-bot-api", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "Telegram Bot API wrapper for Node.js written in TypeScript", | ||
@@ -10,3 +10,3 @@ "repository": "github:Borodin/typescript-telegram-bot-api", | ||
"scripts": { | ||
"test": "jest --runInBand --detectOpenHandles", | ||
"test": "jest --runInBand --detectOpenHandles --coverage", | ||
"lint": "eslint '{src,tests}/**/*.ts'", | ||
@@ -51,3 +51,6 @@ "format": "prettier --write '{src,tests}/**/*.ts'", | ||
"preset": "ts-jest", | ||
"testTimeout": 10000 | ||
"testTimeout": 60000, | ||
"collectCoverage": true, | ||
"coverageReporters": ["json", "lcov", "text", "clover"], | ||
"coverageDirectory": "coverage" | ||
}, | ||
@@ -54,0 +57,0 @@ "files": [ |
@@ -5,6 +5,6 @@ # 📦 typescript-telegram-bot-api | ||
[](https://www.npmjs.com/package/typescript-telegram-bot-api) | ||
[](https://core.telegram.org/bots/api#may-28-2024) | ||
[](https://core.telegram.org/bots/api#recent-changes) | ||
[](https://codecov.io/github/Borodin/typescript-telegram-bot-api) | ||
This is a TypeScript wrapper for the [Telegram Bot API](https://core.telegram.org/bots/api). It allows you to easily interact with the Telegram Bot API using TypeScript. | ||
@@ -11,0 +11,0 @@ |
242949
5765