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.14 to 1.0.15

24

package.json
{
"name": "react-pdf-js",
"version": "1.0.14",
"version": "1.0.15",
"description": "A React component to wrap PDF.js",

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

"dependencies": {
"pdfjs-dist": "1.5.256"
"pdfjs-dist": "1.5.279"
},
"devDependencies": {
"babel-cli": "6.8.0",
"babel-core": "6.8.0",
"babel-cli": "6.9.0",
"babel-core": "6.9.1",
"babel-eslint": "6.0.4",
"babel-loader": "6.2.4",
"babel-plugin-react-transform": "2.0.2",
"babel-plugin-transform-runtime": "6.8.0",
"babel-plugin-transform-runtime": "6.9.0",
"babel-plugin-typecheck": "3.9.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-es2015": "6.9.0",
"babel-preset-react": "6.5.0",
"babel-runtime": "6.6.1",
"eslint": "2.10.1",
"babel-runtime": "6.9.2",
"eslint": "2.11.1",
"eslint-config-airbnb": "9.0.1",
"eslint-plugin-import": "1.8.0",
"eslint-plugin-import": "1.8.1",
"eslint-plugin-react": "5.1.1",
"eslint-plugin-jsx-a11y": "1.2.0",
"react": "15.0.2",
"eslint-plugin-jsx-a11y": "1.2.2",
"react": "15.1.0",
"rifraf": "2.0.2",
"rimraf": "2.5.2",
"webpack": "1.13.0"
"webpack": "1.13.1"
},

@@ -57,0 +57,0 @@ "npmName": "react-pdf-js",

@@ -49,11 +49,18 @@ #react-pdf-js

renderPagination(page, pages) {
let previousButton = <button type="button" className="btn btn-default" onClick={this.handlePrevious}><i className="fa fa-arrow-left"></i> Previous</button>;
let previousButton = <li className="previous" onClick={this.handlePrevious}><a href="#"><i className="fa fa-arrow-left"></i> Previous</a></li>;
if (page === 1) {
previousButton = <button type="button" className="btn btn-default" disabled><i className="fa fa-arrow-left"></i> Previous</button>;
previousButton = <li className="previous disabled"><a href="#"><i className="fa fa-arrow-left"></i> Previous</a></li>;
}
let nextButton = <button type="button" className="btn btn-default" onClick={this.handleNext}>Next <i className="fa fa-arrow-right"></i></button>;
let nextButton = <li className="next" onClick={this.handleNext}><a href="#">Next <i className="fa fa-arrow-right"></i></a></li>;
if (page === pages) {
nextButton = <button type="button" className="btn btn-default" disabled>Next <i className="fa fa-arrow-right"></i></button>;
nextButton = <li className="next disabled"><a href="#">Next <i className="fa fa-arrow-right"></i></a></li>;
}
return <div>{previousButton} {nextButton}</div>;
return (
<nav>
<ul className="pager">
{previousButton}
{nextButton}
</ul>
</nav>
);
}

@@ -60,0 +67,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