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

@liff/native-bridge

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/native-bridge - npm Package Compare versions

Comparing version 2.20.2 to 2.20.3

6

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

18

lib/call.d.ts

@@ -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;

12

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