Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expo-permissions

Package Overview
Dependencies
Maintainers
19
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-permissions - npm Package Compare versions

Comparing version 4.0.1-beta.0 to 5.0.0-rc.0

ios/EXPermissions/EXSystemBrightnessRequester.h

6

build/ExpoPermissions.web.d.ts

@@ -1,7 +0,7 @@

import { PermissionMap } from './Permissions.types';
import { PermissionMap, PermissionType } from './Permissions.types';
declare const _default: {
readonly name: string;
getAsync(permissionTypes: string[]): Promise<PermissionMap>;
askAsync(permissionTypes: string[]): Promise<PermissionMap>;
getAsync(permissionTypes: PermissionType[]): Promise<PermissionMap>;
askAsync(permissionTypes: PermissionType[]): Promise<PermissionMap>;
};
export default _default;

@@ -1,2 +0,3 @@

import { PermissionResponse, PermissionType } from './Permissions.types';
import { PermissionResponse, PermissionType, PermissionMap, PermissionStatus, PermissionExpiration, PermissionInfo } from './Permissions.types';
export { PermissionStatus, PermissionResponse, PermissionExpiration, PermissionMap, PermissionInfo, PermissionType, };
export declare const CAMERA = "camera";

@@ -3,0 +4,0 @@ export declare const CAMERA_ROLL = "cameraRoll";

import { coalesceExpirations, coalesceStatuses } from './CoalescedPermissions';
import Permissions from './ExpoPermissions';
import { PermissionStatus, } from './Permissions.types';
export { PermissionStatus, };
export const CAMERA = 'camera';

@@ -4,0 +6,0 @@ export const CAMERA_ROLL = 'cameraRoll';

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

export declare type PermissionType = 'camera' | 'cameraRoll' | 'audioRecording' | 'location' | 'userFacingNotifications' | 'notifications' | 'contacts' | 'calendar' | 'reminders' | 'systemBrightness' | string;
export declare type PermissionType = 'camera' | 'cameraRoll' | 'audioRecording' | 'location' | 'userFacingNotifications' | 'notifications' | 'contacts' | 'calendar' | 'reminders' | 'systemBrightness';
export declare type PermissionResponse = {

@@ -3,0 +3,0 @@ status: PermissionStatus;

{
"name": "expo-permissions",
"version": "4.0.1-beta.0",
"version": "5.0.0-rc.0",
"description": "Allows you prompt for various permissions to access device sensors, personal data, etc.",

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

},
"gitHead": "8413e821076a2eca36b302e68dd628ce2e1f591a"
"gitHead": "f04f6c038278daf9d4536da5ef651dbccf95c7b2"
}

@@ -28,12 +28,3 @@ # expo-permissions

In `MainApplication.java`, import the package and add it to the `ReactModuleRegistryProvider` list:
```java
import expo.modules.permissions.PermissionsPackage;
```
```java
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList(
// Your other packages will be here
new PermissionsPackage()
), Arrays.<SingletonModule>asList());
```
No additional set up necessary.

@@ -40,0 +31,0 @@ # Contributing

import { coalesceExpirations, coalesceStatuses } from './CoalescedPermissions';
import Permissions from './ExpoPermissions';
import { PermissionResponse, PermissionType, PermissionMap } from './Permissions.types';
import {
PermissionResponse,
PermissionType,
PermissionMap,
PermissionStatus,
PermissionExpiration,
PermissionInfo,
} from './Permissions.types';
export {
PermissionStatus,
PermissionResponse,
PermissionExpiration,
PermissionMap,
PermissionInfo,
PermissionType,
};
export const CAMERA = 'camera';

@@ -6,0 +22,0 @@ export const CAMERA_ROLL = 'cameraRoll';

@@ -11,5 +11,3 @@ export type PermissionType =

| 'reminders'
| 'systemBrightness'
// Allow other permissions for this API to be extensible
| string;
| 'systemBrightness';

@@ -16,0 +14,0 @@ export type PermissionResponse = {

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