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

@drippy-music/soundcloud-api

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drippy-music/soundcloud-api - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

index.d.ts

@@ -34,3 +34,3 @@ declare class SoundCloud {

*/
getTrackTranscodings(track: object): Promise<Array<string>>;
getTrackTranscodings(track: object): Promise<string | undefined>;

@@ -37,0 +37,0 @@ }

@@ -47,7 +47,4 @@ const axios = require('axios').default;

return [res.data['url']];
return res.data['url'];
} else if (transcodings.some(e => e.format.protocol == 'hls' && e.format.mime_type == 'audio/mpeg')) {
const chunks = [];
const regex = /(^(?!#).+)/gm;
const hls = transcodings.find(e => e.format.protocol == 'hls' && e.format.mime_type == 'audio/mpeg');

@@ -60,9 +57,7 @@ const res = await axios.get(hls['url'], {

const m3u = await axios.get(res.data['url']);
for (let match; (match = regex.exec(m3u.data));) chunks.push(match[0]);
return chunks;
return /(.+)\n#EXT-X-ENDLIST/.exec(m3u.data)[1]
.replace(/\d+?\//, '0/');
}
return [];
}
}
{
"name": "@drippy-music/soundcloud-api",
"version": "1.0.4",
"version": "1.0.5",
"description": "SoundCloud RESTful API for Node.JS",

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

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