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

@agru/sdk

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agru/sdk - npm Package Compare versions

Comparing version 1.0.22 to 1.0.23

2

dist/index.d.ts

@@ -126,3 +126,3 @@ import { Emitter } from 'mitt';

*/
getUsers(ids: number[], callback?: AgRuCallback<AgRuSdkMethods.GetUsers>): void | AgRuPromise<AgRuSdkMethods.GetUsers>;
getUsers(ids: string[], callback?: AgRuCallback<AgRuSdkMethods.GetUsers>): void | AgRuPromise<AgRuSdkMethods.GetUsers>;
/**

@@ -129,0 +129,0 @@ * Validate if user is belong to the game.

{
"name": "@agru/sdk",
"version": "1.0.22",
"version": "1.0.23",
"description": "AG RU SDK for the games integration",

@@ -5,0 +5,0 @@ "module": "dist/esm/index.js",

@@ -110,10 +110,10 @@ [![Bundle Size](https://img.shields.io/bundlephobia/min/@agru/sdk?style=for-the-badge)](https://www.npmjs.com/package/@agru/sdk)

Необходимо передать массив `ID` пользователей.
Необходимо передать массив `ID` пользователей (максимум 10).
```typescript
const [data, error] = await sdk.getUsers([1001, 1002, 1003]);
const [data, error] = await sdk.getUsers(['aa6b41ff51004c3890321606db6d4c69', '33c1c11404fcda000000000', '56bc75e2d63100000']);
```
или
```typescript
sdk.getUsers([1001, 1002, 1003], (data, error) => {
sdk.getUsers(['aa6b41ff51004c3890321606db6d4c69', '33c1c11404fcda000000000', '56bc75e2d63100000'], (data, error) => {
// ...

@@ -132,2 +132,7 @@ });

/**
* Полное имя пользователя.
*/
fullname: string;
/**
* Идентификатор пользователя.

@@ -140,3 +145,3 @@ */

*/
name: string;
username: string;
}

@@ -143,0 +148,0 @@ ```

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