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

historical-deadletter-processor

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

historical-deadletter-processor - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

21

lib/reader.historical.processor.js

@@ -44,4 +44,3 @@ "use strict";

index = _ref$index === undefined ? "errors" : _ref$index,
_ref$extraFilters = _ref.extraFilters,
extraFilters = _ref$extraFilters === undefined ? [] : _ref$extraFilters,
conditions = _ref.conditions,
_ref$logger = _ref.logger,

@@ -62,3 +61,3 @@ logger = _ref$logger === undefined ? console : _ref$logger;

this.index = index;
this.extraFilters = extraFilters;
this.conditions = conditions;
this.logger = logger;

@@ -96,7 +95,5 @@ this.client = this._buildClient(connection);

var nDaysAgo, query, queryOptions;
nDaysAgo = moment().subtract(this.daysRetrying, 'days').utc().format("YYYY-MM-DDTHH:mm:ss") + "z";
query = _.concat(["app eq '" + this.app + "'", "job eq '" + this.job + "'", "timestamp gt " + nDaysAgo], this.extraFilters).join(" and ");
var queryOptions;
queryOptions = {
filter: query,
filter: this._filter(),
skip: page * SIZE_PAGE,

@@ -114,2 +111,12 @@ top: SIZE_PAGE

}, {
key: "_filter",
value: function _filter() {
var nDaysAgo;
if (this.conditions != null) {
return this.conditions;
}
nDaysAgo = moment().subtract(this.daysRetrying, 'days').utc().format("YYYY-MM-DDTHH:mm:ss") + "z";
return ["app eq '" + this.app + "'", "job eq '" + this.job + "'", "timestamp gt " + nDaysAgo].join(" and ");
}
}, {
key: "_doProcess",

@@ -116,0 +123,0 @@ value: function _doProcess(row) {

{
"name": "historical-deadletter-processor",
"version": "2.1.1",
"version": "2.2.0",
"description": "historical-deadletter-processor",

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

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