Comparing version 2.5.0 to 2.6.0
@@ -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 @@ ... |
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
189057
106
2273
281