Socket
Socket
Sign inDemoInstall

node-vk-bot-api

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-vk-bot-api - npm Package Compare versions

Comparing version 2.1.8 to 2.1.9

4

lib/api.js

@@ -12,3 +12,3 @@ const axios = require('axios')

if (data.error) {
throw new Error(JSON.stringify(data))
throw JSON.stringify(data)
}

@@ -18,4 +18,4 @@

} catch (err) {
throw new Error(err)
throw (typeof err === 'object' ? JSON.stringify(err) : err)
}
}

@@ -13,2 +13,9 @@ module.exports = async function () {

access_token: this.settings.token,
}).catch((err) => {
const { error } = JSON.parse(err)
if (error.error_code === 15) {
console.error(err)
process.exit(1)
}
})

@@ -15,0 +22,0 @@

{
"name": "node-vk-bot-api",
"version": "2.1.8",
"version": "2.1.9",
"description": "🤖 Vk bot framework for Node.js",

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc