@ctrl/qbittorrent 7.0.0 → 7.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.
- package/README.md +1 -1
- package/dist/src/qbittorrent.js +3 -2
- package/package.json +10 -10
package/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# qBittorrent [](https://www.npmjs.com/package/@ctrl/qbittorrent) [](https://codecov.io/gh/scttcper/qbittorrent)
|
2
2
|
|
3
|
-
> TypeScript api wrapper for [qBittorrent](https://www.qbittorrent.org/) using [
|
3
|
+
> TypeScript api wrapper for [qBittorrent](https://www.qbittorrent.org/) using [ofetch](https://github.com/unjs/ofetch)
|
4
4
|
|
5
5
|
### Install
|
6
6
|
|
package/dist/src/qbittorrent.js
CHANGED
@@ -187,10 +187,11 @@ export class QBittorrent {
|
|
187
187
|
* {@link https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#set-torrent-location}
|
188
188
|
*/
|
189
189
|
async setTorrentLocation(hashes, location) {
|
190
|
-
|
190
|
+
const data = {
|
191
191
|
location,
|
192
192
|
hashes: normalizeHashes(hashes),
|
193
|
-
}
|
193
|
+
};
|
194
|
+
await this.request('/torrents/setLocation', 'POST', undefined, objToUrlSearchParams(data));
|
194
195
|
return true;
|
195
196
|
}
|
196
197
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ctrl/qbittorrent",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.0.1",
|
4
4
|
"description": "TypeScript api wrapper for qbittorrent using got",
|
5
5
|
"author": "Scott Cooper <scttcper@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -35,21 +35,21 @@
|
|
35
35
|
"@ctrl/magnet-link": "^3.1.2",
|
36
36
|
"@ctrl/shared-torrent": "^5.0.0",
|
37
37
|
"@ctrl/torrent-file": "^3.0.0",
|
38
|
-
"node-fetch-native": "^1.4.
|
38
|
+
"node-fetch-native": "^1.4.1",
|
39
39
|
"ofetch": "^1.3.3",
|
40
40
|
"tough-cookie": "^4.1.3",
|
41
|
-
"ufo": "^1.3.
|
41
|
+
"ufo": "^1.3.1"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
|
-
"@ctrl/eslint-config": "4.0.
|
45
|
-
"@sindresorhus/tsconfig": "
|
46
|
-
"@types/node": "20.
|
47
|
-
"@types/tough-cookie": "4.0.
|
48
|
-
"@vitest/coverage-v8": "0.34.
|
44
|
+
"@ctrl/eslint-config": "4.0.9",
|
45
|
+
"@sindresorhus/tsconfig": "5.0.0",
|
46
|
+
"@types/node": "20.8.10",
|
47
|
+
"@types/tough-cookie": "4.0.4",
|
48
|
+
"@vitest/coverage-v8": "0.34.6",
|
49
49
|
"p-wait-for": "5.0.2",
|
50
|
-
"typedoc": "0.25.
|
50
|
+
"typedoc": "0.25.3",
|
51
51
|
"typescript": "5.2.2",
|
52
|
-
"vitest": "0.34.
|
52
|
+
"vitest": "0.34.6"
|
53
53
|
},
|
54
54
|
"release": {
|
55
55
|
"branches": [
|