@metascraper/helpers 5.43.0 → 5.43.3

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.
Files changed (2) hide show
  1. package/index.js +4 -2
  2. package/package.json +7 -7
package/index.js CHANGED
@@ -209,8 +209,10 @@ const isMediaTypeUrl = (url, type, { ext, ...opts } = {}) =>
209
209
  const isMediaTypeExtension = (url, type, ext) =>
210
210
  eq(type, get(EXTENSIONS, ext || extension(url)))
211
211
 
212
- const isMediaUrl = (url, opts) =>
213
- isImageUrl(url, opts) || isVideoUrl(url, opts) || isAudioUrl(url, opts)
212
+ const isMediaUrl = memoizeOne(
213
+ (url, opts) =>
214
+ isImageUrl(url, opts) || isVideoUrl(url, opts) || isAudioUrl(url, opts)
215
+ )
214
216
 
215
217
  const isVideoUrl = (url, opts) => isMediaTypeUrl(url, VIDEO, opts)
216
218
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@metascraper/helpers",
3
3
  "description": "Collection of helper functions used by metascraper",
4
4
  "homepage": "https://github.com/microlinkhq/metascraper/packages/metascraper-helpers",
5
- "version": "5.43.0",
5
+ "version": "5.43.3",
6
6
  "main": "index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -23,25 +23,25 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "audio-extensions": "0.0.0",
26
- "chrono-node": "~2.6.4",
26
+ "chrono-node": "~2.7.4",
27
27
  "condense-whitespace": "~2.0.0",
28
28
  "entities": "~4.5.0",
29
29
  "file-extension": "~4.0.5",
30
30
  "has-values": "~2.0.1",
31
31
  "image-extensions": "~1.1.0",
32
32
  "is-relative-url": "~3.0.0",
33
- "is-uri": "~1.2.4",
33
+ "is-uri": "~1.2.6",
34
34
  "iso-639-3": "~2.2.0",
35
35
  "isostring": "0.0.1",
36
- "jsdom": "~22.1.0",
36
+ "jsdom": "~23.0.1",
37
37
  "lodash": "~4.17.21",
38
38
  "memoize-one": "~6.0.0",
39
39
  "microsoft-capitalize": "~1.0.5",
40
40
  "mime": "~3.0.0",
41
41
  "normalize-url": "~6.1.0",
42
- "re2": "~1.20.6",
42
+ "re2": "~1.20.9",
43
43
  "smartquotes": "~2.3.2",
44
- "tldts": "~6.0.12",
44
+ "tldts": "~6.1.1",
45
45
  "url-regex-safe": "~4.0.0",
46
46
  "video-extensions": "~1.2.0"
47
47
  },
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "f3618bfad5ee6b806c272e2a69ed9d9255334beb"
65
+ "gitHead": "ba67a534c6c0695a538c03d83cc5387db63e3afd"
66
66
  }