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
20
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 8.0.0 to 8.1.0

4

.expo/tsconfig.jest.json
{
"extends": "/Users/tomasz/Work/expo/packages/expo-contacts/tsconfig.json",
"extends": "/Users/bbarthec/Work/expo/packages/expo-contacts/tsconfig.json",
"compilerOptions": {

@@ -10,5 +10,5 @@ "module": "esnext",

"../../../node_modules/@types",
"/Users/tomasz/Work/expo/packages/expo-module-scripts/ts-declarations"
"/Users/bbarthec/Work/expo/packages/expo-module-scripts/ts-declarations"
]
}
}

@@ -153,7 +153,7 @@ import { PermissionResponse, PermissionStatus } from 'unimodules-permissions-interface';

export { PermissionStatus, PermissionResponse };
export declare function shareContactAsync(contactId: string, message: string, shareOptions?: Object): Promise<any>;
export declare function shareContactAsync(contactId: string, message: string, shareOptions?: object): Promise<any>;
export declare function getContactsAsync(contactQuery?: ContactQuery): Promise<ContactResponse>;
export declare function getPagedContactsAsync(contactQuery?: ContactQuery): Promise<ContactResponse>;
export declare function getContactByIdAsync(id: string, fields?: FieldType): Promise<Contact | undefined>;
export declare function addContactAsync(contact: Contact, containerId: string): Promise<string>;
export declare function getContactByIdAsync(id: string, fields?: FieldType[]): Promise<Contact | undefined>;
export declare function addContactAsync(contact: Contact, containerId?: string): Promise<string>;
export declare function updateContactAsync(contact: Contact): Promise<string>;

@@ -191,2 +191,3 @@ export declare function removeContactAsync(contactId: string): Promise<any>;

export declare const DATES = "dates";
export declare const RAW_DATES = "rawDates";
export declare const RELATIONSHIPS = "relationships";

@@ -193,0 +194,0 @@ export declare const Fields: {

import { UnavailabilityError } from '@unimodules/core';
import { Platform, Share } from 'react-native';
import { PermissionStatus } from 'unimodules-permissions-interface';
import { Platform, Share } from 'react-native';
import UUID from 'uuid-js';
import uuidv4 from 'uuid/v4';
import ExpoContacts from './ExpoContacts';

@@ -114,3 +114,3 @@ export { PermissionStatus };

}
name = name || UUID.create().toString();
name = name || uuidv4();
if (!containerId) {

@@ -193,2 +193,3 @@ containerId = await getDefaultContainerIdAsync();

export const DATES = 'dates';
export const RAW_DATES = 'rawDates';
export const RELATIONSHIPS = 'relationships';

@@ -195,0 +196,0 @@ export const Fields = {

@@ -1,6 +0,2 @@

declare const _default: {
[propertyName: string]: any;
addListener: (eventName: string) => void;
removeListeners: (count: number) => void;
};
declare const _default: import("@unimodules/core").ProxyNativeModule;
export default _default;
{
"name": "expo-contacts",
"version": "8.0.0",
"version": "8.1.0",
"description": "Provides access to the phone's system contacts.",

@@ -40,8 +40,9 @@ "main": "build/Contacts.js",

"dependencies": {
"uuid-js": "^0.7.5"
"uuid": "^3.4.0"
},
"devDependencies": {
"expo-module-scripts": "~1.1.1"
"@types/uuid": "^3.4.7",
"expo-module-scripts": "~1.2.0"
},
"gitHead": "ec7878b9ce54f2537721218ae0fe4017e4004806"
"gitHead": "3ad68bbd9847ebc8a55272c263b17d998a92f64f"
}
import { UnavailabilityError } from '@unimodules/core';
import { Platform, Share } from 'react-native';
import { PermissionResponse, PermissionStatus } from 'unimodules-permissions-interface';
import { Platform, Share } from 'react-native';
import UUID from 'uuid-js';
import uuidv4 from 'uuid/v4';

@@ -241,3 +241,3 @@ import ExpoContacts from './ExpoContacts';

message: string,
shareOptions: Object = {}
shareOptions: object = {}
): Promise<any> {

@@ -285,3 +285,3 @@ if (Platform.OS === 'ios') {

id: string,
fields?: FieldType
fields?: FieldType[]
): Promise<Contact | undefined> {

@@ -308,3 +308,3 @@ if (!ExpoContacts.getContactsAsync) {

export async function addContactAsync(contact: Contact, containerId: string): Promise<string> {
export async function addContactAsync(contact: Contact, containerId?: string): Promise<string> {
if (!ExpoContacts.addContactAsync) {

@@ -387,3 +387,3 @@ throw new UnavailabilityError('Contacts', 'addContactAsync');

name = name || UUID.create().toString();
name = name || uuidv4();
if (!containerId) {

@@ -492,2 +492,3 @@ containerId = await getDefaultContainerIdAsync();

export const DATES = 'dates';
export const RAW_DATES = 'rawDates';
export const RELATIONSHIPS = 'relationships';

@@ -494,0 +495,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