Socket
Socket
Sign inDemoInstall

@condor-labs/ec-events-gateway

Package Overview
Dependencies
6
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

2

package.json
{
"name": "@condor-labs/ec-events-gateway",
"version": "1.1.0",
"version": "1.2.0",
"description": "Client to send events to events gateway API",

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

@@ -83,5 +83,3 @@ const Joi = require('@hapi/joi');

data: Joi.object()
.keys({
...clientSchema
})
.keys(clientSchema)
.required()

@@ -127,6 +125,10 @@ };

const formatData = data => {
const messageAttributes = Object.assign(MESSAGE_ATTRIBUTES, {
type: data.type
});
const newData = {
topic: data.topic || null,
message: data.data || null,
messageAttributes: { ...MESSAGE_ATTRIBUTES, type: data.type }
messageAttributes
};

@@ -133,0 +135,0 @@

@@ -286,5 +286,3 @@ const Joi = require('@hapi/joi');

data: Joi.object()
.keys({
...clientSchema
})
.keys(clientSchema)
.required()

@@ -467,9 +465,10 @@ };

const messageAttributes = Object.assign(MESSAGE_ATTRIBUTES, {
type: data.type
});
const expectedResult = {
topic: data.topic,
message: data.data,
messageAttributes: {
...MESSAGE_ATTRIBUTES,
type: data.type
}
messageAttributes
};

@@ -476,0 +475,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc