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.1.0 to 2.1.1

2

dist/index.d.ts

@@ -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",

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