theprogrammablemind_4wp 9.3.0-beta.35 → 9.3.0-beta.37
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/client.js +2 -2
- package/package.json +1 -1
- package/src/config.js +9 -2
package/client.js
CHANGED
@@ -1942,8 +1942,8 @@ const knowledgeModuleImpl = async ({
|
|
1942
1942
|
|
1943
1943
|
// no cache 21 minutes + rebuild fails "node tester_rebuild -m colors"
|
1944
1944
|
// cache okay
|
1945
|
-
const createConfigExport = async () => {
|
1946
|
-
if (createConfig.cached) {
|
1945
|
+
const createConfigExport = async (useCache = true) => {
|
1946
|
+
if (useCache && createConfig.cached) {
|
1947
1947
|
return createConfig.cached
|
1948
1948
|
}
|
1949
1949
|
const config = await createConfig()
|
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -1540,8 +1540,14 @@ class Config {
|
|
1540
1540
|
}
|
1541
1541
|
|
1542
1542
|
removeSemantic (deleteSemantic) {
|
1543
|
-
|
1544
|
-
|
1543
|
+
if (!Array.isArray(deleteSemantic)) {
|
1544
|
+
deleteSemantic = [deleteSemantic]
|
1545
|
+
}
|
1546
|
+
const todo = []
|
1547
|
+
for (const ds of deleteSemantic) {
|
1548
|
+
const id = ds.id || ds
|
1549
|
+
todo.push(id)
|
1550
|
+
}
|
1545
1551
|
const seen = new Set()
|
1546
1552
|
|
1547
1553
|
while (todo.length > 0) {
|
@@ -1554,6 +1560,7 @@ class Config {
|
|
1554
1560
|
if (index === -1) {
|
1555
1561
|
continue
|
1556
1562
|
}
|
1563
|
+
// TODO change to tiedIs(s)
|
1557
1564
|
for (const tied_id of this.config.semantics[index].tied_ids || []) {
|
1558
1565
|
if (!seen.has(tied_id)) {
|
1559
1566
|
todo.push(tied_id)
|