node-vk-bot-api
Advanced tools
Comparing version 2.1.8 to 2.1.9
@@ -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", |
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
19558
428