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

@nativescript-community/perms

Package Overview
Dependencies
Maintainers
9
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript-community/perms - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [2.1.5](https://github.com/nativescript-community/perms/compare/v2.1.4...v2.1.5) (2021-01-13)
**Note:** Version bump only for package @nativescript-community/perms
## [2.1.4](https://github.com/nativescript-community/perms/compare/v2.1.3...v2.1.4) (2020-11-23)

@@ -8,0 +16,0 @@

4

package.json
{
"name": "@nativescript-community/perms",
"version": "2.1.4",
"version": "2.1.5",
"description": "An unified permissions API for NativeScript on iOS and Android.",

@@ -35,3 +35,3 @@ "main": "./permissions",

"readmeFilename": "README.md",
"gitHead": "2fe7ad16c20f1ee2491ac080c91c69f7b373675a"
"gitHead": "05b6b3753992b9e671a8b7a1f1df53ed7a5c71f7"
}

@@ -107,13 +107,18 @@ import { Trace } from '@nativescript/core';

if (args.requestCode === requestCode) {
if (args.grantResults.length > 0 && args.grantResults[0] === android.content.pm.PackageManager.PERMISSION_GRANTED) {
resolve(PermissionStatus.GRANTED);
}
else {
if (activity.shouldShowRequestPermissionRationale(permission)) {
resolve(PermissionStatus.DENIED);
if (args.grantResults.length > 0) {
if (args.grantResults.length > 0 && args.grantResults[0] === android.content.pm.PackageManager.PERMISSION_GRANTED) {
resolve(PermissionStatus.GRANTED);
}
else {
resolve(PermissionStatus.NEVER_ASK_AGAIN);
if (activity.shouldShowRequestPermissionRationale(permission)) {
resolve(PermissionStatus.DENIED);
}
else {
resolve(PermissionStatus.NEVER_ASK_AGAIN);
}
}
}
else {
reject();
}
}

@@ -120,0 +125,0 @@ });

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