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

calipers-pdf

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calipers-pdf - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

.github/workflows/ci.yml

8

CHANGELOG.md
## Change Log
**2.2.0** — _December 11, 2019_ — [Diff](https://github.com/calipersjs/calipers-pdf/compare/2.1.0...2.2.0)
**2.2.1** — _July 20, 2021_ — [Diff](https://github.com/calipersjs/calipers-pdf/compare/v2.2.0...v2.2.1)
* Upgrade poppler-simple to 0.10.1
**2.2.0** — _December 11, 2019_ — [Diff](https://github.com/calipersjs/calipers-pdf/compare/v2.1.0...v2.2.0)
* Upgrade poppler-simple to 0.8.0
**2.1.0** — _December 17, 2018_ — [Diff](https://github.com/calipersjs/calipers-pdf/compare/2.0.0...2.1.0)
**2.1.0** — _December 17, 2018_ — [Diff](https://github.com/calipersjs/calipers-pdf/compare/2.0.0...v2.1.0)
* Includes the boolean `isEncrypted` property in the returned object of `measure()`
{
"name": "calipers-pdf",
"version": "2.2.0",
"version": "2.2.1",
"description": "PDF plugin for calipers.",

@@ -38,3 +38,3 @@ "main": "lib/index.js",

"bluebird": "^3.7.2",
"poppler-simple": "^0.8.0"
"poppler-simple": "^0.10.1"
},

@@ -41,0 +41,0 @@ "peerDependencies": {

@@ -1,5 +0,6 @@

#calipers-pdf
# calipers-pdf
[![npm version](https://badge.fury.io/js/calipers-pdf.svg)](http://badge.fury.io/js/calipers-pdf) [![Build Status](https://travis-ci.org/calipersjs/calipers-pdf.svg?branch=master)](https://travis-ci.org/calipersjs/calipers-pdf)
[![npm version](https://badge.fury.io/js/calipers-pdf.svg)](http://badge.fury.io/js/calipers-pdf) ![Build Status](https://github.com/calipersjs/calipers-pdf/actions/workflows/main.yml/badge.svg?branch=master)
PDF Plugin for [Calipers](https://github.com/calipersjs/calipers). It can be

@@ -26,6 +27,6 @@ used to measure the page dimensions of a PDF and to check whether or not a PDF

To use, install calipers and calipers-pdf via yarn:
To use, install calipers and calipers-pdf via npm:
```
yarn add calipers calipers-pdf
npm install calipers calipers-pdf
```

@@ -32,0 +33,0 @@

@@ -49,10 +49,10 @@ 'use strict';

return pdf.measure(pdfPath)
.bind({})
.then((result) => {
for (let i = 0; i < result.pages.length; i++) {
result.pages[i].width = Math.round(result.pages[i].width);
result.pages[i].height = Math.round(result.pages[i].height);
}
expect(result).to.eql(expectedOutput);
});
.bind({})
.then((result) => {
for (let i = 0; i < result.pages.length; i++) {
result.pages[i].width = Math.round(result.pages[i].width);
result.pages[i].height = Math.round(result.pages[i].height);
}
expect(result).to.eql(expectedOutput);
});
});

@@ -74,5 +74,5 @@ });

return pdf.measure(pdfPath)
.then((result) => {
expect(result.encrypted).to.be.true;
});
.then((result) => {
expect(result.encrypted).to.be.true;
});
});

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