New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

expo-sharing

Package Overview
Dependencies
Maintainers
25
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-sharing - npm Package Compare versions

Comparing version 9.1.2 to 9.2.0

19

build/Sharing.d.ts
export declare type SharingOptions = {
/**
* Sets `mimeType` for `Intent` *(Android only)*
*/
mimeType?: string;
/**
* ([Uniform Type Identifier](https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_conc/understand_utis_conc.html))
* the type of the target file *(iOS only)*
*/
UTI?: string;
/**
* Sets share dialog title *(Android and Web only)*
*/
dialogTitle?: string;
};
/**
* Determine if the sharing API can be used in this app.
* @return A promise that fulfills with `true` if the sharing API can be used, and `false` otherwise.
*/
export declare function isAvailableAsync(): Promise<boolean>;
/**
* Opens action sheet to share file to different applications which can handle this type of file.
* @param url Local file URL to share.
* @param options A map of share options.
*/
export declare function shareAsync(url: string, options?: SharingOptions): Promise<object>;
import { UnavailabilityError } from '@unimodules/core';
import Sharing from './ExpoSharing';
// @needsAudit
/**
* Determine if the sharing API can be used in this app.
* @return A promise that fulfills with `true` if the sharing API can be used, and `false` otherwise.
*/
export async function isAvailableAsync() {

@@ -12,2 +17,8 @@ if (Sharing) {

}
// @needsAudit
/**
* Opens action sheet to share file to different applications which can handle this type of file.
* @param url Local file URL to share.
* @param options A map of share options.
*/
export async function shareAsync(url, options = {}) {

@@ -14,0 +25,0 @@ if (!Sharing || !Sharing.shareAsync) {

@@ -11,2 +11,15 @@ # 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))
## 9.1.2 — 2021-04-13

@@ -13,0 +26,0 @@

11

package.json
{
"name": "expo-sharing",
"version": "9.1.2",
"version": "9.2.0",
"description": "ExpoSharing standalone module",

@@ -33,11 +33,12 @@ "main": "build/Sharing.js",

"homepage": "https://docs.expo.io/versions/latest/sdk/sharing/",
"dependencies": {},
"unimodulePeerDependencies": {
"@unimodules/core": "*",
"unimodules-file-system-interface": "*"
"@unimodules/core": "*"
},
"dependencies": {
"expo-modules-core": "~0.1.1"
},
"devDependencies": {
"expo-module-scripts": "^2.0.0"
},
"gitHead": "9c6693e1e8997dd279d408b0f6e6490897713085"
"gitHead": "b33f5e224578564c3e4b1b467f258cc119b3b786"
}

@@ -5,8 +5,24 @@ import { UnavailabilityError } from '@unimodules/core';

// @needsAudit
export type SharingOptions = {
/**
* Sets `mimeType` for `Intent` *(Android only)*
*/
mimeType?: string;
/**
* ([Uniform Type Identifier](https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_conc/understand_utis_conc.html))
* the type of the target file *(iOS only)*
*/
UTI?: string;
/**
* Sets share dialog title *(Android and Web only)*
*/
dialogTitle?: string;
};
// @needsAudit
/**
* Determine if the sharing API can be used in this app.
* @return A promise that fulfills with `true` if the sharing API can be used, and `false` otherwise.
*/
export async function isAvailableAsync(): Promise<boolean> {

@@ -23,2 +39,8 @@ if (Sharing) {

// @needsAudit
/**
* Opens action sheet to share file to different applications which can handle this type of file.
* @param url Local file URL to share.
* @param options A map of share options.
*/
export async function shareAsync(url: string, options: SharingOptions = {}): Promise<object> {

@@ -25,0 +47,0 @@ if (!Sharing || !Sharing.shareAsync) {

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

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