@jellyfin/sdk 0.0.0-unstable.202510280502 → 0.0.0-unstable.202510281331
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/lib/api.js +6 -4
- package/package.json +1 -1
package/lib/api.js
CHANGED
|
@@ -19,7 +19,11 @@ class Api {
|
|
|
19
19
|
get configuration() {
|
|
20
20
|
return new Configuration({
|
|
21
21
|
basePath: this.basePath,
|
|
22
|
-
|
|
22
|
+
baseOptions: {
|
|
23
|
+
headers: {
|
|
24
|
+
[AUTHORIZATION_HEADER]: this.authorizationHeader
|
|
25
|
+
}
|
|
26
|
+
}
|
|
23
27
|
});
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
@@ -30,9 +34,7 @@ class Api {
|
|
|
30
34
|
authenticateUserByName(username, password) {
|
|
31
35
|
return getUserApi(this).authenticateUserByName(
|
|
32
36
|
// The axios client does some strange wrapping of the param object
|
|
33
|
-
{ authenticateUserByName: { Username: username, Pw: password } }
|
|
34
|
-
// The authorization header is required for the request to succeed
|
|
35
|
-
{ headers: { [AUTHORIZATION_HEADER]: this.authorizationHeader } }).then(response => {
|
|
37
|
+
{ authenticateUserByName: { Username: username, Pw: password } }).then(response => {
|
|
36
38
|
// Update the current token and configuration object
|
|
37
39
|
this.accessToken = response.data.AccessToken || '';
|
|
38
40
|
return response;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jellyfin/sdk",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.202510281331+commit.2d43c36d9b6a9c9fc2dfbeb29a247664f58d1402",
|
|
4
4
|
"description": "A TypeScript SDK for Jellyfin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jellyfin"
|