@ctrl/shared-torrent
Advanced tools
Comparing version 5.0.0 to 6.0.0
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import type { Agent } from 'http'; | ||
@@ -13,4 +12,4 @@ export interface TorrentClient { | ||
queueDown: (id: any) => Promise<any>; | ||
addTorrent: (torrent: string | Buffer, options?: any) => Promise<any>; | ||
normalizedAddTorrent: (torrent: string | Buffer, options?: Partial<AddTorrentOptions>) => Promise<NormalizedTorrent>; | ||
addTorrent: (torrent: string | Uint8Array, options?: any) => Promise<any>; | ||
normalizedAddTorrent: (torrent: string | Uint8Array, options?: Partial<AddTorrentOptions>) => Promise<NormalizedTorrent>; | ||
} | ||
@@ -17,0 +16,0 @@ export interface TorrentSettings { |
{ | ||
"name": "@ctrl/shared-torrent", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"description": "shared types and interfaces between torrent clients", | ||
@@ -17,4 +17,8 @@ "author": "Scott Cooper <scttcper@gmail.com>", | ||
"scripts": { | ||
"lint": "eslint --ext .ts .", | ||
"lint:fix": "eslint --fix --ext .ts .", | ||
"lint": "pnpm run '/^(lint:biome|lint:eslint)$/'", | ||
"lint:biome": "biome check .", | ||
"lint:eslint": "eslint --ext .ts,.tsx .", | ||
"lint:fix": "pnpm run '/^(lint:biome|lint:eslint):fix$/'", | ||
"lint:eslint:fix": "eslint --ext .ts,.tsx . --fix", | ||
"lint:biome:fix": "biome check . --apply", | ||
"prepare": "npm run build", | ||
@@ -25,6 +29,7 @@ "build": "tsc" | ||
"devDependencies": { | ||
"@ctrl/eslint-config": "4.0.6", | ||
"@sindresorhus/tsconfig": "4.0.0", | ||
"@types/node": "20.6.0", | ||
"typescript": "5.2.2" | ||
"@biomejs/biome": "1.5.3", | ||
"@ctrl/eslint-config-biome": "2.0.9", | ||
"@sindresorhus/tsconfig": "5.0.0", | ||
"@types/node": "20.11.24", | ||
"typescript": "5.3.3" | ||
}, | ||
@@ -41,4 +46,4 @@ "publishConfig": { | ||
"engines": { | ||
"node": ">=16" | ||
"node": ">=18" | ||
} | ||
} |
6545
5
156