Socket
Socket
Sign inDemoInstall

node-vk-bot-api

Package Overview
Dependencies
3
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.5 to 2.4.6

12

lib/methods/startPolling.js
const axios = require('axios');
const Context = require('../context');
class PollingError extends Error {}
module.exports = async function (callback, ts) {

@@ -21,2 +23,4 @@ try {

},
}).catch(() => {
throw new PollingError();
});

@@ -46,5 +50,9 @@

} catch (err) {
this.longPollParams = null;
this.startPolling();
if (err instanceof PollingError) {
this.longPollParams = null;
this.startPolling();
} else {
throw err;
}
}
};

2

package.json
{
"name": "node-vk-bot-api",
"version": "2.4.5",
"version": "2.4.6",
"description": "🤖 VK bot framework for Node.js, based on Bots Long Poll API and Callback API",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc