Skip to content

Commit

Permalink
fix: Fix return in scpobx and bump npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
ebanDev committed Sep 7, 2024
1 parent 845f1cf commit d6836d7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
npm
npm
test.ts
2 changes: 1 addition & 1 deletion build_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 9 additions & 2 deletions src/scpobx/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

return {
cookieJar: cookieJar,
domain: "ent.sciencespobordeaux.fr"
}
};

export { scpobx };

0 comments on commit d6836d7

Please sign in to comment.