fitzroy 1.6.0 → 1.6.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/cli.js +6 -6
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1045,7 +1045,7 @@ var init_footywire = __esm({
|
|
|
1045
1045
|
FootyWireClient = class {
|
|
1046
1046
|
fetchFn;
|
|
1047
1047
|
constructor(options) {
|
|
1048
|
-
this.fetchFn = options?.fetchFn ?? globalThis.fetch;
|
|
1048
|
+
this.fetchFn = options?.fetchFn ?? globalThis.fetch.bind(globalThis);
|
|
1049
1049
|
}
|
|
1050
1050
|
/**
|
|
1051
1051
|
* Fetch the HTML content of any URL using this client's fetch function.
|
|
@@ -1361,7 +1361,7 @@ var init_afl_coaches = __esm({
|
|
|
1361
1361
|
AflCoachesClient = class {
|
|
1362
1362
|
fetchFn;
|
|
1363
1363
|
constructor(options) {
|
|
1364
|
-
this.fetchFn = options?.fetchFn ?? globalThis.fetch;
|
|
1364
|
+
this.fetchFn = options?.fetchFn ?? globalThis.fetch.bind(globalThis);
|
|
1365
1365
|
}
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Fetch the HTML content of an AFLCA page.
|
|
@@ -1844,7 +1844,7 @@ var init_afl_api = __esm({
|
|
|
1844
1844
|
cachedToken = null;
|
|
1845
1845
|
pendingAuth = null;
|
|
1846
1846
|
constructor(options) {
|
|
1847
|
-
this.fetchFn = options?.fetchFn ?? globalThis.fetch;
|
|
1847
|
+
this.fetchFn = options?.fetchFn ?? globalThis.fetch.bind(globalThis);
|
|
1848
1848
|
this.tokenUrl = options?.tokenUrl ?? TOKEN_URL;
|
|
1849
1849
|
}
|
|
1850
1850
|
/**
|
|
@@ -2273,7 +2273,7 @@ var init_squiggle = __esm({
|
|
|
2273
2273
|
SquiggleClient = class {
|
|
2274
2274
|
fetchFn;
|
|
2275
2275
|
constructor(options) {
|
|
2276
|
-
this.fetchFn = options?.fetchFn ?? globalThis.fetch;
|
|
2276
|
+
this.fetchFn = options?.fetchFn ?? globalThis.fetch.bind(globalThis);
|
|
2277
2277
|
}
|
|
2278
2278
|
/**
|
|
2279
2279
|
* Fetch JSON from the Squiggle API.
|
|
@@ -2894,7 +2894,7 @@ var init_afl_tables = __esm({
|
|
|
2894
2894
|
AflTablesClient = class {
|
|
2895
2895
|
fetchFn;
|
|
2896
2896
|
constructor(options) {
|
|
2897
|
-
this.fetchFn = options?.fetchFn ?? globalThis.fetch;
|
|
2897
|
+
this.fetchFn = options?.fetchFn ?? globalThis.fetch.bind(globalThis);
|
|
2898
2898
|
}
|
|
2899
2899
|
/**
|
|
2900
2900
|
* Fetch season match results from AFL Tables.
|
|
@@ -5392,7 +5392,7 @@ resolveAliases();
|
|
|
5392
5392
|
var main = defineCommand11({
|
|
5393
5393
|
meta: {
|
|
5394
5394
|
name: "fitzroy",
|
|
5395
|
-
version: "1.6.
|
|
5395
|
+
version: "1.6.1",
|
|
5396
5396
|
description: "TypeScript port of the fitzRoy R package \u2014 fetch AFL data from the command line"
|
|
5397
5397
|
},
|
|
5398
5398
|
subCommands: {
|
package/dist/index.js
CHANGED
|
@@ -684,7 +684,7 @@ var FOOTYWIRE_BASE = "https://www.footywire.com/afl/footy";
|
|
|
684
684
|
var FootyWireClient = class {
|
|
685
685
|
fetchFn;
|
|
686
686
|
constructor(options) {
|
|
687
|
-
this.fetchFn = options?.fetchFn ?? globalThis.fetch;
|
|
687
|
+
this.fetchFn = options?.fetchFn ?? globalThis.fetch.bind(globalThis);
|
|
688
688
|
}
|
|
689
689
|
/**
|
|
690
690
|
* Fetch the HTML content of any URL using this client's fetch function.
|
|
@@ -1376,7 +1376,7 @@ import * as cheerio4 from "cheerio";
|
|
|
1376
1376
|
var AflCoachesClient = class {
|
|
1377
1377
|
fetchFn;
|
|
1378
1378
|
constructor(options) {
|
|
1379
|
-
this.fetchFn = options?.fetchFn ?? globalThis.fetch;
|
|
1379
|
+
this.fetchFn = options?.fetchFn ?? globalThis.fetch.bind(globalThis);
|
|
1380
1380
|
}
|
|
1381
1381
|
/**
|
|
1382
1382
|
* Fetch the HTML content of an AFLCA page.
|
|
@@ -1881,7 +1881,7 @@ var AflApiClient = class {
|
|
|
1881
1881
|
cachedToken = null;
|
|
1882
1882
|
pendingAuth = null;
|
|
1883
1883
|
constructor(options) {
|
|
1884
|
-
this.fetchFn = options?.fetchFn ?? globalThis.fetch;
|
|
1884
|
+
this.fetchFn = options?.fetchFn ?? globalThis.fetch.bind(globalThis);
|
|
1885
1885
|
this.tokenUrl = options?.tokenUrl ?? TOKEN_URL;
|
|
1886
1886
|
}
|
|
1887
1887
|
/**
|
|
@@ -2295,7 +2295,7 @@ var USER_AGENT = "fitzRoy-ts/1.0 (https://github.com/jackemcpherson/fitzRoy-ts)"
|
|
|
2295
2295
|
var SquiggleClient = class {
|
|
2296
2296
|
fetchFn;
|
|
2297
2297
|
constructor(options) {
|
|
2298
|
-
this.fetchFn = options?.fetchFn ?? globalThis.fetch;
|
|
2298
|
+
this.fetchFn = options?.fetchFn ?? globalThis.fetch.bind(globalThis);
|
|
2299
2299
|
}
|
|
2300
2300
|
/**
|
|
2301
2301
|
* Fetch JSON from the Squiggle API.
|
|
@@ -2646,7 +2646,7 @@ var AFL_TABLES_BASE = "https://afltables.com/afl/seas";
|
|
|
2646
2646
|
var AflTablesClient = class {
|
|
2647
2647
|
fetchFn;
|
|
2648
2648
|
constructor(options) {
|
|
2649
|
-
this.fetchFn = options?.fetchFn ?? globalThis.fetch;
|
|
2649
|
+
this.fetchFn = options?.fetchFn ?? globalThis.fetch.bind(globalThis);
|
|
2650
2650
|
}
|
|
2651
2651
|
/**
|
|
2652
2652
|
* Fetch season match results from AFL Tables.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fitzroy",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "TypeScript port of the fitzRoy R package — programmatic access to AFL data including match results, player stats, fixtures, ladders, and more",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|