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

pdf-powerpoint

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf-powerpoint - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

19

lib/powerpoint.js

@@ -323,7 +323,8 @@ 'use strict'

fs.stat(stagingDir, (err, s) => {
if (err || !s.exists()) {
if (err || !s.isDirectory()) {
pdfLogger(this.options.jobId, 'staging directory:', stagingDir, 'does not exist, creating a new one')
return this._createTempStagingDirectory()
} else {
this._createImageDirectory(stagingDir, reject, resolve)
}
resolve(stagingDir)
})

@@ -338,8 +339,5 @@ } else {

return new Promise((resolve, reject) => {
fs.mkdtemp(`${os.tmpdir()}/pdf_ppt_`, (err, folder) => {
fs.mkdtemp(path.join(os.tmpdir(), 'pdf_ppt_'), (err, folder) => {
if (err) reject(err)
fs.mkdir(path.resolve(folder, 'img'), (err) => {
if (err) reject(err)
resolve(folder)
})
this._createImageDirectory(folder, reject, resolve)
})

@@ -349,2 +347,9 @@ })

_createImageDirectory (folder, reject, resolve) {
fs.mkdir(path.resolve(folder, 'img'), (err) => {
if (err) reject(err)
resolve(folder)
})
}
nowInMillis () {

@@ -351,0 +356,0 @@ return Date.now() // process.hrtime()[1] / 1000000

{
"name": "pdf-powerpoint",
"version": "1.1.2",
"version": "1.1.3",
"description": "Converts one or more PDFs into a powerpoint with one pdf page per slide",

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

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