From 0f242a62ba72830aff9dbd31d527137eb3096e6c Mon Sep 17 00:00:00 2001 From: James Cook Date: Sun, 6 Feb 2022 10:16:42 +0000 Subject: [PATCH 1/2] fix: add .init() back --- src/client.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/client.ts b/src/client.ts index 1e0f6af..21d393c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -94,6 +94,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 From dbe636ee1a543e137e85e463c4b42458c4b20396 Mon Sep 17 00:00:00 2001 From: James Cook Date: Sun, 6 Feb 2022 10:19:52 +0000 Subject: [PATCH 2/2] 0.2.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"