qrcode.react
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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() { |
{ | ||
"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", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
26779
420
3
22