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

node-red-contrib-blockly

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-blockly - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

0

blockly_config.js

@@ -0,0 +0,0 @@ /**

6

blockly.js

@@ -508,2 +508,8 @@ /**

var requestedFilePath;
// When the npm package name contains a path separator (e.g. @blockly/plugin-workspace-search) then the frontend will
// have replaced that separator by the string "___SEPARATOR___". So we need to replace "___SEPARATOR___" here again by
// the path separator (which depends on the OS this node is running on).
// See https://github.com/bartbutenaers/node-red-contrib-blockly/issues/101
req.params.package = req.params.package.replace("___SEPARATOR___", path.sep);

@@ -510,0 +516,0 @@ // Try to get the npm package path from the cache

[{"id":"726f49bab272a7c8","type":"inject","z":"c2a7925b.6e143","name":"Start","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":920,"y":340,"wires":[["a9f0963b0aa786f9"]]},{"id":"a9f0963b0aa786f9","type":"Blockly","z":"c2a7925b.6e143","func":"msg['payload'] = 'Hello world';\nnode.send([msg]);\n","workspaceXml":"<xml xmlns=\"https://developers.google.com/blockly/xml\">\n <block type=\"node_object_set\" id=\"{HhMU.r!93@,X*U]cnOO\" x=\"-312\" y=\"-187\">\n <value name=\"object_field\">\n <shadow type=\"node_msg\" id=\"DSrocV,iepv#xI5CNnR*\"></shadow>\n </value>\n <value name=\"field_name\">\n <shadow type=\"text\" id=\"QY[2X`uT|j(|9hEjRP@i\">\n <field name=\"TEXT\">payload</field>\n </shadow>\n </value>\n <value name=\"value_field\">\n <shadow type=\"text\" id=\"#!`_0-/,RL$v7g2V3k5[\">\n <field name=\"TEXT\">Hello world</field>\n </shadow>\n </value>\n <next>\n <block type=\"node_send\" id=\"FUZ=O)cx}X$rVR|}@noO\">\n <field name=\"OUTPUT_NR\">1</field>\n <value name=\"MESSAGE_INPUT\">\n <shadow type=\"node_msg\" id=\"X,6T+0~8X!$Xd?G}Q-Ot\"></shadow>\n </value>\n </block>\n </next>\n </block>\n</xml>","outputs":1,"blocklyConfig":"46e073e1.66e10c","backpackContents":[],"noerr":0,"name":"","x":1090,"y":340,"wires":[["b8f850db4b40e28b"]]},{"id":"b8f850db4b40e28b","type":"debug","z":"c2a7925b.6e143","name":"Blockly output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1280,"y":340,"wires":[]},{"id":"46e073e1.66e10c","type":"blockly-config","language":"en","showTrashcan":true,"allowComments":true,"showZoomControl":true,"enableBackPack":true,"backpackContents":["<block xmlns=\"https://developers.google.com/blockly/xml\" type=\"object_create\" inline=\"true\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" num_fields=\"1\"><field name=\"property name\"></field></mutation><field name=\"field1\">payload</field></block>","<block xmlns=\"https://developers.google.com/blockly/xml\" type=\"node_return_message\"><field name=\"OUTPUT_NR\">1</field><value name=\"MESSAGE_INPUT\"><shadow type=\"node_msg\"></shadow></value></block>","<block xmlns=\"https://developers.google.com/blockly/xml\" type=\"node_object_set\" inline=\"true\"><value name=\"object_field\"><shadow type=\"node_msg\"></shadow></value><value name=\"field_name\"><shadow type=\"text\"><field name=\"TEXT\">payload</field></shadow></value><value name=\"value_field\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow></value></block>","<block xmlns=\"https://developers.google.com/blockly/xml\" type=\"node_object_get\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" action=\"GET\"></mutation><field name=\"action\">GET</field><value name=\"object\"><shadow type=\"node_msg\"></shadow></value><value name=\"field_name\"><shadow type=\"text\"><field name=\"TEXT\">payload</field></shadow></value></block>"],"toolboxPosition":"left","renderer":"geras","categories":[{"name":"Node-RED","files":["blockly-contrib/npm/node-red-contrib-blockly/lib/nodered/nodeRedBlocksCodeGen.js","blockly-contrib/npm/node-red-contrib-blockly/lib/nodered/nodeRedBlocksDefs.js","blockly-contrib/npm/node-red-contrib-blockly/lib/nodered/toolbox.xml","blockly-contrib/npm/node-red-contrib-blockly/messages/en.js"]},{"name":"Objects","files":["blockly-contrib/npm/node-red-contrib-blockly/lib/json/objectBlocksCodeGen.js","blockly-contrib/npm/node-red-contrib-blockly/lib/json/objectBlocksDefs.js","blockly-contrib/npm/node-red-contrib-blockly/lib/json/toolbox.xml","blockly-contrib/npm/node-red-contrib-blockly/messages/en.js"]},{"name":"Buffer","files":["blockly-contrib/npm/node-red-contrib-blockly/lib/buffer/bufferBlocksCodeGen.js","blockly-contrib/npm/node-red-contrib-blockly/lib/buffer/bufferBlocksDefs.js","blockly-contrib/npm/node-red-contrib-blockly/lib/buffer/toolbox.xml","blockly-contrib/npm/node-red-contrib-blockly/messages/en.js"]},{"name":"Date/time","files":["blockly-contrib/npm/@blockly%2Ffield-date/dist/date_compressed.js","blockly-contrib/npm/node-red-contrib-blockly/lib/datetime/dateTimeBlocksCodeGen.js","blockly-contrib/npm/node-red-contrib-blockly/lib/datetime/dateTimeBlocksDefs.js","blockly-contrib/npm/node-red-contrib-blockly/lib/datetime/toolbox.xml","blockly-contrib/npm/node-red-contrib-blockly/messages/en.js"]},{"name":"Timer","files":["blockly-contrib/npm/node-red-contrib-blockly/lib/timer/timerBlocksCodeGen.js","blockly-contrib/npm/node-red-contrib-blockly/lib/timer/timerBlocksDefs.js","blockly-contrib/npm/node-red-contrib-blockly/lib/timer/toolbox.xml","blockly-contrib/npm/node-red-contrib-blockly/messages/en.js"]},{"name":"Blockly extension","files":["blockly-contrib/npm/node-red-contrib-blockly/lib/extra/extraBlocksCodeGen.js","blockly-contrib/npm/node-red-contrib-blockly/lib/extra/extraBlocksDefs.js","blockly-contrib/npm/node-red-contrib-blockly/lib/extra/toolbox.xml","blockly-contrib/npm/node-red-contrib-blockly/messages/en.js"]},{"name":"Blockly standard","files":["blockly-contrib/npm/node-red-contrib-blockly/lib/basic/toolbox.xml"]}],"customizeToolbox":false,"name":""}]
[{"id":"6f9044a0.b3870c","type":"Blockly","z":"c2a7925b.6e143","func":"if (context.get(\"timeout_1\")) {\n clearTimeout(context.get(\"timeout_1\"));\n context.set(\"timeout_1\", undefined);\n}\nvar timeout_1 = setTimeout(function() {\n node.send([msg]);\n}, 3000);\ncontext.set(\"timeout_1\", timeout_1);","workspaceXml":"<xml xmlns=\"https://developers.google.com/blockly/xml\">\n <block type=\"clear_timeout\" id=\"Q83YfytwSD~%X8Vn832C\" x=\"-187\" y=\"-162\">\n <mutation xmlns=\"http://www.w3.org/1999/xhtml\" dropdown_options=\"{&quot;nothing_selected&quot;:&quot;none&quot;,&quot;;qWY9%iIXdYS{7I@S1s0&quot;:&quot;timeout_1&quot;}\"></mutation>\n <field name=\"NAME\">;qWY9%iIXdYS{7I@S1s0</field>\n <next>\n <block type=\"set_timeout\" id=\";qWY9%iIXdYS{7I@S1s0\">\n <field name=\"NAME\">timeout_1</field>\n <field name=\"DELAY\">3</field>\n <field name=\"UNIT\">sec</field>\n <statement name=\"STATEMENT\">\n <block type=\"node_send\" id=\"(GgJ]u-3f|Nf^?KS,u:S\">\n <field name=\"OUTPUT_NR\">1</field>\n <value name=\"MESSAGE_INPUT\">\n <shadow type=\"node_msg\" id=\"O=fXK^rqJuO|7R~-feV)\"></shadow>\n </value>\n </block>\n </statement>\n </block>\n </next>\n </block>\n</xml>","outputs":1,"blocklyConfig":"d7a036fa.2c0298","name":"","x":460,"y":520,"wires":[["23f77ae.7ac7086"]]},{"id":"bb11da23.5f7ff8","type":"inject","z":"c2a7925b.6e143","name":"Delay this msg 3 seconds","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Delayed with 3 seconds","payloadType":"str","x":210,"y":520,"wires":[["6f9044a0.b3870c"]]},{"id":"23f77ae.7ac7086","type":"debug","z":"c2a7925b.6e143","name":"Delayed msg","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":630,"y":520,"wires":[]},{"id":"abafc1856f0580f5","type":"Blockly","z":"c2a7925b.6e143","func":"if (context.get(\"interval_1\")) {\n clearInterval(context.get(\"interval_1\"));\n context.set(\"interval_1\", undefined);\n}\nvar interval_1 = setInterval(function() {\n node.send([msg]);\n}, 2000);\ncontext.set(\"interval_1\", interval_1);","workspaceXml":"<xml xmlns=\"https://developers.google.com/blockly/xml\">\n <block type=\"clear_interval\" id=\"lxEB}pT[]h;|XRLCw;MH\" x=\"-237\" y=\"-287\">\n <mutation xmlns=\"http://www.w3.org/1999/xhtml\" dropdown_options=\"{&quot;nothing_selected&quot;:&quot;none&quot;,&quot;9x|||hb7Dv071Rpxc8t(&quot;:&quot;interval_1&quot;}\"></mutation>\n <field name=\"NAME\">9x|||hb7Dv071Rpxc8t(</field>\n <next>\n <block type=\"set_interval\" id=\"9x|||hb7Dv071Rpxc8t(\">\n <field name=\"NAME\">interval_1</field>\n <field name=\"INTERVAL\">2</field>\n <field name=\"UNIT\">sec</field>\n <statement name=\"STATEMENT\">\n <block type=\"node_send\" id=\"Xqj)7E{pqs!}R4^ad1B*\">\n <field name=\"OUTPUT_NR\">1</field>\n <value name=\"MESSAGE_INPUT\">\n <shadow type=\"node_msg\" id=\"WRdFmo@ZPjzy4o|Hbmm*\"></shadow>\n </value>\n </block>\n </statement>\n </block>\n </next>\n </block>\n</xml>","outputs":1,"blocklyConfig":"d7a036fa.2c0298","name":"","x":460,"y":580,"wires":[["b6d7c80b9cd67967"]]},{"id":"3d2d2c395dc5c3d8","type":"inject","z":"c2a7925b.6e143","name":"Repeat this msg every 2 seconds","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Resend every 2 seconds","payloadType":"str","x":230,"y":580,"wires":[["abafc1856f0580f5"]]},{"id":"b6d7c80b9cd67967","type":"debug","z":"c2a7925b.6e143","name":"Repeated msg","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":640,"y":580,"wires":[]},{"id":"d7a036fa.2c0298","type":"blockly-config","showTrashcan":true,"allowComments":true,"showZoomControl":true,"toolboxPosition":"left","renderer":"geras","name":"Left"}]
[{"id":"bb6162cc.e1704","type":"Blockly","z":"c2a7925b.6e143","language":"en","func":"node.send([msg]);\nif ((msg['payload']) == 'activate_done') {\n node.done();\n}\n","workspaceXml":"<xml xmlns=\"https://developers.google.com/blockly/xml\">\n <block type=\"node_send\" id=\"Yoqo0*^[cs89^n:s:mB:\" x=\"-587\" y=\"-537\">\n <field name=\"OUTPUT_NR\">1</field>\n <value name=\"MESSAGE_INPUT\">\n <shadow type=\"node_msg\" id=\"54X^[E^pMXOTtqY3prub\"></shadow>\n <block type=\"node_msg\" id=\"2pz7$WcP#?EYH`4,t}rO\"></block>\n </value>\n <next>\n <block type=\"controls_if\" id=\"f4)[rrPR|B;uWPhziE]T\">\n <value name=\"IF0\">\n <block type=\"logic_compare\" id=\"UM.)|z.!+]O^@#z+qaD]\">\n <field name=\"OP\">EQ</field>\n <value name=\"A\">\n <block type=\"node_object_get\" id=\"FCAkJxW%BN$,0],!tE=*\">\n <mutation xmlns=\"http://www.w3.org/1999/xhtml\" action=\"GET\"></mutation>\n <field name=\"action\">GET</field>\n <value name=\"object\">\n <shadow type=\"node_msg\" id=\"L.1CSMob$,3W[o0)]1B8\"></shadow>\n <block type=\"node_msg\" id=\"g@IOruwt,yUL,zy[|jA3\"></block>\n </value>\n <value name=\"field_name\">\n <shadow type=\"text\" id=\"eHgGVFgeUM:q^-r!FFP`\">\n <field name=\"TEXT\">payload</field>\n </shadow>\n </value>\n </block>\n </value>\n <value name=\"B\">\n <block type=\"text\" id=\"%a|;]8Jx=84[U#9ooWD!\">\n <field name=\"TEXT\">activate_done</field>\n </block>\n </value>\n </block>\n </value>\n <statement name=\"DO0\">\n <block type=\"node_done\" id=\"BE:%8^@,:?;!$W1~^w_o\"></block>\n </statement>\n </block>\n </next>\n </block>\n</xml>","outputs":1,"name":"","x":380,"y":100,"wires":[["38459650.ac32da"]]},{"id":"88a2a218.f1f35","type":"inject","z":"c2a7925b.6e143","name":"Don't activate \"done\"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"dont_activate_done","payloadType":"str","x":170,"y":100,"wires":[["bb6162cc.e1704"]]},{"id":"38459650.ac32da","type":"debug","z":"c2a7925b.6e143","name":"Blockly output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":600,"y":100,"wires":[]},{"id":"e48085d7.32f838","type":"complete","z":"c2a7925b.6e143","name":"","scope":["bb6162cc.e1704"],"uncaught":false,"x":390,"y":220,"wires":[["c8ab2289.02c92"]]},{"id":"c8ab2289.02c92","type":"debug","z":"c2a7925b.6e143","name":"Msg completed","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":600,"y":220,"wires":[]},{"id":"bf4e9e59.f7a49","type":"inject","z":"c2a7925b.6e143","name":"Activate \"done\"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"activate_done","payloadType":"str","x":160,"y":140,"wires":[["bb6162cc.e1704"]]}]

@@ -0,0 +0,0 @@ Blockly.JavaScript['buffer_from_string'] = function(block) {

@@ -0,0 +0,0 @@ Blockly.Blocks['buffer_from_string'] = {

@@ -0,0 +0,0 @@ Blockly.JavaScript['datetime_input'] = function(block) {

@@ -0,0 +0,0 @@ // The field_date is in a separate npm module (https://www.npmjs.com/package/@blockly/field-date)

@@ -0,0 +0,0 @@ // =====================================================================================

@@ -0,0 +0,0 @@ // =====================================================================================

@@ -0,0 +0,0 @@ // Downloaded from https://gist.github.com/mark-friedman/48f43a9b62b1c8ad029a75d4b4e61f31

@@ -0,0 +0,0 @@ Blockly.Blocks['object_from_json'] = {

@@ -0,0 +0,0 @@ Blockly.JavaScript['node_object_get'] = function(block) {

@@ -0,0 +0,0 @@ Blockly.Blocks['node_object_get'] = {

@@ -0,0 +0,0 @@ function getUniqueNameForBlock(prefix, block) {

@@ -0,0 +0,0 @@ // =========================================================================================

@@ -0,0 +0,0 @@ // =========================================================================================

@@ -0,0 +0,0 @@ // =========================================================================================

@@ -36,2 +36,3 @@ // =========================================================================================

Blockly.Msg.NODE_PROPERTIES_NAME = "имя";
Blockly.Msg.NODE_PROPERTIES_OUTPUT_COUNT = "количество выходов";
Blockly.Msg.NODE_FLOW_MEMORY = "поток";

@@ -53,2 +54,6 @@ Blockly.Msg.NODE_FLOW_MEMORY_TOOLTIP = "Доступ к данным в памяти потока Node-RED.";

Blockly.Msg.NODE_CLOSE_TOOLTIP = "Операторы, которые должны выполняться при закрытии узла.";
Blockly.Msg.NODE_DONE = "сообщение завершено";
Blockly.Msg.NODE_DONE_TOOLTIP = "Обработка сообщения завершена.";
Blockly.Msg.NODE_ENV = "получить переменную окружения %1";
Blockly.Msg.NODE_ENV_TOOLTIP = "Доступ к значению переменной среды.";

@@ -72,2 +77,4 @@ // =========================================================================================

Blockly.Msg.BUFFER_COPY_TOOLTIP = "CКопировать из первого буфера во второй буфер.";
Blockly.Msg.BUFFER_CONCATENATE = "Объединить буфер %1 и %2";
Blockly.Msg.BUFFER_CONCATENATE_TOOLTIP = "Объедините два буфера, чтобы создать новый буфер";
Blockly.Msg.BUFFER_EMPTY = "пустой буфер";

@@ -117,6 +124,10 @@ Blockly.Msg.BUFFER_EMPTY_TOOLTIP = "Создать пустой буфер, то есть буфер размером 0.";

Blockly.Msg.SWITCH_DO = "делать";
Blockly.Msg.MISC_JAVASCRIPT = "оператор JavaScript %1;";
Blockly.Msg.MISC_JAVASCRIPT = "Оператор JavaScript %1;";
Blockly.Msg.MISC_JAVASCRIPT_TOOLTIP = "Введите код JavaScript, если нет блоков, предлагающих определенные функции.";
Blockly.Msg.MISC_COMMENT = "комментарий %1";
Blockly.Msg.MISC_JSEXPRESS = "Выражение JavaScript %1";
Blockly.Msg.MISC_JSEXPRESS_TOOLTIP = "Используйте с осторожностью. Введите код JavaScript, если нет блоков, предлагающих определенные функции.";
Blockly.Msg.MISC_COMMENT = "Комментарий %1";
Blockly.Msg.MISC_COMMENT_TOOLTIP = "Добавьте комментарии, чтобы объяснить, как работает логика.";
Blockly.Msg.MISC_JSMULTILINE = "Многострочный код JS %1";
Blockly.Msg.MISC_JSMULTILINE_TOOLTIP = "Введите многострочный код Javascript, если нет блоков, предлагающих определенные функции.";

@@ -148,2 +159,24 @@ // =========================================================================================

Blockly.Msg.DATETIME_FORMAT = "преобразовать отметку времени %1 в формат %2";
Blockly.Msg.DATETIME_FORMAT_TOOLTIP = "Преобразовать метку времени в указанный форматt.";
Blockly.Msg.DATETIME_FORMAT_TOOLTIP = "Преобразовать метку времени в указанный форматt.";
Blockly.Msg.DATETIME_UTC = "UTC";
//Blockly.Msg.DATETIME_LOCAL = "local";
// =========================================================================================
// Timer blocks
// =========================================================================================
//Blockly.Msg.TIMER_SET_TIMEOUT = "Execute timeout %1 in %2 %3";
Blockly.Msg.TIMER_SET_TIMEOUT_1 = "%1";
//Blockly.Msg.TIMER_SET_TIMEOUT_NAME = "timeout";
//Blockly.Msg.TIMER_SET_TIMEOUT_TOOLTIP = "Execute the included blocks after a specified time delay.";
//Blockly.Msg.TIMER_CLEAR_TIMEOUT = "Stop timeout %1";
//Blockly.Msg.TIMER_CLEAR_TIMEOUT_TOOLTIP = "Cancel the execution after the timeout";
//Blockly.Msg.TIMER_SET_INTERVAL = "Execute interval %1 every %2 %3";
Blockly.Msg.TIMER_SET_INTERVAL_1 = "%1";
Blockly.Msg.TIMER_SET_INTERVAL_NAME = "интервал";
//Blockly.Msg.TIMER_SET_INTERVAL_TOOLTIP = "Execute the included blocks periodically at the specified time interval.";
Blockly.Msg.TIMER_CLEAR_INTERVAL = "Остановить интервал %1";
Blockly.Msg.TIMER_CLEAR_INTERVAL_TOOLTIP = "Отменяйте выполнение блока через определенные промежутки времени.";
Blockly.Msg.TIMER_TIMER_MS = "мсек";
Blockly.Msg.TIMER_TIMER_SEC = "сек";
Blockly.Msg.TIMER_TIMER_MIN = "мин";
Blockly.Msg.TIMER_NONE_SELECTED = "нет";

2

package.json
{
"name" : "node-red-contrib-blockly",
"version" : "2.0.0",
"version" : "2.0.1",
"description" : "A Node Red node for visual programming a function using Blockly",

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

@@ -0,0 +0,0 @@ # node-red-contrib-blockly

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