@ctrl/qbittorrent
Advanced tools
Comparing version 4.0.2 to 4.1.0
@@ -164,2 +164,6 @@ /// <reference types="node" resolution-mode="require"/> | ||
/** | ||
* {@link https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#rename-folder} | ||
*/ | ||
renameFolder(hash: string, oldPath: string, newPath: string): Promise<boolean>; | ||
/** | ||
* @param urls URLs separated with newlines | ||
@@ -166,0 +170,0 @@ * @param options |
@@ -453,2 +453,13 @@ /* eslint-disable @typescript-eslint/no-redundant-type-constituents */ | ||
/** | ||
* {@link https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#rename-folder} | ||
*/ | ||
async renameFolder(hash, oldPath, newPath) { | ||
const form = new FormData(); | ||
form.append('hash', hash); | ||
form.append('oldPath', oldPath); | ||
form.append('newPath', newPath); | ||
await this.request('/torrents/renameFolder', 'POST', undefined, form, undefined, false); | ||
return true; | ||
} | ||
/** | ||
* @param urls URLs separated with newlines | ||
@@ -455,0 +466,0 @@ * @param options |
{ | ||
"name": "@ctrl/qbittorrent", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"description": "TypeScript api wrapper for qbittorrent using got", | ||
@@ -45,9 +45,9 @@ "author": "Scott Cooper <scttcper@gmail.com>", | ||
"@sindresorhus/tsconfig": "3.0.1", | ||
"@types/node": "18.0.0", | ||
"@types/node": "18.0.3", | ||
"@types/tough-cookie": "4.0.2", | ||
"c8": "7.11.3", | ||
"p-wait-for": "4.1.0", | ||
"typedoc": "0.23.2", | ||
"typedoc": "0.23.7", | ||
"typescript": "4.7.4", | ||
"vitest": "0.16.0" | ||
"vitest": "0.18.0" | ||
}, | ||
@@ -54,0 +54,0 @@ "release": { |
@@ -1,2 +0,2 @@ | ||
# qBittorrent [![npm](https://badgen.net/npm/v/@ctrl/qbittorrent)](https://www.npmjs.com/package/@ctrl/qbittorrent) [![CircleCI](https://badgen.net/circleci/github/scttcper/qbittorrent)](https://circleci.com/gh/scttcper/qbittorrent) [![coverage](https://badgen.net/codecov/c/github/scttcper/qbittorrent)](https://codecov.io/gh/scttcper/qbittorrent) [![bundlesize](https://badgen.net/bundlephobia/min/@ctrl/qbittorrent)](https://bundlephobia.com/result?p=@ctrl/qbittorrent) | ||
# qBittorrent [![npm](https://badgen.net/npm/v/@ctrl/qbittorrent)](https://www.npmjs.com/package/@ctrl/qbittorrent) [![CircleCI](https://badgen.net/circleci/github/scttcper/qbittorrent)](https://circleci.com/gh/scttcper/qbittorrent) [![coverage](https://badgen.net/codecov/c/github/scttcper/qbittorrent)](https://codecov.io/gh/scttcper/qbittorrent) | ||
@@ -3,0 +3,0 @@ > TypeScript api wrapper for [qBittorrent](https://www.qbittorrent.org/) using [got](https://github.com/sindresorhus/got) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74913
2268