Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdfmake

Package Overview
Dependencies
Maintainers
0
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfmake - npm Package Compare versions

Comparing version 0.3.0-beta.14 to 0.3.0-beta.15

6

CHANGELOG.md
# Changelog
## 0.3.0-beta.15 - 2025-01-01
- Reverted to the original `pdfkit` package, moving away from `@foliojs-fork`
- Update pdfkit to 0.16.0
- Fixed a potential issue in the minimized library when detecting the orientation of JPEG images
## 0.3.0-beta.14 - 2024-12-23

@@ -4,0 +10,0 @@

8

js/browser-extensions/standard-fonts/Courier.js

@@ -7,15 +7,15 @@ "use strict";

'data/Courier.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Courier.afm', 'utf8'),
encoding: 'utf8'
},
'data/Courier-Bold.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier-Bold.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Courier-Bold.afm', 'utf8'),
encoding: 'utf8'
},
'data/Courier-Oblique.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier-Oblique.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Courier-Oblique.afm', 'utf8'),
encoding: 'utf8'
},
'data/Courier-BoldOblique.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier-BoldOblique.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Courier-BoldOblique.afm', 'utf8'),
encoding: 'utf8'

@@ -22,0 +22,0 @@ }

@@ -7,15 +7,15 @@ "use strict";

'data/Helvetica.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Helvetica.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Helvetica.afm', 'utf8'),
encoding: 'utf8'
},
'data/Helvetica-Bold.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Helvetica-Bold.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Helvetica-Bold.afm', 'utf8'),
encoding: 'utf8'
},
'data/Helvetica-Oblique.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Helvetica-Oblique.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Helvetica-Oblique.afm', 'utf8'),
encoding: 'utf8'
},
'data/Helvetica-BoldOblique.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Helvetica-BoldOblique.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Helvetica-BoldOblique.afm', 'utf8'),
encoding: 'utf8'

@@ -22,0 +22,0 @@ }

@@ -7,3 +7,3 @@ "use strict";

'data/Symbol.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Symbol.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Symbol.afm', 'utf8'),
encoding: 'utf8'

@@ -10,0 +10,0 @@ }

@@ -7,15 +7,15 @@ "use strict";

'data/Times-Roman.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-Roman.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Times-Roman.afm', 'utf8'),
encoding: 'utf8'
},
'data/Times-Bold.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-Bold.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Times-Bold.afm', 'utf8'),
encoding: 'utf8'
},
'data/Times-Italic.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-Italic.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Times-Italic.afm', 'utf8'),
encoding: 'utf8'
},
'data/Times-BoldItalic.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-BoldItalic.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Times-BoldItalic.afm', 'utf8'),
encoding: 'utf8'

@@ -22,0 +22,0 @@ }

@@ -7,3 +7,3 @@ "use strict";

'data/ZapfDingbats.afm': {
data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/ZapfDingbats.afm', 'utf8'),
data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/ZapfDingbats.afm', 'utf8'),
encoding: 'utf8'

@@ -10,0 +10,0 @@ }

@@ -120,10 +120,9 @@ "use strict";

};
if (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
};
}

@@ -130,0 +129,0 @@ this.measureImageWithDimensions(node, imageSize);

@@ -5,3 +5,3 @@ "use strict";

exports.default = void 0;
var _pdfkit = _interopRequireDefault(require("@foliojs-fork/pdfkit"));
var _pdfkit = _interopRequireDefault(require("pdfkit"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }

@@ -8,0 +8,0 @@ const typeName = (bold, italics) => {

@@ -5,3 +5,3 @@ "use strict";

exports.default = void 0;
var _linebreak = _interopRequireDefault(require("@foliojs-fork/linebreak"));
var _linebreak = _interopRequireDefault(require("linebreak"));
var _variableType = require("./helpers/variableType");

@@ -8,0 +8,0 @@ var _StyleContextStack = _interopRequireDefault(require("./StyleContextStack"));

{
"name": "pdfmake",
"version": "0.3.0-beta.14",
"version": "0.3.0-beta.15",
"description": "Client/server side PDF printing in pure JavaScript",

@@ -12,13 +12,12 @@ "main": "js/index.js",

"dependencies": {
"@foliojs-fork/linebreak": "^1.1.2",
"@foliojs-fork/pdfkit": "^0.15.2",
"iconv-lite": "^0.6.3",
"linebreak": "^1.1.0",
"pdfkit": "^0.16.0",
"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",

@@ -29,9 +28,9 @@ "babel-loader": "^9.2.1",

"buffer": "6.0.3",
"core-js": "3.19.0",
"eslint": "^9.14.0",
"eslint-plugin-jsdoc": "^50.4.3",
"core-js": "3.39.0",
"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 +45,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 +52,0 @@ "engines": {

@@ -5,6 +5,6 @@ var fs = require('fs');

vfs: {
'data/Courier.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier.afm', 'utf8'), encoding: 'utf8' },
'data/Courier-Bold.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier-Bold.afm', 'utf8'), encoding: 'utf8' },
'data/Courier-Oblique.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier-Oblique.afm', 'utf8'), encoding: 'utf8' },
'data/Courier-BoldOblique.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier-BoldOblique.afm', 'utf8'), encoding: 'utf8' }
'data/Courier.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Courier.afm', 'utf8'), encoding: 'utf8' },
'data/Courier-Bold.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Courier-Bold.afm', 'utf8'), encoding: 'utf8' },
'data/Courier-Oblique.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Courier-Oblique.afm', 'utf8'), encoding: 'utf8' },
'data/Courier-BoldOblique.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Courier-BoldOblique.afm', 'utf8'), encoding: 'utf8' }
},

@@ -11,0 +11,0 @@ fonts: {

@@ -5,6 +5,6 @@ var fs = require('fs');

vfs: {
'data/Helvetica.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Helvetica.afm', 'utf8'), encoding: 'utf8' },
'data/Helvetica-Bold.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Helvetica-Bold.afm', 'utf8'), encoding: 'utf8' },
'data/Helvetica-Oblique.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Helvetica-Oblique.afm', 'utf8'), encoding: 'utf8' },
'data/Helvetica-BoldOblique.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Helvetica-BoldOblique.afm', 'utf8'), encoding: 'utf8' }
'data/Helvetica.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Helvetica.afm', 'utf8'), encoding: 'utf8' },
'data/Helvetica-Bold.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Helvetica-Bold.afm', 'utf8'), encoding: 'utf8' },
'data/Helvetica-Oblique.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Helvetica-Oblique.afm', 'utf8'), encoding: 'utf8' },
'data/Helvetica-BoldOblique.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Helvetica-BoldOblique.afm', 'utf8'), encoding: 'utf8' }
},

@@ -11,0 +11,0 @@ fonts: {

@@ -5,3 +5,3 @@ var fs = require('fs');

vfs: {
'data/Symbol.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Symbol.afm', 'utf8'), encoding: 'utf8' }
'data/Symbol.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Symbol.afm', 'utf8'), encoding: 'utf8' }
},

@@ -8,0 +8,0 @@ fonts: {

@@ -5,6 +5,6 @@ var fs = require('fs');

vfs: {
'data/Times-Roman.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-Roman.afm', 'utf8'), encoding: 'utf8' },
'data/Times-Bold.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-Bold.afm', 'utf8'), encoding: 'utf8' },
'data/Times-Italic.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-Italic.afm', 'utf8'), encoding: 'utf8' },
'data/Times-BoldItalic.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-BoldItalic.afm', 'utf8'), encoding: 'utf8' }
'data/Times-Roman.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Times-Roman.afm', 'utf8'), encoding: 'utf8' },
'data/Times-Bold.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Times-Bold.afm', 'utf8'), encoding: 'utf8' },
'data/Times-Italic.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Times-Italic.afm', 'utf8'), encoding: 'utf8' },
'data/Times-BoldItalic.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/Times-BoldItalic.afm', 'utf8'), encoding: 'utf8' }
},

@@ -11,0 +11,0 @@ fonts: {

@@ -5,3 +5,3 @@ var fs = require('fs');

vfs: {
'data/ZapfDingbats.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/ZapfDingbats.afm', 'utf8'), encoding: 'utf8' }
'data/ZapfDingbats.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/pdfkit/js/data/ZapfDingbats.afm', 'utf8'), encoding: 'utf8' }
},

@@ -8,0 +8,0 @@ fonts: {

@@ -134,7 +134,5 @@ import TextInlines from './TextInlines';

if (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 };
}

@@ -141,0 +139,0 @@

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

import PDFKit from '@foliojs-fork/pdfkit';
import PDFKit from 'pdfkit';

@@ -3,0 +3,0 @@ const typeName = (bold, italics) => {

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

import LineBreaker from '@foliojs-fork/linebreak';
import LineBreaker from 'linebreak';
import { isObject } from './helpers/variableType';

@@ -3,0 +3,0 @@ import StyleContextStack from './StyleContextStack';

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

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