@dualbox/editor 1.0.12 → 1.0.13

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.
@@ -358,13 +358,17 @@ class DualboxEditor {
358
358
  }
359
359
 
360
360
  loadCorePackages() {
361
- this.loadPackage('@dualbox/dualbox');
362
- this.loadPackage('dualbox-core-if');
363
- this.loadPackage('dualbox-core-value');
364
- this.loadPackage('dualbox-core-from-json');
365
- this.loadPackage('dualbox-core-to-json');
366
- this.loadPackage('dualbox-core-script');
367
- this.loadPackage('dualbox-core-switch');
361
+ var onError = function(err) {
362
+ console.error(err);
363
+ }
364
+
365
+ this.loadPackage('@dualbox/dualbox').catch(onError);
366
+ this.loadPackage('dualbox-core-if').catch(onError);
367
+ this.loadPackage('dualbox-core-value').catch(onError);
368
+ this.loadPackage('dualbox-core-from-json').catch(onError);
369
+ this.loadPackage('dualbox-core-to-json').catch(onError);
370
+ this.loadPackage('dualbox-core-script').catch(onError);
371
+ this.loadPackage('dualbox-core-switch').catch(onError);
368
372
  }
369
373
 
370
374
  setApp(json) {
@@ -578,6 +578,8 @@ class GraphController {
578
578
  $("<option/>", { "value" : uiName }).append(uiName)
579
579
  );
580
580
  });
581
+ }).catch((err) => {
582
+ console.error(err);
581
583
  });
582
584
  }
583
585
 
@@ -146,6 +146,8 @@ var TemplateBinds = function(view, div) {
146
146
  });
147
147
 
148
148
  view.c.addNewMetabox(name, json);
149
+ }).catch((err) => {
150
+ console.error(err);
149
151
  });
150
152
  }
151
153
  reader.readAsText(file)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dualbox/editor",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Editor of Dualbox apps",
5
5
  "browser": "js/dist/GraphEditor.js",
6
6
  "main": "js/dist/GraphEditor.js",