Socket
Socket
Sign inDemoInstall

electron-pdf-window

Package Overview
Dependencies
5
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

7

index.js

@@ -14,5 +14,8 @@ const { BrowserWindow } = require('electron')

const buffer = readChunk.sync(fileUrl, 0, 262)
const ft = fileType(buffer)
resolve(fileType(buffer).mime === 'application/pdf')
} else if (url.match(/.pdf$/i)) {
if (!ft) return resolve(false)
resolve(ft.mime === 'application/pdf')
} else if (url.match(/\.pdf$/i)) {
resolve(true)

@@ -19,0 +22,0 @@ } else {

{
"name": "electron-pdf-window",
"version": "1.0.2",
"version": "1.0.3",
"description": "view PDF files in electron browser windows",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc