@ctrl/qbittorrent 8.0.0 → 8.2.0

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.
@@ -21,6 +21,10 @@ export declare class QBittorrent implements TorrentClient {
21
21
  */
22
22
  getAppVersion(): Promise<string>;
23
23
  getApiVersion(): Promise<string>;
24
+ /**
25
+ * Get default save path
26
+ */
27
+ getDefaultSavePath(): Promise<string>;
24
28
  /**
25
29
  * {@link https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#get-build-info}
26
30
  */
@@ -44,6 +44,13 @@ export class QBittorrent {
44
44
  const res = await this.request('/app/webapiVersion', 'GET', undefined, undefined, undefined, false);
45
45
  return res;
46
46
  }
47
+ /**
48
+ * Get default save path
49
+ */
50
+ async getDefaultSavePath() {
51
+ const res = await this.request('/app/defaultSavePath', 'GET', undefined, undefined, undefined, false);
52
+ return res;
53
+ }
47
54
  /**
48
55
  * {@link https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#get-build-info}
49
56
  */
@@ -527,7 +534,7 @@ export class QBittorrent {
527
534
  body: new URLSearchParams({
528
535
  username: this.config.username ?? '',
529
536
  password: this.config.password ?? '',
530
- }),
537
+ }).toString(),
531
538
  redirect: 'manual',
532
539
  retry: false,
533
540
  timeout: this.config.timeout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl/qbittorrent",
3
- "version": "8.0.0",
3
+ "version": "8.2.0",
4
4
  "description": "TypeScript api wrapper for qbittorrent using got",
5
5
  "author": "Scott Cooper <scttcper@gmail.com>",
6
6
  "license": "MIT",
@@ -24,9 +24,9 @@
24
24
  "scripts": {
25
25
  "lint": "pnpm run '/^(lint:biome|lint:eslint)$/'",
26
26
  "lint:biome": "biome check .",
27
- "lint:eslint": "eslint --ext .ts,.tsx .",
27
+ "lint:eslint": "eslint .",
28
28
  "lint:fix": "pnpm run '/^(lint:biome|lint:eslint):fix$/'",
29
- "lint:eslint:fix": "eslint --ext .ts,.tsx . --fix",
29
+ "lint:eslint:fix": "eslint . --fix",
30
30
  "lint:biome:fix": "biome check . --apply",
31
31
  "prepare": "npm run build",
32
32
  "build": "tsc",
@@ -36,26 +36,27 @@
36
36
  "test:ci": "vitest run --coverage --reporter=default --reporter=junit --outputFile=./junit.xml"
37
37
  },
38
38
  "dependencies": {
39
- "@ctrl/magnet-link": "^4.0.1",
39
+ "@ctrl/magnet-link": "^4.0.2",
40
40
  "@ctrl/shared-torrent": "^6.0.0",
41
41
  "@ctrl/torrent-file": "^4.0.0",
42
42
  "cookie": "^0.6.0",
43
- "node-fetch-native": "^1.6.2",
44
- "ofetch": "^1.3.3",
45
- "ufo": "^1.4.0",
46
- "uint8array-extras": "^1.1.0"
43
+ "node-fetch-native": "^1.6.4",
44
+ "ofetch": "^1.3.4",
45
+ "ufo": "^1.5.4",
46
+ "uint8array-extras": "^1.4.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@biomejs/biome": "1.6.0",
50
- "@ctrl/eslint-config-biome": "2.1.1",
51
- "@sindresorhus/tsconfig": "5.0.0",
49
+ "@biomejs/biome": "1.8.3",
50
+ "@ctrl/eslint-config-biome": "3.1.3",
51
+ "@eslint/compat": "^1.1.1",
52
+ "@sindresorhus/tsconfig": "6.0.0",
52
53
  "@types/cookie": "0.6.0",
53
- "@types/node": "20.11.25",
54
- "@vitest/coverage-v8": "1.3.1",
54
+ "@types/node": "20.14.11",
55
+ "@vitest/coverage-v8": "2.0.3",
55
56
  "p-wait-for": "5.0.2",
56
- "typedoc": "0.25.12",
57
- "typescript": "5.4.2",
58
- "vitest": "1.3.1"
57
+ "typedoc": "0.26.4",
58
+ "typescript": "5.5.3",
59
+ "vitest": "2.0.3"
59
60
  },
60
61
  "release": {
61
62
  "branches": [