diff --git a/README.md b/README.md index e34e167..f30fde5 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 | ✅ | | diff --git a/deno.jsonc b/deno.jsonc index 792daae..a57c651 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,6 +1,6 @@ { "tasks": { - "dev": "deno run --watch mod.ts" + "publish_jsr": "deno publish --config jsr.json" }, "fmt": { "lineWidth": 120, diff --git a/jsr.json b/jsr.json new file mode 100644 index 0000000..cff29f0 --- /dev/null +++ b/jsr.json @@ -0,0 +1,5 @@ +{ + "name": "@pinta365/blizzard-api", + "version": "0.3.1", + "exports": "./mod.ts" +} diff --git a/src/shared/auth.ts b/src/shared/auth.ts index da92b2a..b083eb4 100644 --- a/src/shared/auth.ts +++ b/src/shared/auth.ts @@ -15,7 +15,7 @@ export function getauthConfig(): AuthConfig { return authConfig; } -export async function authenticate(force = false) { +export async function authenticate(force = false): Promise { if (!getSetup().region) { throw new MissingRegionError(); }