Skip to content

Commit cf9d535

Browse files
committed
prep fpr jsr
1 parent e49b774 commit cf9d535

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

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

5-
Built for Deno 🦕
6-
75
Link to the module on [Deno Land](https://deno.land/x/blizzard_api)
6+
Link to the module on [JSR](https://jsr.io/@pinta365/blizzard-api)
87

98
## WORK IN PROGRESS
109

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

1313
### APIs implemented
1414

@@ -24,7 +24,7 @@ Let me know if you want certain APIs to be prioritized.
2424
| | | |
2525
| **Hearthstone:** Game Data APIs || |
2626
| | | |
27-
| **Overwatch League:** Community APIs** || Only seem to support US region and some data types are partially defined as Unknown |
27+
| **Overwatch League:** Community APIs || Only seem to support US region and some data types are partially defined as Unknown |
2828
| | | |
2929
| **StarCraft II:** Community APIs | | |
3030
| **StarCraft II:** Game Data APIs || |

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"tasks": {
3-
"dev": "deno run --watch mod.ts"
3+
"publish_jsr": "deno publish --config jsr.json"
44
},
55
"fmt": {
66
"lineWidth": 120,

jsr.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "@pinta365/blizzard-api",
3+
"version": "0.3.1",
4+
"exports": "./mod.ts"
5+
}

src/shared/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function getauthConfig(): AuthConfig {
1515
return authConfig;
1616
}
1717

18-
export async function authenticate(force = false) {
18+
export async function authenticate(force = false): Promise<string | true> {
1919
if (!getSetup().region) {
2020
throw new MissingRegionError();
2121
}

0 commit comments

Comments
 (0)