Socket
Socket
Sign inDemoInstall

pdfjs

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfjs - npm Package Compare versions

Comparing version 2.3.5 to 2.3.6

6

CHANGELOG.md

@@ -9,2 +9,8 @@ # Changelog

## [2.3.6] - 2020-04-28
### Fixed
- allow any whitespace between obj version and rev numbers when parsing PDF (fixes parsing of some PDF)
- trim whitespace before starting to parse a PDF object (fixes parsing of MS print to PDF documents)
- fix color space of embedded grayscale JPEGs #210
## [2.3.5] - 2020-03-03

@@ -11,0 +17,0 @@ ### Fixed

2

lib/image/jpeg.js

@@ -45,3 +45,3 @@ 'use strict'

case 1:
this.colorSpace = 'DeviceGRAY'
this.colorSpace = 'DeviceGray'
break

@@ -48,0 +48,0 @@ }

@@ -56,3 +56,3 @@ 'use strict'

throw new Error('Invalid name')
throw new Error('Name must start with a leading slash, found: ' + lexer.getString(1))
}

@@ -59,0 +59,0 @@

@@ -42,2 +42,3 @@ 'use strict'

lexer.skipWhitespace(null, true)
const id = lexer.readNumber(trial)

@@ -47,3 +48,3 @@ if (id === undefined && !trial) {

}
lexer.skipSpace(1, trial)
lexer.skipWhitespace(1, trial)
const generation = lexer.readNumber(trial)

@@ -54,3 +55,3 @@ if (generation === undefined && !trial) {

lexer.skipSpace(1, trial)
lexer.skipWhitespace(1, trial)
if (lexer.getString(3) !== 'obj') {

@@ -57,0 +58,0 @@ if (trial) {

@@ -35,3 +35,3 @@ 'use strict'

lexer.skipSpace(1, trial)
lexer.skipWhitespace(1, trial)
const generation = lexer.readNumber(trial)

@@ -42,3 +42,3 @@ if (generation === undefined && !trial) {

lexer.skipSpace(1, trial)
lexer.skipWhitespace(1, trial)
if (lexer.getString(1) !== 'R') {

@@ -45,0 +45,0 @@ if (trial) {

@@ -156,3 +156,3 @@ 'use strict'

if (!trial) {
this._error('Invalid number: ' + String.fromCharCode(c))
this._error('Invalid number at ' + this.pos + ': ' + String.fromCharCode(c) + ' (code: ' + c + ')')
}

@@ -159,0 +159,0 @@ this.pos = before

{
"name": "pdfjs",
"author": "Markus Ast <npm.m@rkusa.st>",
"version": "2.3.5",
"version": "2.3.6",
"description": "A Portable Document Format (PDF) generation library targeting both the server- and client-side.",

@@ -21,12 +21,12 @@ "keywords": [

"@rkusa/linebreak": "^1.0.0",
"opentype.js": "^1.1.0",
"pako": "^1.0.10",
"readable-stream": "^3.5.0",
"opentype.js": "^1.3.3",
"pako": "^1.0.11",
"readable-stream": "^3.6.0",
"unorm": "^1.6.0",
"uuid": "^3.4.0"
"uuid": "^7.0.3"
},
"devDependencies": {
"@types/node": "^13.5.0",
"tape": "^4.13.0",
"typescript": "^3.7.5"
"@types/node": "^13.13.4",
"tape": "^5.0.0",
"typescript": "^3.8.3"
},

@@ -33,0 +33,0 @@ "repository": {

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