Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lib-vk

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib-vk - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

4

lib-vk/message.js

@@ -23,3 +23,3 @@ const structsMessage = require('./utils/messageStruct');

message[6] && ((this.senderId = +message[6].from) ?? (this.senderId = this.peerId))
message[6] && ((this.senderId = +message[6].from) ?? (this.senderId = this.peerId));

@@ -36,3 +36,3 @@ (message[6] && message[6].source_act) && (this.event = {eventType: message[6].source_act, eventUserId: message[6].source_mid})

(typeMessage === 'userOnline' || typeMessage === 'userOffline') && (this.userId = -this.userId)
(typeMessage === 'userOnline' || typeMessage === 'userOffline') && (this.userId = -this.userId);
(typeMessage === 'changingChatInfo')

@@ -39,0 +39,0 @@ && (this.typeEventIsChat = structMessage.typeEventIsChat[this.typeEventIsChat])

@@ -20,3 +20,3 @@ const { fetch } = require('undici'),

this.mapCallbacks = [],
this.startGetingNewEvents = {longPoll: true, callback: true}
this.startGetingNewEvents = {longPoll: !!options.longPoll, callback: !!this.callback}
this.#start()

@@ -103,3 +103,3 @@ }

{
((type === 'callback' || !type) && this.startGetingNewEvents.callback) && (this.callback.secret && this.callback.path) &&
((type === 'callback' || !type) && this.startGetingNewEvents.callback) && this.callback.path &&
uWS().post(this.callback.path, (response, request) => {

@@ -106,0 +106,0 @@ if(request.getHeader('x-retry-counter')) return response.end('OK');

{
"name": "lib-vk",
"version": "2.0.3",
"version": "2.0.4",
"description": "Compact SDK with VK API for Node.js",

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

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