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

react-upload-gallery

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-upload-gallery - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

23

dist/RUG.js

@@ -497,2 +497,3 @@ "use strict";

accept,
acceptType,
warning,

@@ -512,3 +513,3 @@ ImageURL,

images = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : [];
_this$props2 = this.props, rules = _this$props2.rules, accept = _this$props2.accept;
_this$props2 = this.props, rules = _this$props2.rules, accept = _this$props2.accept, acceptType = _this$props2.acceptType;
images = images.concat(this.state.images);

@@ -530,3 +531,3 @@ /*

if (!(0, _Utils.isAccepted)(file.type, accept.map(function (type) {
return "image/".concat(type);
return "".concat(acceptType, "/").concat(type);
}))) {

@@ -539,3 +540,3 @@ warning("accept");

if (!(rules !== null)) {
_context4.next = 15;
_context4.next = 16;
break;

@@ -562,12 +563,12 @@ }

}
/**
* dimensions
*
*/
if (!(acceptType === "image")) {
_context4.next = 16;
break;
}
_context4.next = 12;
_context4.next = 13;
return (0, _Utils.getImageDimensions)(ImageURL);
case 12:
case 13:
image = _context4.sent;

@@ -591,6 +592,6 @@

case 15:
case 16:
return _context4.abrupt("return", ImageURL);
case 16:
case 17:
case "end":

@@ -597,0 +598,0 @@ return _context4.stop();

{
"name": "react-upload-gallery",
"version": "0.0.6",
"version": "0.0.7",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Muhammet INAN",

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