@tidal-music/api 0.43.0 → 0.45.1
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/allAPI.generated.d.ts +5013 -4490
- package/dist/index.js +3 -2
- package/package.json +10 -9
package/dist/index.js
CHANGED
|
@@ -457,8 +457,9 @@ async function T(e) {
|
|
|
457
457
|
//#region src/api.ts
|
|
458
458
|
function E(e, t = "https://openapi.tidal.com/v2/", n) {
|
|
459
459
|
let i = { async onRequest({ request: t }) {
|
|
460
|
-
let n = await e.getCredentials();
|
|
461
|
-
|
|
460
|
+
let { token: n } = await e.getCredentials();
|
|
461
|
+
if (!n) throw Error("No access token available from the credentials provider");
|
|
462
|
+
return t.headers.set("Authorization", `Bearer ${n}`), (t.method === "POST" || t.method === "PATCH" || t.method === "DELETE") && t.headers.set("Content-Type", "application/vnd.api+json"), t;
|
|
462
463
|
} }, a = r({
|
|
463
464
|
baseUrl: t,
|
|
464
465
|
fetch: _(n),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tidal-music/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -21,15 +21,16 @@
|
|
|
21
21
|
"openapi-fetch": "0.17.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
24
|
+
"@tidal-music/auth": "^1.6.2",
|
|
25
|
+
"@tidal-music/common": "^0.2.1",
|
|
26
|
+
"@vitest/coverage-v8": "5.0.0",
|
|
27
|
+
"@vitest/ui": "5.0.0",
|
|
26
28
|
"openapi-typescript": "7.13.0",
|
|
27
|
-
"typescript": "
|
|
28
|
-
"
|
|
29
|
-
"vite
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"@tidal-music/common": "^0.2.1"
|
|
29
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
30
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
31
|
+
"vite": "8.3.0",
|
|
32
|
+
"vite-plugin-dts": "5.1.0",
|
|
33
|
+
"vitest": "5.0.0"
|
|
33
34
|
},
|
|
34
35
|
"scripts": {
|
|
35
36
|
"build": "vite build",
|