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.1.0 to 9.2.0

android/src/main/java/expo/modules/imagemanipulator/actions/Action.kt

2

build/ImageManipulator.d.ts
import { Action, ImageResult, SaveOptions } from './ImageManipulator.types';
export declare function manipulateAsync(uri: string, actions?: Action[], { format, ...rest }?: SaveOptions): Promise<ImageResult>;
export declare function manipulateAsync(uri: string, actions?: Action[], saveOptions?: SaveOptions): Promise<ImageResult>;
export * from './ImageManipulator.types';
import { UnavailabilityError } from '@unimodules/core';
import ExpoImageManipulator from './ExpoImageManipulator';
import { SaveFormat } from './ImageManipulator.types';
export async function manipulateAsync(uri, actions = [], { format = SaveFormat.JPEG, ...rest } = {}) {
import { validateArguments } from './validators';
export async function manipulateAsync(uri, actions = [], saveOptions = {}) {
if (!ExpoImageManipulator.manipulateAsync) {
throw new UnavailabilityError('ImageManipulator', 'manipulateAsync');
}
if (!(typeof uri === 'string')) {
throw new TypeError('The "uri" argument must be a string');
}
validateArguments(uri, actions, saveOptions);
const { format = SaveFormat.JPEG, ...rest } = saveOptions;
return await ExpoImageManipulator.manipulateAsync(uri, actions, { format, ...rest });

@@ -12,0 +12,0 @@ }

@@ -11,2 +11,16 @@ # Changelog

### 💡 Others
## 9.2.0 — 2021-06-16
### 🐛 Bug fixes
- Enable kotlin in all modules. ([#12716](https://github.com/expo/expo/pull/12716) by [@wschurman](https://github.com/wschurman))
### 💡 Others
- Migrated from `unimodules-file-system-interface` to `expo-modules-core`.
- Build Android code using Java 8 to fix Android instrumented test build error. ([#12939](https://github.com/expo/expo/pull/12939) by [@kudo](https://github.com/kudo))
- Converted Android code to Kotlin. ([#13231](https://github.com/expo/expo/pull/13231) by [@dsokal](https://github.com/dsokal))
## 9.1.0 — 2021-03-10

@@ -13,0 +27,0 @@

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

@@ -34,9 +34,11 @@ "main": "build/ImageManipulator.js",

"unimodulePeerDependencies": {
"@unimodules/core": "*",
"unimodules-file-system-interface": "*"
"@unimodules/core": "*"
},
"dependencies": {
"expo-modules-core": "~0.1.1"
},
"devDependencies": {
"expo-module-scripts": "^2.0.0"
},
"gitHead": "5b57d1fd0a20294c1dec7c43b5df34dd6425d1a5"
"gitHead": "c80d4c938920c5111e34c2dbca3a6bf500dff0e1"
}

@@ -5,2 +5,3 @@ import { UnavailabilityError } from '@unimodules/core';

import { Action, ImageResult, SaveFormat, SaveOptions } from './ImageManipulator.types';
import { validateArguments } from './validators';

@@ -10,3 +11,3 @@ export async function manipulateAsync(

actions: Action[] = [],
{ format = SaveFormat.JPEG, ...rest }: SaveOptions = {}
saveOptions: SaveOptions = {}
): Promise<ImageResult> {

@@ -16,5 +17,6 @@ if (!ExpoImageManipulator.manipulateAsync) {

}
if (!(typeof uri === 'string')) {
throw new TypeError('The "uri" argument must be a string');
}
validateArguments(uri, actions, saveOptions);
const { format = SaveFormat.JPEG, ...rest } = saveOptions;
return await ExpoImageManipulator.manipulateAsync(uri, actions, { format, ...rest });

@@ -21,0 +23,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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