blockly-fluid 1.0.9 → 1.0.10
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 +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -31,6 +31,7 @@ module.exports = (Blockly, { generator: languageGeneratorFallback, generators: l
|
|
|
31
31
|
const statement = (typeof statements[token] === "function") ? statements[token]() : statements[token];
|
|
32
32
|
|
|
33
33
|
if (input) {
|
|
34
|
+
if (input.check === "Color") (input.check = "Colour");
|
|
34
35
|
if ((typeof input.check === "function") && ![String, Number, Boolean, Array, Object].includes(input.check)) (input.check = input.check());
|
|
35
36
|
|
|
36
37
|
const valueInput = this.appendValueInput(token)
|
|
@@ -95,6 +96,7 @@ module.exports = (Blockly, { generator: languageGeneratorFallback, generators: l
|
|
|
95
96
|
if ((typeof previous === "function") ? previous() : previous) this.setPreviousStatement(true, null);
|
|
96
97
|
if ((typeof next === "function") ? next() : next) this.setNextStatement(true, null);
|
|
97
98
|
} else {
|
|
99
|
+
if (output === "Color") (output = "Colour");
|
|
98
100
|
if ((typeof output === "function") && ![String, Number, Boolean, Array, Object].includes(output)) (output = output());
|
|
99
101
|
|
|
100
102
|
this.setPreviousStatement(false);
|