@ctrl/qbittorrent 8.3.0 → 9.0.1
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.
@@ -144,6 +144,7 @@ export declare class QBittorrent implements TorrentClient {
|
|
144
144
|
resumeTorrent(hashes: string | string[] | 'all'): Promise<boolean>;
|
145
145
|
/**
|
146
146
|
* {@link https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#delete-torrents}
|
147
|
+
* @param deleteFiles (default: false) remove files from disk
|
147
148
|
*/
|
148
149
|
removeTorrent(hashes: string | string[] | 'all', deleteFiles?: boolean): Promise<boolean>;
|
149
150
|
/**
|
package/dist/src/qbittorrent.js
CHANGED
@@ -321,8 +321,9 @@ export class QBittorrent {
|
|
321
321
|
}
|
322
322
|
/**
|
323
323
|
* {@link https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#delete-torrents}
|
324
|
+
* @param deleteFiles (default: false) remove files from disk
|
324
325
|
*/
|
325
|
-
async removeTorrent(hashes, deleteFiles =
|
326
|
+
async removeTorrent(hashes, deleteFiles = false) {
|
326
327
|
const data = {
|
327
328
|
hashes: normalizeHashes(hashes),
|
328
329
|
deleteFiles,
|
@@ -398,7 +399,7 @@ export class QBittorrent {
|
|
398
399
|
if (!isUint8Array(torrent)) {
|
399
400
|
torrent = stringToUint8Array(torrent);
|
400
401
|
}
|
401
|
-
torrentHash =
|
402
|
+
torrentHash = hash(torrent);
|
402
403
|
await this.addTorrent(torrent, torrentOptions);
|
403
404
|
}
|
404
405
|
return this.getTorrent(torrentHash);
|
package/dist/src/types.d.ts
CHANGED
@@ -538,6 +538,10 @@ export interface AddTorrentOptions {
|
|
538
538
|
* Category for the torrent
|
539
539
|
*/
|
540
540
|
category: string;
|
541
|
+
/**
|
542
|
+
* Tags for the torrent, split by ','
|
543
|
+
*/
|
544
|
+
tags: string;
|
541
545
|
/**
|
542
546
|
* Skip hash checking. Possible values are true, false (default)
|
543
547
|
*/
|
@@ -591,6 +595,10 @@ export interface AddMagnetOptions {
|
|
591
595
|
* Category for the torrent
|
592
596
|
*/
|
593
597
|
category: string;
|
598
|
+
/**
|
599
|
+
* Tags for the torrent, split by ','
|
600
|
+
*/
|
601
|
+
tags: string;
|
594
602
|
/**
|
595
603
|
* Skip hash checking. Possible values are true, false (default)
|
596
604
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ctrl/qbittorrent",
|
3
|
-
"version": "
|
3
|
+
"version": "9.0.1",
|
4
4
|
"description": "TypeScript api wrapper for qbittorrent using got",
|
5
5
|
"author": "Scott Cooper <scttcper@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"dependencies": {
|
39
39
|
"@ctrl/magnet-link": "^4.0.2",
|
40
40
|
"@ctrl/shared-torrent": "^6.0.0",
|
41
|
-
"@ctrl/torrent-file": "^4.
|
41
|
+
"@ctrl/torrent-file": "^4.1.0",
|
42
42
|
"cookie": "^0.6.0",
|
43
43
|
"node-fetch-native": "^1.6.4",
|
44
44
|
"ofetch": "^1.3.4",
|
@@ -47,15 +47,15 @@
|
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
49
|
"@biomejs/biome": "1.8.3",
|
50
|
-
"@ctrl/eslint-config-biome": "4.1
|
50
|
+
"@ctrl/eslint-config-biome": "4.2.1",
|
51
51
|
"@eslint/compat": "^1.1.1",
|
52
52
|
"@sindresorhus/tsconfig": "6.0.0",
|
53
53
|
"@types/cookie": "0.6.0",
|
54
|
-
"@types/node": "22.5.
|
54
|
+
"@types/node": "22.5.4",
|
55
55
|
"@vitest/coverage-v8": "2.0.5",
|
56
56
|
"p-wait-for": "5.0.2",
|
57
|
-
"typedoc": "0.26.
|
58
|
-
"typescript": "5.
|
57
|
+
"typedoc": "0.26.7",
|
58
|
+
"typescript": "5.6.2",
|
59
59
|
"vitest": "2.0.5"
|
60
60
|
},
|
61
61
|
"release": {
|