Socket
Socket
Sign inDemoInstall

qrcode.react

Package Overview
Dependencies
7
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## [1.0.1] - 2020-12-30
### Added
- Added React v17 to allowed peer dependencies.
### Fixed
- Handle mounting server rendered content properly.
- Handle updates to embedded image properly.
## [1.0.0] - 2019-11-08

@@ -2,0 +12,0 @@

@@ -262,5 +262,23 @@ 'use strict';

value: function componentDidMount() {
if (this._image && this._image.complete) {
this.handleImageLoad();
}
this.update();
}
}, {
key: "componentWillReceiveProps",
value: function componentWillReceiveProps(nextProps) {
var _this$props$imageSett, _nextProps$imageSetti;
var currentSrc = (_this$props$imageSett = this.props.imageSettings) === null || _this$props$imageSett === void 0 ? void 0 : _this$props$imageSett.src;
var nextSrc = (_nextProps$imageSetti = nextProps.imageSettings) === null || _nextProps$imageSetti === void 0 ? void 0 : _nextProps$imageSetti.src;
if (currentSrc !== nextSrc) {
this.setState({
imgLoaded: false
});
}
}
}, {
key: "componentDidUpdate",

@@ -267,0 +285,0 @@ value: function componentDidUpdate() {

5

package.json
{
"name": "qrcode.react",
"version": "1.0.0",
"version": "1.0.1",
"description": "React component to generate QR codes",

@@ -36,3 +36,3 @@ "keywords": [

"peerDependencies": {
"react": "^15.5.3 || ^16.0.0"
"react": "^15.5.3 || ^16.0.0 || ^17.0.0"
},

@@ -44,2 +44,3 @@ "devDependencies": {

"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
"@babel/preset-env": "^7.0.0",

@@ -46,0 +47,0 @@ "@babel/preset-flow": "^7.0.0",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc