From f28b2efe535e1ef176294d5ebf13ef58f79f31ef Mon Sep 17 00:00:00 2001 From: TPN Date: Sat, 6 Jul 2024 19:15:36 +0000 Subject: [PATCH] Update providers and use make extension a proxiedFetcher --- pnpm-lock.yaml | 8 ++++---- src/backend/providers/providers.ts | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 38caea53..698c9f82 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,7 +38,7 @@ importers: version: 0.7.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@movie-web/providers': specifier: github:sussy-code/providers - version: https://codeload.github.com/sussy-code/providers/tar.gz/3341c6d75c46fa4247a5816566c350b43ffb47ca + version: https://codeload.github.com/sussy-code/providers/tar.gz/3001ad69abd0dfee7dd30c8e1c554f0d80f76d54 '@noble/hashes': specifier: ^1.4.0 version: 1.4.0 @@ -1197,8 +1197,8 @@ packages: react: '>=16.8.0' react-dom: '>=16.8.0' - '@movie-web/providers@https://codeload.github.com/sussy-code/providers/tar.gz/3341c6d75c46fa4247a5816566c350b43ffb47ca': - resolution: {tarball: https://codeload.github.com/sussy-code/providers/tar.gz/3341c6d75c46fa4247a5816566c350b43ffb47ca} + '@movie-web/providers@https://codeload.github.com/sussy-code/providers/tar.gz/3001ad69abd0dfee7dd30c8e1c554f0d80f76d54': + resolution: {tarball: https://codeload.github.com/sussy-code/providers/tar.gz/3001ad69abd0dfee7dd30c8e1c554f0d80f76d54} version: 2.3.0 '@noble/hashes@1.4.0': @@ -5253,7 +5253,7 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@movie-web/providers@https://codeload.github.com/sussy-code/providers/tar.gz/3341c6d75c46fa4247a5816566c350b43ffb47ca': + '@movie-web/providers@https://codeload.github.com/sussy-code/providers/tar.gz/3001ad69abd0dfee7dd30c8e1c554f0d80f76d54': dependencies: cheerio: 1.0.0-rc.12 cookie: 0.6.0 diff --git a/src/backend/providers/providers.ts b/src/backend/providers/providers.ts index fba9b4d5..20aae64b 100644 --- a/src/backend/providers/providers.ts +++ b/src/backend/providers/providers.ts @@ -13,7 +13,8 @@ import { export function getProviders() { if (isExtensionActiveCached()) { return makeProviders({ - fetcher: makeExtensionFetcher(), + fetcher: makeStandardFetcher(fetch), + proxiedFetcher: makeExtensionFetcher(), target: targets.BROWSER_EXTENSION, consistentIpForRequests: true, });