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

expo-image-manipulator

Package Overview
Dependencies
Maintainers
25
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.2.1 to 9.2.2

6

build/validators.js

@@ -68,6 +68,6 @@ import { FlipType, SaveFormat, } from './ImageManipulator.types';

action.resize !== null &&
typeof action.resize.width === 'number' &&
typeof action.resize.height === 'number';
(typeof action.resize.width === 'number' || typeof action.resize.width === 'undefined') &&
(typeof action.resize.height === 'number' || typeof action.resize.height === 'undefined');
if (!isValid) {
throw new TypeError('Resize action must be an object of shape { width: number; height: number }');
throw new TypeError('Resize action must be an object of shape { width?: number; height?: number }');
}

@@ -74,0 +74,0 @@ }

@@ -13,2 +13,8 @@ # Changelog

## 9.2.2 — 2021-06-23
### 🐛 Bug fixes
- Fix resize action validator to allow providing just one of `width` or `height`. ([#13369](https://github.com/expo/expo/pull/13369) by [@cruzach](https://github.com/cruzach))
## 9.2.1 — 2021-06-22

@@ -15,0 +21,0 @@

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

@@ -42,3 +42,3 @@ "main": "build/ImageManipulator.js",

},
"gitHead": "6e8cfadff90f106d6321d0dd8c4158f12a973d30"
"gitHead": "7f0e39e0f45a4ade0ddb603d50983fad2e831908"
}

@@ -90,7 +90,7 @@ import {

action.resize !== null &&
typeof action.resize.width === 'number' &&
typeof action.resize.height === 'number';
(typeof action.resize.width === 'number' || typeof action.resize.width === 'undefined') &&
(typeof action.resize.height === 'number' || typeof action.resize.height === 'undefined');
if (!isValid) {
throw new TypeError(
'Resize action must be an object of shape { width: number; height: number }'
'Resize action must be an object of shape { width?: number; height?: number }'
);

@@ -97,0 +97,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