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

@types/pdfjs-dist

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/pdfjs-dist - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

15

pdfjs-dist/index.d.ts

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

// Type definitions for PDF.js v2.0
// Type definitions for PDF.js v2.1
// Project: https://github.com/mozilla/pdf.js

@@ -134,3 +134,3 @@ // Definitions by: Josh Baldwin <https://github.com/jbaldwin>, Dmitrii Sorin <https://github.com/1999>

height: number;
fontScale: number;
scale: number;
transforms: number[];

@@ -144,2 +144,7 @@

interface ViewportParameters {
scale: number; // The desired scale of the viewport.
rotation?: number; // (optional) The desired rotation, in degrees, of the viewport. If omitted it defaults to the page rotation.
dontFlip?: boolean; // (optional) If true, the y-axis will not be flipped. The default value is `false`.
}
interface PDFAnnotationData {

@@ -224,8 +229,6 @@ subtype: string;

/**
* @param scale The desired scale of the viewport.
* @param rotate Degrees to rotate the viewport. If omitted this defaults to the page rotation.
* @param dontFlip
* @param params viewport options
* @return
**/
getViewport(scale: number, rotate?: number, dontFlip?: boolean): PDFPageViewport;
getViewport(params: ViewportParameters): PDFPageViewport;

@@ -232,0 +235,0 @@ /**

4

pdfjs-dist/package.json
{
"name": "@types/pdfjs-dist",
"version": "2.0.1",
"version": "2.1.0",
"description": "TypeScript definitions for PDF.js",

@@ -27,4 +27,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "2e64822c2196066f90de17a626f9ccf023f48470bc075a426b54bd51152cb7f4",
"typesPublisherContentHash": "4a6c834999d99cfa8e612563c3d781ee9e282146fe4f78936a2813f146f0a670",
"typeScriptVersion": "3.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 11 Jul 2019 00:11:53 GMT
* Last updated: Mon, 05 Aug 2019 18:29:07 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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