@ctrl/shared-torrent 4.2.0 → 4.3.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/dist/index.d.ts +15 -0
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
@@ -76,7 +76,14 @@ export interface NormalizedTorrent {
|
|
76
76
|
*/
|
77
77
|
dateCompleted?: string;
|
78
78
|
savePath: string;
|
79
|
+
/**
|
80
|
+
* Sometimes called "Category", other times called label
|
81
|
+
*/
|
79
82
|
label?: string;
|
83
|
+
/**
|
84
|
+
* Note that this is different from label
|
85
|
+
*/
|
86
|
+
tags?: string[];
|
80
87
|
state: TorrentState;
|
81
88
|
stateMessage: string;
|
82
89
|
/**
|
@@ -112,10 +119,18 @@ export interface NormalizedTorrent {
|
|
112
119
|
* total download in bytes
|
113
120
|
*/
|
114
121
|
totalDownloaded: number;
|
122
|
+
/**
|
123
|
+
* Raw data returned by client
|
124
|
+
*/
|
125
|
+
raw: any;
|
115
126
|
}
|
116
127
|
export interface AllClientData {
|
117
128
|
labels: Label[];
|
118
129
|
torrents: NormalizedTorrent[];
|
130
|
+
/**
|
131
|
+
* Raw data returned by client
|
132
|
+
*/
|
133
|
+
raw: any;
|
119
134
|
}
|
120
135
|
export interface AddTorrentOptions {
|
121
136
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ctrl/shared-torrent",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.3.1",
|
4
4
|
"description": "shared types and interfaces between torrent clients",
|
5
5
|
"author": "Scott Cooper <scttcper@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -20,13 +20,13 @@
|
|
20
20
|
"build": "tsc"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"got": "^12.
|
23
|
+
"got": "^12.5.0"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"@sindresorhus/tsconfig": "3.0.1",
|
27
|
-
"@ctrl/eslint-config": "3.
|
28
|
-
"@types/node": "18.7.
|
29
|
-
"typescript": "4.8.
|
27
|
+
"@ctrl/eslint-config": "3.5.0",
|
28
|
+
"@types/node": "18.7.18",
|
29
|
+
"typescript": "4.8.3"
|
30
30
|
},
|
31
31
|
"publishConfig": {
|
32
32
|
"access": "public"
|