theprogrammablemind 7.5.8-beta.27 → 7.5.8-beta.28

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/package.json +1 -1
  2. package/src/config.js +2 -1
package/package.json CHANGED
@@ -63,6 +63,6 @@
63
63
  "json-stable-stringify": "^1.0.1",
64
64
  "node-fetch": "^2.6.1"
65
65
  },
66
- "version": "7.5.8-beta.27",
66
+ "version": "7.5.8-beta.28",
67
67
  "license": "ISC"
68
68
  }
package/src/config.js CHANGED
@@ -666,6 +666,7 @@ class Config {
666
666
  addOperator: (...args) => this.addOperator(...args, uuid),
667
667
  addPriorities: (...args) => this.addPriorities(...args),
668
668
  addSemantic: (...args) => this.addSemantic(...args, uuid, config.name),
669
+ removeSemantic: (...args) => this.removeSemantic(...args, uuid, config.name),
669
670
  addWord: (...args) => this.addWord(...args, uuid),
670
671
 
671
672
  getHierarchy: (...args) => this.config.hierarchy,
@@ -1167,7 +1168,7 @@ class Config {
1167
1168
  }
1168
1169
 
1169
1170
  const semantics = this.config.semantics
1170
- Object.assign(semantic, { uuid: uuid || this._uuid, km: name || this.name, index: semantics.length, id: uuidv4() })
1171
+ Object.assign(semantic, { uuid: uuid || semantic.uuid || this._uuid, km: name || this.name, index: semantics.length, id: semantic.id || uuidv4() })
1171
1172
  semantics.unshift(semantic)
1172
1173
  }
1173
1174