notification-processor
Advanced tools
@@ -11,9 +11,3 @@ "use strict"; | ||
| newNotification: function newNotification(_ref) { | ||
| var _ref$context$bindingD = _ref.context.bindingData, | ||
| insertionTime = _ref$context$bindingD.insertionTime, | ||
| dequeueCount = _ref$context$bindingD.dequeueCount, | ||
| messageId = _ref$context$bindingD.messageId, | ||
| Message = _ref$context$bindingD.Message, | ||
| MessageId = _ref$context$bindingD.MessageId, | ||
| message = _ref.message; | ||
| var message = _ref.message; | ||
@@ -23,5 +17,16 @@ return { | ||
| meta: { | ||
| insertionTime: insertionTime, | ||
| dequeueCount: dequeueCount, | ||
| messageId: messageId || MessageId || Message | ||
| insertionTime: _.get(message, "Timestamp"), | ||
| messageId: _.get(message, "MessageId"), | ||
| properties: _.mapValues(_.get(message, "MessageAttributes"), function (_ref2) { | ||
| var Type = _ref2.Type, | ||
| Value = _ref2.Value; | ||
| if (_.includes(Type, 'Array')) { | ||
| return JSON.parse(Value); | ||
| } else if (Type === 'Number') { | ||
| return Number(Value); | ||
| } else { | ||
| return Value; | ||
| } | ||
| }) | ||
| }, | ||
@@ -28,0 +33,0 @@ type: "sqs" |
+1
-1
| { | ||
| "name": "notification-processor", | ||
| "version": "5.0.0", | ||
| "version": "5.0.1", | ||
| "description": "notification-processor", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 18 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 18 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
88914
0.03%1917
0.21%