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

eventregistry

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventregistry - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist/base.js

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

}
if (_.isUndefined(propOperName) || formattedOperator !== defaultOperName) {
if (_.isUndefined(propOperName) && formattedOperator !== defaultOperName) {
throw new Error("An invalid operator type '" + formattedOperator + "' was used for property '" + propName + "'");

@@ -159,0 +159,0 @@ }

@@ -8,2 +8,3 @@ export { Analytics } from "./analytics";

export { EventRegistry, ArticleMapper } from "./eventRegistry";
export { sleep, mainLangs, allLangs } from "./base";
export { GetSourceInfo, GetConceptInfo, GetCategoryInfo, GetSourceStats } from "./info";

@@ -10,0 +11,0 @@ export { BaseQuery, CombinedQuery, ComplexArticleQuery, ComplexEventQuery } from "./query";

@@ -20,2 +20,6 @@ "use strict";

exports.ArticleMapper = eventRegistry_1.ArticleMapper;
var base_2 = require("./base");
exports.sleep = base_2.sleep;
exports.mainLangs = base_2.mainLangs;
exports.allLangs = base_2.allLangs;
var info_1 = require("./info");

@@ -22,0 +26,0 @@ exports.GetSourceInfo = info_1.GetSourceInfo;

@@ -7,2 +7,3 @@ import {

QueryArticles,
QueryEvents,
RequestArticlesInfo,

@@ -47,3 +48,3 @@ RequestEventsInfo,

er.getConceptUri("Apple").then((conceptUri) => {
const q4 = new QueryArticles({ conceptUri });
const q4 = new QueryEvents({ conceptUri });
const returnInfo = new ReturnInfo({articleInfo: new ArticleInfoFlags({socialScore: true})});

@@ -50,0 +51,0 @@ const requestEventsInfo = new RequestEventsInfo({count: 5, sortBy: "socialScore", returnInfo: returnInfo});

import { ArticleInfoFlags, EventRegistry, GetRecentArticles, ReturnInfo, sleep } from "eventregistry";
import * as _ from "lodash";

@@ -3,0 +4,0 @@ // this is a simple script that makes a query to ER to get the feed of articles that were added

@@ -5,3 +5,3 @@ {

"description": "Package containing wrapper functions for Event Registry API",
"version": "1.0.1",
"version": "1.0.2",
"license": "MIT",

@@ -8,0 +8,0 @@ "main": "./dist/index.js",

@@ -6,3 +6,3 @@ ## Accessing Event Registry data through JS

Most of the package is quite similar to [https://github.com/EventRegistry/event-registry-python](Event Registry Python) so for all who are already acquainted with the Python version there shouldn't be any problems with using this package.
Most of the package is quite similar to [Event Registry Python](https://github.com/EventRegistry/event-registry-python) so for all who are already acquainted with the Python version there shouldn't be any problems with using this package.

@@ -9,0 +9,0 @@ ### Installation

@@ -156,3 +156,3 @@ import * as _ from "lodash";

}
if (_.isUndefined(propOperName) || formattedOperator !== defaultOperName) {
if (_.isUndefined(propOperName) && formattedOperator !== defaultOperName) {
throw new Error(`An invalid operator type '${formattedOperator}' was used for property '${propName}'`);

@@ -159,0 +159,0 @@ }

@@ -12,2 +12,3 @@

} from "./eventRegistry";
export { sleep, mainLangs, allLangs } from "./base";
export {

@@ -14,0 +15,0 @@ GetSourceInfo,

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