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

api-sports.js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-sports.js - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

50

dist/index.d.ts

@@ -23,2 +23,7 @@ import { ListenerSignature, DefaultListener, TypedEmitter } from 'tiny-typed-emitter';

}
interface GetCoachsParams {
id: number;
team: number;
search: string;
}
interface GetPlayersParams {

@@ -603,2 +608,34 @@ id: number;

type ApiCoachResponse = ApiResponse<ApiCoach[]>;
interface ApiCoach {
id: number;
name: string;
firstname: string;
lastname: string;
age: number;
birth: {
date: string;
place: string;
country: string;
};
nationality: string;
height: string;
weight: string;
photo: string;
team: {
id: number;
name: string;
logo: string;
};
career: {
team: {
id: number;
name: string;
logo: string;
};
start: string;
end: string | null;
}[];
}
type CacheMaker<K, V> = () => CacheProvider<K, V>;

@@ -622,2 +659,3 @@ declare class Client<L extends ListenerSignature<L> = DefaultListener> extends TypedEmitter<L> {

getStatus(): Promise<ApiResponse<ApiStatusResponse>>;
getCoach(params: GetCoachsParams): Promise<ApiCoach | ApiCoach[]>;
request<T = unknown>(path: string, config?: {

@@ -694,2 +732,12 @@ params?: Record<string, number | string | boolean>;

export { AmericanFootball, BaseManager, Basketball, type CacheMaker, Client, type CreateSportsAPI, type Entry, Fixture, FixtureEvent, FixtureManager, type FixtureResolvable, Football, FootballEvents, Hockey, type IFootballEvents, League, LeagueManager, Player, PlayerManager, type ResponseStrategyOptions, Rugby, SequentialBucket, SportEndpoints, SportType, SportsAPI, type SportsEndpointMap, SquadManager, Team, TeamManager, Volleyball, resolveOptions };
interface GenericError {
rateLimit?: string;
requests?: string;
required?: string;
token?: string;
}
interface GenericErrorResponse {
errors: GenericError | GenericError[];
}
export { AmericanFootball, type ApiCoach, type ApiCoachResponse, type ApiLeague, type ApiPlayerStatistics, type ApiPlayerStatisticsPlayer, type ApiPlayerStatisticsStats, type ApiResponse, type ApiStatusResponse, BaseManager, Basketball, type CacheMaker, Client, type CreateSportsAPI, type Entry, Fixture, FixtureEvent, FixtureManager, type FixtureResolvable, Football, FootballEvents, type GenericErrorResponse, Hockey, type IFootballEvents, League, LeagueManager, Player, PlayerManager, type ResponseStrategyOptions, Rugby, SequentialBucket, SportEndpoints, SportType, SportsAPI, type SportsEndpointMap, SquadManager, Team, TeamManager, Volleyball, resolveOptions };

2

package.json
{
"name": "api-sports.js",
"version": "0.0.6",
"version": "0.0.7",
"description": "Robust client to interact with api-sports",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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