@ctrl/shared-torrent 6.2.1 → 6.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 +2 -1
- package/dist/index.d.ts +3 -2
- package/package.json +35 -13
package/README.md
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
> shared types and interfaces between torrent clients
|
4
4
|
|
5
5
|
#### Normalized Torrent Clients
|
6
|
+
|
6
7
|
- deluge - [@ctrl/deluge](https://github.com/scttcper/deluge)
|
7
8
|
- transmission - [@ctrl/transmission](https://github.com/scttcper/transmission)
|
8
9
|
- qbittorrent - [@ctrl/qbittorrent](https://github.com/scttcper/qbittorrent)
|
9
|
-
- utorrent - [@ctrl/utorrent](https://github.com/scttcper/utorrent)
|
10
|
+
- utorrent - [@ctrl/utorrent](https://github.com/scttcper/utorrent)
|
package/dist/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { FetchOptions } from 'ofetch';
|
1
2
|
export interface TorrentClient {
|
2
3
|
config: TorrentClientConfig;
|
3
4
|
state: TorrentClientState;
|
@@ -16,7 +17,7 @@ export interface TorrentClient {
|
|
16
17
|
queueUp(id: any): Promise<unknown>;
|
17
18
|
queueDown(id: any): Promise<unknown>;
|
18
19
|
addTorrent(torrent: string | Uint8Array, options?: any): Promise<unknown>;
|
19
|
-
normalizedAddTorrent(torrent: string | Uint8Array
|
20
|
+
normalizedAddTorrent(torrent: string | Uint8Array<ArrayBuffer>, options?: Partial<AddTorrentOptions>): Promise<NormalizedTorrent>;
|
20
21
|
}
|
21
22
|
/**
|
22
23
|
* A JSON serializable object that stores the state of the client.
|
@@ -49,7 +50,7 @@ export interface TorrentClientConfig {
|
|
49
50
|
* @see https://undici.nodejs.org/#/docs/api/Dispatcher
|
50
51
|
* @link https://github.com/unjs/ofetch#%EF%B8%8F-adding-https-agent
|
51
52
|
*/
|
52
|
-
dispatcher?:
|
53
|
+
dispatcher?: FetchOptions['dispatcher'];
|
53
54
|
/**
|
54
55
|
* global request timeout
|
55
56
|
* @link https://github.com/unjs/ofetch#%EF%B8%8F-timeout
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ctrl/shared-torrent",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.3.0",
|
4
4
|
"description": "shared types and interfaces between torrent clients",
|
5
5
|
"author": "Scott Cooper <scttcper@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -14,23 +14,24 @@
|
|
14
14
|
"sideEffects": false,
|
15
15
|
"keywords": [],
|
16
16
|
"scripts": {
|
17
|
-
"lint": "
|
18
|
-
"lint:
|
19
|
-
"lint:eslint": "eslint .",
|
20
|
-
"lint:fix": "pnpm run '/^(lint:biome|lint:eslint):fix$/'",
|
21
|
-
"lint:eslint:fix": "eslint . --fix",
|
22
|
-
"lint:biome:fix": "biome check . --write",
|
17
|
+
"lint": "oxlint . && prettier --check . --experimental-cli",
|
18
|
+
"lint:fix": "oxlint . --fix && prettier --write . --log-level=error --experimental-cli",
|
23
19
|
"prepare": "npm run build",
|
24
20
|
"build": "tsc"
|
25
21
|
},
|
26
22
|
"dependencies": {},
|
27
23
|
"devDependencies": {
|
28
|
-
"@
|
29
|
-
"@
|
30
|
-
"@
|
31
|
-
"@
|
32
|
-
"
|
33
|
-
"
|
24
|
+
"@ctrl/oxlint-config": "1.2.3",
|
25
|
+
"@sindresorhus/tsconfig": "8.0.1",
|
26
|
+
"@types/node": "24.3.0",
|
27
|
+
"@trivago/prettier-plugin-sort-imports": "5.2.2",
|
28
|
+
"ofetch": "1.4.1",
|
29
|
+
"oxlint": "1.14.0",
|
30
|
+
"prettier": "3.6.2",
|
31
|
+
"typescript": "5.9.2"
|
32
|
+
},
|
33
|
+
"peerDependencies": {
|
34
|
+
"ofetch": "^1.4.1"
|
34
35
|
},
|
35
36
|
"publishConfig": {
|
36
37
|
"access": "public",
|
@@ -43,5 +44,26 @@
|
|
43
44
|
},
|
44
45
|
"engines": {
|
45
46
|
"node": ">=18"
|
47
|
+
},
|
48
|
+
"packageManager": "pnpm@10.15.0",
|
49
|
+
"prettier": {
|
50
|
+
"singleQuote": true,
|
51
|
+
"trailingComma": "all",
|
52
|
+
"arrowParens": "avoid",
|
53
|
+
"semi": true,
|
54
|
+
"printWidth": 100,
|
55
|
+
"plugins": [
|
56
|
+
"@trivago/prettier-plugin-sort-imports"
|
57
|
+
],
|
58
|
+
"importOrder": [
|
59
|
+
"^node:.*$",
|
60
|
+
"<THIRD_PARTY_MODULES>",
|
61
|
+
"^(@ctrl)(/.*|$)",
|
62
|
+
"^\\.\\./(?!.*\\.css$)",
|
63
|
+
"^\\./(?!.*\\.css$)(?=.*/)",
|
64
|
+
"^\\./(?!.*\\.css$)(?!.*/)"
|
65
|
+
],
|
66
|
+
"importOrderSeparation": true,
|
67
|
+
"importOrderSortSpecifiers": false
|
46
68
|
}
|
47
69
|
}
|