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

@react-pdf-viewer/properties

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-pdf-viewer/properties - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

38

lib/cjs/properties.js

@@ -156,18 +156,32 @@ 'use strict';

React__namespace.createElement("div", { className: "rpv-properties__modal-section" },
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.fileName : 'File name'), value: data.fileName || getFileName(fileName) }),
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.fileSize : 'File size'), value: getFileSize(data.length) })),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties
? l10n.properties.fileName
: 'File name', value: data.fileName || getFileName(fileName) }),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties
? l10n.properties.fileSize
: 'File size', value: getFileSize(data.length) })),
React__namespace.createElement(core.Separator, null),
React__namespace.createElement("div", { className: "rpv-properties__modal-section" },
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.title : 'Title'), value: data.info.Title }),
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.author : 'Author'), value: data.info.Author }),
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.subject : 'Subject'), value: data.info.Subject }),
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.keywords : 'Keywords'), value: data.info.Keywords }),
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.creator : 'Creator'), value: data.info.Creator }),
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.creationDate : 'Creation date'), value: formatDate(data.info.CreationDate) }),
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.modificationDate : 'Modification date'), value: formatDate(data.info.ModDate) })),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties ? l10n.properties.title : 'Title', value: data.info.Title }),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties ? l10n.properties.author : 'Author', value: data.info.Author }),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties ? l10n.properties.subject : 'Subject', value: data.info.Subject }),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties ? l10n.properties.keywords : 'Keywords', value: data.info.Keywords }),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties ? l10n.properties.creator : 'Creator', value: data.info.Creator }),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties
? l10n.properties.creationDate
: 'Creation date', value: formatDate(data.info.CreationDate) }),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties
? l10n.properties.modificationDate
: 'Modification date', value: formatDate(data.info.ModDate) })),
React__namespace.createElement(core.Separator, null),
React__namespace.createElement("div", { className: "rpv-properties__modal-section" },
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.pdfProducer : 'PDF producer'), value: data.info.Producer }),
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.pdfVersion : 'PDF version'), value: data.info.PDFFormatVersion }),
React__namespace.createElement(PropertyItem, { label: (l10n && l10n.properties ? l10n.properties.pageCount : 'Page count'), value: "".concat(doc.numPages) })))); };
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties
? l10n.properties.pdfProducer
: 'PDF producer', value: data.info.Producer }),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties
? l10n.properties.pdfVersion
: 'PDF version', value: data.info.PDFFormatVersion }),
React__namespace.createElement(PropertyItem, { label: l10n && l10n.properties
? l10n.properties.pageCount
: 'Page count', value: "".concat(doc.numPages) })))); };
return (React__namespace.createElement("div", { className: "rpv-properties__modal" },

@@ -174,0 +188,0 @@ React__namespace.createElement(PropertiesLoader, { doc: doc, render: renderData }),

{
"name": "@react-pdf-viewer/properties",
"version": "3.2.0",
"version": "3.3.0",
"description": "A React component to view a PDF document",

@@ -36,7 +36,7 @@ "license": "https://react-pdf-viewer.dev/license",

"dependencies": {
"@react-pdf-viewer/core": "3.2.0"
"@react-pdf-viewer/core": "3.3.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0"
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},

@@ -52,3 +52,3 @@ "publishConfig": {

},
"gitHead": "7a8c5dc0f07735b2e1876a787657ec27040b7086"
"gitHead": "fc1c00e3802d538f2f96b6a241e995493a601f61"
}
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