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.
- package/package.json +1 -1
- package/src/config.js +10 -1
package/package.json
CHANGED
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
|
}
|