metascraper-x 5.45.7 → 5.45.8
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 +1 -1
- package/package.json +3 -3
- package/src/index.js +1 -1
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
|
|
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
|
|
3
|
+
"description": "Metascraper integration with x.com",
|
|
4
4
|
"homepage": "https://github.com/microlinkhq/metascraper/packages/metascraper-x",
|
|
5
|
-
"version": "5.45.
|
|
5
|
+
"version": "5.45.8",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"author": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ddd759edb19eef06342b099fea7ee7b0d4a6fafb"
|
|
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')
|
|
41
|
+
$('link[rel="canonical"]').attr('href')?.replace('twitter.com', 'x.com')
|
|
42
42
|
)
|
|
43
43
|
],
|
|
44
44
|
description: [
|