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

@liff/permission

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liff/permission - npm Package Compare versions

Comparing version 2.20.2 to 2.20.3

6

lib/attachChecker.d.ts
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>;

20

package.json
{
"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"
}
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