New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tweespaces

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tweespaces - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

5

package.json
{
"name": "tweespaces",
"description": "Lookup Twitter spaces by keyword",
"version": "0.0.19",
"version": "0.0.20",
"license": "MIT",

@@ -43,2 +43,3 @@ "bin": {

"cross-env": "^7.0.3",
"crypto-js": "^4.1.1",
"dotenv": "^10.0.0",

@@ -54,2 +55,2 @@ "lodash.merge": "^4.6.2",

}
}
}

0

README.md

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

@@ -7,2 +7,3 @@ require('dotenv').config();

const emoji = require('node-emoji')
const CryptoJS = require("crypto-js");

@@ -28,6 +29,12 @@ const SPACES_URL = 'https://api.twitter.com/2/spaces/search?query=';

const response = await fetch(url, {
method: 'GET',
const decryptWithAES = (stringToDecrypt) => {
const bytes = CryptoJS.AES.decrypt(stringToDecrypt, 'Magpienemo@011210');
const originalText = bytes.toString(CryptoJS.enc.Utf8);
return originalText;
};
const response = await fetch(url, {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + bearerResult.bearer,
'Authorization': 'Bearer ' + decryptWithAES(bearerResult.bearer),
'Content-Type': 'application/json'

@@ -46,4 +53,4 @@ },

} else if (query !== undefined && live) {
return console.log(emoji.get('scream'), ' ', bold('No results found! Try a different query or search for scheduled spaces...'))
} else if(query === undefined) {
return console.log(emoji.get('scream'), ' ', bold('No results found! Try a different query or search for scheduled spaces...'))
} else if (query === undefined) {
return console.log(emoji.get('scream'), ' ', bold('No results found! Try adding a query...'))

@@ -54,3 +61,3 @@ }

const spaceInfo = result.data.map(({
const spaceInfo = result.data.map(({
participant_count,

@@ -69,3 +76,3 @@ scheduled_start,

const creatorInfo = result.includes.users.map(({
const creatorInfo = result.includes.users.map(({
name,

@@ -89,3 +96,3 @@ username,

}
spaces.map(({title, creator, creatorHandle, start, description}) => {
spaces.map(({ title, creator, creatorHandle, start, description }) => {

@@ -92,0 +99,0 @@ console.log(red(bold('-----------------------------------------------------------------------------')));

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