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

extractd

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extractd - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

26

extractd.js
const fs = require('fs');
const util = require('util');
const path = require('path');

@@ -7,2 +8,4 @@ const temp = require('temp-dir');

const stat = util.promisify(fs.lstat);
shortid.characters('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@');

@@ -64,2 +67,19 @@

async function exists(source) {
const file = await outcome(stat(source));
if (file.success && file.result.isFile()) {
return true;
}
if (file.success && !file.result.isFile()) {
return false;
}
if (!file.success && file.error.code === 'ENOENT') {
return false;
}
}
function status() {

@@ -93,8 +113,6 @@ return {

if (source === preview) {
preview = `${options.destination}/${target.name}${Array.from(shortid.generate()).slice(0, 9).join('')}.jpg`;
if (await exists(preview)) {
preview = `${options.destination}/${target.name}-${Array.from(shortid.generate()).slice(0, 9).join('')}.jpg`;
}
await outcome(remove(preview));
if (!master.exiftool && (!exiftool && !options.persist)) {

@@ -101,0 +119,0 @@ exiftool = new ExifTool({

2

package.json
{
"name": "extractd",
"version": "1.1.2",
"version": "1.1.3",
"description": "Extract previews from DSLR and mirrorless cameras' RAW files",

@@ -5,0 +5,0 @@ "main": "extractd.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