Skip to content

Commit

Permalink
Merge pull request #743 from microlinkhq/next
Browse files Browse the repository at this point in the history
chore(media-provider): delete getAgent
  • Loading branch information
Kikobeats authored Jan 25, 2025
2 parents 901812e + 0b2df12 commit f1dc1c7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions packages/metascraper-media-provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ const getProxy = ({ url, retryCount }) => {
}
```

##### getAgent

Type: `function`

It receives as input the output from `.getProxy`. The output will be passed to `.gotOpts`.

##### gotOpts

Type: `object`
Expand Down
1 change: 0 additions & 1 deletion packages/metascraper-media-provider/src/get-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const getFlags = ({ proxy, url, userAgent, cacheDir }) => {
module.exports = ({
cacheDir,
getProxy = constant(false),
getAgent, // destructure to don't pass it
timeout = 30000,
retry = 2,
gotOpts,
Expand Down
5 changes: 0 additions & 5 deletions packages/metascraper-media-provider/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ type Options = {
* @default false
*/
getProxy?: boolean;
/**
* Get the agent from the proxy.
* @default () => undefined
*/
getAgent?: (proxy: string) => object | undefined;
/**
* The timeout in milliseconds.
* @default 30000
Expand Down

0 comments on commit f1dc1c7

Please sign in to comment.