You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-pdf

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pdf - npm Package Compare versions

Comparing version

to
10.0.0

dist/Document.d.ts

50

package.json
{
"name": "react-pdf",
"version": "9.2.1",
"version": "10.0.0",
"description": "Display PDFs in your React app as easily as if they were images.",

@@ -9,19 +9,7 @@ "type": "module",

],
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"main": "./dist/index.js",
"source": "./src/index.ts",
"types": "./dist/cjs/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./dist/Page/AnnotationLayer.css": {
"import": "./dist/esm/Page/AnnotationLayer.css",
"require": "./dist/cjs/Page/AnnotationLayer.css"
},
"./dist/Page/TextLayer.css": {
"import": "./dist/esm/Page/TextLayer.css",
"require": "./dist/cjs/Page/TextLayer.css"
},
".": "./dist/index.js",
"./*": "./*"

@@ -31,8 +19,5 @@ },

"build": "yarn build-js && yarn copy-styles",
"build-js": "yarn build-js-esm && yarn build-js-cjs && yarn build-js-cjs-package",
"build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm",
"build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false",
"build-js-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
"clean": "rimraf dist",
"copy-styles": "cpy 'src/**/*.css' dist/esm && cpy 'src/**/*.css' dist/cjs",
"build-js": "tsc --project tsconfig.build.json",
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true })\"",
"copy-styles": "cpy 'src/**/*.css' dist",
"format": "biome format",

@@ -44,3 +29,3 @@ "lint": "biome lint",

"unit": "vitest",
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & node --eval \"fs.watch('src', () => child_process.exec('yarn copy-styles'))\""
"watch": "yarn build-js --watch & node --eval \"fs.watch('src', () => child_process.exec('yarn copy-styles'))\""
},

@@ -60,6 +45,6 @@ "keywords": [

"dequal": "^2.0.3",
"make-cancellable-promise": "^1.3.1",
"make-event-props": "^1.6.0",
"merge-refs": "^1.3.0",
"pdfjs-dist": "4.8.69",
"make-cancellable-promise": "^2.0.0",
"make-event-props": "^2.0.0",
"merge-refs": "^2.0.0",
"pdfjs-dist": "5.3.31",
"tiny-invariant": "^1.0.0",

@@ -69,3 +54,3 @@ "warning": "^4.0.0"

"devDependencies": {
"@biomejs/biome": "1.9.0",
"@biomejs/biome": "2.0.0",
"@testing-library/dom": "^10.0.0",

@@ -78,11 +63,10 @@ "@testing-library/jest-dom": "^6.0.0",

"@types/warning": "^3.0.0",
"canvas": "^3.0.0-rc2",
"core-js": "^3.37.0",
"@vitest/browser": "^3.2.3",
"cpy-cli": "^5.0.0",
"jsdom": "^24.0.0",
"playwright": "^1.51.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^6.0.0",
"typescript": "^5.5.2",
"vitest": "^2.1.1"
"vitest": "^3.2.3",
"vitest-browser-react": "^0.2.0"
},

@@ -89,0 +73,0 @@ "peerDependencies": {

@@ -14,2 +14,3 @@ import type {

TextItem,
TextMarkedContent,
} from 'pdfjs-dist/types/src/display/api.js';

@@ -19,2 +20,4 @@ import type { AnnotationLayerParameters } from 'pdfjs-dist/types/src/display/annotation_layer.js';

export type { PasswordResponses, StructTreeNode, TextContent, TextItem, TextMarkedContent };
type NullableObject<T extends object> = { [P in keyof T]: T[P] | null };

@@ -21,0 +24,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 not supported yet

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

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

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

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.