@jellyfin/sdk 0.0.0-unstable.202510280502 → 0.0.0-unstable.202510281351

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.
Files changed (2) hide show
  1. package/lib/api.js +6 -4
  2. package/package.json +2 -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
- apiKey: this.authorizationHeader
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.202510280502+commit.8819167ef83c22cfd09030157638eafecc68a3e7",
3
+ "version": "0.0.0-unstable.202510281351+commit.a3ebf282f67dc89d5d10cf1e66b39bcf27b50114",
4
4
  "description": "A TypeScript SDK for Jellyfin.",
5
5
  "keywords": [
6
6
  "jellyfin"
@@ -30,6 +30,7 @@
30
30
  "@rollup/plugin-typescript": "12.1.4",
31
31
  "@stylistic/eslint-plugin": "2.13.0",
32
32
  "@tsconfig/recommended": "1.0.10",
33
+ "@types/node": "24.9.1",
33
34
  "@typescript-eslint/eslint-plugin": "8.46.2",
34
35
  "@typescript-eslint/parser": "8.46.2",
35
36
  "@vitest/coverage-v8": "3.2.4",