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

newsware

Package Overview
Dependencies
Maintainers
0
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.1 to 10.0.3

1

lib/src/enums.d.ts
import { EndpointDescription } from "./types";
export declare enum FilterType {
AND = "and",
AND_NOT = "andNot",
OR = "or",

@@ -5,0 +6,0 @@ TEXT = "text",

@@ -7,2 +7,3 @@ "use strict";

FilterType["AND"] = "and";
FilterType["AND_NOT"] = "andNot";
FilterType["OR"] = "or";

@@ -9,0 +10,0 @@ FilterType["TEXT"] = "text";

@@ -41,2 +41,3 @@ import { FilterAction, FilterType } from "./enums";

export declare const And: (...queries: Filter[]) => Filter;
export declare const AndNot: (...queries: Filter[]) => Filter;
export declare const Or: (...queries: Filter[]) => Filter;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Or = exports.And = exports.Sources = exports.CategoryCodes = exports.Ciks = exports.Tickers = exports.Text = void 0;
exports.Or = exports.AndNot = exports.And = exports.Sources = exports.CategoryCodes = exports.Ciks = exports.Tickers = exports.Text = void 0;
const enums_1 = require("./enums");

@@ -114,2 +114,9 @@ class Text {

exports.And = And;
const AndNot = (...queries) => {
return {
type: enums_1.FilterType.AND_NOT,
value: queries
};
};
exports.AndNot = AndNot;
const Or = (...queries) => {

@@ -116,0 +123,0 @@ return {

2

lib/src/types.d.ts

@@ -42,3 +42,3 @@ /// <reference types="ws" />

export interface FilterCondition {
type: FilterType.AND | FilterType.OR;
type: FilterType.AND | FilterType.OR | FilterType.AND_NOT;
value: Filter[];

@@ -45,0 +45,0 @@ }

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

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

@@ -5,2 +5,3 @@ import { EndpointDescription } from "./types";

AND = "and",
AND_NOT = "andNot",
OR = "or",

@@ -7,0 +8,0 @@ TEXT = "text",

@@ -142,2 +142,9 @@ import { FilterAction, FilterType } from "./enums";

export const AndNot = (...queries: Filter[]): Filter => {
return {
type: FilterType.AND_NOT,
value: queries
}
}
export const Or = (...queries: Filter[]): Filter => {

@@ -144,0 +151,0 @@ return {

@@ -48,3 +48,3 @@ import { CloseEvent } from "isomorphic-ws"

export interface FilterCondition {
type: FilterType.AND | FilterType.OR
type: FilterType.AND | FilterType.OR | FilterType.AND_NOT
value: Filter[]

@@ -51,0 +51,0 @@ }

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