@ctrl/qbittorrent 9.6.0 → 9.7.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/README.md +2 -2
- package/dist/src/qbittorrent.d.ts +2 -2
- package/package.json +38 -22
package/README.md
CHANGED
@@ -28,7 +28,7 @@ async function main() {
|
|
28
28
|
### API
|
29
29
|
|
30
30
|
Docs: https://qbittorrent.vercel.app
|
31
|
-
qBittorrent Api Docs: https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)
|
31
|
+
qBittorrent Api Docs: https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)
|
32
32
|
|
33
33
|
### Normalized API
|
34
34
|
|
@@ -103,7 +103,7 @@ console.log(result);
|
|
103
103
|
If you're shutting down the server often (serverless?) you can export the state
|
104
104
|
|
105
105
|
```ts
|
106
|
-
const state = client.exportState()
|
106
|
+
const state = client.exportState();
|
107
107
|
const client = QBittorrent.createFromState(config, state);
|
108
108
|
```
|
109
109
|
|
@@ -204,8 +204,8 @@ export declare class QBittorrent implements TorrentClient {
|
|
204
204
|
* {@link https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#reannounce-torrents}
|
205
205
|
*/
|
206
206
|
reannounceTorrent(hashes: string | string[] | 'all'): Promise<boolean>;
|
207
|
-
addTorrent(torrent: string | Uint8Array
|
208
|
-
normalizedAddTorrent(torrent: string | Uint8Array
|
207
|
+
addTorrent(torrent: string | Uint8Array<ArrayBuffer>, options?: Partial<AddTorrentOptions>): Promise<boolean>;
|
208
|
+
normalizedAddTorrent(torrent: string | Uint8Array<ArrayBuffer>, options?: Partial<NormalizedAddTorrentOptions>): Promise<NormalizedTorrent>;
|
209
209
|
/**
|
210
210
|
* @param hash Hash for desired torrent
|
211
211
|
* @param oldPath id of the file to be renamed
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ctrl/qbittorrent",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.7.0",
|
4
4
|
"description": "TypeScript api wrapper for qbittorrent using got",
|
5
5
|
"author": "Scott Cooper <scttcper@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -22,12 +22,8 @@
|
|
22
22
|
"qbittorrent"
|
23
23
|
],
|
24
24
|
"scripts": {
|
25
|
-
"lint": "
|
26
|
-
"lint:
|
27
|
-
"lint:eslint": "eslint .",
|
28
|
-
"lint:fix": "pnpm run '/^(lint:biome|lint:eslint):fix$/'",
|
29
|
-
"lint:eslint:fix": "eslint . --fix",
|
30
|
-
"lint:biome:fix": "biome check . --write",
|
25
|
+
"lint": "oxlint . && prettier --check . --experimental-cli",
|
26
|
+
"lint:fix": "oxlint . --fix && prettier --write . --log-level=error --experimental-cli",
|
31
27
|
"prepare": "npm run build",
|
32
28
|
"build": "tsc",
|
33
29
|
"build:docs": "typedoc",
|
@@ -37,27 +33,27 @@
|
|
37
33
|
},
|
38
34
|
"dependencies": {
|
39
35
|
"@ctrl/magnet-link": "^4.0.2",
|
40
|
-
"@ctrl/shared-torrent": "^6.
|
36
|
+
"@ctrl/shared-torrent": "^6.3.0",
|
41
37
|
"@ctrl/torrent-file": "^4.1.0",
|
42
38
|
"cookie": "^1.0.2",
|
43
|
-
"node-fetch-native": "^1.6.
|
39
|
+
"node-fetch-native": "^1.6.7",
|
44
40
|
"ofetch": "^1.4.1",
|
45
|
-
"type-fest": "^4.
|
41
|
+
"type-fest": "^4.41.0",
|
46
42
|
"ufo": "^1.6.1",
|
47
|
-
"uint8array-extras": "^1.
|
43
|
+
"uint8array-extras": "^1.5.0"
|
48
44
|
},
|
49
45
|
"devDependencies": {
|
50
|
-
"@
|
51
|
-
"@
|
52
|
-
"@
|
53
|
-
"@
|
54
|
-
"@
|
55
|
-
"
|
56
|
-
"eslint": "^9.25.0",
|
46
|
+
"@ctrl/oxlint-config": "1.2.3",
|
47
|
+
"@sindresorhus/tsconfig": "8.0.1",
|
48
|
+
"@trivago/prettier-plugin-sort-imports": "5.2.2",
|
49
|
+
"@types/node": "24.3.0",
|
50
|
+
"@vitest/coverage-v8": "3.2.4",
|
51
|
+
"oxlint": "1.14.0",
|
57
52
|
"p-wait-for": "5.0.2",
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
53
|
+
"prettier": "3.6.2",
|
54
|
+
"typedoc": "0.28.11",
|
55
|
+
"typescript": "5.9.2",
|
56
|
+
"vitest": "3.2.4"
|
61
57
|
},
|
62
58
|
"release": {
|
63
59
|
"branches": [
|
@@ -67,5 +63,25 @@
|
|
67
63
|
"engines": {
|
68
64
|
"node": ">=18"
|
69
65
|
},
|
70
|
-
"packageManager": "pnpm@10.
|
66
|
+
"packageManager": "pnpm@10.15.0",
|
67
|
+
"prettier": {
|
68
|
+
"singleQuote": true,
|
69
|
+
"trailingComma": "all",
|
70
|
+
"arrowParens": "avoid",
|
71
|
+
"semi": true,
|
72
|
+
"printWidth": 100,
|
73
|
+
"plugins": [
|
74
|
+
"@trivago/prettier-plugin-sort-imports"
|
75
|
+
],
|
76
|
+
"importOrder": [
|
77
|
+
"^node:.*$",
|
78
|
+
"<THIRD_PARTY_MODULES>",
|
79
|
+
"^(@ctrl)(/.*|$)",
|
80
|
+
"^\\.\\./(?!.*\\.css$)",
|
81
|
+
"^\\./(?!.*\\.css$)(?=.*/)",
|
82
|
+
"^\\./(?!.*\\.css$)(?!.*/)"
|
83
|
+
],
|
84
|
+
"importOrderSeparation": true,
|
85
|
+
"importOrderSortSpecifiers": false
|
86
|
+
}
|
71
87
|
}
|