Socket
Socket
Sign inDemoInstall

qrcode.react

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qrcode.react - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

4

CHANGELOG.md
## [Unreleased]
## [0.6.1] - 2016-04-13
- Extended support to React v15
## [0.6.0] - 2016-02-02

@@ -5,0 +9,0 @@

9

lib/index.js

@@ -14,9 +14,12 @@ 'use strict';

var getDOMNode;
if (/^0\.14/.test(React.version)) {
// Super naive semver detection but it's good enough. We support 0.12, 0.13
// which both have getDOMNode on the ref. 0.14 and 15 make the DOM node the ref.
var version = React.version.split(/[.-]/);
if (version[0] === '0' && version[1] === '13' || version[1] === '12') {
getDOMNode = function getDOMNode(ref) {
return ref;
return ref.getDOMNode();
};
} else {
getDOMNode = function getDOMNode(ref) {
return ref.getDOMNode();
return ref;
};

@@ -23,0 +26,0 @@ }

{
"name": "qrcode.react",
"version": "0.6.0",
"version": "0.6.1",
"description": "React component to generate QR codes",

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

"peerDependencies": {
"react": "0.12 - 0.14"
"react": "0.12 - 0.14 || ^15.0.0"
},

@@ -42,5 +42,5 @@ "devDependencies": {

"eslint-plugin-react": "^3.5.1",
"react": "^0.14.0",
"react-dom": "^0.14.0"
"react": "^15.0.0",
"react-dom": "^15.0.0"
}
}
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