blockly-fluid 1.3.2 → 1.3.4
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/README.md +4 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
If you've ever used Blockly before, you'd know what kind of pain it is to use. Especially crafting your own blocks. You're not alone. Blockly Fluid is the DX-focused adapter of defining blocks with their own generators.
|
|
4
4
|
|
|
5
|
+
## See it in action!
|
|
6
|
+
|
|
7
|
+
https://yolkweb.org
|
|
8
|
+
|
|
5
9
|
## Installation
|
|
6
10
|
|
|
7
11
|
### Node.js/Deno/Bun
|
package/index.js
CHANGED
|
@@ -89,7 +89,7 @@ module.exports = (Blockly, { generator: languageGeneratorFallback, generators: l
|
|
|
89
89
|
if (input.variable) {
|
|
90
90
|
if (typeof input.variable === "function") (input.variable = input.variable());
|
|
91
91
|
|
|
92
|
-
const shadowVariableName = `shadow_variable_${name.length}_${name}
|
|
92
|
+
const shadowVariableName = `shadow_variable_${name.length}_${name}`;
|
|
93
93
|
|
|
94
94
|
if (!Blocks[shadowVariableName]) {
|
|
95
95
|
Blocks[shadowVariableName] = {
|