@metascraper/helpers 5.45.22 → 5.45.28

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 +1 -5
  2. package/package.json +9 -9
package/index.js CHANGED
@@ -174,10 +174,6 @@ const titleize = (src, opts = {}) => {
174
174
  return title
175
175
  }
176
176
 
177
- const $twitter = ($, selector) =>
178
- $(`meta[name="${selector}"]`).attr('content') ||
179
- $(`meta[property="${selector}"]`).attr('content')
180
-
181
177
  const $filter = ($, matchedEl, fn = $filter.fn) => {
182
178
  let matched
183
179
 
@@ -496,7 +492,6 @@ const getUrls = input => String(input).match(urlRegexForMatch) ?? []
496
492
  module.exports = {
497
493
  $filter,
498
494
  $jsonld,
499
- $twitter,
500
495
  absoluteUrl,
501
496
  audio,
502
497
  audioExtensions,
@@ -525,6 +520,7 @@ module.exports = {
525
520
  isUrl,
526
521
  isVideoExtension,
527
522
  isVideoUrl,
523
+ iso6393,
528
524
  jsonld,
529
525
  lang,
530
526
  loadIframe,
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.45.22",
5
+ "version": "5.45.28",
6
6
  "main": "index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -23,10 +23,10 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "audio-extensions": "0.0.0",
26
- "chrono-node": "~2.7.6",
26
+ "chrono-node": "~2.7.7",
27
27
  "condense-whitespace": "~2.0.0",
28
28
  "data-uri-utils": "~1.0.8",
29
- "entities": "~4.5.0",
29
+ "entities": "~6.0.0",
30
30
  "file-extension": "~4.0.5",
31
31
  "has-values": "~2.0.1",
32
32
  "image-extensions": "~1.1.0",
@@ -34,17 +34,17 @@
34
34
  "is-uri": "~1.2.6",
35
35
  "iso-639-3": "~2.2.0",
36
36
  "isostring": "0.0.1",
37
- "jsdom": "~24.1.0",
37
+ "jsdom": "~25.0.1",
38
38
  "lodash": "~4.17.21",
39
39
  "memoize-one": "~6.0.0",
40
40
  "microsoft-capitalize": "~1.0.5",
41
- "mime": "~3.0.0",
41
+ "mime": "3",
42
42
  "normalize-url": "~6.1.0",
43
- "re2": "~1.21.0",
43
+ "re2": "~1.21.4",
44
44
  "smartquotes": "~2.3.2",
45
- "tldts": "~6.1.24",
45
+ "tldts": "~6.1.70",
46
46
  "url-regex-safe": "~4.0.0",
47
- "video-extensions": "~1.2.0"
47
+ "video-extensions": "1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "ava": "5",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "d934045034f25536eec414edf4f5be0b2b73d7ed"
66
+ "gitHead": "a3ca157491003cd78000a3c5c6d1bf038937b1c7"
67
67
  }