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

pdfmake

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfmake - npm Package Compare versions

Comparing version

to
0.2.18

# Changelog
## 0.2.18 - 2025-01-01
- Update pdfkit
- Fixed a potential issue in the minimized library when detecting the orientation of JPEG images
## 0.2.17 - 2024-12-23

@@ -4,0 +9,0 @@

{
"name": "pdfmake",
"version": "0.2.17",
"version": "0.2.18",
"description": "Client/server side PDF printing in pure JavaScript",

@@ -12,3 +12,3 @@ "main": "src/printer.js",

"@foliojs-fork/linebreak": "^1.1.2",
"@foliojs-fork/pdfkit": "^0.15.2",
"@foliojs-fork/pdfkit": "^0.15.3",
"iconv-lite": "^0.6.3",

@@ -18,7 +18,7 @@ "xmldoc": "^1.3.0"

"devDependencies": {
"@babel/cli": "^7.25.9",
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-modules-commonjs": "^7.25.9",
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
"@babel/preset-env": "^7.26.0",
"@eslint/js": "^9.14.0",
"@eslint/js": "^9.17.0",
"assert": "^2.1.0",

@@ -30,8 +30,8 @@ "babel-loader": "^9.2.1",

"core-js": "3.19.0",
"eslint": "^9.14.0",
"eslint-plugin-jsdoc": "^50.4.3",
"eslint": "^9.17.0",
"eslint-plugin-jsdoc": "^50.6.1",
"expose-loader": "^5.0.0",
"file-saver": "^2.0.5",
"globals": "^15.11.0",
"mocha": "^10.8.2",
"globals": "^15.14.0",
"mocha": "^11.0.1",
"npm-run-all": "^4.1.5",

@@ -46,7 +46,7 @@ "process": "^0.11.10",

"svg-to-pdfkit": "^0.1.8",
"terser-webpack-plugin": "^5.3.10",
"terser-webpack-plugin": "^5.3.11",
"transform-loader": "^0.2.4",
"util": "^0.12.5",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4"
"webpack": "^5.97.1",
"webpack-cli": "^6.0.1"
},

@@ -53,0 +53,0 @@ "engines": {

@@ -31,7 +31,5 @@ 'use strict';

if (typeof image === 'object' && image.constructor.name === 'JPEG') {
// If EXIF orientation calls for it, swap width and height
if (image.orientation > 4) {
imageSize = { width: image.height, height: image.width };
}
// If EXIF orientation calls for it, swap width and height
if (image.orientation > 4) {
imageSize = { width: image.height, height: image.width };
}

@@ -38,0 +36,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet