metascraper-x 5.45.7 → 5.45.9

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
@@ -3,7 +3,7 @@
3
3
  <img style="width: 500px; margin:3rem 0 1.5rem;" src="https://metascraper.js.org/static/logo-banner.png" alt="metascraper">
4
4
  <br>
5
5
  <br>
6
- <p align="center"><strong>metascraper-x</strong>: Metascraper integration for x.com.</p>
6
+ <p align="center"><strong>metascraper-x</strong>: Metascraper integration with x.com.</p>
7
7
  <p align="center">See our <a href="https://metascraper.js.org" target='_blank' rel='noopener noreferrer'>website</a> for more information.</p>
8
8
  <br>
9
9
  </div>
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "metascraper-x",
3
- "description": "Metascraper integration for x.com",
3
+ "description": "Metascraper integration with x.com",
4
4
  "homepage": "https://github.com/microlinkhq/metascraper/packages/metascraper-x",
5
- "version": "5.45.7",
5
+ "version": "5.45.9",
6
6
  "types": "src/index.d.ts",
7
7
  "main": "src/index.js",
8
8
  "author": {
@@ -24,7 +24,7 @@
24
24
  "spotify"
25
25
  ],
26
26
  "dependencies": {
27
- "@metascraper/helpers": "^5.45.7"
27
+ "@metascraper/helpers": "^5.45.9"
28
28
  },
29
29
  "devDependencies": {
30
30
  "ava": "5"
@@ -39,5 +39,5 @@
39
39
  "test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
40
40
  },
41
41
  "license": "MIT",
42
- "gitHead": "86ed64c8ef626bf651fa58618bb5dfa08d5a9f5a"
42
+ "gitHead": "a9e0c7b5bc4c8bdb20619673e351b8157bb86fa5"
43
43
  }
package/src/index.js CHANGED
@@ -38,7 +38,7 @@ module.exports = ({
38
38
  title: [toTitle(($, url) => `@${url.split('/')[3]} on X`)],
39
39
  url: [
40
40
  toUrl($ =>
41
- $('link[rel="canonical"]').attr('href').replace('twitter.com', 'x.com')
41
+ $('link[rel="canonical"]').attr('href')?.replace('twitter.com', 'x.com')
42
42
  )
43
43
  ],
44
44
  description: [