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

newsware

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newsware - npm Package Compare versions

Comparing version 7.0.3 to 7.1.0

12

lib/src/types.d.ts

@@ -83,7 +83,7 @@ /// <reference types="ws" />

id: string;
payload?: Filter;
value?: Filter;
} | {
method: WebsocketMethod.UNSUBSCRIBE;
id: string;
payload: {
value: {
all: boolean;

@@ -94,3 +94,3 @@ } | {

};
export type ErrorPayload = {
export type ErrorValue = {
message: string;

@@ -101,3 +101,3 @@ };

id?: string;
payload: ErrorPayload;
value: ErrorValue;
type: WebsocketResponseType.ERROR;

@@ -108,3 +108,3 @@ };

id: string;
payload: News[];
value: News[];
type: WebsocketResponseType.DATA;

@@ -114,4 +114,4 @@ } | WebsocketErrorResponse | {

id?: string;
payload: undefined;
value: undefined;
type: WebsocketResponseType.OK;
};

@@ -55,3 +55,3 @@ "use strict";

type: enums_1.WebsocketResponseType.ERROR,
payload: {
value: {
message

@@ -80,3 +80,3 @@ }

id: options.subscriptionId,
payload: options.filter
value: options.filter
};

@@ -89,3 +89,3 @@ this.sendSocketMessage(message, resubscribeOnReconnect);

id: subscriptionId,
payload: {
value: {
subscriptionId,

@@ -92,0 +92,0 @@ }

{
"name": "newsware",
"version": "7.0.3",
"version": "7.1.0",
"description": "Typescript client for interacting with the Newsware API",

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

@@ -96,7 +96,7 @@ import {CloseEvent} from "isomorphic-ws"

id: string
payload?: Filter
value?: Filter
} | {
method: WebsocketMethod.UNSUBSCRIBE
id: string
payload: {
value: {
all: boolean

@@ -108,3 +108,3 @@ } | {

export type ErrorPayload = {
export type ErrorValue = {
message: string

@@ -116,3 +116,3 @@ }

id?: string
payload: ErrorPayload
value: ErrorValue
type: WebsocketResponseType.ERROR

@@ -124,3 +124,3 @@ }

id: string
payload: News[]
value: News[]
type: WebsocketResponseType.DATA

@@ -130,4 +130,4 @@ } | WebsocketErrorResponse | {

id?: string
payload: undefined
value: undefined
type: WebsocketResponseType.OK
}

@@ -62,3 +62,3 @@ import {ConnectOptions, EndpointDescription, SubscribeOptions, WebsocketRequest, WebsocketResponse,} from "./types";

type: WebsocketResponseType.ERROR,
payload: {
value: {
message

@@ -90,3 +90,3 @@ }

id: options.subscriptionId,
payload: options.filter
value: options.filter
}

@@ -100,3 +100,3 @@ this.sendSocketMessage(message, resubscribeOnReconnect)

id: subscriptionId,
payload: {
value: {
subscriptionId,

@@ -103,0 +103,0 @@ }

Sorry, the diff of this file is not supported yet

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