Comparing version 2.9.3 to 2.10.0
@@ -11,2 +11,5 @@ import HLTVConfig from './models/HLTVConfig'; | ||
getMatchesStats: ({ startDate, endDate, matchType, maps }?: import("./endpoints/getMatchesStats").GetMatchesStatsParams) => Promise<import("./models/MatchStats").default[]>; | ||
getMatchStats: ({ id }: { | ||
id: number; | ||
}) => Promise<import("./models/FullMatchStats").default>; | ||
getMatchMapStats: ({ id }: { | ||
@@ -13,0 +16,0 @@ id: number; |
@@ -9,2 +9,3 @@ "use strict"; | ||
var getMatchMapStats_1 = require("./endpoints/getMatchMapStats"); | ||
var getMatchStats_1 = require("./endpoints/getMatchStats"); | ||
var getRecentThreads_1 = require("./endpoints/getRecentThreads"); | ||
@@ -27,2 +28,3 @@ var getResults_1 = require("./endpoints/getResults"); | ||
this.getMatchesStats = getMatchesStats_1.default(this.config); | ||
this.getMatchStats = getMatchStats_1.default(this.config); | ||
this.getMatchMapStats = getMatchMapStats_1.default(this.config); | ||
@@ -29,0 +31,0 @@ this.getRecentThreads = getRecentThreads_1.default(this.config); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var index_1 = require("./index"); | ||
index_1.default.getPlayer({ id: 9216 }).then(function (res) { return console.dir(res, { depth: null }); }).catch(function (err) { return console.log(err); }); |
{ | ||
"name": "hltv", | ||
"version": "2.9.3", | ||
"version": "2.10.0", | ||
"description": "The unofficial HLTV Node.js API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -19,2 +19,3 @@ [![Dependency Status](https://david-dm.org/gigobyte/hltv.svg)](https://david-dm.org/gigobyte/hltv) | ||
- [getMatchesStats](#getmatchesstats) | ||
- [getMatchStats](#getmatchstats) | ||
- [getMatchMapStats](#getmatchmapstats) | ||
@@ -115,2 +116,20 @@ - [getResults](#getresults) | ||
#### getMatchStats | ||
Parses info from the all maps stats page (`hltv.org/stats/matches/*/*`) | ||
Option | Type | Default Value | Description | | ||
:---:|:---:|:---:|:---:| | ||
| id | number | - | - | | ||
```javascript | ||
HLTV.getMatchStats({id: 62979}).then((res) => { | ||
... | ||
}) | ||
``` | ||
**[See schema](https://github.com/gigobyte/HLTV/blob/master/src/models/FullMatchStats.ts#L40)** | ||
*** | ||
#### getMatchMapStats | ||
@@ -117,0 +136,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
322252
119
2798
364