Skip to content

Commit

Permalink
prep fpr jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinta365 committed Mar 2, 2024
1 parent e49b774 commit cf9d535
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

Start of what will cover the whole Blizzard Battle.net API when its done.

Built for Deno 🦕

Link to the module on [Deno Land](https://deno.land/x/blizzard_api)
Link to the module on [JSR](https://jsr.io/@pinta365/blizzard-api)

## WORK IN PROGRESS

Let me know if you want certain APIs to be prioritized.
Currently only supports client credentials flow but the plan is to implement authorization code flow also.

### APIs implemented

Expand All @@ -24,7 +24,7 @@ Let me know if you want certain APIs to be prioritized.
| | | |
| **Hearthstone:** Game Data APIs || |
| | | |
| **Overwatch League:** Community APIs** || Only seem to support US region and some data types are partially defined as Unknown |
| **Overwatch League:** Community APIs || Only seem to support US region and some data types are partially defined as Unknown |
| | | |
| **StarCraft II:** Community APIs | | |
| **StarCraft II:** Game Data APIs || |
Expand Down
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tasks": {
"dev": "deno run --watch mod.ts"
"publish_jsr": "deno publish --config jsr.json"
},
"fmt": {
"lineWidth": 120,
Expand Down
5 changes: 5 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@pinta365/blizzard-api",
"version": "0.3.1",
"exports": "./mod.ts"
}
2 changes: 1 addition & 1 deletion src/shared/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function getauthConfig(): AuthConfig {
return authConfig;
}

export async function authenticate(force = false) {
export async function authenticate(force = false): Promise<string | true> {
if (!getSetup().region) {
throw new MissingRegionError();
}
Expand Down

0 comments on commit cf9d535

Please sign in to comment.