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

expo-permissions

Package Overview
Dependencies
Maintainers
26
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 13.1.1 to 13.2.0

build/CoalescedPermissions.d.ts.map

1

build/CoalescedPermissions.d.ts

@@ -6,1 +6,2 @@ import { PermissionExpiration, PermissionMap, PermissionStatus } from './Permissions.types';

export declare function coalesceGranted(permissions: PermissionMap): boolean;
//# sourceMappingURL=CoalescedPermissions.d.ts.map
declare const _default: import("expo-modules-core").ProxyNativeModule;
export default _default;
//# sourceMappingURL=ExpoPermissions.d.ts.map

@@ -9,1 +9,2 @@ import { PermissionMap, PermissionType } from './Permissions.types';

export declare function getRequestMotionPermission(): (() => Promise<PermissionState>) | null;
//# sourceMappingURL=ExpoPermissions.web.d.ts.map
export { usePermissions } from './PermissionsHooks';
export * from './Permissions';
//# sourceMappingURL=index.d.ts.map

@@ -24,1 +24,2 @@ import { PermissionResponse, PermissionType, PermissionMap, PermissionStatus, PermissionExpiration, PermissionInfo } from './Permissions.types';

export declare function askAsync(...types: PermissionType[]): Promise<PermissionResponse>;
//# sourceMappingURL=Permissions.d.ts.map

2

build/Permissions.js

@@ -71,3 +71,3 @@ import { Platform } from 'react-native';

const library = PERMISSION_MODULE_MAPPING[type];
error.message = `${error.message}, please install and link the package ${PERMISSION_MODULE_MAPPING[type]}, see more at https://github.com/expo/expo/tree/master/packages/${library}`;
error.message = `${error.message}, please install and link the package ${PERMISSION_MODULE_MAPPING[type]}, see more at https://github.com/expo/expo/tree/main/packages/${library}`;
}

@@ -74,0 +74,0 @@ throw error;

@@ -22,1 +22,2 @@ import { PermissionResponse as EXPermissionResponse, PermissionStatus, PermissionExpiration } from 'expo-modules-core';

};
//# sourceMappingURL=Permissions.types.d.ts.map

@@ -8,3 +8,3 @@ import { PermissionResponse, PermissionType } from './Permissions.types';

*
* @see https://docs.expo.io/versions/latest/sdk/permissions/
* @see https://docs.expo.dev/versions/latest/sdk/permissions/
* @example

@@ -26,1 +26,2 @@ * ```tsx

}
//# sourceMappingURL=PermissionsHooks.d.ts.map

@@ -9,3 +9,3 @@ import { useCallback, useRef, useEffect, useState } from 'react';

*
* @see https://docs.expo.io/versions/latest/sdk/permissions/
* @see https://docs.expo.dev/versions/latest/sdk/permissions/
* @example

@@ -12,0 +12,0 @@ * ```tsx

@@ -13,4 +13,10 @@ # Changelog

## 13.1.1 — 2022-02-01
## 13.2.0 — 2022-04-18
### ⚠️ Notices
- On Android bump `compileSdkVersion` to `31`, `targetSdkVersion` to `31` and `Java` version to `11`. ([#16941](https://github.com/expo/expo/pull/16941) by [@bbarthec](https://github.com/bbarthec))
## 13.1.1 - 2022-02-01
### 🐛 Bug fixes

@@ -17,0 +23,0 @@

{
"name": "expo-permissions",
"version": "13.1.1",
"version": "13.2.0",
"description": "Allows you prompt for various permissions to access device sensors, personal data, etc.",

@@ -44,3 +44,3 @@ "main": "build/index.js",

},
"gitHead": "ba24eba18bf4f4d4b0d54828992d81a2bb18246a"
"gitHead": "22dce752354bb429c84851bc4389abe47a766b1f"
}

@@ -7,12 +7,12 @@ # expo-permissions

- [Documentation for the master branch](https://github.com/expo/expo/blob/master/docs/pages/versions/unversioned/sdk/permissions.md)
- [Documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/permissions/)
- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/permissions.md)
- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/permissions/)
# Installation in managed Expo projects
For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/permissions/).
For [managed](https://docs.expo.dev/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/permissions/).
# Installation in bare React Native projects
For bare React Native projects, this package is included in [`react-native-unimodules`](https://github.com/expo/expo/tree/master/packages/react-native-unimodules). Please refer to those installation instructions to install this package.
For bare React Native projects, this package is included in [`react-native-unimodules`](https://github.com/expo/expo/tree/main/packages/react-native-unimodules). Please refer to those installation instructions to install this package.

@@ -19,0 +19,0 @@ # Contributing

@@ -105,3 +105,3 @@ import { Platform } from 'react-native';

const library = PERMISSION_MODULE_MAPPING[type];
error.message = `${error.message}, please install and link the package ${PERMISSION_MODULE_MAPPING[type]}, see more at https://github.com/expo/expo/tree/master/packages/${library}`;
error.message = `${error.message}, please install and link the package ${PERMISSION_MODULE_MAPPING[type]}, see more at https://github.com/expo/expo/tree/main/packages/${library}`;
}

@@ -108,0 +108,0 @@ throw error;

@@ -12,3 +12,3 @@ import { useCallback, useRef, useEffect, useState } from 'react';

*
* @see https://docs.expo.io/versions/latest/sdk/permissions/
* @see https://docs.expo.dev/versions/latest/sdk/permissions/
* @example

@@ -15,0 +15,0 @@ * ```tsx

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