@ctrl/deluge
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -1,2 +0,2 @@ | ||
import { FetchResponse } from 'ofetch'; | ||
import { ofetch } from 'ofetch'; | ||
import type { AddTorrentOptions as NormalizedAddTorrentOptions, AllClientData, NormalizedTorrent, TorrentClient, TorrentSettings } from '@ctrl/shared-torrent'; | ||
@@ -108,4 +108,4 @@ import type { AddTorrentOptions, AddTorrentResponse, BooleanStatus, ConfigResponse, DefaultResponse, DelugeSettings, GetHostsResponse, GetHostStatusResponse, ListMethods, PluginInfo, PluginsListResponse, StringStatus, TorrentFiles, TorrentInfo, TorrentListResponse, TorrentOptions, TorrentStatus, Tracker, UploadResponse } from './types.js'; | ||
disablePlugin(plugins: string[]): Promise<DefaultResponse>; | ||
request<T extends object>(method: string, params?: any[], needsAuth?: boolean, autoConnect?: boolean): Promise<FetchResponse<T>>; | ||
request<T extends object>(method: string, params?: any[], needsAuth?: boolean, autoConnect?: boolean): Promise<ReturnType<typeof ofetch.raw<T>>>; | ||
private _validateAuth; | ||
} |
@@ -19,3 +19,3 @@ export interface DefaultResponse { | ||
export interface AddTorrentResponse extends DefaultResponse { | ||
result: Array<[boolean, string]>; | ||
result: [boolean, string][]; | ||
} | ||
@@ -39,3 +39,3 @@ /** | ||
*/ | ||
result: Array<[string, string, number, string]>; | ||
result: [string, string, number, string][]; | ||
} | ||
@@ -106,5 +106,5 @@ export type HostStatus = 'Online' | 'Offline' | 'Connected'; | ||
export interface TorrentFilters { | ||
state: Array<[string, number]>; | ||
tracker_host: Array<[string, number]>; | ||
label?: Array<[string, number]>; | ||
state: [string, number][]; | ||
tracker_host: [string, number][]; | ||
label?: [string, number][]; | ||
} | ||
@@ -111,0 +111,0 @@ export interface Stats { |
{ | ||
"name": "@ctrl/deluge", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "TypeScript api wrapper for deluge using got", | ||
@@ -23,5 +23,5 @@ "author": "Scott Cooper <scttcper@gmail.com>", | ||
"lint:biome": "biome check .", | ||
"lint:eslint": "eslint --ext .ts,.tsx .", | ||
"lint:eslint": "eslint .", | ||
"lint:fix": "pnpm run '/^(lint:biome|lint:eslint):fix$/'", | ||
"lint:eslint:fix": "eslint --ext .ts,.tsx . --fix", | ||
"lint:eslint:fix": "eslint . --fix", | ||
"lint:biome:fix": "biome check . --apply", | ||
@@ -36,21 +36,21 @@ "prepare": "npm run build", | ||
"dependencies": { | ||
"@ctrl/magnet-link": "^4.0.1", | ||
"@ctrl/magnet-link": "^4.0.2", | ||
"@ctrl/shared-torrent": "^6.0.0", | ||
"node-fetch-native": "^1.6.2", | ||
"ofetch": "^1.3.3", | ||
"tough-cookie": "^4.1.3", | ||
"ufo": "^1.4.0", | ||
"uint8array-extras": "^1.1.0" | ||
"node-fetch-native": "^1.6.4", | ||
"ofetch": "^1.3.4", | ||
"tough-cookie": "^4.1.4", | ||
"ufo": "^1.5.3", | ||
"uint8array-extras": "^1.2.0" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.5.3", | ||
"@ctrl/eslint-config-biome": "2.0.9", | ||
"@sindresorhus/tsconfig": "5.0.0", | ||
"@types/node": "20.11.24", | ||
"@biomejs/biome": "1.8.3", | ||
"@ctrl/eslint-config-biome": "3.1.3", | ||
"@sindresorhus/tsconfig": "6.0.0", | ||
"@types/node": "20.14.9", | ||
"@types/tough-cookie": "4.0.5", | ||
"@vitest/coverage-v8": "1.3.1", | ||
"@vitest/coverage-v8": "1.6.0", | ||
"p-wait-for": "5.0.2", | ||
"typedoc": "0.25.10", | ||
"typescript": "5.3.3", | ||
"vitest": "1.3.1" | ||
"typedoc": "0.26.3", | ||
"typescript": "5.5.3", | ||
"vitest": "1.6.0" | ||
}, | ||
@@ -57,0 +57,0 @@ "publishConfig": { |
40699
Updated@ctrl/magnet-link@^4.0.2
Updatednode-fetch-native@^1.6.4
Updatedofetch@^1.3.4
Updatedtough-cookie@^4.1.4
Updatedufo@^1.5.3
Updateduint8array-extras@^1.2.0