New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ctrl/deluge

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ctrl/deluge - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

5

dist/index.d.ts
/// <reference types="node" />
import { Response } from 'got';
import { AddTorrentOptions as NormalizedAddTorrentOptions, AllClientData, NormalizedTorrent, TorrentClient, TorrentSettings } from '@ctrl/shared-torrent';
import { AddTorrentOptions, AddTorrentResponse, BooleanStatus, ConfigResponse, DefaultResponse, DelugeSettings, GetHostsResponse, GetHostStatusResponse, ListMethods, PluginInfo, PluginsListResponse, StringStatus, TorrentFiles, TorrentInfo, TorrentListResponse, TorrentOptions, TorrentStatus, Tracker, UploadResponse } from './types';
import { AddTorrentOptions, BooleanStatus, ConfigResponse, DefaultResponse, DelugeSettings, GetHostsResponse, GetHostStatusResponse, ListMethods, PluginInfo, PluginsListResponse, StringStatus, TorrentFiles, TorrentInfo, TorrentListResponse, TorrentOptions, TorrentStatus, Tracker, UploadResponse } from './types';
export declare class Deluge implements TorrentClient {

@@ -60,3 +60,3 @@ config: TorrentSettings;

upload(torrent: string | Buffer): Promise<UploadResponse>;
addTorrent(torrent: string | Buffer, config?: Partial<AddTorrentOptions>): Promise<AddTorrentResponse>;
addTorrent(torrent: string | Buffer, config?: Partial<AddTorrentOptions>): Promise<BooleanStatus>;
normalizedAddTorrent(torrent: string | Buffer, options?: Partial<NormalizedAddTorrentOptions>): Promise<NormalizedTorrent>;

@@ -89,2 +89,3 @@ addTorrentMagnet(magnet: string, config?: Partial<AddTorrentOptions>): Promise<BooleanStatus>;

setTorrentTrackers(torrentId: string, trackers?: Tracker[]): Promise<DefaultResponse>;
updateTorrentTrackers(torrentId: string): Promise<DefaultResponse>;
verifyTorrent(torrentId: string): Promise<DefaultResponse>;

@@ -91,0 +92,0 @@ setTorrentLabel(torrentId: string, label: string): Promise<DefaultResponse>;

6

dist/index.js

@@ -204,3 +204,3 @@ "use strict";

const res = await this.request('web.add_torrents', [[{ path, options }]]);
if (res.body.result[0][0] === false) {
if (res.body.result === false) {
throw new Error('Failed to add torrent');

@@ -416,2 +416,6 @@ }

}
async updateTorrentTrackers(torrentId) {
const req = await this.request('core.force_reannounce', [[torrentId]]);
return req.body;
}
async verifyTorrent(torrentId) {

@@ -418,0 +422,0 @@ const req = await this.request('core.force_recheck', [[torrentId]]);

@@ -18,8 +18,2 @@ export interface DefaultResponse {

}
export interface AddTorrentResponse extends DefaultResponse {
/**
* tuple of [result, torrent_hash_id]
*/
result: Array<[boolean, string]>;
}
/**

@@ -26,0 +20,0 @@ * ex -

{
"name": "@ctrl/deluge",
"version": "2.1.1",
"version": "2.2.0",
"description": "TypeScript api wrapper for deluge using got",

@@ -32,3 +32,3 @@ "author": "Scott Cooper <scttcper@gmail.com>",

"form-data": "^3.0.0",
"got": "^10.3.0",
"got": "^10.4.0",
"tough-cookie": "^3.0.1",

@@ -38,8 +38,8 @@ "url-join": "^4.0.1"

"devDependencies": {
"@types/jest": "24.9.1",
"@types/node": "13.5.0",
"@types/jest": "25.1.1",
"@types/node": "13.7.0",
"@types/tough-cookie": "2.3.6",
"@types/url-join": "4.0.0",
"@typescript-eslint/eslint-plugin": "2.17.0",
"@typescript-eslint/parser": "2.17.0",
"@typescript-eslint/eslint-plugin": "2.18.0",
"@typescript-eslint/parser": "2.18.0",
"eslint": "6.8.0",

@@ -51,5 +51,5 @@ "eslint-config-xo-space": "0.22.0",

"p-wait-for": "3.1.0",
"semantic-release": "16.0.3",
"ts-jest": "25.0.0",
"typedoc": "0.16.8",
"semantic-release": "17.0.2",
"ts-jest": "25.1.0",
"typedoc": "0.16.9",
"typescript": "3.7.5"

@@ -56,0 +56,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc