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

react-barcode

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-barcode - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

44

lib/react-barcode.js

@@ -5,2 +5,4 @@ 'use strict';

var JsBarcode = require('jsbarcode');
var createClass = require('create-react-class');
var PropTypes = require('prop-types');

@@ -21,25 +23,23 @@ var getDOMNode;

var Barcode = React.createClass({
displayName: 'Barcode',
var Barcode = createClass({
propTypes: {
value: React.PropTypes.string.isRequired,
renderer: React.PropTypes.string,
format: React.PropTypes.string,
width: React.PropTypes.number,
height: React.PropTypes.number,
displayValue: React.PropTypes.bool,
fontOptions: React.PropTypes.string,
font: React.PropTypes.string,
textAlign: React.PropTypes.string,
textPosition: React.PropTypes.string,
textMargin: React.PropTypes.number,
fontSize: React.PropTypes.number,
background: React.PropTypes.string,
lineColor: React.PropTypes.string,
margin: React.PropTypes.number,
marginTop: React.PropTypes.number,
marginBottom: React.PropTypes.number,
marginLeft: React.PropTypes.number,
marginRight: React.PropTypes.number
value: PropTypes.string.isRequired,
renderer: PropTypes.string,
format: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
displayValue: PropTypes.bool,
fontOptions: PropTypes.string,
font: PropTypes.string,
textAlign: PropTypes.string,
textPosition: PropTypes.string,
textMargin: PropTypes.number,
fontSize: PropTypes.number,
background: PropTypes.string,
lineColor: PropTypes.string,
margin: PropTypes.number,
marginTop: PropTypes.number,
marginBottom: PropTypes.number,
marginLeft: PropTypes.number,
marginRight: PropTypes.number
},

@@ -46,0 +46,0 @@

{
"name": "react-barcode",
"version": "1.1.0",
"version": "1.2.0",
"description": "React component to generate barcodes",

@@ -26,6 +26,8 @@ "keywords": [

],
"dependencies": {
"jsbarcode": "~3.4.0",
"peerDependencies": {
"react": "^15.0.0"
},
"dependencies": {
"jsbarcode": "~3.4.0"
},
"devDependencies": {

@@ -38,4 +40,6 @@ "babel-cli": "^6.4.0",

"browserify": "^13.0.0",
"create-react-class": "^15.5.3",
"eslint": "^1.6.0",
"eslint-plugin-react": "^3.5.1",
"prop-types": "^15.5.10",
"react": "^15.0.0",

@@ -42,0 +46,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