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

hltv

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hltv - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

yarn-error.log

2

lib/endpoints/connectToScorebot.js

@@ -57,3 +57,3 @@ "use strict";

}
socket.emit('readyForMatch', matchId);
socket.emit('readyForMatch', "{\"token\":\"\",\"listId\":\"" + matchId + "\"}");
socket.on('scoreboard', function (data) {

@@ -60,0 +60,0 @@ if (onScoreboardUpdate) {

@@ -10,2 +10,3 @@ import WinType from '../enums/WinType';

playerName: string;
playerNick: string;
};

@@ -16,2 +17,3 @@ }

playerName: string;
playerNick: string;
playerSide: Side;

@@ -31,5 +33,7 @@ };

killerName: string;
killerNick: string;
killerSide: Side;
victimName: string;
victimSide: Side;
victimNick: string;
weapon: string;

@@ -42,2 +46,3 @@ headShot: boolean;

playerName: string;
playerNick: string;
};

@@ -44,0 +49,0 @@ }

@@ -10,5 +10,8 @@ import WinType from '../enums/WinType';

alive: boolean;
rating: number;
money: number;
damagePrRound: number;
hp: number;
kevlar: boolean;
helmet: boolean;
nick: string;
}

@@ -18,2 +21,3 @@ export interface ScoreboardRound {

roundOrdinal: number;
survivingPlayers: number;
}

@@ -40,3 +44,4 @@ export interface ScoreboardUpdate {

tTeamId: number;
frozen: boolean;
}
export default ScoreboardUpdate;
{
"name": "hltv",
"version": "2.5.0",
"version": "2.6.0",
"description": "The unofficial HLTV Node.js API",

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

@@ -187,5 +187,8 @@ [![Dependency Status](https://david-dm.org/gigobyte/hltv.svg)](https://david-dm.org/gigobyte/hltv)

| day | string | - | - |
| country | string | - | Must be capitalized (`'Brazil'`, `'France'` etc)
```javascript
// If you don't provide a filter the latest ranking will be parsed
HLTV.getTeamRanking()
HLTV.getTeamRanking({country: 'Thailand'})
HLTV.getTeamRanking({year: '2017', month: 'may', day: '29'}).then((res) => {

@@ -192,0 +195,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