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
24
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.0 to 9.1.1

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) {

4

CHANGELOG.md

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

## 9.1.1 — 2021-04-01
_This version does not introduce any user-facing changes._
## 9.1.0 — 2021-03-10

@@ -13,0 +17,0 @@

4

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

@@ -41,3 +41,3 @@ "main": "build/Sharing.js",

},
"gitHead": "5b57d1fd0a20294c1dec7c43b5df34dd6425d1a5"
"gitHead": "58483c5ec15ae7ed7faba45b68993be5117685db"
}

@@ -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

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