@ctrl/qbittorrent 5.0.0 → 5.1.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.
- package/dist/src/qbittorrent.js +3 -0
- package/dist/src/types.d.ts +9 -0
- package/package.json +10 -10
package/dist/src/qbittorrent.js
CHANGED
@@ -133,6 +133,7 @@ export class QBittorrent {
|
|
133
133
|
const results = {
|
134
134
|
torrents: [],
|
135
135
|
labels: [],
|
136
|
+
raw: listTorrents,
|
136
137
|
};
|
137
138
|
const labels = {};
|
138
139
|
for (const torrent of listTorrents) {
|
@@ -691,6 +692,7 @@ export class QBittorrent {
|
|
691
692
|
isCompleted,
|
692
693
|
progress: torrent.progress,
|
693
694
|
label: torrent.category,
|
695
|
+
tags: torrent.tags.split(', '),
|
694
696
|
dateCompleted: new Date(torrent.completion_on * 1000).toISOString(),
|
695
697
|
savePath: torrent.save_path,
|
696
698
|
uploadSpeed: torrent.upspeed,
|
@@ -705,6 +707,7 @@ export class QBittorrent {
|
|
705
707
|
totalUploaded: torrent.uploaded,
|
706
708
|
totalDownloaded: torrent.downloaded,
|
707
709
|
ratio: torrent.ratio,
|
710
|
+
raw: torrent,
|
708
711
|
};
|
709
712
|
return result;
|
710
713
|
}
|
package/dist/src/types.d.ts
CHANGED
@@ -96,6 +96,7 @@ export interface Torrent {
|
|
96
96
|
* Torrent tracker
|
97
97
|
*/
|
98
98
|
tracker: string;
|
99
|
+
trackers_count: number;
|
99
100
|
/**
|
100
101
|
* Torrent download limit
|
101
102
|
*/
|
@@ -148,6 +149,10 @@ export interface Torrent {
|
|
148
149
|
* Upload seeding time limit
|
149
150
|
*/
|
150
151
|
seeding_time_limit: number;
|
152
|
+
/**
|
153
|
+
* True if super seeding is enabled
|
154
|
+
*/
|
155
|
+
super_seeding: boolean;
|
151
156
|
/**
|
152
157
|
* Indicates the time when the torrent was last seen complete/whole
|
153
158
|
*/
|
@@ -165,6 +170,10 @@ export interface Torrent {
|
|
165
170
|
* Category name
|
166
171
|
*/
|
167
172
|
category: string;
|
173
|
+
/**
|
174
|
+
* Comma-concatenated tag list of the torrent e.g. - "abc, 123"
|
175
|
+
*/
|
176
|
+
tags: string;
|
168
177
|
}
|
169
178
|
export declare type TorrentCategories = Record<string, Category>;
|
170
179
|
interface Category {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ctrl/qbittorrent",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.1.0",
|
4
4
|
"description": "TypeScript api wrapper for qbittorrent using got",
|
5
5
|
"author": "Scott Cooper <scttcper@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -28,28 +28,28 @@
|
|
28
28
|
"build:docs": "typedoc",
|
29
29
|
"test": "vitest run",
|
30
30
|
"test:watch": "vitest",
|
31
|
-
"test:ci": "vitest run --coverage --reporter=junit --outputFile=./junit.xml"
|
31
|
+
"test:ci": "vitest run --coverage --reporter=default --reporter=junit --outputFile=./junit.xml"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
34
|
"@ctrl/magnet-link": "^3.1.1",
|
35
|
-
"@ctrl/shared-torrent": "^4.
|
35
|
+
"@ctrl/shared-torrent": "^4.3.1",
|
36
36
|
"@ctrl/torrent-file": "^2.0.2",
|
37
37
|
"@ctrl/url-join": "^2.0.2",
|
38
38
|
"formdata-node": "^5.0.0",
|
39
|
-
"got": "^12.
|
39
|
+
"got": "^12.5.0",
|
40
40
|
"tough-cookie": "^4.1.2"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@ctrl/eslint-config": "3.
|
43
|
+
"@ctrl/eslint-config": "3.5.0",
|
44
44
|
"@sindresorhus/tsconfig": "3.0.1",
|
45
|
-
"@types/node": "18.7.
|
45
|
+
"@types/node": "18.7.18",
|
46
46
|
"@types/tough-cookie": "4.0.2",
|
47
|
-
"@vitest/coverage-c8": "0.
|
47
|
+
"@vitest/coverage-c8": "0.23.4",
|
48
48
|
"c8": "7.12.0",
|
49
49
|
"p-wait-for": "5.0.0",
|
50
|
-
"typedoc": "0.23.
|
51
|
-
"typescript": "4.8.
|
52
|
-
"vitest": "0.
|
50
|
+
"typedoc": "0.23.15",
|
51
|
+
"typescript": "4.8.3",
|
52
|
+
"vitest": "0.23.4"
|
53
53
|
},
|
54
54
|
"release": {
|
55
55
|
"branches": [
|