Huge News!Announcing our $40M Series B led by Abstract Ventures.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.0.0 to 1.1.0

6

lib/mixins/info.js

@@ -45,2 +45,8 @@ const PDF = require('../object')

}
if (infoOptions.custom) {
Object.keys(infoOptions.custom).forEach(key => {
infoObject.prop(key, new PDF.String(infoOptions.custom[key]))
})
}
}

3

lib/object/name.js

@@ -43,3 +43,4 @@ function intToHex (i) {

}
return '#' + code
return '#' + intToHex(code)
})

@@ -46,0 +47,0 @@

{
"name": "@jsreport/pdfjs",
"version": "1.0.0",
"version": "1.1.0",
"description": "",

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

@@ -126,3 +126,8 @@ const { Document, External } = require('../')

producer: 'Foo-producer',
language: 'cz-CZ'
language: 'cz-CZ',
custom: {
serialNumber: 'Foo-123',
'Property With Spaces': 'foo-property-with-spaces',
Property_With_Underscores: 'foo-property-with-underscores'
}
})

@@ -146,2 +151,5 @@

info.properties.get('Producer').toString().should.be.eql('(Foo-producer)')
info.properties.get('serialNumber').toString().should.be.eql('(Foo-123)')
info.properties.get('Property With Spaces').toString().should.be.eql('(foo-property-with-spaces)')
info.properties.get('Property_With_Underscores').toString().should.be.eql('(foo-property-with-underscores)')
catalog.properties.get('Lang').toString().should.be.eql('(cz-CZ)')

@@ -681,3 +689,8 @@ })

producer: 'Foo-producer',
language: 'cz-CZ'
language: 'cz-CZ',
custom: {
serialNumber: 'Foo-123',
'Property With Spaces': 'foo-property-with-spaces',
Property_With_Underscores: 'foo-property-with-underscores'
}
})

@@ -696,2 +709,5 @@

info.properties.get('Producer').toString().should.be.eql('(Foo-producer)')
info.properties.get('serialNumber').toString().should.be.eql('(Foo-123)')
info.properties.get('Property With Spaces').toString().should.be.eql('(foo-property-with-spaces)')
info.properties.get('Property_With_Underscores').toString().should.be.eql('(foo-property-with-underscores)')
catalog.properties.get('Lang').toString().should.be.eql('(cz-CZ)')

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