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.0 to 2.1.1

2

lib/context.js

@@ -8,3 +8,3 @@ class Context {

reply(...args) {
this.bot.sendMessage(this.message.from_id, ...args)
this.bot.sendMessage(this.message.peer_id, ...args)
}

@@ -11,0 +11,0 @@ }

module.exports = function (method, settings, callback = () => {}) {
this.methods.push({
code: `API.${method}(${JSON.stringify(settings)})`,
code: `API.${method}(${JSON.stringify({
v: '5.80',
...settings
})})`,
callback,

@@ -5,0 +8,0 @@ })

@@ -9,5 +9,5 @@ const toArray = value => (Array.isArray(value) ? value : [value])

Object.assign(
{
user_ids: toArray(userId).join(','),
},
userId < 2000000000
? { user_ids: toArray(userId).join(',') }
: { peer_id: userId },
typeof args[0] === 'object'

@@ -14,0 +14,0 @@ ? args[0]

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

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

[![node-vk-bot-api](https://img.shields.io/npm/v/node-vk-bot-api.svg?style=flat-square)](https://www.npmjs.com/package/node-vk-bot-api/)
[![node-vk-bot-api](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)
![node-vk-bot-api](https://img.shields.io/badge/code%20style-airbnb-brightgreen.svg?style=flat-square)

@@ -4,0 +4,0 @@ # node-vk-bot-api

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc