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.0 to 0.2.1

2

index.js

@@ -22,3 +22,3 @@

return {
file: evaluate(`__webpack_public_path__='${publicPath}'; ${content}`),
src: evaluate(`__webpack_public_path__='${publicPath}'; ${content}`),
};

@@ -25,0 +25,0 @@ } catch (e) {

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

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

@@ -20,9 +20,9 @@

t.equal(result.exif.aperture, 8);
t.notOk(result.file);
t.notOk(result.src);
}));
});
test('Has Exif/IPTC data & file', (t) => {
const file = path.basename(IMG_EXIF);
const content = `module.exports = "./${file}"`;
test('Has Exif/IPTC data & src', (t) => {
const src = path.basename(IMG_EXIF);
const content = `module.exports = "./${src}"`;
t.plan(3);

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

t.equal(result.size.width, 816);
t.equal(result.file, `./${file}`);
t.equal(result.src, `./${src}`);
}), content);

@@ -46,5 +46,5 @@ });

test('Has no Exif/IPTC data & file', (t) => {
const file = path.basename(IMG_NO_EXIF);
const content = `module.exports = "./${file}"`;
test('Has no Exif/IPTC data & src', (t) => {
const src = path.basename(IMG_NO_EXIF);
const content = `module.exports = "./${src}"`;
t.plan(2);

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

t.notOk(result.exif.aperture);
t.equal(result.file, `./${file}`);
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