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

react-pdf-js

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pdf-js - npm Package Compare versions

Comparing version 1.0.31 to 1.0.32

12

lib/Pdf.js

@@ -346,5 +346,9 @@ 'use strict';

return page ? _react2.default.createElement('canvas', { ref: function ref(c) {
return page ? _react2.default.createElement('canvas', {
ref: function ref(c) {
_this3.canvas = c;
} }) : loading || _react2.default.createElement(
},
className: this.props.className,
style: this.props.style
}) : loading || _react2.default.createElement(
'div',

@@ -376,3 +380,5 @@ null,

onDocumentComplete: _react2.default.PropTypes.func,
onPageComplete: _react2.default.PropTypes.func
onPageComplete: _react2.default.PropTypes.func,
className: _react2.default.PropTypes.string,
style: _react2.default.PropTypes.object
};

@@ -379,0 +385,0 @@ Pdf.defaultProps = { page: 1, scale: 1.0 };

{
"name": "react-pdf-js",
"version": "1.0.31",
"version": "1.0.32",
"description": "A React component to wrap PDF.js",

@@ -33,7 +33,7 @@ "main": "./lib/index.js",

"peerDependencies": {
"react": "^15.3.2 || ~0.14.0",
"react-dom": "^15.0.0 || ~0.14.0"
"react": "^15.4.1 || ~0.14.0",
"react-dom": "^15.4.1 || ~0.14.0"
},
"dependencies": {
"pdfjs-dist": "1.6.313"
"pdfjs-dist": "1.6.361"
},

@@ -43,4 +43,4 @@ "devDependencies": {

"babel-core": "6.18.2",
"babel-eslint": "7.1.0",
"babel-loader": "6.2.7",
"babel-eslint": "7.1.1",
"babel-loader": "6.2.8",
"babel-plugin-react-transform": "2.0.2",

@@ -52,9 +52,9 @@ "babel-plugin-transform-runtime": "6.15.0",

"babel-runtime": "6.18.0",
"eslint": "3.9.1",
"eslint": "3.11.1",
"eslint-config-airbnb": "13.0.0",
"eslint-plugin-import": "2.2.0",
"eslint-plugin-jsx-a11y": "2.2.3",
"eslint-plugin-react": "6.6.0",
"react": "15.3.2",
"react-dom": "15.3.2",
"eslint-plugin-react": "6.7.1",
"react": "15.4.1",
"react-dom": "15.4.1",
"rifraf": "2.0.3",

@@ -61,0 +61,0 @@ "rimraf": "2.5.4",

@@ -241,3 +241,7 @@ import React from 'react';

return page ?
<canvas ref={(c) => { this.canvas = c; }} /> :
<canvas
ref={(c) => { this.canvas = c; }}
className={this.props.className}
style={this.props.style}
/> :
loading || <div>Loading PDF...</div>;

@@ -265,2 +269,4 @@ }

onPageComplete: React.PropTypes.func,
className: React.PropTypes.string,
style: React.PropTypes.object,
};

@@ -267,0 +273,0 @@ Pdf.defaultProps = { page: 1, scale: 1.0 };

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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