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

ng2-pdf-viewer

Package Overview
Dependencies
Maintainers
0
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-pdf-viewer - npm Package Compare versions

Comparing version 10.3.1 to 10.3.2

4

package.json
{
"name": "ng2-pdf-viewer",
"version": "10.3.1",
"version": "10.3.2",
"description": "Angular 5+ component for rendering PDF",

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

"dependencies": {
"pdfjs-dist": "^4.5.136",
"pdfjs-dist": "4.5.136",
"tslib": "^2.3.0"

@@ -30,0 +30,0 @@ },

@@ -514,5 +514,5 @@ <h1 align="center">Angular PDF Viewer</h1>

In your code update `path` to the worker to be for example `/pdf.worker.js`
In your code update `path` to the worker to be for example `/pdf.worker.mjs`
```typescript
(window as any).pdfWorkerSrc = '/pdf.worker.js';
(window as any).pdfWorkerSrc = '/pdf.worker.mjs';
```

@@ -528,3 +528,3 @@

```typescript
(window as any)["pdfWorkerSrc2.14.305"] = '/pdf.worker.js';
(window as any)["pdfWorkerSrc2.14.305"] = '/pdf.worker.mjs';
```

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