diff --git a/package.json b/package.json index c50ccc7..b043e4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "classcharts-api", - "version": "0.2.2", + "version": "0.2.3", "description": "", "repository": { "url": "https://github.com/jamesatjaminit/classcharts-api" diff --git a/src/client.ts b/src/client.ts index baef725..6009aba 100644 --- a/src/client.ts +++ b/src/client.ts @@ -95,6 +95,13 @@ export class ClasschartsClient { this.studentId = user.id; this.studentName = user.name; } + /** + * @deprecated Use .login() instead + */ + async init(): Promise { + console.warn(".init() is deprecated, please use .login()"); + await this.login(); + } /** * Gets general information about the logged in student * @returns Student object