Comparing version 2.0.3 to 2.0.4
@@ -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", |
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
1
2
57310807
27
418