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

expo-contacts

Package Overview
Dependencies
Maintainers
17
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-contacts - npm Package Compare versions

Comparing version 5.0.2 to 6.0.0-rc.0

8

build/Contacts.js

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

export async function shareContactAsync(contactId, message, shareOptions = {}) {
if (!ExpoContacts.shareContactAsync) {
throw new UnavailabilityError('Contacts', 'shareContactAsync');
}
if (Platform.OS === 'ios') {

@@ -19,5 +16,6 @@ const url = await writeContactToFileAsync({

}
else {
return await ExpoContacts.shareContactAsync(contactId, message);
else if (!ExpoContacts.shareContactAsync) {
throw new UnavailabilityError('Contacts', 'shareContactAsync');
}
return await ExpoContacts.shareContactAsync(contactId, message);
}

@@ -24,0 +22,0 @@ export async function getContactsAsync(contactQuery = {}) {

{
"name": "expo-contacts",
"version": "5.0.2",
"version": "6.0.0-rc.0",
"description": "Provides access to the phone's system contacts.",

@@ -43,3 +43,3 @@ "main": "build/Contacts.js",

},
"gitHead": "f213c9be2a909dae42a0a27d8aa4b9eac8e97be1"
}
"gitHead": "6334f82adccb529e9347e348c874bd8f6a92cacc"
}

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

): Promise<any> {
if (!ExpoContacts.shareContactAsync) {
throw new UnavailabilityError('Contacts', 'shareContactAsync');
}
if (Platform.OS === 'ios') {

@@ -253,7 +250,9 @@ const url = await writeContactToFileAsync({

},
shareOptions
shareOptions,
);
} else {
return await ExpoContacts.shareContactAsync(contactId, message);
} else if (!ExpoContacts.shareContactAsync) {
throw new UnavailabilityError('Contacts', 'shareContactAsync');
}
return await ExpoContacts.shareContactAsync(contactId, message);
}

@@ -260,0 +259,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

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