@metascraper/helpers 5.46.1 → 5.46.5
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/index.js +5 -4
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -222,10 +222,8 @@ const isImageUrl = createIsUrl(IMAGE)
|
|
|
222
222
|
|
|
223
223
|
const isPdfUrl = createIsUrl(PDF)
|
|
224
224
|
|
|
225
|
-
const isMediaUrl =
|
|
226
|
-
(url, opts)
|
|
227
|
-
isImageUrl(url, opts) || isVideoUrl(url, opts) || isAudioUrl(url, opts)
|
|
228
|
-
)
|
|
225
|
+
const isMediaUrl = (url, opts) =>
|
|
226
|
+
isImageUrl(url, opts) || isVideoUrl(url, opts) || isAudioUrl(url, opts)
|
|
229
227
|
|
|
230
228
|
const isMediaExtension = url =>
|
|
231
229
|
isImageExtension(url) || isVideoExtension(url) || isAudioExtension(url)
|
|
@@ -346,6 +344,9 @@ const isMime = (contentType, type) =>
|
|
|
346
344
|
memoizeOne.EqualityUrlAndHtmlDom = (newArgs, oldArgs) =>
|
|
347
345
|
newArgs[0] === oldArgs[0] && newArgs[1].html() === oldArgs[1].html()
|
|
348
346
|
|
|
347
|
+
memoizeOne.EqualityFirstArgument = (newArgs, oldArgs) =>
|
|
348
|
+
newArgs[0] === oldArgs[0]
|
|
349
|
+
|
|
349
350
|
const jsonld = memoizeOne(
|
|
350
351
|
$ =>
|
|
351
352
|
$('script[type="application/ld+json"]')
|
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.46.
|
|
5
|
+
"version": "5.46.5",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "901812e75b5ff01bb9e82c2d8bf9646f66815dbb"
|
|
68
68
|
}
|