lib-vk
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -94,3 +94,3 @@ const axios = require('axios').default; | ||
{ | ||
this.secret && callback.post(this.path, (req, res) => | ||
(this.secret && this.path) && callback.post(this.path, (req, res) => | ||
{ | ||
@@ -108,3 +108,3 @@ const update = req.body; | ||
ts = response.ts; | ||
if(response.updates) for (const update of response.updates) {(!this.callback || !this.arrayKey.has(update.event_id)) && (this.eventPush(this.groupId ? update : new Message(update), [type, func]) || this.arrayKey.set(update.event_id))}; | ||
if(response.updates) for (const update of response.updates) {(!this.path || !this.arrayKey.has(update.event_id)) && (this.eventPush(this.groupId ? update : new Message(update), [type, func]) || this.arrayKey.set(update.event_id))}; | ||
}; | ||
@@ -111,0 +111,0 @@ } |
{ | ||
"name": "lib-vk", | ||
"version": "1.1.0", | ||
"description": "Compact SDK with VK API for Node.js", | ||
"main": "./lib-vk/VK.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/alexanderStoyak/libVK.git" | ||
}, | ||
"keywords": [ | ||
"libvk", | ||
"lib-vk", | ||
"vk", | ||
"вк", | ||
"вконтакте", | ||
"vkontakte", | ||
"sdk", | ||
"bot", | ||
"node", | ||
"js" | ||
], | ||
"author": "Alexander Stoyak", | ||
"license": "ISC", | ||
"dependencies": { | ||
"body-parser": "^1.19.1", | ||
"express": "^4.17.2", | ||
"axios": "^0.24.0" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/alexanderStoyak/libVK/issues" | ||
}, | ||
"homepage": "https://github.com/alexanderStoyak/libVK#readme" | ||
} | ||
"name": "lib-vk", | ||
"version": "1.1.1", | ||
"description": "Compact SDK with VK API for Node.js", | ||
"main": "./lib-vk/VK.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/alexanderStoyak/libVK.git" | ||
}, | ||
"keywords": [ | ||
"libvk", | ||
"lib-vk", | ||
"vk", | ||
"вк", | ||
"вконтакте", | ||
"vkontakte", | ||
"sdk", | ||
"bot", | ||
"node", | ||
"js" | ||
], | ||
"author": "Alexander Stoyak", | ||
"license": "ISC", | ||
"dependencies": { | ||
"body-parser": "^1.19.1", | ||
"express": "^4.17.2", | ||
"axios": "^0.24.0" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/alexanderStoyak/libVK/issues" | ||
}, | ||
"homepage": "https://github.com/alexanderStoyak/libVK#readme" | ||
} |
17515