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

@jsreport/jsreport-pdf-utils

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsreport/jsreport-pdf-utils - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

6

lib/main.js

@@ -1,2 +0,1 @@

const path = require('path')

@@ -52,7 +51,2 @@ const missingSecretMessage = 'pdf-sign extension uses encryption to store sensitive data and needs secret key to be defined. Please fill "encryption.secretKey" at the root of the config or disable encryption using "encryption.enabled=false".'

if (reporter.compilation) {
reporter.compilation.resource('pdfjs-dist-lib-files', path.join(path.dirname(require.resolve('pdfjs-dist/package.json')), 'lib'))
reporter.compilation.resource('pdfjs-dist-legacy-build-files', path.join(path.dirname(require.resolve('pdfjs-dist/package.json')), 'legacy/build'))
}
if (reporter.documentStore.model.entityTypes.TemplateType) {

@@ -59,0 +53,0 @@ reporter.documentStore.model.entityTypes.TemplateType.pdfOperations = { type: 'Collection(jsreport.PdfOperationType)' }

@@ -10,12 +10,2 @@ const path = require('path')

module.exports = (reporter, definition) => {
// warm up of deps to make it work in trustUserCode: false (SES),
// this also allows to not require early when it is not needed. (trustUserCode: true)
// usage of try catch was done to prevent the app to fail here, instead it will fail
// at the same later time in which the dep is used
if (reporter.options.trustUserCode === false) {
try {
require('pdfjs-dist/legacy/build/pdf.js').getDocument(Buffer.from([])).promise.catch(() => {})
} catch {}
}
let helpersScript

@@ -22,0 +12,0 @@

2

package.json
{
"name": "@jsreport/jsreport-pdf-utils",
"version": "4.2.0",
"version": "4.2.1",
"description": "jsreport extension providing pdf operations like merge or concatenation",

@@ -5,0 +5,0 @@ "keywords": [

@@ -10,2 +10,6 @@ # @jsreport/jsreport-pdf-utils

### 4.2.1
- remove references to pdfjs-dist
### 4.2.0

@@ -12,0 +16,0 @@

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