@liff/permission
Advanced tools
Comparing version 2.20.2 to 2.20.3
import { Permission } from './isPermissionAvailable'; | ||
declare type defaultFnType = (...args: unknown[]) => Promise<unknown>; | ||
/** | ||
* Create wrapped API function with permission checking and it will grant the permission automaticallly before calling the API. | ||
* API Reference | ||
* @export | ||
* @returns {Promise<unknown>} | ||
*/ | ||
export declare function attachChecker<FnType extends defaultFnType>(fn: FnType, permission: Permission): FnType; | ||
export {}; |
import { Permission } from './isPermissionAvailable'; | ||
/** | ||
* Get the permissions haven't been approved | ||
* @export | ||
* @returns {Promise<Array<Permission>>} | ||
*/ | ||
export default function getUnauthorizedPermissions(): Promise<Array<Permission>>; |
import { PERMISSION_NAMES } from '@liff/consts'; | ||
import { ElementType } from '@liff/util'; | ||
export declare type Permission = ElementType<typeof PERMISSION_NAMES>; | ||
/** | ||
* Check the whether the permission is in the LIFF app scope. | ||
* API Reference | ||
* @export | ||
* @returns {boolean} | ||
*/ | ||
export default function isPermissionAvailable(permission: Permission): boolean; |
@@ -5,9 +5,3 @@ import { Permission } from './isPermissionAvailable'; | ||
} | ||
/** | ||
* Check the whether the permission was granted | ||
* API Reference | ||
* @export | ||
* @returns {Promise<PermissionStatus>} | ||
*/ | ||
export default function query(permission: Permission): Promise<PermissionStatus>; | ||
export {}; |
@@ -1,7 +0,1 @@ | ||
/** | ||
* Grant specific permission with incremental consent agreement flow. | ||
* API Reference | ||
* @export | ||
* @returns {Promise<void>} | ||
*/ | ||
export default function requestAll(): Promise<void>; |
{ | ||
"name": "@liff/permission", | ||
"version": "2.20.2", | ||
"version": "2.20.3", | ||
"description": "@liff/permission", | ||
@@ -34,12 +34,12 @@ "license": "SEE LICENSE IN README.md", | ||
"dependencies": { | ||
"@liff/consts": "2.20.2", | ||
"@liff/is-api-available": "2.20.2", | ||
"@liff/is-in-client": "2.20.2", | ||
"@liff/server-api": "2.20.2", | ||
"@liff/store": "2.20.2", | ||
"@liff/sub-window": "2.20.2", | ||
"@liff/use": "2.20.2", | ||
"@liff/util": "2.20.2" | ||
"@liff/consts": "2.20.3", | ||
"@liff/is-api-available": "2.20.3", | ||
"@liff/is-in-client": "2.20.3", | ||
"@liff/server-api": "2.20.3", | ||
"@liff/store": "2.20.3", | ||
"@liff/sub-window": "2.20.3", | ||
"@liff/use": "2.20.3", | ||
"@liff/util": "2.20.3" | ||
}, | ||
"gitHead": "7299a0642aafc87b46d0808da89840399148d436" | ||
"gitHead": "7845e9a5c675d44b97a35c64dc5c200c4751ce2d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11938
69
+ Added@liff/close-window@2.20.3(transitive)
+ Added@liff/consts@2.20.3(transitive)
+ Added@liff/get-line-version@2.20.3(transitive)
+ Added@liff/get-os@2.20.3(transitive)
+ Added@liff/hooks@2.20.3(transitive)
+ Added@liff/is-api-available@2.20.3(transitive)
+ Added@liff/is-in-client@2.20.3(transitive)
+ Added@liff/is-logged-in@2.20.3(transitive)
+ Added@liff/is-sub-window@2.20.3(transitive)
+ Added@liff/logger@2.20.3(transitive)
+ Added@liff/message-bus@2.20.3(transitive)
+ Added@liff/native-bridge@2.20.3(transitive)
+ Added@liff/server-api@2.20.3(transitive)
+ Added@liff/store@2.20.3(transitive)
+ Added@liff/sub-window@2.20.3(transitive)
+ Added@liff/types@2.20.3(transitive)
+ Added@liff/use@2.20.3(transitive)
+ Added@liff/util@2.20.3(transitive)
- Removed@liff/close-window@2.20.2(transitive)
- Removed@liff/consts@2.20.2(transitive)
- Removed@liff/get-line-version@2.20.2(transitive)
- Removed@liff/get-os@2.20.2(transitive)
- Removed@liff/hooks@2.20.2(transitive)
- Removed@liff/is-api-available@2.20.2(transitive)
- Removed@liff/is-in-client@2.20.2(transitive)
- Removed@liff/is-logged-in@2.20.2(transitive)
- Removed@liff/is-sub-window@2.20.2(transitive)
- Removed@liff/logger@2.20.2(transitive)
- Removed@liff/message-bus@2.20.2(transitive)
- Removed@liff/native-bridge@2.20.2(transitive)
- Removed@liff/server-api@2.20.2(transitive)
- Removed@liff/store@2.20.2(transitive)
- Removed@liff/sub-window@2.20.2(transitive)
- Removed@liff/types@2.20.2(transitive)
- Removed@liff/use@2.20.2(transitive)
- Removed@liff/util@2.20.2(transitive)
Updated@liff/consts@2.20.3
Updated@liff/is-in-client@2.20.3
Updated@liff/server-api@2.20.3
Updated@liff/store@2.20.3
Updated@liff/sub-window@2.20.3
Updated@liff/use@2.20.3
Updated@liff/util@2.20.3