@ctrl/qbittorrent 9.5.0 → 9.5.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.
@@ -79,7 +79,7 @@ export declare class QBittorrent implements TorrentClient {
79
79
  * @param category Get torrents with the given category (empty string means "without category"; no "category" parameter means "any category")
80
80
  * @returns list of torrents
81
81
  */
82
- listTorrents({ hashes, torrent_hashes, filter, status_filter, category, sort, offset, reverse, tag, limit, Private, include_trackers, }?: {
82
+ listTorrents({ hashes, torrent_hashes, filter, status_filter, category, sort, offset, reverse, tag, limit, isPrivate, include_trackers, }?: {
83
83
  hashes?: string | string[];
84
84
  torrent_hashes?: string | string[];
85
85
  filter?: TorrentFilters;
@@ -90,7 +90,11 @@ export declare class QBittorrent implements TorrentClient {
90
90
  offset?: number;
91
91
  limit?: number;
92
92
  reverse?: boolean;
93
- Private?: boolean;
93
+ /**
94
+ * Maps to `private` query parameter.
95
+ * Renamed to avoid conflict with `private` keyword.
96
+ */
97
+ isPrivate?: boolean;
94
98
  include_trackers?: boolean;
95
99
  }): Promise<Torrent[]>;
96
100
  getAllData(): Promise<AllClientData>;
@@ -139,7 +139,7 @@ export class QBittorrent {
139
139
  * @param category Get torrents with the given category (empty string means "without category"; no "category" parameter means "any category")
140
140
  * @returns list of torrents
141
141
  */
142
- async listTorrents({ hashes, torrent_hashes, filter, status_filter, category, sort, offset, reverse, tag, limit, Private, include_trackers, } = {}) {
142
+ async listTorrents({ hashes, torrent_hashes, filter, status_filter, category, sort, offset, reverse, tag, limit, isPrivate, include_trackers, } = {}) {
143
143
  const params = {};
144
144
  if (hashes) {
145
145
  params.hashes = normalizeHashes(hashes);
@@ -171,8 +171,8 @@ export class QBittorrent {
171
171
  if (reverse) {
172
172
  params.reverse = JSON.stringify(reverse);
173
173
  }
174
- if (Private) {
175
- params.Private = JSON.stringify(Private);
174
+ if (isPrivate) {
175
+ params.private = JSON.stringify(isPrivate);
176
176
  }
177
177
  if (include_trackers) {
178
178
  params.include_trackers = JSON.stringify(include_trackers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl/qbittorrent",
3
- "version": "9.5.0",
3
+ "version": "9.5.1",
4
4
  "description": "TypeScript api wrapper for qbittorrent using got",
5
5
  "author": "Scott Cooper <scttcper@gmail.com>",
6
6
  "license": "MIT",