@ctrl/deluge 4.1.1 → 4.3.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/deluge.d.ts +3 -3
- package/dist/src/deluge.js +3 -1
- package/package.json +11 -11
package/dist/src/deluge.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
2
|
-
import { Response } from 'got';
|
3
|
-
import { AddTorrentOptions as NormalizedAddTorrentOptions, AllClientData, NormalizedTorrent, TorrentClient, TorrentSettings } from '@ctrl/shared-torrent';
|
4
|
-
import { AddTorrentOptions, AddTorrentResponse, BooleanStatus, ConfigResponse, DefaultResponse, DelugeSettings, GetHostsResponse, GetHostStatusResponse, ListMethods, PluginInfo, PluginsListResponse, StringStatus, TorrentFiles, TorrentInfo, TorrentListResponse, TorrentOptions, TorrentStatus, Tracker, UploadResponse } from './types.js';
|
2
|
+
import type { Response } from 'got';
|
3
|
+
import type { AddTorrentOptions as NormalizedAddTorrentOptions, AllClientData, NormalizedTorrent, TorrentClient, TorrentSettings } from '@ctrl/shared-torrent';
|
4
|
+
import type { AddTorrentOptions, AddTorrentResponse, BooleanStatus, ConfigResponse, DefaultResponse, DelugeSettings, GetHostsResponse, GetHostStatusResponse, ListMethods, PluginInfo, PluginsListResponse, StringStatus, TorrentFiles, TorrentInfo, TorrentListResponse, TorrentOptions, TorrentStatus, Tracker, UploadResponse } from './types.js';
|
5
5
|
export declare class Deluge implements TorrentClient {
|
6
6
|
config: TorrentSettings;
|
7
7
|
private _msgId;
|
package/dist/src/deluge.js
CHANGED
@@ -4,7 +4,7 @@ import { fileFromPath } from 'formdata-node/file-from-path';
|
|
4
4
|
import got from 'got';
|
5
5
|
import { Cookie } from 'tough-cookie';
|
6
6
|
import { magnetDecode } from '@ctrl/magnet-link';
|
7
|
-
import { TorrentState
|
7
|
+
import { TorrentState } from '@ctrl/shared-torrent';
|
8
8
|
import { urlJoin } from '@ctrl/url-join';
|
9
9
|
const defaults = {
|
10
10
|
baseUrl: 'http://localhost:8112/',
|
@@ -318,6 +318,7 @@ export class Deluge {
|
|
318
318
|
const results = {
|
319
319
|
torrents: [],
|
320
320
|
labels: [],
|
321
|
+
raw: listTorrents,
|
321
322
|
};
|
322
323
|
for (const id of Object.keys(listTorrents.result.torrents)) {
|
323
324
|
const torrent = listTorrents.result.torrents[id];
|
@@ -590,6 +591,7 @@ export class Deluge {
|
|
590
591
|
totalSize: torrent.total_size,
|
591
592
|
totalUploaded: torrent.total_uploaded,
|
592
593
|
totalDownloaded: torrent.total_done,
|
594
|
+
raw: torrent,
|
593
595
|
};
|
594
596
|
return result;
|
595
597
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ctrl/deluge",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.3.0",
|
4
4
|
"description": "TypeScript api wrapper for deluge using got",
|
5
5
|
"author": "Scott Cooper <scttcper@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -29,23 +29,23 @@
|
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
31
|
"@ctrl/magnet-link": "^3.1.1",
|
32
|
-
"@ctrl/shared-torrent": "^4.
|
32
|
+
"@ctrl/shared-torrent": "^4.3.1",
|
33
33
|
"@ctrl/url-join": "^2.0.2",
|
34
|
-
"formdata-node": "^
|
35
|
-
"got": "^12.
|
36
|
-
"tough-cookie": "^4.1.
|
34
|
+
"formdata-node": "^5.0.0",
|
35
|
+
"got": "^12.5.0",
|
36
|
+
"tough-cookie": "^4.1.2"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@ctrl/eslint-config": "3.
|
39
|
+
"@ctrl/eslint-config": "3.5.0",
|
40
40
|
"@sindresorhus/tsconfig": "3.0.1",
|
41
|
-
"@types/node": "18.7.
|
41
|
+
"@types/node": "18.7.18",
|
42
42
|
"@types/tough-cookie": "4.0.2",
|
43
|
-
"@vitest/coverage-c8": "0.
|
43
|
+
"@vitest/coverage-c8": "0.23.4",
|
44
44
|
"c8": "7.12.0",
|
45
45
|
"p-wait-for": "5.0.0",
|
46
|
-
"typedoc": "0.23.
|
47
|
-
"typescript": "4.
|
48
|
-
"vitest": "0.
|
46
|
+
"typedoc": "0.23.15",
|
47
|
+
"typescript": "4.8.3",
|
48
|
+
"vitest": "0.23.4"
|
49
49
|
},
|
50
50
|
"publishConfig": {
|
51
51
|
"access": "public"
|