crypto-bot-api
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "crypto-bot-api", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Simple and minimalistic client for Telegram CryptoBot Crypto Pay API", | ||
@@ -12,3 +12,3 @@ "author": "Sergei Ivankov <sergeiivankov@pm.me>", | ||
"exports": { | ||
"types": "./lib/index.d.ts", | ||
"types": "./lib/types.d.ts", | ||
"require": "./lib/index.js", | ||
@@ -15,0 +15,0 @@ "default": "./lib/index.js" |
@@ -18,12 +18,2 @@ # Crypto Bot API - client library for Crypto Pay API | ||
## Supported environments | ||
- \>= Node.js 12 | ||
- \>= Chrome 32 | ||
- \>= Firefox 29 | ||
- \>= Edge 12 | ||
- \>= Safari 8 | ||
- \>= Safari on iOS 8 | ||
- \> Android Browser 4.4.4 | ||
## Usage | ||
@@ -55,3 +45,3 @@ | ||
**Important: at the time of publication of version 0.3.1 (Sep 17, 2024), API servers do not return header Access-Control-Allow-Origin, which allows make requests to API from third-party domains, so client request from website environment won't work (but its work in browser extensions, Electron and similar apps)** | ||
**Important: at the time of publication of version 0.3.2 (Sep 17, 2024), API servers do not return header Access-Control-Allow-Origin, which allows make requests to API from third-party domains, so client request from website environment won't work (but its work in browser extensions, Electron and similar apps)** | ||
@@ -62,3 +52,3 @@ More usage examples see in [examples](https://github.com/sergeiivankov/crypto-bot-api/tree/main/examples) project directory. | ||
Crypto Pay API support events by sending webhooks requests. To handle webhooks request library proposes to use [creating Node.js built-in HTTPS server](https://sergeiivankov.github.io/crypto-bot-api/classes/ClientEmitter.html#createServer) or [using Express.js-like middleware API](https://sergeiivankov.github.io/crypto-bot-api/classes/ClientEmitter.html#middleware). See [examples](https://github.com/sergeiivankov/crypto-bot-api/tree/main/examples) with names starts with `webhooks-`. | ||
Crypto Pay API support events by sending webhooks requests. To handle webhooks request library proposes to use [creating Node.js built-in HTTP or HTTPS server](https://sergeiivankov.github.io/crypto-bot-api/classes/ClientEmitter.html#createServer) or [using Express.js-like middleware API](https://sergeiivankov.github.io/crypto-bot-api/classes/ClientEmitter.html#middleware). See [examples](https://github.com/sergeiivankov/crypto-bot-api/tree/main/examples) with names starts with `webhooks-`. | ||
@@ -112,4 +102,14 @@ *Note: you need enable webhooks in CryptoBot app settings, if you want to use self-signed certificate you must uploat it in CryptoBot API application settings* | ||
## Supported environments | ||
- \>= Node.js 12 | ||
- \>= Chrome 32 | ||
- \>= Firefox 29 | ||
- \>= Edge 12 | ||
- \>= Safari 8 | ||
- \>= Safari on iOS 8 | ||
- \> Android Browser 4.4.4 | ||
## License | ||
[MIT](https://github.com/sergeiivankov/crypto-bot-api/blob/main/license) |
119150
3080