@nativescript-community/perms
Advanced tools
Comparing version 2.2.20 to 2.2.21
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.2.21](https://github.com/nativescript-community/perms/compare/v2.2.20...v2.2.21) (2022-12-09) | ||
**Note:** Version bump only for package @nativescript-community/perms | ||
## [2.2.20](https://github.com/nativescript-community/perms/compare/v2.2.19...v2.2.20) (2022-11-29) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@nativescript-community/perms", | ||
"version": "2.2.20", | ||
"version": "2.2.21", | ||
"description": "An unified permissions API for NativeScript on iOS and Android.", | ||
@@ -35,3 +35,3 @@ "main": "./permissions", | ||
"readmeFilename": "README.md", | ||
"gitHead": "7c03ffb8a3f4af7773c5a7c792ef72aa068ee799" | ||
"gitHead": "73ad641798df11bca034dcba39fe773c332f8d05" | ||
} |
@@ -297,3 +297,2 @@ import { Trace, Utils } from '@nativescript/core'; | ||
} | ||
console.log('types', types); | ||
if (types.length === 0) { | ||
@@ -319,10 +318,7 @@ return Promise.resolve([GRANT_RESULTS.GRANTED, true]); | ||
} | ||
return Promise.all(Object.keys(permissions).map(permission => check(permission, permissions[permission]).then(r => [permission, r]))).then(result => { | ||
console.log('test', result); | ||
return result.reduce((acc, value, index) => { | ||
acc[value[0]] = value[1]; | ||
return acc; | ||
}, {}); | ||
}); | ||
return Promise.all(Object.keys(permissions).map(permission => check(permission, permissions[permission]).then(r => [permission, r]))).then(result => result.reduce((acc, value, index) => { | ||
acc[value[0]] = value[1]; | ||
return acc; | ||
}, {})); | ||
} | ||
//# sourceMappingURL=permissions.android.js.map |
Sorry, the diff of this file is not supported yet
118104
1251