fpl-api-node
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -1,2 +0,2 @@ | ||
import { BootstrappedData, ElementType, Entry, EntryEvent, EntryTransfers, GameSettings, League, Team } from './interfaces'; | ||
import * as types from './interfaces'; | ||
/** | ||
@@ -8,3 +8,3 @@ * All static game data: | ||
*/ | ||
export declare function getBootstrappedData(): Promise<BootstrappedData>; | ||
export declare function getBootstrappedData(): Promise<types.BootstrappedData>; | ||
/** | ||
@@ -17,3 +17,3 @@ * Entry (Fpl manager team): | ||
*/ | ||
export declare function getEntry(entryId: number): Promise<Entry>; | ||
export declare function getEntry(entryId: number): Promise<types.Entry>; | ||
/** | ||
@@ -28,3 +28,3 @@ * Entry event: | ||
*/ | ||
export declare function getEntryEvent(entryId: number, eventNumber: number): Promise<EntryEvent>; | ||
export declare function getEntryEvent(entryId: number, eventNumber: number): Promise<types.EntryEvent>; | ||
/** | ||
@@ -37,3 +37,3 @@ * Entry transfers: | ||
*/ | ||
export declare function getEntryTransfers(entryId: number): Promise<EntryTransfers>; | ||
export declare function getEntryTransfers(entryId: number): Promise<types.EntryTransfers>; | ||
/** | ||
@@ -45,3 +45,3 @@ * Teams (Premier Leaugue clubs): | ||
*/ | ||
export declare function getTeams(): Promise<Team[]>; | ||
export declare function getTeams(): Promise<types.Team[]>; | ||
/** | ||
@@ -53,3 +53,3 @@ * Elements (players): | ||
*/ | ||
export declare function getElements(): Promise<Element[]>; | ||
export declare function getElements(): Promise<types.Element[]>; | ||
/** | ||
@@ -60,3 +60,3 @@ * Element types: A promise that if fulfilled returns an object | ||
*/ | ||
export declare function getElementTypes(): Promise<ElementType[]>; | ||
export declare function getElementTypes(): Promise<types.ElementType[]>; | ||
/** | ||
@@ -68,3 +68,3 @@ * Game settings: | ||
*/ | ||
export declare function getGameSettings(): Promise<GameSettings>; | ||
export declare function getGameSettings(): Promise<types.GameSettings>; | ||
/** | ||
@@ -76,3 +76,3 @@ * Event /gameweek details: | ||
*/ | ||
export declare function getEvent(eventNumber: number): Promise<Event>; | ||
export declare function getEvent(eventNumber: number): Promise<types.Event>; | ||
/** | ||
@@ -85,2 +85,3 @@ * Classic league standings: | ||
*/ | ||
export declare function getClassicLeagueStandings(leagueId: number): Promise<League>; | ||
export declare function getClassicLeagueStandings(leagueId: number): Promise<types.League>; | ||
export { types }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var axios_1 = require("axios"); | ||
var types = require("./interfaces"); | ||
exports.types = types; | ||
// set axios defaults | ||
axios_1.default.defaults.baseURL = 'https://fantasy.premierleague.com/drf'; | ||
@@ -5,0 +8,0 @@ /** |
{ | ||
"name": "fpl-api-node", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "A simple node wrapper for the Fantasy Premier League (fantasy.premierleague.com) restful web api", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26244
749
0