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

webext-messenger

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webext-messenger - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

4

distribution/index.d.ts

@@ -12,4 +12,4 @@ /// <reference types="firefox-webext-browser" />

export interface Target {
tab: number;
frame?: number;
tabId: number;
frameId?: number;
}

@@ -16,0 +16,0 @@ declare type WithTarget<TMethod> = TMethod extends (...args: infer PreviousArguments) => infer TReturnValue ? (target: Target, ...args: PreviousArguments) => TReturnValue : never;

@@ -37,3 +37,3 @@ import { deserializeError, serializeError } from "serialize-error";

// i.e. if registerMethods hasn't been called
const response = await browser.tabs.sendMessage(target.tab, {
const response = await browser.tabs.sendMessage(target.tabId, {
// Guarantees that a message is meant to be handled by this library

@@ -45,3 +45,3 @@ __webext_messenger__: true,

// Must be specified. If missing, the message would be sent to every frame
frameId: (_a = target.frame) !== null && _a !== void 0 ? _a : 0,
frameId: (_a = target.frameId) !== null && _a !== void 0 ? _a : 0,
});

@@ -48,0 +48,0 @@ if (isObject(response) && errorKey in response) {

{
"name": "webext-messenger",
"version": "0.6.0",
"version": "0.6.1",
"description": "Browser Extension component messaging framework",

@@ -5,0 +5,0 @@ "keywords": [],

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