dal-engine-core-js-lib-dev 0.0.7 → 0.0.8

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/dist/index.cjs CHANGED
@@ -798,6 +798,7 @@ class Graphs {
798
798
  * @param {String} jsonText JSON text representing the collection of graphs.
799
799
  */
800
800
  loadFromJson (jsonText) {
801
+ this._graphs = {};
801
802
  const parsed = JSON.parse(jsonText);
802
803
  Object.keys(parsed._graphs).forEach(graphId => {
803
804
  this._graphs[graphId] = new BehavioralControlGraph(parsed._graphs[graphId]);
package/dist/index.esm.js CHANGED
@@ -796,6 +796,7 @@ class Graphs {
796
796
  * @param {String} jsonText JSON text representing the collection of graphs.
797
797
  */
798
798
  loadFromJson (jsonText) {
799
+ this._graphs = {};
799
800
  const parsed = JSON.parse(jsonText);
800
801
  Object.keys(parsed._graphs).forEach(graphId => {
801
802
  this._graphs[graphId] = new BehavioralControlGraph(parsed._graphs[graphId]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dal-engine-core-js-lib-dev",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",
@@ -24,6 +24,7 @@ class Graphs {
24
24
  * @param {String} jsonText JSON text representing the collection of graphs.
25
25
  */
26
26
  loadFromJson (jsonText) {
27
+ this._graphs = {};
27
28
  const parsed = JSON.parse(jsonText);
28
29
  Object.keys(parsed._graphs).forEach(graphId => {
29
30
  this._graphs[graphId] = new BehavioralControlGraph(parsed._graphs[graphId]);