Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-image

Package Overview
Dependencies
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-image - npm Package Compare versions

Comparing version 5.1.3 to 5.1.4

5

es/Image.js

@@ -166,2 +166,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";

React.useEffect(function () {
if (isCustomPlaceholder) {
setStatus('loading');
}
}, [imgSrc]);
var wrapperClass = cn(prefixCls, wrapperClassName, _defineProperty({}, "".concat(prefixCls, "-error"), isError));

@@ -168,0 +173,0 @@ var mergedSrc = isError && fallback ? fallback : src;

2

es/PreviewGroup.js

@@ -64,3 +64,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

});
}; // we don't to test this if canPreview changed when same url
}; // we don't need to test this if canPreview changed when url stays the same

@@ -67,0 +67,0 @@ /* istanbul ignore next */

@@ -187,2 +187,7 @@ "use strict";

React.useEffect(function () {
if (isCustomPlaceholder) {
setStatus('loading');
}
}, [imgSrc]);
var wrapperClass = (0, _classnames.default)(prefixCls, wrapperClassName, (0, _defineProperty2.default)({}, "".concat(prefixCls, "-error"), isError));

@@ -189,0 +194,0 @@ var mergedSrc = isError && fallback ? fallback : src;

@@ -77,3 +77,3 @@ "use strict";

});
}; // we don't to test this if canPreview changed when same url
}; // we don't need to test this if canPreview changed when url stays the same

@@ -80,0 +80,0 @@ /* istanbul ignore next */

{
"name": "rc-image",
"version": "5.1.3",
"version": "5.1.4",
"description": "React easy to use image component",

@@ -5,0 +5,0 @@ "keywords": [

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