@expo/image-utils
Advanced tools
Comparing version 0.5.2-canary-20240927-ab8a962 to 0.6.0-canary-20241008-90b13ad
@@ -24,3 +24,7 @@ "use strict"; | ||
async function createCacheKeyWithDirectoryAsync(projectRoot, type, icon) { | ||
const cacheKey = `${type}-${createCacheKey(icon.src, [icon.resizeMode, icon.backgroundColor])}`; | ||
const iconProperties = [icon.resizeMode]; | ||
if (icon.backgroundColor) { | ||
iconProperties.push(icon.backgroundColor); | ||
} | ||
const cacheKey = `${type}-${createCacheKey(icon.src, iconProperties)}`; | ||
if (!(cacheKey in cacheKeys)) { | ||
@@ -27,0 +31,0 @@ cacheKeys[cacheKey] = await ensureCacheDirectory(projectRoot, type, cacheKey); |
@@ -7,3 +7,3 @@ export type ResizeMode = 'contain' | 'cover' | 'fill' | 'inside' | 'outside'; | ||
resizeMode: ResizeMode; | ||
backgroundColor: string; | ||
backgroundColor?: string; | ||
removeTransparency?: boolean; | ||
@@ -10,0 +10,0 @@ width: number; |
{ | ||
"name": "@expo/image-utils", | ||
"version": "0.5.2-canary-20240927-ab8a962", | ||
"version": "0.6.0-canary-20241008-90b13ad", | ||
"description": "A package used by Expo CLI for processing images", | ||
@@ -49,3 +49,3 @@ "main": "build/index.js", | ||
"@types/semver": "^6.0.0", | ||
"expo-module-scripts": "3.6.0-canary-20240927-ab8a962" | ||
"expo-module-scripts": "3.6.0-canary-20241008-90b13ad" | ||
}, | ||
@@ -55,3 +55,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "ab8a962d2c3dddbda124a6bd88d24475831dae00" | ||
"gitHead": "90b13ad9d0dd3469556ac776d8b74643375b1d97" | ||
} |
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
77251
1097