kindred-api
Advanced tools
Comparing version 2.0.79 to 2.0.80
@@ -9,4 +9,8 @@ From here onwards I'll try to adhere to [Semantic Versioning](http://semver.org). I kinda messed up early, and so it ended up as 2.0 (lol). Sorry guys! | ||
## [2.0.79]() - Quickfix Masteries by account id methods | ||
## [2.0.80]() - Fix TS matchlist typings. | ||
Queue was the only one in the option types. | ||
## [2.0.79](https://github.com/ChauTNguyen/kindred-api/commit/479c3b34d703ffa36ba554909c590eab2bb81a61) - Quickfix Masteries by account id methods. | ||
by.accountId -> by.account | ||
@@ -13,0 +17,0 @@ |
{ | ||
"name": "kindred-api", | ||
"version": "2.0.79", | ||
"version": "2.0.80", | ||
"description": "Node.js League of Legends v3 API wrapper with built-in rate-limiting (enforced per region, burst/spread, follows retry headers, app/method rate-limiting), caching (in-memory, Redis), automatic retries, and parameter checking.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -185,5 +185,5 @@ declare module 'kindred-api' { | ||
by: { | ||
id: (id: number, optionsOrRegionOrCallback?: OptsOrRegOrCb<{ queue: number}, Matchlist>, regionOrCallback?: RegOrCb<Matchlist>, cb?: Callback<Matchlist>) => Promise<Matchlist>; | ||
name: (name: string, optionsOrRegionOrCallback?: OptsOrRegOrCb<{ queue: number}, Matchlist>, regionOrCallback?: RegOrCb<Matchlist>, cb?: Callback<Matchlist>) => Promise<Matchlist>; | ||
account: (account: number, optionsOrRegionOrCallback?: OptsOrRegOrCb<{ queue: number}, Matchlist>, regionOrCallback?: RegOrCb<Matchlist>, cb?: Callback<Matchlist>) => Promise<Matchlist>; | ||
id: (id: number, optionsOrRegionOrCallback?: OptsOrRegOrCb<{ queue?: number, beginTime?: number | Date, endIndex?: number, season?: number, champion?: number, beginIndex?: number, endTime?: number | Date }, Matchlist>, regionOrCallback?: RegOrCb<Matchlist>, cb?: Callback<Matchlist>) => Promise<Matchlist>; | ||
name: (name: string, optionsOrRegionOrCallback?: OptsOrRegOrCb<{ queue?: number, beginTime?: number | Date, endIndex?: number, season?: number, champion?: number, beginIndex?: number, endTime?: number | Date }, Matchlist>, regionOrCallback?: RegOrCb<Matchlist>, cb?: Callback<Matchlist>) => Promise<Matchlist>; | ||
account: (account: number, optionsOrRegionOrCallback?: OptsOrRegOrCb<{ queue?: number, beginTime?: number | Date, endIndex?: number, season?: number, champion?: number, beginIndex?: number, endTime?: number | Date }, Matchlist>, regionOrCallback?: RegOrCb<Matchlist>, cb?: Callback<Matchlist>) => Promise<Matchlist>; | ||
}; | ||
@@ -190,0 +190,0 @@ |
@@ -315,3 +315,3 @@ /// <reference path='index.d.ts' /> | ||
const matchOpts = { | ||
forPlatformId: "NA1", | ||
forPlatformId: PLATFORM_IDS.NORTH_AMERICA, | ||
forAccountId: 12346 | ||
@@ -366,2 +366,2 @@ } | ||
.then(data => console.log(data)) | ||
.catch(err => console.error(err)) | ||
.catch(err => console.error(err)) |
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
673421
13649