diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 88b18d7..cac7b8d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,13 +1,13 @@ # .github/workflows/publish.yml name: Publish to jsr.io on: - release: - types: [released] - workflow_dispatch: + release: + types: [released] + workflow_dispatch: jobs: - publish: - permissions: - contents: read - id-token: write - uses: cross-org/workflows/.github/workflows/jsr-publish.yml@main \ No newline at end of file + publish: + permissions: + contents: read + id-token: write + uses: cross-org/workflows/.github/workflows/jsr-publish.yml@main diff --git a/README.md b/README.md index 2c85811..6d5fa1f 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ to implement authorization code flow also. | **World of Warcraft:** Profile APIs | ✅ | | | | | | | **World of Warcraft Classic:** Game Data APIs | | | +| **World of Warcraft Classic:** Profile APIs | | | | | | | | **Diablo III:** Community APIs | ✅ | Missing profile endpoints | | **Diablo III:** Game Data APIs | ✅ | | diff --git a/mod.ts b/mod.ts index c9a047a..878c4da 100644 --- a/mod.ts +++ b/mod.ts @@ -2,6 +2,6 @@ import { authenticate, setup } from "./src/shared/index.ts"; import * as wow from "./src/wow/index.ts"; import * as hearthstone from "./src/hearthstone/index.ts"; import * as sc2 from "./src/starcraft2/index.ts"; -import * as errors from "./src/shared/errors.ts" +import * as errors from "./src/shared/errors.ts"; -export { authenticate, hearthstone, sc2, setup, wow, errors}; +export { authenticate, errors, hearthstone, sc2, setup, wow }; diff --git a/src/shared/request.ts b/src/shared/request.ts index a67ff5a..64b8064 100644 --- a/src/shared/request.ts +++ b/src/shared/request.ts @@ -25,7 +25,7 @@ export async function request(requestOptions: RequestOptions) { } const { method, url, namespace } = requestOptions; - let { qs } = requestOptions; + let { qs } = requestOptions; if (getSetup().locale) { qs = { ...{ locale: getSetup().locale! }, ...qs }; @@ -48,7 +48,7 @@ export async function request(requestOptions: RequestOptions) { if (namespace) { headers["Battlenet-Namespace"] = `${namespace}-${getSetup().region}`; } - + const response = await fetch( apiBaseUrl(getSetup().region!) + encodeURI(url) + (qsString ? "?" + params.toString() : ""), {