apollo-link-webextensions-messaging
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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> |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
44493
1033
0