Socket
Socket
Sign inDemoInstall

@semilimes/node-red-semilimes

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semilimes/node-red-semilimes - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

0

examples/Connect To semilimes flow.json

@@ -0,0 +0,0 @@ [

2

package.json
{
"name": "@semilimes/node-red-semilimes",
"version": "1.1.8",
"version": "1.1.9",
"description": "The new semilimes connector which integrates with the public API",

@@ -5,0 +5,0 @@ "scripts": {

@@ -0,0 +0,0 @@ # Node-RED semilimes connector

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

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

//Appointment
this.title = config.title;
this.titleType = config.titleType;
this.description = config.description;
this.descriptionType = config.descriptionType;
this.start = config.start;
this.startType = config.startType;
this.end = config.end;
this.endType = config.endType;
this.allDay = config.allDay;
this.allDayType = config.allDayType;
//location langitude and longitude reused from location object
//WebView

@@ -121,2 +139,46 @@ this.url = config.url;

break;
case 'appointment':
var titleValue = smeHelper.getNodeConfigValue(node, msg, node.titleType, node.title);
var descriptionValue = smeHelper.getNodeConfigValue(node, msg, node.descriptionType, node.description);
var startValue = smeHelper.getNodeConfigValue(node, msg, node.startType, node.start);
var endValue = smeHelper.getNodeConfigValue(node, msg, node.endType, node.end);
var allDayValue = smeHelper.getNodeConfigValue(node, msg, node.allDayType, node.allDay);
var latitudeValue = smeHelper.getNodeConfigValue(node, msg, node.latitudeType, node.latitude);
var longitudeValue = smeHelper.getNodeConfigValue(node, msg, node.longitudeType, node.longitude);
console.log(titleValue);
console.log(descriptionValue);
console.log(startValue);
console.log(endValue);
console.log(allDayValue);
console.log(latitudeValue);
console.log(longitudeValue);
if (titleValue &&
typeof titleValue === "string" &&
typeof startValue === "number" &&
typeof endValue === "number" )
{
smeMsg = {
dataComponent: {
dataComponentType: "appointment",
title: titleValue,
description: descriptionValue || "",
start: startValue,
end: endValue,
allDay: allDayValue === true || false,
}
};
if (latitudeValue &&
longitudeValue &&
parseFloat(latitudeValue) > 0 &&
parseFloat(longitudeValue) > 0)
{
smeMsg.dataComponent.location = {
latitude: parseFloat(latitudeValue) || 0.0,
longitude: parseFloat(longitudeValue) || 0.0
}
}
}
break;
case 'location':

@@ -123,0 +185,0 @@ var locationNameValue = smeHelper.getNodeConfigValue(node, msg, node.locationNameType, node.locationName);

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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