webext-messenger
Advanced tools
Comparing version 0.22.0-2 to 0.22.0-3
@@ -1,5 +0,5 @@ | ||
import { AnyTarget, Message, MessengerMeta, Sender } from "./types.js"; | ||
import { AnyTarget, KnownTarget, Message, MessengerMeta, Sender } from "./types.js"; | ||
export declare function getActionForMessage(from: Sender, message: Message): "respond" | "forward" | "ignore"; | ||
export declare function __getTabData(this: MessengerMeta): AnyTarget; | ||
export declare function getThisTarget(): Promise<AnyTarget>; | ||
export declare function getThisTarget(): Promise<KnownTarget>; | ||
export declare function initPrivateApi(): void; |
@@ -55,2 +55,7 @@ import { Runtime } from "webextension-polyfill"; | ||
} | ||
export interface KnownTarget { | ||
tabId?: number; | ||
frameId?: number; | ||
page: string; | ||
} | ||
export interface Target { | ||
@@ -57,0 +62,0 @@ tabId: number; |
{ | ||
"name": "webext-messenger", | ||
"version": "0.22.0-2", | ||
"version": "0.22.0-3", | ||
"description": "Browser Extension component messaging framework", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
26972
538