tunzo-player 1.0.33 → 1.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core/api-calles.js
CHANGED
|
@@ -48,7 +48,7 @@ class TunzoPlayerAPI {
|
|
|
48
48
|
return __awaiter(this, arguments, void 0, function* (id, limit = 100) {
|
|
49
49
|
var _a;
|
|
50
50
|
try {
|
|
51
|
-
const response = yield fetch(
|
|
51
|
+
const response = yield fetch(`https://tunzo-api.vercel.app/api/songs/${id}/suggestions?limit=${limit}`);
|
|
52
52
|
if (!response.ok) {
|
|
53
53
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
54
54
|
}
|
package/package.json
CHANGED
package/src/core/api-calles.ts
CHANGED
|
@@ -36,7 +36,7 @@ export class TunzoPlayerAPI {
|
|
|
36
36
|
async suggesstedSongs(id: string, limit: number = 100): Promise<any[]> {
|
|
37
37
|
try {
|
|
38
38
|
const response = await fetch(
|
|
39
|
-
|
|
39
|
+
`https://tunzo-api.vercel.app/api/songs/${id}/suggestions?limit=${limit}`
|
|
40
40
|
);
|
|
41
41
|
|
|
42
42
|
if (!response.ok) {
|