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

super-pdfkit

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super-pdfkit - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

index.js

@@ -90,7 +90,8 @@ 'use strict';

}
const marginedPageWidth = this.page.width - ( this.page.margins.left + this.page.margins.right );
options = {
width: this.page.width - ( this.page.margins.left + this.page.margins.right ),
width: marginedPageWidth,
...options
};
return this.image( img, ( this.page.width - options.width ) / 2, y, options );
return this.image( img, ( marginedPageWidth - options.width ) / 2 + this.page.margins.left, y, options );
}

@@ -97,0 +98,0 @@ textCenter( txt, y = this.y, options = {} ) {

2

package.json
{
"name": "super-pdfkit",
"version": "0.0.3",
"version": "0.0.4",
"description": "Enhanced pdfkit with some useful methods (thx to: pdfkit and pdfkit-table authors)",

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

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