Socket
Socket
Sign inDemoInstall

genius-lyrics-api

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genius-lyrics-api - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

2

lib/searchSong.js

@@ -7,3 +7,3 @@ const axios = require('axios');

/**
* @param {{apiKey: string, title: string, artist: string, optimizeQuery: boolean}} options
* @param {{apiKey: string, title: string, artist: string, optimizeQuery: boolean, authHeader: boolean}} options
*/

@@ -10,0 +10,0 @@ module.exports = async function (options) {

const checkOptions = (options) => {
let { apiKey, title, artist } = options;
switch ('undefined') {
case typeof apiKey:
throw '"apiKey" property is missing from options';
case typeof title:
throw '"title" property is missing from options';
case typeof artist:
throw '"artist" property is missing from options';
default:
break;
if (!apiKey) {
throw '"apiKey" property is missing from options';
} else if (!title) {
throw '"title" property is missing from options';
} else if (!artist) {
throw '"artist" property is missing from options';
}

@@ -13,0 +10,0 @@ };

{
"name": "genius-lyrics-api",
"version": "3.1.0",
"version": "3.1.1",
"main": "index.js",

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

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