Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fpl-api-node

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fpl-api-node - npm Package Compare versions

Comparing version 2.2.4 to 2.2.5

dist/interfaces.d.ts

2

dist/data.service.d.ts
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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc