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

node-vk-sdk

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-vk-sdk - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

distr/src/botsLongPoll/BaseUpdateProvider.d.ts

1

distr/index.d.ts
export { VKApi } from './src/VKApi';
export { BaseLogger } from './src/logger/BaseLogger';
export { ConsoleLogger } from './src/logger/ConsoleLogger';
export { BotsLongPollUpdatesProvider } from './src/botsLongPoll/BotsLongPollUpdatesProvider';

@@ -7,2 +7,4 @@ "use strict";

exports.ConsoleLogger = ConsoleLogger_1.ConsoleLogger;
var BotsLongPollUpdatesProvider_1 = require("./src/botsLongPoll/BotsLongPollUpdatesProvider");
exports.BotsLongPollUpdatesProvider = BotsLongPollUpdatesProvider_1.BotsLongPollUpdatesProvider;
//# sourceMappingURL=index.js.map

2

index.ts
export { VKApi } from './src/VKApi'
export { BaseLogger } from './src/logger/BaseLogger'
export { ConsoleLogger } from './src/logger/ConsoleLogger'
export { BotsLongPollUpdatesProvider } from './src/botsLongPoll/BotsLongPollUpdatesProvider'
{
"name": "node-vk-sdk",
"version": "1.0.4",
"version": "1.0.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "./distr/index.js",

@@ -134,1 +134,20 @@ # node-vk-sdk

## Bots Long Poll API
To receive group updates using Bots Long Poll API use `BotsLongPollUpdatesProvider` class:
```typescript
import {VKApi, ConsoleLogger, BotsLongPollUpdatesProvider} from 'node-vk-sdk'
let api = new VKApi({
token: 'GROUP_TOKEN_HERE',
logger: new ConsoleLogger()
})
let updatesProvider = new BotsLongPollUpdatesProvider(api, GROUP_ID_HERE)
updatesProvider.getUpdates(updates => {
console.log('got updates: ', updates)
})
```

Sorry, the diff of this file is not supported yet

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