fpl-api-node
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -8,3 +8,3 @@ import * as types from './types'; | ||
export declare function findEntryTransferHistory(entryId: number): Promise<types.EntryTransferHistory[]>; | ||
export declare function findElementStatsByEvent(event: number, elementId: number): Promise<types.EventElementStats>; | ||
export declare function findElementsByEvent(event: number): Promise<types.EventElements>; | ||
export declare function findLeague(leagueId: number): Promise<types.League>; | ||
@@ -11,0 +11,0 @@ export declare function findLeagueStandings(leagueId: number): Promise<types.LeagueResult[]>; |
@@ -54,9 +54,9 @@ "use strict"; | ||
exports.findEntryTransferHistory = findEntryTransferHistory; | ||
function findElementStatsByEvent(event, elementId) { | ||
function findElementsByEvent(event) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const data = yield dataService.getLiveEvent(event); | ||
return data.elements[elementId].stats; | ||
return data.elements; | ||
}); | ||
} | ||
exports.findElementStatsByEvent = findElementStatsByEvent; | ||
exports.findElementsByEvent = findElementsByEvent; | ||
function findLeague(leagueId) { | ||
@@ -63,0 +63,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -391,7 +391,6 @@ export interface BootstrappedData { | ||
[key: number]: { | ||
explain: EventPointSource[]; | ||
stats: EventElementStats; | ||
stats: ElementStats; | ||
}; | ||
} | ||
export interface EventElementStats { | ||
export interface ElementStats { | ||
yellow_cards: number; | ||
@@ -432,3 +431,3 @@ own_goals: number; | ||
}>; | ||
stats: EventElementStats; | ||
stats: ElementStats; | ||
} |
{ | ||
"name": "fpl-api-node", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A node wrapper for the Fantasy Premier League (fantasy.premierleague.com) restful web api", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
23305
663