fpl-api-node
Advanced tools
Comparing version 2.2.4 to 2.2.5
import * as NodeCache from 'node-cache'; | ||
import * as interfaces from './interfaces.fpl'; | ||
import * as interfaces from './interfaces'; | ||
export declare const cache: NodeCache; | ||
@@ -4,0 +4,0 @@ export declare function findEntryRoot(entryId: number): Promise<interfaces.EntryRoot>; |
export declare enum Errors { | ||
GAME_UPDATING = "The game is being updated", | ||
NOT_FOUND = "Endpoint not found", | ||
NO_RESPONSE = "No response received from fpl", | ||
NO_RESPONSE = "No response received from fpl" | ||
} |
@@ -1,3 +0,2 @@ | ||
import { EntryPick, EntryPickStats, EntryStats } from './interfaces.custom'; | ||
import { Element, ElementType, Entry, EntryChip, EntryEvent, EntryTransferHistory, Event, EventElements, League, LeagueStandings, Pick, Team } from './interfaces.fpl'; | ||
import { Element, ElementType, Entry, EntryChip, EntryEvent, EntryPick, EntryPickStats, EntryStats, EntryTransferHistory, Event, EventElements, Fixture, League, LeagueStandings, Pick, Team } from './interfaces'; | ||
/** | ||
@@ -26,5 +25,4 @@ * Returns entry summary / details. | ||
/** | ||
* Returns a collection of picks for a specified event | ||
* Returns a collection of picks for a specified entry | ||
* @param entryId The id of entry | ||
* @param event The event number | ||
*/ | ||
@@ -65,2 +63,6 @@ export declare function findEntryPicks(entryId: number): Promise<EntryPick[]>; | ||
/** | ||
* Returns fixtures of a particular event | ||
*/ | ||
export declare function findFixturesByEvent(eventNumber: number): Promise<Fixture[]>; | ||
/** | ||
* Returns a collection of all elements. | ||
@@ -89,2 +91,2 @@ */ | ||
export declare function getCurrentEventNumber(): Promise<number>; | ||
export { ElementType, Entry, EntryChip, EntryEvent, Pick, EntryTransferHistory, EventElements, EntryPickStats, League, LeagueStandings, Team }; | ||
export { ElementType, Entry, EntryChip, EntryEvent, Pick, EntryTransferHistory, EventElements, EntryPickStats, League, LeagueStandings, Team, }; |
@@ -64,5 +64,4 @@ "use strict"; | ||
/** | ||
* Returns a collection of picks for a specified event | ||
* Returns a collection of picks for a specified entry | ||
* @param entryId The id of entry | ||
* @param event The event number | ||
*/ | ||
@@ -312,2 +311,12 @@ function findEntryPicks(entryId) { | ||
/** | ||
* Returns fixtures of a particular event | ||
*/ | ||
function findFixturesByEvent(eventNumber) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const data = yield dataService.findLiveEvent(eventNumber); | ||
return data.fixtures; | ||
}); | ||
} | ||
exports.findFixturesByEvent = findFixturesByEvent; | ||
/** | ||
* Returns a collection of all elements. | ||
@@ -314,0 +323,0 @@ */ |
{ | ||
"name": "fpl-api-node", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "A node wrapper for the Fantasy Premier League (fantasy.premierleague.com) restful web api", | ||
@@ -50,4 +50,4 @@ "main": "dist/index.js", | ||
"@types/mocha": "^5.0.0", | ||
"@types/node": "^9.6.1", | ||
"@types/sinon": "^4.3.0", | ||
"@types/node": "^10.5.7", | ||
"@types/sinon": "^5.0.1", | ||
"axios-mock-adapter": "^1.14.1", | ||
@@ -58,14 +58,9 @@ "chai": "^4.1.2", | ||
"mocha": "^5.0.5", | ||
"nyc": "^11.6.0", | ||
"sinon": "^4.4.9", | ||
"ts-node": "^5.0.1", | ||
"ts-simple-ast": "^10.0.1", | ||
"nyc": "^12.0.2", | ||
"sinon": "^6.1.5", | ||
"ts-node": "^7.0.0", | ||
"ts-simple-ast": "^13.0.0", | ||
"tslint": "^5.9.1", | ||
"typescript": "^2.8.1" | ||
}, | ||
"greenkeeper": { | ||
"ignore": [ | ||
"ts-simple-ast" | ||
] | ||
"typescript": "^3.0.1" | ||
} | ||
} |
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
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
38456
1099
6
11