@ctrl/deluge 7.5.0 → 7.5.2
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 -2
- package/dist/src/deluge.d.ts +1 -1
- package/dist/src/deluge.js +1 -1
- package/package.json +28 -51
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# deluge [](https://www.npmjs.com/package/@ctrl/deluge)
|
|
1
|
+
# deluge [](https://www.npmjs.com/package/@ctrl/deluge)
|
|
2
2
|
|
|
3
3
|
> TypeScript api wrapper for [deluge](https://deluge-torrent.org/) using [ofetch](https://github.com/unjs/ofetch)
|
|
4
4
|
|
|
@@ -26,7 +26,7 @@ async function main() {
|
|
|
26
26
|
|
|
27
27
|
### API
|
|
28
28
|
|
|
29
|
-
Docs: https://deluge.
|
|
29
|
+
Docs: https://deluge.ep.workers.dev
|
|
30
30
|
|
|
31
31
|
### Normalized API
|
|
32
32
|
|
package/dist/src/deluge.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { AddTorrentOptions as NormalizedAddTorrentOptions, AllClientData, NormalizedTorrent, TorrentClient, TorrentClientConfig, TorrentClientState } from '@ctrl/shared-torrent';
|
|
1
2
|
import { ofetch } from 'ofetch';
|
|
2
3
|
import { Cookie } from 'tough-cookie';
|
|
3
4
|
import type { Jsonify } from 'type-fest';
|
|
4
|
-
import type { AddTorrentOptions as NormalizedAddTorrentOptions, AllClientData, NormalizedTorrent, TorrentClient, TorrentClientConfig, TorrentClientState } from '@ctrl/shared-torrent';
|
|
5
5
|
import type { AddTorrentOptions, AddTorrentResponse, BooleanStatus, ConfigResponse, DefaultResponse, DelugeSettings, GetHostsResponse, GetHostStatusResponse, ListMethods, PluginInfo, PluginsListResponse, StringStatus, TorrentFiles, TorrentInfo, TorrentListResponse, TorrentOptions, TorrentStatus, Tracker, UploadResponse } from './types.js';
|
|
6
6
|
interface DelugeState extends TorrentClientState {
|
|
7
7
|
auth: {
|
package/dist/src/deluge.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { magnetDecode } from '@ctrl/magnet-link';
|
|
1
2
|
import { FormData } from 'node-fetch-native';
|
|
2
3
|
import { ofetch } from 'ofetch';
|
|
3
4
|
import { Cookie } from 'tough-cookie';
|
|
4
5
|
import { joinURL } from 'ufo';
|
|
5
6
|
import { base64ToUint8Array, isUint8Array, stringToUint8Array } from 'uint8array-extras';
|
|
6
|
-
import { magnetDecode } from '@ctrl/magnet-link';
|
|
7
7
|
import { normalizeTorrentData } from './normalizeTorrentData.js';
|
|
8
8
|
const defaults = {
|
|
9
9
|
baseUrl: 'http://localhost:8112/',
|
package/package.json
CHANGED
|
@@ -1,58 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctrl/deluge",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.2",
|
|
4
4
|
"description": "TypeScript api wrapper for deluge using ofetch",
|
|
5
|
-
"author": "Scott Cooper <scttcper@gmail.com>",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "scttcper/deluge",
|
|
8
|
-
"homepage": "https://deluge.vercel.app",
|
|
9
5
|
"keywords": [
|
|
10
6
|
"deluge",
|
|
11
7
|
"typescript"
|
|
12
8
|
],
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
9
|
+
"homepage": "https://deluge.ep.workers.dev",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"author": "Scott Cooper <scttcper@gmail.com>",
|
|
12
|
+
"repository": "scttcper/deluge",
|
|
16
13
|
"files": [
|
|
17
14
|
"dist/src"
|
|
18
15
|
],
|
|
16
|
+
"type": "module",
|
|
19
17
|
"sideEffects": false,
|
|
18
|
+
"main": "./dist/src/index.js",
|
|
19
|
+
"typings": "./dist/src/index.d.ts",
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public",
|
|
22
|
+
"provenance": true
|
|
23
|
+
},
|
|
20
24
|
"scripts": {
|
|
21
|
-
"lint": "
|
|
22
|
-
"lint:fix": "
|
|
25
|
+
"lint": "oxfmt --check && oxlint .",
|
|
26
|
+
"lint:fix": "oxfmt && oxlint . --fix",
|
|
23
27
|
"prepare": "npm run build",
|
|
24
28
|
"build": "tsc",
|
|
25
29
|
"build:docs": "typedoc",
|
|
26
30
|
"test": "vitest run",
|
|
27
|
-
"test:watch": "vitest"
|
|
28
|
-
"test:ci": "vitest run --coverage --reporter=default --reporter=junit --outputFile=./junit.xml"
|
|
31
|
+
"test:watch": "vitest"
|
|
29
32
|
},
|
|
30
33
|
"dependencies": {
|
|
31
|
-
"@ctrl/magnet-link": "^4.
|
|
32
|
-
"@ctrl/shared-torrent": "^6.5.
|
|
34
|
+
"@ctrl/magnet-link": "^4.3.0",
|
|
35
|
+
"@ctrl/shared-torrent": "^6.5.1",
|
|
33
36
|
"node-fetch-native": "^1.6.7",
|
|
34
|
-
"ofetch": "^1.5.
|
|
37
|
+
"ofetch": "^1.5.1",
|
|
35
38
|
"tough-cookie": "^6.0.0",
|
|
36
|
-
"type-fest": "^5.
|
|
37
|
-
"ufo": "^1.6.
|
|
39
|
+
"type-fest": "^5.4.4",
|
|
40
|
+
"ufo": "^1.6.3",
|
|
38
41
|
"uint8array-extras": "^1.5.0"
|
|
39
42
|
},
|
|
40
43
|
"devDependencies": {
|
|
41
|
-
"@ctrl/oxlint-config": "1.
|
|
42
|
-
"@sindresorhus/tsconfig": "8.0
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"oxlint": "1.24.0",
|
|
44
|
+
"@ctrl/oxlint-config": "1.4.0",
|
|
45
|
+
"@sindresorhus/tsconfig": "8.1.0",
|
|
46
|
+
"@types/node": "25.2.3",
|
|
47
|
+
"oxfmt": "0.33.0",
|
|
48
|
+
"oxlint": "1.48.0",
|
|
47
49
|
"p-wait-for": "6.0.0",
|
|
48
|
-
"
|
|
49
|
-
"typedoc": "0.28.14",
|
|
50
|
+
"typedoc": "0.28.17",
|
|
50
51
|
"typescript": "5.9.3",
|
|
51
|
-
"vitest": "4.0.
|
|
52
|
-
},
|
|
53
|
-
"publishConfig": {
|
|
54
|
-
"access": "public",
|
|
55
|
-
"provenance": true
|
|
52
|
+
"vitest": "4.0.18"
|
|
56
53
|
},
|
|
57
54
|
"release": {
|
|
58
55
|
"branches": [
|
|
@@ -62,25 +59,5 @@
|
|
|
62
59
|
"engines": {
|
|
63
60
|
"node": ">=18"
|
|
64
61
|
},
|
|
65
|
-
"packageManager": "pnpm@10.
|
|
66
|
-
"prettier": {
|
|
67
|
-
"singleQuote": true,
|
|
68
|
-
"trailingComma": "all",
|
|
69
|
-
"arrowParens": "avoid",
|
|
70
|
-
"semi": true,
|
|
71
|
-
"printWidth": 100,
|
|
72
|
-
"plugins": [
|
|
73
|
-
"@trivago/prettier-plugin-sort-imports"
|
|
74
|
-
],
|
|
75
|
-
"importOrder": [
|
|
76
|
-
"^node:.*$",
|
|
77
|
-
"<THIRD_PARTY_MODULES>",
|
|
78
|
-
"^(@ctrl)(/.*|$)",
|
|
79
|
-
"^\\.\\./(?!.*\\.css$)",
|
|
80
|
-
"^\\./(?!.*\\.css$)(?=.*/)",
|
|
81
|
-
"^\\./(?!.*\\.css$)(?!.*/)"
|
|
82
|
-
],
|
|
83
|
-
"importOrderSeparation": true,
|
|
84
|
-
"importOrderSortSpecifiers": false
|
|
85
|
-
}
|
|
62
|
+
"packageManager": "pnpm@10.29.3"
|
|
86
63
|
}
|