Skip to content

Commit

Permalink
fix: rename import
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Sep 9, 2020
1 parent 11a8516 commit ca171c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"@ctrl/shared-torrent": "^3.0.3",
"@ctrl/url-join": "^1.0.1",
"@ctrl/url-join": "^1.0.2",
"form-data": "^3.0.0",
"got": "^11.6.1",
"tough-cookie": "^4.0.0"
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { existsSync, readFileSync } from 'fs';
import FormData from 'form-data';
import got, { Response } from 'got';
import { Cookie } from 'tough-cookie';
import { urljoin } from '@ctrl/url-join';
import { urlJoin } from '@ctrl/url-join';
import {
AddTorrentOptions as NormalizedAddTorrentOptions,
AllClientData,
Expand Down Expand Up @@ -219,7 +219,7 @@ export class Deluge implements TorrentClient {
form.append('file', torrent);
}

const url = urljoin(this.config.baseUrl, '/upload');
const url = urlJoin(this.config.baseUrl, '/upload');
const res = await got.post(url, {
headers: form.getHeaders(),
body: form,
Expand Down Expand Up @@ -614,7 +614,7 @@ export class Deluge implements TorrentClient {
const headers: any = {
Cookie: this._cookie?.cookieString?.(),
};
const url = urljoin(this.config.baseUrl, this.config.path);
const url = urlJoin(this.config.baseUrl, this.config.path);
return got.post(url, {
json: {
method,
Expand Down

0 comments on commit ca171c6

Please sign in to comment.