New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2 to 2.0.0

31

index.js

@@ -75,2 +75,3 @@ const BASE_URL = 'http://mrbaro-youtube-api.glitch.me';

.then(res => res.json());
if (playlist.error) err = new Error(`BaroTube: ${playlist.error}`);

@@ -93,34 +94,4 @@ return callback(err, playlist);

// eslint-disable-next-line no-dupe-class-members
async getSpotify(value, callback) {
let videos, err;
if (callback) {
videos = await fetch(`${BASE_URL}/spotify`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
v: value
})
})
.then(res => res.json());
if (videos.error) err = new Error(`BaroTube: ${videos.error}`);
return callback(err, videos[0]);
} else {
videos = await fetch(`${BASE_URL}/spotify`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
v: value
})
})
.then(res => res.json());
if (videos.error) throw new Error(`BaroTube: ${videos.error}`);
return videos[0];
}
}
}
module.exports = BaroTube;

2

package.json
{
"name": "barotube",
"version": "0.0.2",
"version": "2.0.0",
"main": "index.js",

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

@@ -28,27 +28,27 @@ # barotube

> {
> title: '',
> videoId: '',
> url: '',
> duration: '',
> durationMs: 0,
> views: 0,
> author: {
> name: '',
> url: ''
> },
> thumbnail: ''
> },
> title: '',
> videoId: '',
> url: '',
> duration: '',
> durationMs: 0,
> views: 0,
> author: {
> name: '',
> url: ''
> },
> thumbnail: ''
> },
> {
> title: '',
> videoId: '',
> url: '',
> duration: '',
> durationMs: 0,
> views: 0,
> author: {
> name: '',
> url: ''
> },
> thumbnail: ''
> },
> title: '',
> videoId: '',
> url: '',
> duration: '',
> durationMs: 0,
> views: 0,
> author: {
> name: '',
> url: ''
> },
> thumbnail: ''
> },
> and 8 more...

@@ -70,11 +70,11 @@ >]

> videoId: '',
> url: '',
> duration: '',
> durationMs: 0,
> views: 0,
> author: {
> name: '',
> url: ''
> },
> thumbnail: ''
> url: '',
> duration: '',
> durationMs: 0,
> views: 0,
> author: {
> name: '',
> url: ''
> },
> thumbnail: ''
>}

@@ -93,33 +93,33 @@ >```

>[
> {
> id: '',
> url: '',
> title: '',
> songs_size: '',
> views: 0,
> last_updated: '',
> author: {
> id: '',
> name: '',
> avatar: '',
> url: ''
> }
> }
> songs: [
> {
> title: '',
> videoId: '',
> url: '',
> duration: '',
> durationMs: 0,
> views: 0,
> author: {
> name: '',
> url: ''
> },
> thumbnail: ''
> {
> id: '',
> url: '',
> title: '',
> songs_size: '',
> views: 0,
> last_updated: '',
> author: {
> id: '',
> name: '',
> avatar: '',
> url: ''
> }
> }
> songs: [
> {
> title: '',
> videoId: '',
> url: '',
> duration: '',
> durationMs: 0,
> views: 0,
> author: {
> name: '',
> url: ''
> },
> thumbnail: ''
> },
> and more...
> ]
> ]
>]
>```
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