Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-blockly

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-blockly - npm Package Compare versions

Comparing version 0.1.42 to 0.1.43

23

addon/components/ember-blockly.js

@@ -253,15 +253,16 @@ import Ember from 'ember';

onUpdate(event) {
let xml = Blockly.Xml.workspaceToDom(this.get('workspaceElement'));
let xml_text = Blockly.Xml.domToText(xml);
this.sendAction("onChangeWorkspace", xml_text);
Ember.run(() => {
let xml = Blockly.Xml.workspaceToDom(this.get('workspaceElement'));
let xml_text = Blockly.Xml.domToText(xml);
this.sendAction("onChangeWorkspace", xml_text);
if (this.get('showCode')) {
try {
let code = Blockly.JavaScript.workspaceToCode(this.get('workspaceElement'));
this.set('javascriptCode', js_beautify(code));
} catch (e) {
console.warn("No se puede generar el código. Esto seguramente se produce porque la solución tiene un bloque inexistente.", e);
if (this.get('showCode')) {
try {
let code = Blockly.JavaScript.workspaceToCode(this.get('workspaceElement'));
this.set('javascriptCode', js_beautify(code));
} catch (e) {
console.warn("No se puede generar el código. Esto seguramente se produce porque la solución tiene un bloque inexistente.", e);
}
}
}
});
},

@@ -268,0 +269,0 @@

{
"name": "ember-blockly",
"version": "0.1.42",
"version": "0.1.43",
"description": "The default blueprint for ember-cli addons.",

@@ -5,0 +5,0 @@ "directories": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc