New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

glitch-javascript-sdk

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glitch-javascript-sdk - npm Package Compare versions

Comparing version 0.1.9 to 0.2.0

8

dist/esm/api/Competitions.d.ts

@@ -212,3 +212,3 @@ import Response from "../util/Response";

*/
static createBracjet<T>(competition_id: string, round_id: number, data?: object): AxiosPromise<Response<T>>;
static createBracket<T>(competition_id: string, round_id: number, data?: object): AxiosPromise<Response<T>>;
/**

@@ -318,7 +318,7 @@ * Show round bracket

*
* @param competition_id
* @param team
* @param competition_id The id of the competition
* @param team_id The id of the team
* @returns promise
*/
static showTeam<T>(competition_id: string, team: string): AxiosPromise<Response<T>>;
static showTeam<T>(competition_id: string, team_id: string): AxiosPromise<Response<T>>;
/**

@@ -325,0 +325,0 @@ * Update the team information associated with the competition.

@@ -321,3 +321,3 @@ import { AxiosPromise } from 'axios';

*/
static createBracjet<T>(competition_id: string, round_id: number, data?: object): AxiosPromise<Response<T>>;
static createBracket<T>(competition_id: string, round_id: number, data?: object): AxiosPromise<Response<T>>;
/**

@@ -427,7 +427,7 @@ * Show round bracket

*
* @param competition_id
* @param team
* @param competition_id The id of the competition
* @param team_id The id of the team
* @returns promise
*/
static showTeam<T>(competition_id: string, team: string): AxiosPromise<Response<T>>;
static showTeam<T>(competition_id: string, team_id: string): AxiosPromise<Response<T>>;
/**

@@ -434,0 +434,0 @@ * Update the team information associated with the competition.

{
"name": "glitch-javascript-sdk",
"version": "0.1.9",
"version": "0.2.0",
"description": "Javascript SDK for Glitch",

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

@@ -45,3 +45,3 @@ import CompetitionRoutes from "../routes/CompetitionRoute";

return Requests.processRoute(CompetitionRoutes.routes.create, data, {competition_id : competition_id});
return Requests.processRoute(CompetitionRoutes.routes.update, data, {competition_id : competition_id});
}

@@ -124,3 +124,3 @@

public static registerUser<T>(competition_id : string) : AxiosPromise<Response<T>>{
return Requests.processRoute(CompetitionRoutes.routes.registerUser, {competition_id : competition_id});
return Requests.processRoute(CompetitionRoutes.routes.registerUser, {}, {competition_id : competition_id});
}

@@ -152,3 +152,3 @@

public static autoGenerate<T>(competition_id : string, round_id : number) : AxiosPromise<Response<T>>{
return Requests.processRoute(CompetitionRoutes.routes.autoGenerate, {round_id : round_id}, {competition_id : competition_id});
return Requests.processRoute(CompetitionRoutes.routes.autoGenerate, {}, {competition_id : competition_id, round_id : round_id});
}

@@ -165,3 +165,3 @@

public static autoGenerateUserBrackets<T>(competition_id : string) : AxiosPromise<Response<T>>{
return Requests.processRoute(CompetitionRoutes.routes.autoGenerateUserBrackets, {competition_id : competition_id});
return Requests.processRoute(CompetitionRoutes.routes.autoGenerateUserBrackets, {}, {competition_id : competition_id});
}

@@ -246,3 +246,3 @@

public static invites<T>(competition_id : string) : AxiosPromise<Response<T>>{
return Requests.processRoute(CompetitionRoutes.routes.invites, {competition_id : competition_id});
return Requests.processRoute(CompetitionRoutes.routes.invites, {}, {competition_id : competition_id});
}

@@ -259,3 +259,3 @@

public static sendInvite<T>(competition_id : string) : AxiosPromise<Response<T>>{
return Requests.processRoute(CompetitionRoutes.routes.sendInvite, {competition_id : competition_id});
return Requests.processRoute(CompetitionRoutes.routes.sendInvite, {}, {competition_id : competition_id});
}

@@ -273,3 +273,3 @@

public static acceptInvite<T>(competition_id : string, token : string): AxiosPromise<Response<T>>{
return Requests.processRoute(CompetitionRoutes.routes.acceptInvite, {competition_id : competition_id}, {token : token});
return Requests.processRoute(CompetitionRoutes.routes.acceptInvite, {token : token}, {competition_id : competition_id});
}

@@ -299,3 +299,3 @@

*/
public static createBracjet<T>(competition_id : string, round_id : number, data?: object): AxiosPromise<Response<T>>{
public static createBracket<T>(competition_id : string, round_id : number, data?: object): AxiosPromise<Response<T>>{
return Requests.processRoute(CompetitionRoutes.routes.bracketStore, data, {round_id : round_id, competition_id : competition_id});

@@ -438,8 +438,8 @@ }

*
* @param competition_id
* @param team
* @param competition_id The id of the competition
* @param team_id The id of the team
* @returns promise
*/
public static showTeam<T>(competition_id : string, team : string): AxiosPromise<Response<T>>{
return Requests.processRoute(CompetitionRoutes.routes.showTeam, {competition_id : competition_id}, {team : team});
public static showTeam<T>(competition_id : string, team_id : string): AxiosPromise<Response<T>>{
return Requests.processRoute(CompetitionRoutes.routes.showTeam, {}, {team_id : team_id, competition_id : competition_id});
}

@@ -494,3 +494,3 @@

public static createCompetitionUser<T>(competition_id : string, data?: object): AxiosPromise<Response<T>>{
return Requests.processRoute(CompetitionRoutes.routes.competitionUser, {}, {competition_id : competition_id});
return Requests.processRoute(CompetitionRoutes.routes.competitionUser, data, {competition_id : competition_id});
}

@@ -497,0 +497,0 @@

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

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