New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

notification-processor

Package Overview
Dependencies
Maintainers
6
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notification-processor - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

2

lib/exceptions/non.retryable.js

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -8,0 +8,0 @@ var NonRetryable;

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ module.exports = {

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -14,0 +14,0 @@ var DeadLetterSucceededObserver,

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ var convert;

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -14,0 +14,0 @@ var DelayObserver,

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -14,0 +14,0 @@ var DidLastRetry,

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -10,0 +10,0 @@ var IncidentsApiObserver, ServiceBusClient, _, debug, encode;

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ var errorToJson;

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -10,0 +10,0 @@ var Promise, Redis, RedisObserver, _;

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -10,0 +10,0 @@ var MeliSender, Processor, ProcessorBuilder, ProductecaSender, QueueSource, ServiceBusSource, UnknownSource, _, logger;

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -14,0 +14,0 @@ var ENABLE_EVENTS,

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -14,0 +14,0 @@ var DeadletterProcessor, MaxRetriesProcessor, NonRetryable;

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ var JobProcessor, RequestProcessor, _;

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -79,3 +79,3 @@ var JobProcessor,

boundMethodCheck(this, JobProcessor);
return _.pick(err, ["statusCode", "error"]);
return _.pick(err, ["message", "type", "detail.request"]);
}

@@ -82,0 +82,0 @@ }, {

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -10,0 +10,0 @@ var NotificationsApi, _, request, retry;

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -10,0 +10,0 @@ var MaxRetriesProcessor;

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ var RequestProcessor, _, _normalizeHeaders, builderRequest;

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {
var MESSAGE_PROPERTIES, NonRetryableError, Promise, RequestError, StatusCodeError, _, _safeParse, _type, httpStatus, request;
var MESSAGE_PROPERTIES, NonRetryableError, Promise, RequestError, StatusCodeError, _, __isIncludedInStatusesError, _safeParse, _type, errorConditions, httpStatus, request;

@@ -41,2 +41,23 @@ _ = require("lodash");

errorConditions = {
client: function client(it) {
return it >= 400 && it < 500;
},
server: function server(it) {
return it >= 500;
}
};
__isIncludedInStatusesError = function __isIncludedInStatusesError(conditions) {
return function (err) {
var statusCode;
statusCode = _.get(err, "detail.response.statusCode");
return _(conditions).map(function (it) {
return _.get(errorConditions, it, _.partial(_.isEqual, it));
}).some(function (condition) {
return condition(statusCode);
});
};
};
module.exports = function (requestGenerator) {

@@ -50,8 +71,2 @@ var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},

return function (notification) {
var __isIncludedInStatusesError;
__isIncludedInStatusesError = function __isIncludedInStatusesError(statuses) {
return function (err) {
return _.includes(statuses, _.get(err, "detail.response.statusCode"));
};
};
return Promise.method(requestGenerator)(notification).then(function (options) {

@@ -58,0 +73,0 @@ return request(options).promise().catch(RequestError, function (_ref2) {

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ module.exports = {

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ module.exports = {

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ module.exports = {

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ var Promise, redis;

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ module.exports = {

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ var DeadLetterSucceeded, DelayObserver, DidLastRetry, _, create;

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ var DeadLetterSucceeded, DelayObserver, DidLastRetry, _, create;

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ var _;

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ var _;

"use strict";
// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -5,0 +5,0 @@ var _, notification, redis;

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

// Generated by CoffeeScript 2.3.2
// Generated by CoffeeScript 2.5.1
(function () {

@@ -10,0 +10,0 @@ var MockRedis, MockRedisClient, Promise, _, proxyquire, sinon, stub;

{
"name": "notification-processor",
"version": "4.3.0",
"version": "4.4.0",
"description": "notification-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