Socket
Socket
Sign inDemoInstall

static-tweets

Package Overview
Dependencies
114
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.6 to 0.2.7

2

build/cjs/fetchTweetAst.d.ts

@@ -1,1 +0,1 @@

export declare function fetchTweetAst(tweetId: any): any;
export declare function fetchTweetAst(tweetId: string): Promise<any>;

@@ -71,3 +71,3 @@ "use strict";

if (!tweet)
return [2 /*return*/];
return [2 /*return*/, null];
context = new Context();

@@ -74,0 +74,0 @@ return [4 /*yield*/, getTweetHtml_1["default"](tweet, context)];

@@ -1,1 +0,1 @@

export default function getTweetHtml(tweet: any, context: any): any;
export default function getTweetHtml(tweet: any, context: any): Promise<string>;

@@ -1,1 +0,1 @@

export declare function fetchTweetAst(tweetId: any): any;
export declare function fetchTweetAst(tweetId: string): Promise<any>;

@@ -65,3 +65,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

if (!tweet)
return [2 /*return*/];
return [2 /*return*/, null];
context = new Context();

@@ -68,0 +68,0 @@ return [4 /*yield*/, getTweetHtml(tweet, context)];

@@ -1,1 +0,1 @@

export default function getTweetHtml(tweet: any, context: any): any;
export default function getTweetHtml(tweet: any, context: any): Promise<string>;
{
"name": "static-tweets",
"version": "0.2.6",
"version": "0.2.7",
"description": "Utilities for fetching and manipulating tweet ASTs.",

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

},
"gitHead": "a68b2ac7486fb09c624a6cdf898942963d0da5ef"
"gitHead": "aa07355f5f52a9b0cd2c0814c9fb16479cef7a6b"
}

@@ -20,7 +20,7 @@ import GithubSlugger from 'github-slugger'

export async function fetchTweetAst(tweetId) {
export async function fetchTweetAst(tweetId: string): Promise<any> {
const tweetHtml = await fetchTweetHtml(tweetId)
const tweet = tweetHtml && getTweetData(tweetHtml)
if (!tweet) return
if (!tweet) return null

@@ -27,0 +27,0 @@ const context = new Context()

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc