New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jsreport/pdfjs

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsreport/pdfjs - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

test/nested-dictionary.pdf

2

lib/object/dictionary.js

@@ -48,3 +48,3 @@ const PDFName = require('./name')

let val = this.dictionary[key]
if (val instanceof PDFString) {
if (val instanceof PDFString || val instanceof PDFDictionary) {
val = val.toString(encryptionFn)

@@ -51,0 +51,0 @@ }

{
"name": "@jsreport/pdfjs",
"version": "1.4.0",
"version": "1.4.1",
"description": "",

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

@@ -769,2 +769,14 @@ const { Document, External } = require('../')

it('encrypt should password protect nested dictionaries', async () => {
const document = new Document()
const external = new External(fs.readFileSync(path.join(__dirname, 'nested-dictionary.pdf')))
document.append(external)
document.encrypt({
password: 'password',
ownerPassword: 'password'
})
const pdfBuffer = await document.asBuffer()
pdfBuffer.toString().should.not.containEql('https://jsreport.net')
})
it('should sign', async () => {

@@ -771,0 +783,0 @@ const document = new Document()

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