New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@liff/window-postmessage

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/window-postmessage - npm Package Compare versions

Comparing version 2.20.2 to 2.20.3

11

lib/listen.d.ts

@@ -1,13 +0,2 @@

/**
* Cleanup cached the variables, testing use
*/
export declare function _cleanupCache(): void;
/**
* main function to addEventListener with Promise which is resolve by being called at first time
* you can remove eventListener you added with this function by using `removeListen.ts`
* @param target Target Elements or Window
* @param key One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
* @param callback A function to execute when the event is triggered.
* @param options same as AddEventListenerOptions. see MDN if you find out more
*/
export declare function listen(target: HTMLElement | HTMLDocument | Window, key: string, callback?: (e: Event) => void, options?: AddEventListenerOptions): Promise<Event>;

@@ -7,18 +7,3 @@ export interface ReceiveEvent extends MessageEvent {

}
/**
* callback function called at first when receive a message event. (strictly speaking, listen.ts is called at very first)
* before calling callback you designated, this verifies if the name and origin are same as you expected
* @param name
* @param callback
* @param targetOrigin
*/
export declare function verifyCallback(name: string, callback: Function, targetOrigin: string): (event: ReceiveEvent) => void;
/**
* receive Event from another window calling postMessage.
* This is used for receiving data from another window like iframe, popup window, etc.
* @param target
* @param name
* @param callback
* @param targetOrigin
*/
export declare function messageReceive(target: Window, name: string, callback: Function, targetOrigin: string): void;

@@ -7,9 +7,2 @@ export interface TellEvent extends MessageEvent {

}
/**
* call postMessage. This is used for sending data to another window like iframe, popup window, etc.
* @param target
* @param name
* @param body
* @param targetOrigin
*/
export declare function messageTell(target: Window, name: string, body: {} | undefined, targetOrigin: string): void;

10

package.json
{
"name": "@liff/window-postmessage",
"version": "2.20.2",
"version": "2.20.3",
"description": "@liff/window-postmessage",

@@ -34,7 +34,7 @@ "license": "SEE LICENSE IN README.md",

"dependencies": {
"@liff/consts": "2.20.2",
"@liff/logger": "2.20.2",
"@liff/util": "2.20.2"
"@liff/consts": "2.20.3",
"@liff/logger": "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