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

apollo-link-webextensions-messaging

Package Overview
Dependencies
Maintainers
8
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-link-webextensions-messaging - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

lib/types.d.ts

@@ -5,3 +5,3 @@ export interface Event<T extends (...args: any[]) => any> {

}
export declare type Message = Record<string, unknown>;
export declare type Message = Record<string, unknown> | object;
export declare type PortDisconnectEvent = Event<(port: MessagingPort) => void>;

@@ -8,0 +8,0 @@ export declare type PortMessageEvent = Event<(message: Message) => void>;

{
"name": "apollo-link-webextensions-messaging",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -11,3 +11,3 @@ import { Operation } from 'apollo-link';

export const isRPCNotificationMessage = <T>(message: Message): message is RPCNotificationMessage<T> =>
message.jsonrpc === '2.0';
(message as Record<string, unknown>).jsonrpc === '2.0';

@@ -14,0 +14,0 @@ const isRecord = (r: unknown): r is Record<string, unknown> => typeof r === 'object' && r !== null;

@@ -12,3 +12,4 @@ /*

export type Message = Record<string, unknown>;
// eslint-disable-next-line @typescript-eslint/ban-types
export type Message = Record<string, unknown> | object;

@@ -15,0 +16,0 @@ export type PortDisconnectEvent = Event<(port: MessagingPort) => void>

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