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

exif-size-loader

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exif-size-loader - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

11

index.js

@@ -36,9 +36,12 @@

const exif = {
camera: res.image.Make ? `${res.image.Make} ${res.image.Model}` :'',
aperture: res.exif.FNumber || '',
Make: res.image.Make || '',
Model: res.image.Model || '',
FNumber: res.exif.FNumber || '',
ISO: res.exif.ISO || '',
ExposureTime: res.exif.ExposureTime || '',
'Focal': res.exif.FocalLength || '',
'FocalLengthIn35mmFormat': res.exif.FocalLengthIn35mmFormat || ''
FocalLength: res.exif.FocalLength || '',
FocalLengthIn35mmFormat: res.exif.FocalLengthIn35mmFormat || '',
DateTimeOriginal: res.exif.DateTimeOriginal || ''
}
console.log(exif)
return resolve({exif});

@@ -45,0 +48,0 @@ });

{
"name": "exif-size-loader",
"version": "0.2.1",
"version": "0.2.2",
"description": "EXIF metadata and size loader module for Webpack.",

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

@@ -15,7 +15,7 @@

test('Has Exif/IPTC data', (t) => {
test('Has Exif data', (t) => {
t.plan(2);
exifLoader.call(getContext(IMG_EXIF, (_, data) => {
const result = eval(data);
t.equal(result.exif.aperture, 8);
t.equal(result.exif.FNumber, 8);
t.notOk(result.src);

@@ -25,3 +25,3 @@ }));

test('Has Exif/IPTC data & src', (t) => {
test('Has Exif data & src', (t) => {
const src = path.basename(IMG_EXIF);

@@ -32,3 +32,3 @@ const content = `module.exports = "./${src}"`;

const result = eval(data);
t.equal(result.exif.aperture, 8);
t.equal(result.exif.FNumber, 8);
t.equal(result.size.width, 816);

@@ -39,3 +39,3 @@ t.equal(result.src, `./${src}`);

test('Has no Exif/IPTC data', (t) => {
test('Has no Exif data', (t) => {
t.plan(1);

@@ -48,3 +48,3 @@ exifLoader.call(getContext(IMG_NO_EXIF, (_, data) => {

test('Has no Exif/IPTC data & src', (t) => {
test('Has no Exif data & src', (t) => {
const src = path.basename(IMG_NO_EXIF);

@@ -55,5 +55,5 @@ const content = `module.exports = "./${src}"`;

const result = eval(data);
t.notOk(result.exif.aperture);
t.notOk(result.exif.FNumber);
t.equal(result.src, `./${src}`);
}), content);
});
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