Comparing version 2.0.6 to 2.0.8
# Changelog | ||
## [2.0.8] | ||
### Changed | ||
- Revert 2.0.7 and fix `uploadFile` filename bug. | ||
## [2.0.7] | ||
### Changed | ||
- Revert: "Fixed a bug causing `uploadFile` to not work." introduced in 2.0.4 | ||
## [2.0.6] | ||
@@ -4,0 +16,0 @@ |
@@ -62,3 +62,2 @@ "use strict"; | ||
formData, | ||
options, | ||
_yield$this$executeRe, | ||
@@ -76,7 +75,10 @@ data, | ||
file = ensureFileObjectConsistency(file); | ||
options = opts.customFilename ? { | ||
filename: opts.customFilename | ||
} : {}; | ||
formData.append(opts.portalFileFieldname, file, options); | ||
_context2.next = 8; | ||
if (opts.customFilename) { | ||
formData.append(opts.portalFileFieldname, file, opts.customFilename); | ||
} else { | ||
formData.append(opts.portalFileFieldname, file); | ||
} | ||
_context2.next = 7; | ||
return this.executeRequest(_objectSpread(_objectSpread({}, opts), {}, { | ||
@@ -87,3 +89,3 @@ method: "post", | ||
case 8: | ||
case 7: | ||
_yield$this$executeRe = _context2.sent; | ||
@@ -93,3 +95,3 @@ data = _yield$this$executeRe.data; | ||
case 11: | ||
case 10: | ||
case "end": | ||
@@ -96,0 +98,0 @@ return _context2.stop(); |
{ | ||
"name": "skynet-js", | ||
"version": "2.0.6", | ||
"version": "2.0.8", | ||
"description": "Sia Skynet Javascript Client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
45082