soundcloud.ts
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -65,2 +65,4 @@ "use strict"; | ||
}; | ||
if (songUrl.includes("m.soundcloud.com")) | ||
songUrl = songUrl.replace("m.soundcloud.com", "soundcloud.com"); | ||
return [4 /*yield*/, axios_1["default"].get(songUrl, { headers: headers }) | ||
@@ -67,0 +69,0 @@ // const match = html.data.match(/(?<="transcodings":\[{"url":")(.*?)(?=")/)?.[0] |
@@ -24,2 +24,3 @@ import axios from "axios" | ||
} | ||
if (songUrl.includes("m.soundcloud.com")) songUrl = songUrl.replace("m.soundcloud.com", "soundcloud.com") | ||
const html = await axios.get(songUrl, {headers}) | ||
@@ -26,0 +27,0 @@ // const match = html.data.match(/(?<="transcodings":\[{"url":")(.*?)(?=")/)?.[0] |
{ | ||
"name": "soundcloud.ts", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Wrapper for the Soundcloud API with typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/soundcloud.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237474
5205