@ctrl/qbittorrent 8.1.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
|
*/
|
package/dist/src/qbittorrent.js
CHANGED
@@ -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
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ctrl/qbittorrent",
|
3
|
-
"version": "8.
|
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",
|
@@ -42,21 +42,21 @@
|
|
42
42
|
"cookie": "^0.6.0",
|
43
43
|
"node-fetch-native": "^1.6.4",
|
44
44
|
"ofetch": "^1.3.4",
|
45
|
-
"ufo": "^1.5.
|
46
|
-
"uint8array-extras": "^1.
|
45
|
+
"ufo": "^1.5.4",
|
46
|
+
"uint8array-extras": "^1.4.0"
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
49
|
"@biomejs/biome": "1.8.3",
|
50
|
-
"@ctrl/eslint-config-biome": "3.1.
|
51
|
-
"@eslint/compat": "^1.1.
|
50
|
+
"@ctrl/eslint-config-biome": "3.1.3",
|
51
|
+
"@eslint/compat": "^1.1.1",
|
52
52
|
"@sindresorhus/tsconfig": "6.0.0",
|
53
53
|
"@types/cookie": "0.6.0",
|
54
|
-
"@types/node": "20.14.
|
55
|
-
"@vitest/coverage-v8": "
|
54
|
+
"@types/node": "20.14.11",
|
55
|
+
"@vitest/coverage-v8": "2.0.3",
|
56
56
|
"p-wait-for": "5.0.2",
|
57
|
-
"typedoc": "0.26.
|
57
|
+
"typedoc": "0.26.4",
|
58
58
|
"typescript": "5.5.3",
|
59
|
-
"vitest": "
|
59
|
+
"vitest": "2.0.3"
|
60
60
|
},
|
61
61
|
"release": {
|
62
62
|
"branches": [
|