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

ytmusic_api_unofficial

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytmusic_api_unofficial - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

dist/errors/index.js

@@ -10,7 +10,10 @@ "use strict";

function makeAxiosError(error, ...args) {
const msg = (error in errorCodes_1.default) ? Messages_1.default[error] : Messages_1.default[errorCodes_1.default.UnrecognizedError];
const msg = (error in errorCodes_1.default) ? Messages_1.default[error] : null;
if (typeof msg === 'function')
return new Error(msg(...args));
if (!(args === null || args === void 0 ? void 0 : args.length))
return new Error(msg);
if (!(args === null || args === void 0 ? void 0 : args.length)) {
new Error(`An unknown error has occurred: ${error}`);
// @ts-ignore
return new Error(args);
}
args.unshift(msg);

@@ -17,0 +20,0 @@ return new Error(String(...args));

{
"name": "ytmusic_api_unofficial",
"version": "1.0.0",
"version": "1.0.1",
"description": "A simple API to get music from YouTube Music",

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

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