@ctrl/shared-torrent 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/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/qbittorrent](https://github.com/scttcper/utorrent)
9
+ - utorrent - [@ctrl/utorrent](https://github.com/scttcper/utorrent)
package/dist/index.d.ts CHANGED
@@ -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
  }
@@ -71,11 +72,18 @@ export interface NormalizedTorrent {
71
72
  */
72
73
  dateAdded: string;
73
74
  /**
74
- * date completd as iso string;
75
+ * date completed as iso string;
75
76
  */
76
77
  dateCompleted?: string;
77
78
  savePath: string;
79
+ /**
80
+ * Sometimes called "Category", other times called label
81
+ */
78
82
  label?: string;
83
+ /**
84
+ * Note that this is different from label
85
+ */
86
+ tags?: string[];
79
87
  state: TorrentState;
80
88
  stateMessage: string;
81
89
  /**
@@ -111,10 +119,18 @@ export interface NormalizedTorrent {
111
119
  * total download in bytes
112
120
  */
113
121
  totalDownloaded: number;
122
+ /**
123
+ * Raw data returned by client
124
+ */
125
+ raw: any;
114
126
  }
115
127
  export interface AllClientData {
116
128
  labels: Label[];
117
129
  torrents: NormalizedTorrent[];
130
+ /**
131
+ * Raw data returned by client
132
+ */
133
+ raw: any;
118
134
  }
119
135
  export interface AddTorrentOptions {
120
136
  /**
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
11
  })(TorrentState = TorrentState || (TorrentState = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl/shared-torrent",
3
- "version": "4.1.1",
3
+ "version": "4.3.0",
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.1.0"
23
+ "got": "^12.4.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@sindresorhus/tsconfig": "3.0.1",
27
- "@ctrl/eslint-config": "3.4.4",
28
- "@types/node": "17.0.38",
29
- "typescript": "4.7.2"
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"