Socket
Socket
Sign inDemoInstall

@alufi/lyrics-api

Package Overview
Dependencies
37
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.10-dev to 1.0.0-dev

2

package.json
{
"name": "@alufi/lyrics-api",
"version": "0.0.10-dev",
"version": "1.0.0-dev",
"description": "Official Lyrics API wrapper of Alufi Bot",

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

@@ -49,3 +49,3 @@ const SearchLyrics = require('lyrics-finder');

if (!yt.data[0].name.toLowerCase().includes(artist.toLowerCase().split(',')[0])) {
if (!yt.data[0].name.toLowerCase().includes(artist.toLowerCase())) {
title = mathString(yt.data[0].name);

@@ -72,6 +72,7 @@ artist = '';

lyrics = await SearchLyrics('', title);
if (!lyrics) reject(new Error("Could not find the lyrics!"));
thumbnails = mathThumb(yt.data[0].thumbnail);
}
if (!lyrics) return reject(new Error('Could not find the lyrics!'));
if (options) {

@@ -100,2 +101,5 @@ return result({

title = title.split('!')[0];
title = title.split(':')[0];
title = title.split('::')[0];
title = title.split('|')[0];
title = title.split('||')[0];

@@ -102,0 +106,0 @@ return title;

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