@wise-old-man/utils 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ export type Competition = {
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
type Prisma_Base_Delta = {
|
|
27
|
-
id: number
|
|
28
27
|
playerId: number
|
|
29
28
|
period: Period
|
|
30
29
|
startedAt: Date
|
|
@@ -2262,7 +2261,7 @@ interface WOMClientOptions {
|
|
|
2262
2261
|
userAgent?: string;
|
|
2263
2262
|
baseAPIUrl?: string;
|
|
2264
2263
|
}
|
|
2265
|
-
declare class WOMClient {
|
|
2264
|
+
declare class WOMClient extends BaseAPIClient {
|
|
2266
2265
|
deltas: DeltasClient;
|
|
2267
2266
|
groups: GroupsClient;
|
|
2268
2267
|
players: PlayersClient;
|
package/dist/index.js
CHANGED
|
@@ -2525,7 +2525,7 @@ class CompetitionsClient extends BaseAPIClient {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
2527
|
|
|
2528
|
-
class WOMClient {
|
|
2528
|
+
class WOMClient extends BaseAPIClient {
|
|
2529
2529
|
constructor(options) {
|
|
2530
2530
|
const headers = {
|
|
2531
2531
|
'x-user-agent': (options === null || options === void 0 ? void 0 : options.userAgent) || config.defaultUserAgent
|
|
@@ -2537,6 +2537,7 @@ class WOMClient {
|
|
|
2537
2537
|
baseURL: (options === null || options === void 0 ? void 0 : options.baseAPIUrl) || config.baseAPIUrl,
|
|
2538
2538
|
headers
|
|
2539
2539
|
});
|
|
2540
|
+
super(axiosInstance);
|
|
2540
2541
|
this.deltas = new DeltasClient(axiosInstance);
|
|
2541
2542
|
this.groups = new GroupsClient(axiosInstance);
|
|
2542
2543
|
this.players = new PlayersClient(axiosInstance);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "A JavaScript/TypeScript client that interfaces and consumes the Wise Old Man API, an API that tracks and measures players' progress in Old School Runescape.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wiseoldman",
|