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

@react-pdf-viewer/get-file

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-pdf-viewer/get-file - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

2

lib/cjs/get-file.js

@@ -53,3 +53,3 @@ 'use strict';

var downloadFile = function (file, saveAs) {
var blobUrl = (typeof file.data === 'string')
var blobUrl = typeof file.data === 'string'
? ''

@@ -56,0 +56,0 @@ : URL.createObjectURL(new Blob([file.data], { type: '' }));

{
"name": "@react-pdf-viewer/get-file",
"version": "2.2.0",
"version": "2.2.1",
"description": "A React component to view a PDF document",

@@ -36,3 +36,3 @@ "license": "https://react-pdf-viewer.dev/license",

"dependencies": {
"@react-pdf-viewer/core": "2.2.0"
"@react-pdf-viewer/core": "2.2.1"
},

@@ -50,3 +50,3 @@ "peerDependencies": {

},
"gitHead": "cc37771ea0886faf311ec7d5cd2a5f83aaffca74"
"gitHead": "dc23d3ab29ed34affa25cc4acd25f7fce4e14fd0"
}

@@ -5,3 +5,3 @@ # download plugin

~~~ javascript
```javascript
import { downloadPlugin } from '@react-pdf-viewer/download';

@@ -25,7 +25,7 @@

);
~~~
```
## Use a custom button
~~~ javascript
```javascript
import { downloadPlugin } from '@react-pdf-viewer/download';

@@ -58,13 +58,13 @@

);
~~~
```
## Plugin options
* `fileNameGenerator` (Optional): Custom the name of download file.
- `fileNameGenerator` (Optional): Custom the name of download file.
It is a function accepts the current opened file and returns a `string`:
~~~ javascript
```javascript
(file: OpenFile) => string;
~~~
```

@@ -74,3 +74,3 @@ By default, the name of download file is determined by the `name` properties of `OpenFile`.

~~~ javascript
```javascript
import { OpenFile } from '@react-pdf-viewer/core';

@@ -85,2 +85,2 @@

});
~~~
```
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