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.9.3 to 2.10.0

lib/endpoints/getMatchStats.d.ts

3

lib/index.d.ts

@@ -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);

3

lib/playground.js
"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 @@

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