@ctrl/qbittorrent 9.11.0 → 9.11.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 CHANGED
@@ -1,4 +1,4 @@
1
- # qBittorrent [![npm](https://badgen.net/npm/v/@ctrl/qbittorrent)](https://www.npmjs.com/package/@ctrl/qbittorrent) [![coverage](https://badgen.net/codecov/c/github/scttcper/qbittorrent)](https://codecov.io/gh/scttcper/qbittorrent)
1
+ # qBittorrent [![npm](https://badgen.net/npm/v/@ctrl/qbittorrent)](https://www.npmjs.com/package/@ctrl/qbittorrent)
2
2
 
3
3
  > TypeScript api wrapper for [qBittorrent](https://www.qbittorrent.org/) using [ofetch](https://github.com/unjs/ofetch)
4
4
 
@@ -27,7 +27,7 @@ async function main() {
27
27
 
28
28
  ### API
29
29
 
30
- Docs: https://qbittorrent.vercel.app
30
+ Docs: https://qbittorrent.ep.workers.dev
31
31
  qBittorrent Api Docs: https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)
32
32
 
33
33
  ### Normalized API
@@ -1,5 +1,5 @@
1
- import type { Jsonify } from 'type-fest';
2
1
  import type { AddTorrentOptions as NormalizedAddTorrentOptions, AllClientData, NormalizedTorrent, TorrentClient, TorrentClientConfig, TorrentClientState } from '@ctrl/shared-torrent';
2
+ import type { Jsonify } from 'type-fest';
3
3
  import type { AddMagnetOptions, AddTorrentOptions, BuildInfo, DownloadSpeed, Preferences, Torrent, TorrentCategories, TorrentFile, TorrentFilePriority, TorrentFilters, TorrentPeersResponse, TorrentPieceState, TorrentProperties, TorrentTrackers, UploadSpeed, WebSeed } from './types.js';
4
4
  interface QBittorrentState extends TorrentClientState {
5
5
  auth?: {
@@ -1,10 +1,10 @@
1
+ import { magnetDecode } from '@ctrl/magnet-link';
2
+ import { hash } from '@ctrl/torrent-file';
1
3
  import { parse as cookieParse } from 'cookie';
2
4
  import { FormData } from 'node-fetch-native';
3
5
  import { ofetch } from 'ofetch';
4
6
  import { joinURL } from 'ufo';
5
7
  import { base64ToUint8Array, isUint8Array, stringToUint8Array } from 'uint8array-extras';
6
- import { magnetDecode } from '@ctrl/magnet-link';
7
- import { hash } from '@ctrl/torrent-file';
8
8
  import { normalizeTorrentData } from './normalizeTorrentData.js';
9
9
  const defaults = {
10
10
  baseUrl: 'http://localhost:9091/',
package/package.json CHANGED
@@ -1,62 +1,59 @@
1
1
  {
2
2
  "name": "@ctrl/qbittorrent",
3
- "version": "9.11.0",
3
+ "version": "9.11.2",
4
4
  "description": "TypeScript api wrapper for qbittorrent using ofetch",
5
- "author": "Scott Cooper <scttcper@gmail.com>",
5
+ "keywords": [
6
+ "qbittorrent",
7
+ "typescript"
8
+ ],
9
+ "homepage": "https://qbittorrent.ep.workers.dev",
6
10
  "license": "MIT",
11
+ "author": "Scott Cooper <scttcper@gmail.com>",
7
12
  "repository": {
8
13
  "type": "git",
9
14
  "url": "git+https://github.com/scttcper/qbittorrent.git"
10
15
  },
11
- "homepage": "https://qbittorrent.vercel.app",
12
- "type": "module",
13
- "main": "./dist/src/index.js",
14
- "types": "./dist/src/index.d.ts",
15
16
  "files": [
16
17
  "dist/src"
17
18
  ],
19
+ "type": "module",
18
20
  "sideEffects": false,
21
+ "main": "./dist/src/index.js",
22
+ "types": "./dist/src/index.d.ts",
19
23
  "publishConfig": {
20
24
  "access": "public",
21
25
  "provenance": true
22
26
  },
23
- "keywords": [
24
- "typescript",
25
- "qbittorrent"
26
- ],
27
27
  "scripts": {
28
- "lint": "oxlint . && prettier --check . --experimental-cli",
29
- "lint:fix": "oxlint . --fix && prettier --write . --log-level=error --experimental-cli",
28
+ "lint": "oxfmt --check && oxlint .",
29
+ "lint:fix": "oxfmt && oxlint . --fix",
30
30
  "prepare": "npm run build",
31
31
  "build": "tsc",
32
32
  "build:docs": "typedoc",
33
33
  "test": "vitest run",
34
- "test:watch": "vitest",
35
- "test:ci": "vitest run --coverage --reporter=default --reporter=junit --outputFile=./junit.xml"
34
+ "test:watch": "vitest"
36
35
  },
37
36
  "dependencies": {
38
- "@ctrl/magnet-link": "^4.2.0",
39
- "@ctrl/shared-torrent": "^6.5.0",
40
- "@ctrl/torrent-file": "^4.4.0",
41
- "cookie": "^1.0.2",
37
+ "@ctrl/magnet-link": "^4.3.0",
38
+ "@ctrl/shared-torrent": "^6.5.1",
39
+ "@ctrl/torrent-file": "^4.5.0",
40
+ "cookie": "^1.1.1",
42
41
  "node-fetch-native": "^1.6.7",
43
42
  "ofetch": "^1.5.1",
44
- "type-fest": "^5.2.0",
45
- "ufo": "^1.6.1",
43
+ "type-fest": "^5.4.4",
44
+ "ufo": "^1.6.3",
46
45
  "uint8array-extras": "^1.5.0"
47
46
  },
48
47
  "devDependencies": {
49
- "@ctrl/oxlint-config": "1.3.2",
48
+ "@ctrl/oxlint-config": "1.4.0",
50
49
  "@sindresorhus/tsconfig": "8.1.0",
51
- "@trivago/prettier-plugin-sort-imports": "6.0.0",
52
- "@types/node": "24.10.0",
53
- "@vitest/coverage-v8": "4.0.7",
54
- "oxlint": "1.26.0",
50
+ "@types/node": "25.2.3",
51
+ "oxfmt": "0.33.0",
52
+ "oxlint": "1.48.0",
55
53
  "p-wait-for": "6.0.0",
56
- "prettier": "3.6.2",
57
- "typedoc": "0.28.14",
54
+ "typedoc": "0.28.17",
58
55
  "typescript": "5.9.3",
59
- "vitest": "4.0.7"
56
+ "vitest": "4.0.18"
60
57
  },
61
58
  "release": {
62
59
  "branches": [
@@ -66,25 +63,5 @@
66
63
  "engines": {
67
64
  "node": ">=18"
68
65
  },
69
- "packageManager": "pnpm@10.20.0",
70
- "prettier": {
71
- "singleQuote": true,
72
- "trailingComma": "all",
73
- "arrowParens": "avoid",
74
- "semi": true,
75
- "printWidth": 100,
76
- "plugins": [
77
- "@trivago/prettier-plugin-sort-imports"
78
- ],
79
- "importOrder": [
80
- "^node:.*$",
81
- "<THIRD_PARTY_MODULES>",
82
- "^(@ctrl)(/.*|$)",
83
- "^\\.\\./(?!.*\\.css$)",
84
- "^\\./(?!.*\\.css$)(?=.*/)",
85
- "^\\./(?!.*\\.css$)(?!.*/)"
86
- ],
87
- "importOrderSeparation": true,
88
- "importOrderSortSpecifiers": false
89
- }
66
+ "packageManager": "pnpm@10.29.3"
90
67
  }