metascraper-media-provider 5.46.5 → 5.46.10

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/README.md CHANGED
@@ -39,12 +39,6 @@ const getProxy = ({ url, retryCount }) => {
39
39
  }
40
40
  ```
41
41
 
42
- ##### getAgent
43
-
44
- Type: `function`
45
-
46
- It receives as input the output from `.getProxy`. The output will be passed to `.gotOpts`.
47
-
48
42
  ##### gotOpts
49
43
 
50
44
  Type: `object`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "metascraper-media-provider",
3
3
  "description": "Get video property from HTML markup",
4
4
  "homepage": "https://github.com/microlinkhq/metascraper/packages/metascraper-media-provider",
5
- "version": "5.46.5",
5
+ "version": "5.46.10",
6
6
  "types": "src/index.d.ts",
7
7
  "main": "src/index.js",
8
8
  "author": {
@@ -24,7 +24,7 @@
24
24
  "youtube-dl"
25
25
  ],
26
26
  "dependencies": {
27
- "@metascraper/helpers": "5.46.5",
27
+ "@metascraper/helpers": "5.46.10",
28
28
  "async-memoize-one": "~1.1.8",
29
29
  "debug-logfmt": "~1.2.3",
30
30
  "got": "~11.8.6",
@@ -59,5 +59,5 @@
59
59
  "!test/fixtures/generate.js"
60
60
  ]
61
61
  },
62
- "gitHead": "901812e75b5ff01bb9e82c2d8bf9646f66815dbb"
62
+ "gitHead": "d66104b59aa84d93e142ba4404c6d7614c5b4362"
63
63
  }
package/src/get-media.js CHANGED
@@ -35,7 +35,6 @@ const getFlags = ({ proxy, url, userAgent, cacheDir }) => {
35
35
  module.exports = ({
36
36
  cacheDir,
37
37
  getProxy = constant(false),
38
- getAgent, // destructure to don't pass it
39
38
  timeout = 30000,
40
39
  retry = 2,
41
40
  gotOpts,
package/src/index.d.ts CHANGED
@@ -9,11 +9,6 @@ type Options = {
9
9
  * @default false
10
10
  */
11
11
  getProxy?: boolean;
12
- /**
13
- * Get the agent from the proxy.
14
- * @default () => undefined
15
- */
16
- getAgent?: (proxy: string) => object | undefined;
17
12
  /**
18
13
  * The timeout in milliseconds.
19
14
  * @default 30000