expo-image-manipulator
Advanced tools
Comparing version 9.2.1 to 9.2.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95591