@ctrl/shared-torrent 4.0.0 → 4.2.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 +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +2 -1
- package/package.json +9 -7
package/README.md
CHANGED
@@ -6,4 +6,4 @@
|
|
6
6
|
- deluge - [@ctrl/deluge](https://github.com/scttcper/deluge)
|
7
7
|
- transmission - [@ctrl/transmission](https://github.com/scttcper/transmission)
|
8
8
|
- qbittorrent - [@ctrl/qbittorrent](https://github.com/scttcper/qbittorrent)
|
9
|
-
- utorrent - [@ctrl/
|
9
|
+
- utorrent - [@ctrl/utorrent](https://github.com/scttcper/utorrent)
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/// <reference types="node" />
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
2
2
|
import { Agents } from 'got';
|
3
3
|
export interface TorrentClient {
|
4
4
|
config: TorrentSettings;
|
@@ -40,6 +40,7 @@ export declare enum TorrentState {
|
|
40
40
|
paused = "paused",
|
41
41
|
queued = "queued",
|
42
42
|
checking = "checking",
|
43
|
+
warning = "warning",
|
43
44
|
error = "error",
|
44
45
|
unknown = "unknown"
|
45
46
|
}
|
@@ -49,7 +50,10 @@ export interface Label {
|
|
49
50
|
count: number;
|
50
51
|
}
|
51
52
|
export interface NormalizedTorrent {
|
52
|
-
|
53
|
+
/**
|
54
|
+
* torrent hash id
|
55
|
+
*/
|
56
|
+
id: string;
|
53
57
|
/**
|
54
58
|
* torrent name
|
55
59
|
*/
|
@@ -68,7 +72,7 @@ export interface NormalizedTorrent {
|
|
68
72
|
*/
|
69
73
|
dateAdded: string;
|
70
74
|
/**
|
71
|
-
* date
|
75
|
+
* date completed as iso string;
|
72
76
|
*/
|
73
77
|
dateCompleted?: string;
|
74
78
|
savePath: string;
|
package/dist/index.js
CHANGED
@@ -5,6 +5,7 @@ export var TorrentState;
|
|
5
5
|
TorrentState["paused"] = "paused";
|
6
6
|
TorrentState["queued"] = "queued";
|
7
7
|
TorrentState["checking"] = "checking";
|
8
|
+
TorrentState["warning"] = "warning";
|
8
9
|
TorrentState["error"] = "error";
|
9
10
|
TorrentState["unknown"] = "unknown";
|
10
|
-
})(TorrentState || (TorrentState = {}));
|
11
|
+
})(TorrentState = TorrentState || (TorrentState = {}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ctrl/shared-torrent",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.2.0",
|
4
4
|
"description": "shared types and interfaces between torrent clients",
|
5
5
|
"author": "Scott Cooper <scttcper@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -20,19 +20,21 @@
|
|
20
20
|
"build": "tsc"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"got": "^12.
|
23
|
+
"got": "^12.3.1"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"@sindresorhus/tsconfig": "
|
27
|
-
"@ctrl/eslint-config": "3.
|
28
|
-
"@types/node": "
|
29
|
-
"typescript": "4.
|
26
|
+
"@sindresorhus/tsconfig": "3.0.1",
|
27
|
+
"@ctrl/eslint-config": "3.4.9",
|
28
|
+
"@types/node": "18.7.14",
|
29
|
+
"typescript": "4.8.2"
|
30
30
|
},
|
31
31
|
"publishConfig": {
|
32
32
|
"access": "public"
|
33
33
|
},
|
34
34
|
"release": {
|
35
|
-
"
|
35
|
+
"branches": [
|
36
|
+
"master"
|
37
|
+
]
|
36
38
|
},
|
37
39
|
"engines": {
|
38
40
|
"node": ">=14.16"
|