Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Commit ae10319

Browse files
Update dependencies
1 parent 051ea05 commit ae10319

File tree

4 files changed

+733
-531
lines changed

4 files changed

+733
-531
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2018-2019, ObserverOfTime
1+
Copyright © 2018-2020, ObserverOfTime
22

33
Permission to use, copy, modify, and/or distribute this software for
44
any purpose with or without fee is hereby granted, provided that the

lib/Transfer.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ class Transfer {
153153
*/
154154
download(destination) {
155155
const self = this;
156-
const url = self.fileInput;
156+
const url = this.fileInput;
157+
// The `GET` method cannot be used with a body
158+
delete this.options.body;
157159
const filePath = path.resolve(destination || path.basename(url));
158160
return new ProgressPromise((resolve, reject, progress) => {
159161
if(!url) return reject(new TransferError('Missing file URL'));

package.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"cover": "nyc report -r text-lcov | codecov -l --disable=gcov",
2121
"docs": "nyc report -r html && jsdoc -c .jsdoc.json",
2222
"lint": "eslint bin/*.js lib/*.js tests/*.js",
23-
"test": "nyc -r text-summary mocha -t 25000 tests/test.js --exit"
23+
"test": "nyc -r text-summary mocha -t 35000 tests/test.js --exit"
2424
},
2525
"keywords": [
2626
"transfer",
@@ -42,7 +42,7 @@
4242
"dependencies": {
4343
"cli-progress": "^3.4.0",
4444
"clipboardy": "^2.1.0",
45-
"got": "^9.6.0",
45+
"got": "^10.2.0",
4646
"mime-types": "^2.1.25",
4747
"minimist": "^1.2.0",
4848
"progress-promise": "^0.0.6"
@@ -52,22 +52,24 @@
5252
"chai": "^4.2.0",
5353
"chai-as-promised": "^7.1.1",
5454
"codecov": "^3.6.1",
55-
"eslint": "^6.6.0",
55+
"eslint": "^6.8.0",
5656
"jsdoc": "^3.6.3",
5757
"mocha": "^6.2.2",
58-
"nyc": "^14.1.0"
58+
"nyc": "^15.0.0"
5959
},
6060
"resolutions": {
6161
"handlebars": "^4.5.3",
62-
"https-proxy-agent": "^3.0.1"
62+
"https-proxy-agent": "^4.0.0"
6363
},
6464
"nyc": {
6565
"check-coverage": true,
6666
"lines": 90,
6767
"statements": 90,
6868
"functions": 90,
6969
"branches": 75,
70-
"include": ["lib/*.js"],
70+
"include": [
71+
"lib/*.js"
72+
],
7173
"report-dir": "docs/coverage",
7274
"cache": true
7375
}

0 commit comments

Comments
 (0)