easy-downloader
Advanced tools
Comparing version 1.0.1 to 1.0.3
@@ -190,7 +190,7 @@ 'use strict'; | ||
if (EasyDownloader.isNonEmptyObject(data)) { | ||
return 'application/x-www-form-urlencoded;charset=utf-8'; | ||
return 'application/json;charset=utf-8'; | ||
} | ||
if (EasyDownloader.isNonEmptyObject(formData)) { | ||
return 'application/json;charset=utf-8'; | ||
return 'application/x-www-form-urlencoded;charset=utf-8'; | ||
} | ||
@@ -197,0 +197,0 @@ |
@@ -186,7 +186,7 @@ import fs from 'fs'; | ||
if (EasyDownloader.isNonEmptyObject(data)) { | ||
return 'application/x-www-form-urlencoded;charset=utf-8'; | ||
return 'application/json;charset=utf-8'; | ||
} | ||
if (EasyDownloader.isNonEmptyObject(formData)) { | ||
return 'application/json;charset=utf-8'; | ||
return 'application/x-www-form-urlencoded;charset=utf-8'; | ||
} | ||
@@ -193,0 +193,0 @@ |
{ | ||
"name": "easy-downloader", | ||
"description": "A promise based library for downloading file", | ||
"version": "1.0.1", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
@@ -33,6 +33,5 @@ "homepage": "https://github.com/risan/easy-downloader#readme", | ||
"dev": "NODE_ENV=build rollup -c -w", | ||
"lint": "eslint src", | ||
"lint-fix": "eslint src --fix", | ||
"lint": "eslint *.js src tests", | ||
"lint-fix": "eslint *.js src tests --fix", | ||
"prepublishOnly": "npm run test && npm run build", | ||
"prettier": "prettier --write '{src,tests}/**/*.js'", | ||
"test": "NODE_ENV=jest jest" | ||
@@ -39,0 +38,0 @@ }, |
18803