Socket
Socket
Sign inDemoInstall

static-tweets

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

static-tweets - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

4

build/index.js

@@ -124,2 +124,3 @@ var GithubSlugger = require('github-slugger');

meta.ctaType = profileText.length ? 'profile' : 'conversation';
const tweetUrl = `https://twitter.com/${meta.username}/status/${meta.id}`;
if (conversationText.length) {

@@ -173,2 +174,3 @@ // Get the formatted count and skip the rest

'data-type': 'media-image',
'data-url': tweetUrl,
src: `${url}?format=${format}`,

@@ -1044,3 +1046,3 @@ height,

githubSchema.attributes.blockquote = ['dataId'];
githubSchema.attributes.img = ['dataType', 'src', 'height', 'width'];
githubSchema.attributes.img = ['dataType', 'src', 'height', 'width', 'dataUrl'];
githubSchema.attributes.video = ['poster', 'controls', 'preload', 'playsInline', 'autoPlay', 'muted', 'loop'];

@@ -1047,0 +1049,0 @@ githubSchema.attributes.source = ['src'];

@@ -110,2 +110,3 @@ import GithubSlugger from 'github-slugger';

meta.ctaType = profileText.length ? 'profile' : 'conversation';
const tweetUrl = `https://twitter.com/${meta.username}/status/${meta.id}`;
if (conversationText.length) {

@@ -159,2 +160,3 @@ // Get the formatted count and skip the rest

'data-type': 'media-image',
'data-url': tweetUrl,
src: `${url}?format=${format}`,

@@ -1030,3 +1032,3 @@ height,

githubSchema.attributes.blockquote = ['dataId'];
githubSchema.attributes.img = ['dataType', 'src', 'height', 'width'];
githubSchema.attributes.img = ['dataType', 'src', 'height', 'width', 'dataUrl'];
githubSchema.attributes.video = ['poster', 'controls', 'preload', 'playsInline', 'autoPlay', 'muted', 'loop'];

@@ -1033,0 +1035,0 @@ githubSchema.attributes.source = ['src'];

{
"name": "static-tweets",
"version": "1.0.0",
"version": "2.0.0",
"description": "Utilities for fetching and manipulating tweet ASTs.",

@@ -38,3 +38,3 @@ "repository": "transitive-bullshit/react-static-tweets",

},
"gitHead": "775860e1058149875d8f6dd0a372e8ad96cf3724"
"gitHead": "d9bfb2f557a2aa07cb4c9847f4021cf2951e9c28"
}

@@ -13,3 +13,3 @@ import { defaultSchema, Schema } from 'hast-util-sanitize'

githubSchema.attributes.blockquote = ['dataId']
githubSchema.attributes.img = ['dataType', 'src', 'height', 'width']
githubSchema.attributes.img = ['dataType', 'src', 'height', 'width', 'dataUrl']
githubSchema.attributes.video = [

@@ -16,0 +16,0 @@ 'poster',

@@ -52,2 +52,3 @@ import cheerio from 'cheerio'

meta.ctaType = profileText.length ? 'profile' : 'conversation'
const tweetUrl = `https://twitter.com/${meta.username}/status/${meta.id}`

@@ -115,2 +116,3 @@ if (conversationText.length) {

'data-type': 'media-image',
'data-url': tweetUrl,
src: `${url}?format=${format}`,

@@ -117,0 +119,0 @@ height,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc