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

expo-image-manipulator

Package Overview
Dependencies
Maintainers
24
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-image-manipulator - npm Package Compare versions

Comparing version 9.0.0 to 9.1.0

6

build/ExpoImageManipulator.web.js

@@ -177,5 +177,5 @@ import { CodedError } from '@unimodules/core';

// lock sum of crop.
width = Math.min(originX + width, canvas.width);
height = Math.min(originY + height, canvas.height);
if (originX - width === 0 || originY - height === 0) {
width = Math.min(originX + width, canvas.width) - originX;
height = Math.min(originY + height, canvas.height) - originY;
if (width === 0 || height === 0) {
throw new CodedError('ERR_IMAGE_MANIPULATOR_CROP', 'Crop size must be greater than 0: ' + JSON.stringify(crop, null, 2));

@@ -182,0 +182,0 @@ }

@@ -11,6 +11,12 @@ # Changelog

## 9.0.0 — 2021-01-15
## 9.1.0 — 2021-03-10
_This version does not introduce any user-facing changes._
### 🎉 New features
- Updated Android build configuration to target Android 11 (added support for Android SDK 30). ([#11647](https://github.com/expo/expo/pull/11647) by [@bbarthec](https://github.com/bbarthec))
### 🐛 Bug fixes
- Fixed incorrect image cropping on Web. ([#12021](https://github.com/expo/expo/pull/12021) by [@rSkogeby](https://github.com/rskogeby))
## 9.0.0 — 2021-01-15

@@ -17,0 +23,0 @@

{
"name": "expo-image-manipulator",
"version": "9.0.0",
"version": "9.1.0",
"description": "Provides functions that let you manipulation images on the local file system, eg: resize, crop.",

@@ -38,5 +38,5 @@ "main": "build/ImageManipulator.js",

"devDependencies": {
"expo-module-scripts": "~1.2.0"
"expo-module-scripts": "^2.0.0"
},
"gitHead": "e362887ddc6ba4e3518efd623d64b3cbd301a6a9"
"gitHead": "5b57d1fd0a20294c1dec7c43b5df34dd6425d1a5"
}

@@ -243,6 +243,6 @@ import { CodedError } from '@unimodules/core';

// lock sum of crop.
width = Math.min(originX + width, canvas.width);
height = Math.min(originY + height, canvas.height);
width = Math.min(originX + width, canvas.width) - originX;
height = Math.min(originY + height, canvas.height) - originY;
if (originX - width === 0 || originY - height === 0) {
if (width === 0 || height === 0) {
throw new CodedError(

@@ -249,0 +249,0 @@ 'ERR_IMAGE_MANIPULATOR_CROP',

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