From d6836d73457522d843a63e1f2525f18f8e599992 Mon Sep 17 00:00:00 2001 From: Eban Date: Sat, 7 Sep 2024 19:55:48 +0200 Subject: [PATCH] fix: Fix return in scpobx and bump npm version --- .gitignore | 3 ++- build_npm.ts | 2 +- src/scpobx/auth.ts | 11 +++++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 0c08544..120f1d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea -npm \ No newline at end of file +npm +test.ts \ No newline at end of file diff --git a/build_npm.ts b/build_npm.ts index 5d6e04a..63ce821 100644 --- a/build_npm.ts +++ b/build_npm.ts @@ -12,7 +12,7 @@ await build({ }, package: { name: "ent-cookies", - version: "1.0.2", + version: "1.0.3", description: "Get your ENT cookies from your username and password for any service!", license: "MIT", diff --git a/src/scpobx/auth.ts b/src/scpobx/auth.ts index ac44ddf..c292879 100644 --- a/src/scpobx/auth.ts +++ b/src/scpobx/auth.ts @@ -54,6 +54,13 @@ export default async function scpobx(username: string, password: string, service }; if (service in services) { - await services[service](cookieJar); + return await services[service](cookieJar); } -}; \ No newline at end of file + + return { + cookieJar: cookieJar, + domain: "ent.sciencespobordeaux.fr" + } +}; + +export { scpobx }; \ No newline at end of file