Skip to content

Commit 91f0adc

Browse files
committed
formatting
1 parent f7837ed commit 91f0adc

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# .github/workflows/publish.yml
22
name: Publish to jsr.io
33
on:
4-
release:
5-
types: [released]
6-
workflow_dispatch:
4+
release:
5+
types: [released]
6+
workflow_dispatch:
77

88
jobs:
9-
publish:
10-
permissions:
11-
contents: read
12-
id-token: write
13-
uses: cross-org/workflows/.github/workflows/jsr-publish.yml@main
9+
publish:
10+
permissions:
11+
contents: read
12+
id-token: write
13+
uses: cross-org/workflows/.github/workflows/jsr-publish.yml@main

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ to implement authorization code flow also.
2222
| **World of Warcraft:** Profile APIs || |
2323
| | | |
2424
| **World of Warcraft Classic:** Game Data APIs | | |
25+
| **World of Warcraft Classic:** Profile APIs | | |
2526
| | | |
2627
| **Diablo III:** Community APIs || Missing profile endpoints |
2728
| **Diablo III:** Game Data APIs || |

mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import { authenticate, setup } from "./src/shared/index.ts";
22
import * as wow from "./src/wow/index.ts";
33
import * as hearthstone from "./src/hearthstone/index.ts";
44
import * as sc2 from "./src/starcraft2/index.ts";
5-
import * as errors from "./src/shared/errors.ts"
5+
import * as errors from "./src/shared/errors.ts";
66

7-
export { authenticate, hearthstone, sc2, setup, wow, errors};
7+
export { authenticate, errors, hearthstone, sc2, setup, wow };

src/shared/request.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function request(requestOptions: RequestOptions) {
2525
}
2626

2727
const { method, url, namespace } = requestOptions;
28-
let { qs } = requestOptions;
28+
let { qs } = requestOptions;
2929

3030
if (getSetup().locale) {
3131
qs = { ...{ locale: getSetup().locale! }, ...qs };
@@ -48,7 +48,7 @@ export async function request(requestOptions: RequestOptions) {
4848
if (namespace) {
4949
headers["Battlenet-Namespace"] = `${namespace}-${getSetup().region}`;
5050
}
51-
51+
5252
const response = await fetch(
5353
apiBaseUrl(getSetup().region!) + encodeURI(url) + (qsString ? "?" + params.toString() : ""),
5454
{

0 commit comments

Comments
 (0)