New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@drawbotics/file-uploader

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drawbotics/file-uploader - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

37

lib/components/FileUploader.js

@@ -136,3 +136,3 @@ import "core-js/modules/es6.array.from";

regeneratorRuntime.mark(function _callee2(file) {
var _this$props3, signingUrl, onStart, onProgress, onFinish, onError, result, blob, response;
var _this$props3, signingUrl, onStart, onProgress, onFinish, onError, result, signingResult, blob, _signingResult;

@@ -146,32 +146,33 @@ return regeneratorRuntime.wrap(function _callee2$(_context2) {

result = null;
_context2.prev = 3;
_context2.next = 6;
signingResult = null;
_context2.prev = 4;
_context2.next = 7;
return parseFile(file);
case 6:
case 7:
blob = _context2.sent;
_context2.next = 9;
_context2.next = 10;
return signBlob(signingUrl, blob);
case 9:
response = _context2.sent;
_context2.next = 12;
return directUpload(response, file, function (e) {
case 10:
_signingResult = _context2.sent;
_context2.next = 13;
return directUpload(_signingResult, file, function (e) {
return onProgress ? onProgress(file, e) : null;
});
case 12:
case 13:
result = _context2.sent;
_context2.next = 18;
_context2.next = 19;
break;
case 15:
_context2.prev = 15;
_context2.t0 = _context2["catch"](3);
case 16:
_context2.prev = 16;
_context2.t0 = _context2["catch"](4);
onError ? onError(file, _context2.t0) : null;
case 18:
onFinish ? onFinish(file, result) : null;
case 19:
onFinish ? onFinish(file, signingResult, result) : null;
case 19:
case 20:
case "end":

@@ -181,3 +182,3 @@ return _context2.stop();

}
}, _callee2, this, [[3, 15]]);
}, _callee2, this, [[4, 16]]);
}));

@@ -184,0 +185,0 @@

{
"name": "@drawbotics/file-uploader",
"version": "1.0.0",
"version": "1.1.0",
"description": "Small React component to upload files using active storage",

@@ -5,0 +5,0 @@ "license": "UNLICENSED",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc