Comparing version 7.0.3 to 7.1.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82336