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

node-red-viseo-helper

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-viseo-helper - npm Package Compare versions

Comparing version 0.1.26 to 0.1.27

0

CODE_OF_CONDUCT.md

@@ -0,0 +0,0 @@ # Contributor Covenant Code of Conduct

@@ -0,0 +0,0 @@ # Contributing to the Project

30

index.js

@@ -150,2 +150,32 @@ 'use strict';

const setContextByString = exports.setContextByString = (RED, node, str, value, env) => {
if (!env) env = 'global';
else if (env !== 'global' && env !== 'flow') error('env must be "flow" or "global"');
try {
let contextKey = RED.util.parseContextStore(str);
let target = node.context()[env];
return target.set(contextKey.key, value, contextKey.store, null);
}
catch(err) {
error(err);
return null;
}
}
const getContextByString = exports.getContextByString = (RED, node, str, env) => {
if (!env) env = 'global';
else if (env !== 'global' && env !== 'flow') error('env must be "flow" or "global"');
try {
let contextKey = RED.util.parseContextStore(str);
let target = node.context()[env]
return target.get(contextKey.key, contextKey.store, null);
}
catch(err) {
error(err);
return null;
}
}
// ------------------------------------------

@@ -152,0 +182,0 @@ // EVENT

@@ -0,0 +0,0 @@ const extend = require('extend');

2

package.json
{
"name" : "node-red-viseo-helper",
"version" : "0.1.26",
"version" : "0.1.27",
"description" : "Utility libarary for Node-RED",

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

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

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