Comparing version 2.0.3 to 2.0.4
# Changelog | ||
## [2.0.4] | ||
### Changes | ||
- Fixed a bug causing `uploadFile` to not work. | ||
## [2.0.3] | ||
@@ -4,0 +10,0 @@ |
@@ -62,3 +62,3 @@ "use strict"; | ||
formData, | ||
filename, | ||
options, | ||
_yield$this$executeRe, | ||
@@ -76,4 +76,6 @@ data, | ||
file = ensureFileObjectConsistency(file); | ||
filename = opts.customFilename ? opts.customFilename : ""; | ||
formData.append(opts.portalFileFieldname, file, filename); | ||
options = opts.customFilename ? { | ||
filename: opts.customFilename | ||
} : {}; | ||
formData.append(opts.portalFileFieldname, file, options); | ||
_context2.next = 8; | ||
@@ -80,0 +82,0 @@ return this.executeRequest(_objectSpread(_objectSpread({}, opts), {}, { |
{ | ||
"name": "skynet-js", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Sia Skynet Javascript Client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
44591
837