vkontakte-api
Advanced tools
Comparing version 1.8.1 to 1.8.2
@@ -5,2 +5,4 @@ # Changelog | ||
### [1.8.2](https://github.com/wolframdeus/vk-api/compare/v1.8.1...v1.8.2) (2020-06-22) | ||
### [1.8.1](https://github.com/wolframdeus/vk-api/compare/v1.8.0...v1.8.1) (2020-06-22) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "vkontakte-api", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -207,11 +207,14 @@ [npm-badge]: https://img.shields.io/npm/v/vkontakte-api.svg | ||
import {isMaster} from 'cluster'; | ||
import {VKAPIProvider, VKAPIConsumer} from 'vkontakte-api'; | ||
import {VKAPI, VKAPIProvider, VKAPIConsumer} from 'vkontakte-api'; | ||
if (isMaster) { | ||
const groupApi = new VKAPI({accessToken: 'group access token'}); | ||
const appApi = new VKAPI({accessToken: 'application access token'}); | ||
// API provider for group API instance | ||
const groupApiProvider = new VKAPIProvider({tunnelName: 'group'}); | ||
const groupApiProvider = new VKAPIProvider({tunnelName: 'group', instance: groupApi}); | ||
groupApiProvider.init(); | ||
// API provider for VK Mini Apps application API instance | ||
const appApiProvider = new VKAPIProvider({tunnelName: 'app'}); | ||
const appApiProvider = new VKAPIProvider({tunnelName: 'app', instance: appApi}); | ||
appApiProvider.init(); | ||
@@ -218,0 +221,0 @@ } else { |
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
97023
226