New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-youtube-music

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-youtube-music - npm Package Compare versions

Comparing version 0.2.1 to 0.2.3

dist/examples/getSuggestions.d.ts

2

package.json
{
"name": "node-youtube-music",
"description": "Unofficial YouTube Music API for Node.js",
"version": "0.2.1",
"version": "0.2.3",
"main": "dist/src/index.js",

@@ -6,0 +6,0 @@ "types": "dist/src/index.d.ts",

@@ -42,3 +42,2 @@ import got from 'got';

console.log(contents[0]);
const results: MusicVideo[] = [];

@@ -45,0 +44,0 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any

import ytm from '../src';
test('Should always return a list of suggestions', async () => {
const ids = ['RyUK5vbhq9E', 'B2mmDEv0OEk', 'EfgAd6iHApE'];
const results = await Promise.all(ids.map((id) => ytm.getSuggestions(id)));
results.forEach((result) => {
expect(result.length).toBeGreaterThan(1);
});
const result = await ytm.getSuggestions('ronQgBo0ZCY');
expect(result.length).toBeGreaterThan(1);
});
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