@liff/native-bridge
Advanced tools
Comparing version 2.20.2 to 2.20.3
import { ClientCallback } from './types'; | ||
export declare const callbacks: {}; | ||
/** | ||
* Add callback to LIFFEvent listener. | ||
* @export | ||
* @param {string} type | ||
* @param {ClientCallback} callback | ||
*/ | ||
export declare function addListener(type: string, callback: ClientCallback): void; |
@@ -1,20 +0,4 @@ | ||
/** | ||
* call() | ||
* Let js pass event and data to client | ||
* and wait for callback | ||
* @export | ||
* @param {string} type - name of event | ||
* @param {*} [params={}] - data object to pass to client | ||
* @param {{ - options | ||
* callbackId?: string - use randomly string by default, use `''` if client needs | ||
* once?: boolean - will remove listener once callback is fired if is true | ||
* }} [options={ | ||
* once: true, | ||
* }] | ||
* @returns {Promise<any>} | ||
*/ | ||
export declare function call(type: string, params?: any, // eslint-disable-line @typescript-eslint/no-explicit-any | ||
options?: { | ||
export declare function call(type: string, params?: any, options?: { | ||
callbackId?: string; | ||
once?: boolean; | ||
}): Promise<any>; |
@@ -1,6 +0,1 @@ | ||
/** | ||
* Wrap window.dispatchEvent | ||
* Expose `window.liff._dispatchEvent()` for client to interact with js | ||
* @param {string} json | ||
*/ | ||
export declare function dispatch(json: string): void; |
@@ -1,8 +0,1 @@ | ||
/** | ||
* Wrapper of window._liff.postMessage | ||
* @export | ||
* @param {string} type - name of message to client | ||
* @param {{}} [params={}] - object data sent to client | ||
* @param {string} [callbackId=''] - callbackId to identify client callback | ||
*/ | ||
export declare function postMessage(type: string, params?: unknown, callbackId?: string): void; |
import { ClientCallback } from './types'; | ||
/** | ||
* Remove callback from LIFFEvent listener. | ||
* @param {string} type [description] | ||
* @param {Function} callback [description] | ||
*/ | ||
export declare function removeListener(type: string, callback: ClientCallback): void; |
{ | ||
"name": "@liff/native-bridge", | ||
"version": "2.20.2", | ||
"version": "2.20.3", | ||
"description": "@liff/native-bridge", | ||
@@ -34,8 +34,8 @@ "license": "SEE LICENSE IN README.md", | ||
"dependencies": { | ||
"@liff/consts": "2.20.2", | ||
"@liff/logger": "2.20.2", | ||
"@liff/store": "2.20.2", | ||
"@liff/util": "2.20.2" | ||
"@liff/consts": "2.20.3", | ||
"@liff/logger": "2.20.3", | ||
"@liff/store": "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
6550
37
+ Added@liff/consts@2.20.3(transitive)
+ Added@liff/is-in-client@2.20.3(transitive)
+ Added@liff/logger@2.20.3(transitive)
+ Added@liff/store@2.20.3(transitive)
+ Added@liff/types@2.20.3(transitive)
+ Added@liff/util@2.20.3(transitive)
- Removed@liff/consts@2.20.2(transitive)
- Removed@liff/is-in-client@2.20.2(transitive)
- Removed@liff/logger@2.20.2(transitive)
- Removed@liff/store@2.20.2(transitive)
- Removed@liff/types@2.20.2(transitive)
- Removed@liff/util@2.20.2(transitive)
Updated@liff/consts@2.20.3
Updated@liff/logger@2.20.3
Updated@liff/store@2.20.3
Updated@liff/util@2.20.3