Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinta365 committed Nov 9, 2024
1 parent f7837ed commit 91f0adc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
publish:
permissions:
contents: read
id-token: write
uses: cross-org/workflows/.github/workflows/jsr-publish.yml@main
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 || |
Expand Down
4 changes: 2 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
4 changes: 2 additions & 2 deletions src/shared/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand All @@ -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() : ""),
{
Expand Down

0 comments on commit 91f0adc

Please sign in to comment.