blockly-fluid 1.2.13 → 1.2.15

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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -75,7 +75,7 @@ module.exports = (Blockly, { generator: languageGeneratorFallback, generators: l
75
75
  output: true,
76
76
 
77
77
  generator: ({ DROPDOWN }) => [
78
- `"${DROPDOWN}"`,
78
+ `"${DROPDOWN.replaceAll(`"`, `\\"`).replaceAll("\\", "\\\\")}"`,
79
79
  "atomic"
80
80
  ]
81
81
  };
@@ -297,8 +297,8 @@ module.exports = (Blockly, { generator: languageGeneratorFallback, generators: l
297
297
  },
298
298
  output: true,
299
299
 
300
- generator: ({ TEXT }) => [
301
- `"${TEXT}"`,
300
+ generator: ({ TEXT }) => [
301
+ `"${TEXT.replaceAll(`"`, `\\"`).replaceAll("\\", "\\\\")}"`,
302
302
  "atomic"
303
303
  ]
304
304
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blockly-fluid",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "description": "A flexible proxy wrapper for Blockly blocks.",
5
5
  "main": "index.js",
6
6
  "scripts": {