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

barotube

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barotube - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

51

index.js

@@ -5,10 +5,6 @@ const BASE_URL = 'http://mrbaro-youtube-api.glitch.me';

class BaroTube {
constructor(key) {
this.key = key;
}
async searchVideos(value, callback) {
let videos, ip, err;
let videos, err;
if (callback) {
ip = await fetch('https://api.ipify.org/?format=json&callback=getIP').then(res => res.json());
videos = await fetch(`${BASE_URL}/videos`, {

@@ -18,5 +14,3 @@ method: 'POST',

body: JSON.stringify({
v: value,
key: this.key,
ip: ip.ip
v: value
})

@@ -29,3 +23,2 @@ })

} else {
ip = await fetch('https://api.ipify.org/?format=json&callback=getIP').then(res => res.json());
videos = await fetch(`${BASE_URL}/videos`, {

@@ -35,5 +28,3 @@ method: 'POST',

body: JSON.stringify({
v: value,
key: this.key,
ip: ip.ip
v: value
})

@@ -49,5 +40,4 @@ })

async getVideoInfo(value, callback) {
let videos, ip, err;
let videos, err;
if (callback) {
ip = await fetch('https://api.ipify.org/?format=json&callback=getIP').then(res => res.json());
videos = await fetch(`${BASE_URL}/videos`, {

@@ -57,5 +47,3 @@ method: 'POST',

body: JSON.stringify({
v: value,
key: this.key,
ip: ip.ip
v: value
})

@@ -68,3 +56,2 @@ })

} else {
ip = await fetch('https://api.ipify.org/?format=json&callback=getIP').then(res => res.json());
videos = await fetch(`${BASE_URL}/videos`, {

@@ -74,5 +61,3 @@ method: 'POST',

body: JSON.stringify({
v: value,
key: this.key,
ip: ip.ip
v: value
})

@@ -88,5 +73,4 @@ })

async getPlaylist(value, callback) {
let ip, playlist, err;
let playlist, err;
if (callback) {
ip = await fetch('https://api.ipify.org/?format=json&callback=getIP').then(res => res.json());
playlist = await fetch(`${BASE_URL}/playlist`, {

@@ -96,5 +80,3 @@ method: 'POST',

body: JSON.stringify({
v: value,
key: this.key,
ip: ip.ip
v: value
})

@@ -106,3 +88,2 @@ })

} else {
ip = await fetch('https://api.ipify.org/?format=json&callback=getIP').then(res => res.json());
playlist = await fetch(`${BASE_URL}/playlist`, {

@@ -112,5 +93,3 @@ method: 'POST',

body: JSON.stringify({
v: value,
key: this.key,
ip: ip.ip
v: value
})

@@ -127,5 +106,4 @@ })

async getSpotify(value, callback) {
let videos, ip, err;
let videos, err;
if (callback) {
ip = await fetch('https://api.ipify.org/?format=json&callback=getIP').then(res => res.json());
videos = await fetch(`${BASE_URL}/spotify`, {

@@ -135,5 +113,3 @@ method: 'POST',

body: JSON.stringify({
v: value,
key: this.key,
ip: ip.ip
v: value
})

@@ -146,3 +122,2 @@ })

} else {
ip = await fetch('https://api.ipify.org/?format=json&callback=getIP').then(res => res.json());
videos = await fetch(`${BASE_URL}/spotify`, {

@@ -152,5 +127,3 @@ method: 'POST',

body: JSON.stringify({
v: value,
key: this.key,
ip: ip.ip
v: value
})

@@ -157,0 +130,0 @@ })

{
"name": "barotube",
"version": "0.0.1",
"version": "0.0.2",
"main": "index.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -11,10 +11,6 @@ # barotube

## **Get free KEY**
> <https://discord.gg/PE2ERaA>
## **Usage**
```js
const Barotube = require('barotube');
const barotube = new Barotube('KEY');
const barotube = new Barotube();
```

@@ -21,0 +17,0 @@

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