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 10.0.0-beta.15 to 10.0.0-beta.16

4

lib/src/api.d.ts

@@ -1,2 +0,2 @@

import { CategoryCode, EndpointDescription, HistoricalFilter, News, RestResponse, RestResponseError, RestResponseSuccess, Source } from "./types";
import { CategoryCode, EndpointDescription, HistoricalFilter, News, RestResponse, RestResponseError, RestResponseSuccess, SourceDetails } from "./types";
export declare class Api {

@@ -10,3 +10,3 @@ private apikey;

getCategoryCodes(source: string): Promise<CategoryCode[]>;
getSources(): Promise<Source[]>;
getSources(): Promise<SourceDetails[]>;
get<T>(path: string, params?: any, errorHandler?: (apiResponse: RestResponseError<T>) => void): Promise<RestResponse<T>>;

@@ -13,0 +13,0 @@ post<T, Z>(path: string, body: T, errorHandler?: (apiResponse: RestResponseError<Z>) => void): Promise<RestResponseSuccess<Z>>;

export { Or, And, Text, Ciks, Tickers, Sources, CategoryCodes } from "./filters";
export { Api } from "./api";
export { WsApi } from "./wsApi";
export { News, Filter, TextOptions, WebsocketResponse, WebsocketErrorResponse, ConnectOptions, HistoricalFilter, RestResponse, RestResponseSuccess, RestResponseError } from "./types";
export { News, Filter, TextOptions, WebsocketResponse, WebsocketErrorResponse, ConnectOptions, HistoricalFilter, RestResponse, RestResponseSuccess, RestResponseError, CategoryCode, SourceDetails } from "./types";
export { Source, WebsocketMethod, WebsocketResponseType, FilterAction, Field } from "./enums";

@@ -138,4 +138,4 @@ /// <reference types="ws" />

}
export interface Source {
export interface SourceDetails {
code: string;
}
{
"name": "newsware",
"version": "10.0.0-beta.15",
"version": "10.0.0-beta.16",
"description": "Typescript client for interacting with the Newsware API",

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

@@ -9,3 +9,3 @@ import {

RestResponseSuccess,
Source
SourceDetails
} from "./types"

@@ -43,4 +43,4 @@ import { Endpoint } from "./enums"

async getSources(): Promise<Source[]> {
return (await (this.get<Source[]>('/sources'))).data;
async getSources(): Promise<SourceDetails[]> {
return (await (this.get<SourceDetails[]>('/sources'))).data;
}

@@ -47,0 +47,0 @@

@@ -1,4 +0,4 @@

export {Or, And, Text, Ciks, Tickers, Sources, CategoryCodes} from "./filters";
export {Api} from "./api"
export {WsApi} from "./wsApi"
export { Or, And, Text, Ciks, Tickers, Sources, CategoryCodes } from "./filters";
export { Api } from "./api"
export { WsApi } from "./wsApi"
export {

@@ -14,4 +14,6 @@ News,

RestResponseSuccess,
RestResponseError
RestResponseError,
CategoryCode,
SourceDetails
} from "./types"
export {Source, WebsocketMethod, WebsocketResponseType, FilterAction, Field} from "./enums"
export { Source, WebsocketMethod, WebsocketResponseType, FilterAction, Field } from "./enums"

@@ -157,4 +157,4 @@ import { CloseEvent } from "isomorphic-ws"

export interface Source {
export interface SourceDetails {
code: string
}

Sorry, the diff of this file is not supported yet

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