Skip to content

Commit 2da6b31

Browse files
add bits of ao3-loader improvement i forgot in the PR
1 parent 9877a05 commit 2da6b31

3 files changed

Lines changed: 160 additions & 40 deletions

File tree

astro-ao3-loader/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"author": "FujoCoded LLC",
3131
"license": "MIT",
3232
"dependencies": {
33-
"@fujocoded/ao3.js": "^0.22.1",
33+
"@fujocoded/ao3.js": "^0.23.1",
3434
"ky": "^1.14.2",
3535
"p-queue": "^9.1.0",
3636
"tsdown": "^0.20.0-beta.3",

astro-ao3-loader/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const createFetcher = (logger: LoaderContext["logger"]) => {
5454
timeout: REQUEST_TIMEOUT_MS,
5555
retry: {
5656
limit: MAX_RETRIES,
57-
statusCodes: [429, 502, 503, 504],
57+
statusCodes: [429, 502, 503, 504, 525],
5858
afterStatusCodes: [429], // Respects Retry-After header
5959
backoffLimit: 10_000, // Max delay between retries
6060
retryOnTimeout: true,

package-lock.json

Lines changed: 158 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)