theprogrammablemind 7.3.9-beta.8 → 7.3.9-beta.9

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 +10 -1
package/package.json CHANGED
@@ -61,6 +61,6 @@
61
61
  "json-stable-stringify": "^1.0.1",
62
62
  "node-fetch": "^2.6.1"
63
63
  },
64
- "version": "7.3.9-beta.8",
64
+ "version": "7.3.9-beta.9",
65
65
  "license": "ISC"
66
66
  }
package/src/config.js CHANGED
@@ -1169,7 +1169,7 @@ class Config {
1169
1169
  set uuid (uuid) {
1170
1170
  const map = { [this._uuid]: uuid }
1171
1171
  this._uuid = uuid
1172
- configCounter += 1
1172
+ this.configCounter += 1
1173
1173
  this.mapUUIDs(map)
1174
1174
  }
1175
1175
 
@@ -1938,6 +1938,15 @@ class Config {
1938
1938
  if (!this.config.hasOwnProperty(property)) {
1939
1939
  throw `Setting invalid property ${property}`
1940
1940
  }
1941
+
1942
+ if (['operators', 'bridges', 'words'].includes(property)) {
1943
+ for (let def of value) {
1944
+ if (!def['uuid']) {
1945
+ throw `All definitions for '${property}' must have the uuid property set (config.uuid). uuid is missing from ${JSON.stringify(def)}`
1946
+ }
1947
+ }
1948
+ }
1949
+
1941
1950
  this.config[property] = value
1942
1951
  // this.configs[0][property] = value
1943
1952
  }