From e53833196ebe4e3fc94c8736ca38534c6f7794d6 Mon Sep 17 00:00:00 2001 From: pheise Date: Wed, 3 Jul 2024 13:20:29 +0200 Subject: [PATCH 1/2] Add setCookie method to API client - Implemented setCookie method to manually update the API cookie - Allows dynamic setting of the cookie value post-construction --- src/domrobot.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/domrobot.ts b/src/domrobot.ts index 1ff4598..95c27e0 100644 --- a/src/domrobot.ts +++ b/src/domrobot.ts @@ -141,6 +141,10 @@ export class ApiClient { public getCookie(): string { return this.cookie; } + + public setCookie(cookie: string) { + this.cookie = cookie; + } } /** From 66f42ba02384d97e7b920e2b7e5bb6a7e1f79f4a Mon Sep 17 00:00:00 2001 From: pheise Date: Wed, 3 Jul 2024 13:21:30 +0200 Subject: [PATCH 2/2] Add setCookie method to API client - Update version in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8c3a9b2..c6e53d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "domrobot-client", - "version": "3.2.0", + "version": "3.2.1", "description": "INWX Domrobot Node.JS Client", "author": "INWX Developer (https://inwx.com)", "main": "lib/index.js",