blockly-fluid 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -145,9 +145,12 @@ module.exports = (Blockly, { generator: languageGeneratorFallback, generators: l
|
|
|
145
145
|
languageGenerator.forBlock[name] = (block) => (((code) => {
|
|
146
146
|
if (!output) return code;
|
|
147
147
|
|
|
148
|
-
return [
|
|
148
|
+
return (Array.isArray(code)) ? [
|
|
149
|
+
code[0],
|
|
150
|
+
languageGenerator[`ORDER_${(code[1] || "NONE").toUpperCase()}`]
|
|
151
|
+
] : [
|
|
149
152
|
code,
|
|
150
|
-
|
|
153
|
+
languageGenerator.ORDER_NONE
|
|
151
154
|
];
|
|
152
155
|
})(blockGenerator({
|
|
153
156
|
...block.inputList.reduce((accumulator, input) => ({
|