tm-content-parser
Advanced tools
Comparing version 1.0.23 to 1.0.24
@@ -70,6 +70,8 @@ "use strict"; | ||
if (ele.find('a').last().attr('href')) { | ||
return "IGNORE"; | ||
/* Disabled as handling tweet is no more supported. | ||
return { | ||
type: 'tweet', | ||
content_item_id: parseTwitterID(ele) | ||
}; | ||
};*/ | ||
} else { | ||
@@ -76,0 +78,0 @@ return 'IGNORE'; |
{ | ||
"name": "tm-content-parser", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"description": "Trinity Mirror Content Type Parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -403,11 +403,2 @@ [ | ||
{ | ||
"name": "Blockquote tweet", | ||
"xhtml": "<blockquote class=\"twitter-tweet\"> <p>Lol! Spain's olympic football kit is gonna look like this :O it looks like carpet! <a href=\"https://twitter.com/jakesmith761/status/224833027598061568\" title=\"http://twitter.com/jakesmith761/status/224833027598061568/photo/1\">twitter.com/jakesmith761?</a> </p>? Jake Smith (@jakesmith761) <a data-datetime=\"2012-07-10T08:52:08+00:00\" href=\"https://twitter.com/jakesmith761/status/224833027598061568\">July 10, 2012</a> </blockquote> <script charset=\"utf-8\" src=\"//platform.twitter.com/widgets.js\" />", | ||
"expected": [{ | ||
"type": "tweet", | ||
"order_index": 0, | ||
"content_item_id": "224833027598061568" | ||
}] | ||
}, | ||
{ | ||
"name": "embedded grid", | ||
@@ -489,23 +480,3 @@ "xhtml": "<p> <a href=\"internal:/article/6672662\" id=\"_66fd1625-a868-40e5-bf75-e05761ab096d\" data-content-type=\"grid\">Arsenal 2-0 Bayern</a> </p>", | ||
] | ||
}, | ||
{ | ||
"name": "TWITTER this one works", | ||
"xhtml": "<blockquote class=\"twitter-tweet\" data-lang=\"en\"><p lang=\"en\" dir=\"ltr\">FACEBOOK IS ABSOLUTELY INSANE <a href=\"https://t.co/yE5O0LJAGN\">pic.twitter.com/yE5O0LJAGN</a></p>— connor (@whomshe) <a href=\"https://twitter.com/whomshe/status/798369654955802630\">November 15, 2016</a></blockquote><script async src=\"//platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>", | ||
"expected": [ | ||
{ | ||
"content_item_id": "798369654955802630", | ||
"order_index": 0, | ||
"type": "tweet" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "TWITTER this one doesnt work", | ||
"xhtml": "<blockquote class=\"twitter-tweet\" data-cards=\"hidden\" data-lang=\"en\"><p lang=\"en\" dir=\"ltr\">Cristiano Ronaldo singing along to the Champions League theme like a national anthem is too much. <a href=\"https://t.co/DgZYzsKWZ9\">pic.twitter.com/DgZYzsKWZ9</a></p>— k.a. (@TheKACorp) <a href=\"https://twitter.com/TheKACorp/status/920573641061933056?ref_src=twsrc%5Etfw\">October 18, 2017</a></blockquote><script async src=\"//platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>", | ||
"expected": [{ | ||
"content_item_id": "920573641061933056", | ||
"order_index": 0, | ||
"type": "tweet" | ||
}] | ||
} | ||
] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
67363
1336