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 2.0.4 to 2.0.5

4

lib/Pdf.js

@@ -198,4 +198,4 @@ 'use strict';

var newDocInit = newProps.documentInitParameters.url ? newProps.documentInitParameters.url : null;
var docInit = this.props.documentInitParameters.url ? this.props.documentInitParameters.url : null;
var newDocInit = newProps.documentInitParameters && newProps.documentInitParameters.url ? newProps.documentInitParameters.url : null;
var docInit = this.props.documentInitParameters && this.props.documentInitParameters.url ? this.props.documentInitParameters.url : null;

@@ -202,0 +202,0 @@ // Only reload if the most significant source has changed!

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

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -125,5 +125,5 @@ import React from 'react';

const newDocInit = newProps.documentInitParameters.url ?
const newDocInit = (newProps.documentInitParameters && newProps.documentInitParameters.url) ?
newProps.documentInitParameters.url : null;
const docInit = this.props.documentInitParameters.url ?
const docInit = (this.props.documentInitParameters && this.props.documentInitParameters.url) ?
this.props.documentInitParameters.url : null;

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