Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

twitch-api-lite

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twitch-api-lite - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

30

index.js

@@ -26,3 +26,11 @@ const request = require("request");

{
fulfill(JSON.parse(body).data.length !== 0)
let bodyJson = JSON.parse(body);
if(bodyJson !== undefined && bodyJson.data !== undefined && bodyJson.data.length !== 0)
{
fulfill(true)
}
else
{
fulfill(false)
}
})

@@ -59,3 +67,11 @@ }

{
fulfill(JSON.parse(body).data)
let bodyJson = JSON.parse(body);
if(bodyJson !== undefined && bodyJson.data !== undefined)
{
fulfill(bodyJson.data)
}
else
{
fulfill([])
}
})

@@ -92,3 +108,11 @@ }

{
fulfill(JSON.parse(body).data)
let bodyJson = JSON.parse(body);
if(bodyJson !== undefined && bodyJson.data !== undefined)
{
fulfill(bodyJson.data)
}
else
{
fulfill([])
}
})

@@ -95,0 +119,0 @@ }

2

package.json
{
"name": "twitch-api-lite",
"version": "0.0.5",
"version": "0.0.6",
"description": "This package provides small lightweight functions that are to be used with the Twitch API v5",

@@ -5,0 +5,0 @@ "main": "index.js",

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