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

@expo/image-utils

Package Overview
Dependencies
Maintainers
24
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/image-utils - npm Package Compare versions

Comparing version 0.3.14 to 0.3.15

4

build/Image.js

@@ -127,2 +127,6 @@ "use strict";

};
// Default to contain
if (!icon.resizeMode) {
icon.resizeMode = 'contain';
}
const mimeType = mime_1.default.getType(icon.src);

@@ -129,0 +133,0 @@ if (!mimeType) {

@@ -122,4 +122,14 @@ "use strict";

exports.getJimpImageAsync = getJimpImageAsync;
async function resize({ input, quality = 100 }, { background, position, fit, width, height = es_1.default.AUTO }) {
async function resize({ input, quality = 100 }, { background, position, fit, width, height }) {
let initialImage = await getJimpImageAsync(input);
if (width && !height) {
height = es_1.default.AUTO;
}
else if (!width && height) {
width = es_1.default.AUTO;
}
else {
width = initialImage.bitmap.width;
height = initialImage.bitmap.height;
}
const jimpPosition = convertPosition(position);

@@ -126,0 +136,0 @@ const jimpQuality = typeof quality !== 'number' ? 100 : quality;

4

package.json
{
"name": "@expo/image-utils",
"version": "0.3.14",
"version": "0.3.15",
"description": "A package used by Expo CLI for processing images",

@@ -43,3 +43,3 @@ "main": "build/index.js",

"devDependencies": {
"@expo/babel-preset-cli": "0.2.20",
"@expo/babel-preset-cli": "0.2.21",
"@types/fs-extra": "^9.0.1",

@@ -46,0 +46,0 @@ "@types/getenv": "^0.7.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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