node-vk-bot-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,0 +0,0 @@ module.exports = { |
module.exports = require('./lib/index') |
@@ -21,3 +21,6 @@ const rp = require('request-promise') | ||
}) | ||
.catch(console.error) | ||
.catch((err) => { | ||
self.longPollParams = null | ||
return self.listen() | ||
}) | ||
} | ||
@@ -54,5 +57,9 @@ | ||
date: update[4], | ||
message_id: update[1] | ||
message_id: update[1], | ||
} | ||
if (update[6].from) { | ||
ctx.from = +update[6].from | ||
} | ||
const getForward = (ctx) => { | ||
@@ -132,3 +139,6 @@ return new Promise((resolve) => { | ||
}) | ||
.catch(console.error) | ||
.catch((err) => { | ||
self.longPollParams = null | ||
return self.listen() | ||
}) | ||
} | ||
@@ -138,3 +148,7 @@ }) | ||
}) | ||
.catch((err) => { | ||
self.longPollParams = null | ||
return self.listen() | ||
}) | ||
} | ||
} |
{ | ||
"name": "node-vk-bot-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "API for VK bots based on long poll with multi-dispatch send messages (75 per second).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22943
559
0