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

@node-red/nodes

Package Overview
Dependencies
Maintainers
2
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-red/nodes - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

locales/zh-CN/common/20-inject.html

6

core/common/21-debug.js

@@ -65,3 +65,3 @@ module.exports = function(RED) {

} else {
done(null,{id:node.id, z:node.z, name:node.name, topic:msg.topic, msg:value, _path:msg._path});
done(null,{id:node.id, z:node.z, _alias: node._alias, path:node._flow.path, name:node.name, topic:msg.topic, msg:value});
}

@@ -81,3 +81,3 @@ });

}
done(null,{id:node.id, z:node.z, name:node.name, topic:msg.topic, property:property, msg:output, _path:msg._path});
done(null,{id:node.id, z:node.z, _alias: node._alias, path:node._flow.path, name:node.name, topic:msg.topic, property:property, msg:output});
}

@@ -93,3 +93,3 @@ }

if (this.active && this.tosidebar) {
sendDebug({id:node.id, z:node.z, name:node.name, topic:msg.topic, msg:msg, _path:msg._path});
sendDebug({id:node.id, z:node.z, _alias: node._alias, path:node._flow.path, name:node.name, topic:msg.topic, msg:msg});
}

@@ -96,0 +96,0 @@ done();

@@ -409,6 +409,12 @@ /**

if (o._source) {
// highlight the top-level node (could be subflow instance)
config.messageMouseEnter(o._source.id);
if (o._source._alias) {
// this is inside a subflow - highlight the node itself
config.messageMouseEnter(o._source._alias);
}
// if path.length > 2, we are nested - highlight subflow instances
for (var i=2;i<o._source.path.length;i++) {
config.messageMouseEnter(o._source.path[i]);
}
}

@@ -423,2 +429,5 @@ });

}
for (var i=2;i<o._source.path.length;i++) {
config.messageMouseLeave(o._source.path[i]);
}
}

@@ -457,3 +466,3 @@ });

evt.preventDefault();
config.messageSourceClick(sourceNode.id);
config.messageSourceClick(sourceNode.id, sourceNode._alias, sourceNode.path);
});

@@ -460,0 +469,0 @@ } else if (name) {

@@ -10,4 +10,4 @@ $(function() {

},
messageSourceClick: function(sourceId) {
window.opener.postMessage({event:"mouseClick",id:sourceId},'*');
messageSourceClick: function(sourceId, aliasId, path) {
window.opener.postMessage({event:"mouseClick",id:sourceId, _alias: aliasId, path: path},'*');
},

@@ -14,0 +14,0 @@ clear: function() {

@@ -79,2 +79,3 @@ /**

var npay = {};
var pendingMessages = [];

@@ -126,5 +127,6 @@ var activeMessagePromise = null;

else {
if (node.op2type === "payl") { npay[topic] = RED.util.cloneMessage(msg); }
if (((!node.topics[topic].tout) && (node.topics[topic].tout !== 0)) || (node.loop === true)) {
promise = Promise.resolve();
if (node.op2type === "pay" || node.op2type === "payl") { node.topics[topic].m2 = RED.util.cloneMessage(msg.payload); }
if (node.op2type === "pay") { node.topics[topic].m2 = RED.util.cloneMessage(msg.payload); }
else if (node.op2Templated) { node.topics[topic].m2 = mustache.render(node.op2,msg); }

@@ -191,5 +193,11 @@ else if (node.op2type !== "nul") {

promise.then(() => {
msg2.payload = node.topics[topic].m2;
if (node.op2type === "payl") {
node.send(npay[topic]);
delete npay[topic];
}
else {
msg2.payload = node.topics[topic].m2;
node.send(msg2);
}
delete node.topics[topic];
node.send(msg2);
node.status({});

@@ -250,5 +258,2 @@ }).catch(err => {

}
else {
if (node.op2type === "payl") { node.topics[topic].m2 = RED.util.cloneMessage(msg.payload); }
}
}

@@ -255,0 +260,0 @@ return Promise.resolve();

@@ -156,3 +156,8 @@ /**

if (this.broker !== "") {
this.brokerurl = this.brokerurl+this.broker+":";
//Check for an IPv6 address
if (/(?:^|(?<=\s))(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))(?=\s|$)/.test(this.broker)) {
this.brokerurl = this.brokerurl+"["+this.broker+"]:";
} else {
this.brokerurl = this.brokerurl+this.broker+":";
}
// port now defaults to 1883 if unset.

@@ -159,0 +164,0 @@ if (!this.port){

@@ -432,3 +432,3 @@ /**

var group = inflight[partId];
clearTimeout(group.timeout);
if (group.timeout) { clearTimeout(group.timeout); }
if ((node.accumulate !== true) || group.msg.hasOwnProperty("complete")) { delete inflight[partId]; }

@@ -435,0 +435,0 @@ if (group.type === 'array' && group.arrayLen > 1) {

@@ -9,3 +9,5 @@ {

"password": "密码",
"property": "属性"
"property": "属性",
"selectNodes": "选择节点...",
"expand": "扩展"
},

@@ -39,3 +41,18 @@ "status": {

"label": {
"repeat": "重复"
"repeat": "重复",
"flow": "流上下午",
"global": "全局上下文",
"str": "字符串",
"num": "数值",
"bool": "布尔值",
"json": "JSON对象",
"bin": "buffer",
"date": "时间戳",
"env": "环境变量",
"object": "对象",
"string": "字符串",
"boolean": "布尔值",
"number": "数值",
"Array": "数组",
"invalid": "无效的JSON对象"
},

@@ -75,11 +92,9 @@ "timestamp": "时间戳",

"catch": {
"catch": "监测所有节点",
"catchNodes": "监测__number__个节点",
"catch": "捕获:所有节点",
"catchNodes": "捕获:__number__个节点",
"catchUncaught": "捕获:未捕获",
"label": {
"source": "监测范围",
"node": "节点",
"type": "类型",
"source": "捕获范围",
"selectAll": "全选",
"sortByLabel": "按名称排序",
"sortByType": "按类型排序"
"uncaught": "忽略其他捕获节点处理的错误"
},

@@ -96,6 +111,2 @@ "scope": {

"source": "报告状态范围",
"node": "节点",
"type": "类型",
"selectAll": "全选",
"sortByLabel": "按名称排序",
"sortByType": "按类型排序"

@@ -108,4 +119,9 @@ },

},
"complete": {
"completeNodes": "完成: __number__个节点"
},
"debug": {
"output": "输出",
"none": "None",
"invalid-exp": "无效的JSONata表达式: __error__",
"msgprop": "信息属性",

@@ -132,3 +148,7 @@ "msgobj": "完整信息",

"clearLog": "清空日志",
"openWindow": "在新窗口打开"
"filterLog": "过滤日志",
"openWindow": "在新窗口打开",
"copyPath": "复制路径",
"copyPayload": "复制值",
"pinPath": "固定展开"
},

@@ -155,3 +175,4 @@ "messageMenu": {

"ca": "CA证书",
"verify-server-cert":"验证服务器证书"
"verify-server-cert":"验证服务器证书",
"servername": "服务器名"
},

@@ -162,3 +183,4 @@ "placeholder": {

"ca":"CA证书路径 (PEM 格式)",
"passphrase":"私钥密码 (可选)"
"passphrase":"私钥密码 (可选)",
"servername":"用于SNI"
},

@@ -170,2 +192,4 @@ "error": {

"exec": {
"exec": "exec",
"spawn": "spawn",
"label": {

@@ -177,3 +201,6 @@ "command": "命令",

"return": "输出",
"seconds": "秒"
"seconds": "秒",
"stdout": "标准输出",
"stderr": "标准错误输出",
"retcode": "返回码"
},

@@ -190,2 +217,3 @@ "placeholder": {

"function": {
"function": "函数",
"label": {

@@ -201,2 +229,3 @@ "function": "函数",

"template": {
"template": "模板",
"label": {

@@ -214,3 +243,3 @@ "template": "模版",

},
"templatevalue": "This is the payload: {{payload}} !"
"templatevalue": "这是有效载荷: {{payload}} !"
},

@@ -288,2 +317,5 @@ "delay": {

"wait-loop": "周期性重发",
"for": "处理",
"bytopics": "每个msg.topic",
"alltopics": "所有消息",
"duration": {

@@ -307,2 +339,3 @@ "ms": "毫秒",

"comment": {
"comment": "注释"
},

@@ -318,5 +351,6 @@ "unknown": {

"broker": "服务端",
"example": "e.g. localhost",
"example": "比如:本地主机",
"output": "输出",
"qos": "QoS",
"retain": "保持",
"clientid": "客户端ID",

@@ -331,7 +365,11 @@ "port": "端口",

},
"sections-label":{
"birth-message": "连接时发送的消息(出生消息)",
"will-message":"意外断开连接时的发送消息(Will消息)",
"close-message":"断开连接前发送的消息(关闭消息)"
},
"tabs-label": {
"connection": "连接",
"security": "安全",
"will": "Will信息",
"birth": "Birth信息"
"messages": "消息"
},

@@ -342,3 +380,4 @@ "placeholder": {

"will-topic": "留白将禁止Will信息",
"birth-topic": "留白将禁止Birth信息"
"birth-topic": "留白将禁止Birth信息",
"close-topic": "留白以禁用关闭消息"
},

@@ -354,3 +393,5 @@ "state": {

"string": "字符串",
"base64": "Base64编码字符串"
"base64": "Base64编码字符串",
"auto": "自动检测 (字符串或buffer)",
"json": "解析的JSON对象"
},

@@ -364,3 +405,5 @@ "true": "是",

"invalid-topic": "主题无效",
"nonclean-missingclientid": "客户端ID未设定,使用新会话"
"nonclean-missingclientid": "客户端ID未设定,使用新会话",
"invalid-json-string": "无效的JSON字符串",
"invalid-json-parse": "无法解析JSON字符串"
}

@@ -376,4 +419,10 @@ },

"status": "状态码",
"headers": "Header",
"other": "其他"
"headers": "头",
"other": "其他",
"paytoqs" : "将msg.payload附加为查询字符串参数",
"utf8String": "UTF8格式的字符串",
"binaryBuffer": "二进制buffer",
"jsonObject": "解析的JSON对象",
"authType": "类型",
"bearerToken": "Token"
},

@@ -384,2 +433,10 @@ "setby": "- 用 msg.method 设定 -",

"tls-config":"TLS 设置",
"basic": "基本认证",
"digest": "摘要认证",
"bearer": "bearer认证",
"use-proxy": "使用代理服务器",
"persist": "对连接启用keep-alive",
"proxy-config": "代理服务器设置",
"use-proxyauth": "使用代理身份验证",
"noproxy-hosts": "代理例外",
"utf8": "UTF-8 字符串",

@@ -401,3 +458,6 @@ "binary": "二进制数据",

"deprecated-call":"__method__方法已弃用",
"invalid-transport":"非HTTP传输请求"
"invalid-transport":"非HTTP传输请求",
"timeout-isnan": "超时值不是有效数字,忽略",
"timeout-isnegative": "超时值为负,忽略",
"invalid-payload": "无效的有效载荷"
},

@@ -425,9 +485,15 @@ "status": {

},
"status": {
"connected": "连接数 __count__",
"connected_plural": "连接数 __count__"
},
"errors": {
"connect-error": "ws连接发生了错误: ",
"send-error": "发送时发生了错误: ",
"missing-conf": "未设置服务器"
"missing-conf": "未设置服务器",
"duplicate-path": "同一路径上不能有两个WebSocket侦听器: __path__"
}
},
"watch": {
"watch": "watch",
"label": {

@@ -448,3 +514,3 @@ "files": "文件",

"host": "主机地址",
"payload": "的有效载荷",
"payload": "有效载荷",
"delimited": "分隔符号",

@@ -508,3 +574,2 @@ "close-connection": "是否在成功发送每条信息后断开连接?",

"interface": "本地IP",
"interfaceprompt": "(可选)本地 IP 绑定到",
"send": "发送一个",

@@ -517,2 +582,3 @@ "toport": "到端口",

"interface": "(可选)eth0的IP地址",
"interfaceprompt": "(可选) 要绑定的本地接口或地址",
"address": "目标IP地址"

@@ -559,6 +625,8 @@ },

"port-invalid": "udp: 无效端口号码",
"alreadyused": "udp: 端口已被占用"
"alreadyused": "udp: 端口已被占用",
"ifnotfound": "udp: 接口 __iface__ 未发现"
}
},
"switch": {
"switch": "switch",
"label": {

@@ -569,2 +637,3 @@ "property": "属性",

},
"previous": "先前值",
"and": "与",

@@ -582,7 +651,11 @@ "checkall": "全选所有规则",

"nnull":"非空",
"head":"head",
"tail":"tail",
"index":"index between",
"istype": "类型是",
"empty": "为空",
"nempty": "非空",
"head":"头",
"tail":"尾",
"index":"索引在..中间",
"exp":"JSONata表达式",
"else":"除此以外"
"else":"除此以外",
"hask": "拥有键"
},

@@ -621,2 +694,3 @@ "errors": {

"range": {
"range": "range",
"label": {

@@ -657,3 +731,4 @@ "action": "操作",

"includerow": "包含列名行",
"newline": "换行符"
"newline": "换行符",
"usestrings": "解析数值"
},

@@ -689,3 +764,4 @@ "placeholder": {

"select": "选取项",
"output": "输出"
"output": "输出",
"in": "in"
},

@@ -706,3 +782,5 @@ "output": {

"dropped": "忽略不支持格式的有效负载类型",
"dropped-error": "转换有效负载失败"
"dropped-error": "转换有效负载失败",
"schema-error": "JSON架构错误",
"schema-error-compile": "JSON架构错误: 未能编译架构"
},

@@ -750,3 +828,6 @@ "label": {

"sendError": "发生错误时发送消息(传统模式)",
"deletelabel": "删除 __file__"
"deletelabel": "删除 __file__",
"encoding": "编码",
"utf8String": "UTF8字符串",
"binaryBuffer": "二进制buffer"
},

@@ -769,2 +850,17 @@ "action": {

},
"encoding": {
"none": "默认",
"native": "Native",
"unicode": "Unicode",
"japanese": "日本",
"chinese": "中国",
"korean": "韩国",
"taiwan": "台湾/香港",
"windows": "Windows代码页",
"iso": "ISO代码页",
"ibm": "IBM代码页",
"mac": "Mac代码页",
"koi8": "KOI8代码页",
"misc": "其它"
},
"errors": {

@@ -781,2 +877,3 @@ "nofilename": "未指定文件名",

"split": {
"split": "split",
"intro":"基于以下类型拆分<code>msg.payload</code>:",

@@ -793,2 +890,3 @@ "object":"<b>对象</b>",

"join":{
"join": "join",
"mode":{

@@ -802,2 +900,3 @@ "mode":"模式",

"combine":"合并每个",
"completeMessage": "完整的消息",
"create":"输出为",

@@ -841,2 +940,3 @@ "type":{

"sort" : {
"sort": "排序",
"target" : "排序属性",

@@ -850,7 +950,8 @@ "seq" : "信息队列",

"as-number" : "作为数值",
"invalid-exp" : "sort节点中存在无效的JSONata表达式",
"too-many" : "sort节点中有太多待定信息",
"clear" : "清空sort节点中的待定信息"
"invalid-exp" : "排序节点中存在无效的JSONata表达式",
"too-many" : "排序节点中有太多待定信息",
"clear" : "清空排序节点中的待定信息"
},
"batch" : {
"batch": "batch",
"mode": {

@@ -857,0 +958,0 @@ "label" : "模式",

{
"name": "@node-red/nodes",
"version": "1.0.3",
"version": "1.0.4",
"license": "Apache-2.0",

@@ -18,3 +18,3 @@ "repository": {

"dependencies": {
"ajv": "6.10.2",
"ajv": "6.12.0",
"body-parser": "1.19.0",

@@ -26,3 +26,3 @@ "cheerio": "0.22.0",

"cors": "2.8.5",
"cron": "1.7.2",
"cron": "1.8.2",
"denque": "1.4.1",

@@ -32,3 +32,3 @@ "fs-extra": "8.1.0",

"hash-sum": "2.0.0",
"https-proxy-agent": "2.2.4",
"https-proxy-agent": "5.0.0",
"is-utf8": "0.2.1",

@@ -39,3 +39,3 @@ "js-yaml": "3.13.1",

"multer": "1.4.2",
"mustache": "3.0.2",
"mustache": "4.0.0",
"on-headers": "1.0.2",

@@ -45,5 +45,5 @@ "raw-body": "2.4.1",

"ws": "6.2.1",
"xml2js": "0.4.22",
"iconv-lite": "0.5.0"
"xml2js": "0.4.23",
"iconv-lite": "0.5.1"
}
}

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