blockly-fluid 1.4.33 → 1.4.34

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.
Files changed (2) hide show
  1. package/index.js +6 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -278,6 +278,12 @@ module.exports = (Blockly, { generator: languageGeneratorFallback, generators: l
278
278
  };
279
279
  };
280
280
 
281
+ if (!languageGenerator.hasVariable) {
282
+ languageGenerator.hasVariable = (variable) => (
283
+ languageGenerator.nameDB_.db.get("VARIABLE").has(variable)
284
+ );
285
+ };
286
+
281
287
  if (!languageGenerator.hatStackToCode) {
282
288
  languageGenerator.hatStackToCode = (hatBlock) => {
283
289
  if (!hatBlock) return "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blockly-fluid",
3
- "version": "1.4.33",
3
+ "version": "1.4.34",
4
4
  "description": "A flexible proxy wrapper for Blockly blocks.",
5
5
  "main": "index.js",
6
6
  "scripts": {