riotapi-int
Advanced tools
Comparing version 1.0.3 to 1.0.4
18
index.js
@@ -107,3 +107,3 @@ const https = require("https"); | ||
// ================== | ||
RiotAPI.prototype.getMatchV4ByMatchId = function (id, options) { | ||
RiotAPI.prototype.getMatchV4ByMatchId = function (id, options = {}) { | ||
return this._request( | ||
@@ -117,3 +117,3 @@ format("/lol/match/v4/matches/{matchId}", { | ||
RiotAPI.prototype.getMatchListV4ByAccountId = function (id, options) { | ||
RiotAPI.prototype.getMatchListV4ByAccountId = function (id, options = {}) { | ||
options.query = options.query || {}; | ||
@@ -134,3 +134,3 @@ | ||
RiotAPI.prototype.getMatchTimelineV4ByMatchId = function (id, options) { | ||
RiotAPI.prototype.getMatchTimelineV4ByMatchId = function (id, options = {}) { | ||
return this._request( | ||
@@ -144,3 +144,3 @@ format("/lol/match/v4/timelines/by-match/{matchId}", { | ||
RiotAPI.prototype.getMatchIdsByTournamentCode = function (code, options) { | ||
RiotAPI.prototype.getMatchIdsByTournamentCode = function (code, options = {}) { | ||
return this._request( | ||
@@ -154,3 +154,3 @@ format("/lol/match/v4/matches/by-tournament-code/{tournamentCode}/ids", { | ||
RiotAPI.prototype.getMatchV4ByTournamentCodeAndMatchId = function (code, id, options) { | ||
RiotAPI.prototype.getMatchV4ByTournamentCodeAndMatchId = function (code, id, options = {}) { | ||
return this._request( | ||
@@ -168,3 +168,3 @@ format("/lol/match/v4/matches/{matchId}/by-tournament-code/{tournamentCode}", { | ||
// ===================== | ||
RiotAPI.prototype.getSummonerV4ByAccountId = function (id, options) { | ||
RiotAPI.prototype.getSummonerV4ByAccountId = function (id, options = {}) { | ||
return this._request( | ||
@@ -178,3 +178,3 @@ format("/lol/summoner/v4/summoners/by-account/{encryptedAccountId}", { | ||
RiotAPI.prototype.getSummonerV4ByName = function (name, options) { | ||
RiotAPI.prototype.getSummonerV4ByName = function (name, options = {}) { | ||
return this._request( | ||
@@ -188,3 +188,3 @@ format("/lol/summoner/v4/summoners/by-name/{summonerName}", { | ||
RiotAPI.prototype.getSummonerV4ByPUUID = function (puuid, options) { | ||
RiotAPI.prototype.getSummonerV4ByPUUID = function (puuid, options = {}) { | ||
return this._request( | ||
@@ -198,3 +198,3 @@ format("/lol/summoner/v4/summoners/by-puuid/{encryptedPUUID}", { | ||
RiotAPI.prototype.getSummonerV4BySummonerId = function (id, options) { | ||
RiotAPI.prototype.getSummonerV4BySummonerId = function (id, options = {}) { | ||
return this._request( | ||
@@ -201,0 +201,0 @@ format("/lol/summoner/v4/summoners/{encryptedSummonerId}", { |
{ | ||
"name": "riotapi-int", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "NodeJS integration for RiotAPI", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
36162