theprogrammablemind 9.6.1-beta.1 → 9.6.1-beta.3

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 CHANGED
@@ -657,11 +657,11 @@ const saveTestsHelper = async (testFile, config, tests, todo, testConfig, saveDe
657
657
  return
658
658
  }
659
659
  const test = todo.pop()
660
- await config.rebuild()
660
+ // await config.rebuild()
661
661
  const result = await saveTest(testFile, config, test, tests[test], testConfig, saveDeveloper)
662
662
  // initialize in between test so state is not preserved since the test was adding without state
663
663
  // config.initialize({force: true})
664
- await config.rebuild()
664
+ // await config.rebuild()
665
665
  return saveTestsHelper(testFile, config, tests, todo, testConfig, saveDeveloper)
666
666
  }
667
667
 
package/package.json CHANGED
@@ -73,6 +73,6 @@
73
73
  "scriptjs": "^2.5.9",
74
74
  "uuid": "^8.3.2"
75
75
  },
76
- "version": "9.6.1-beta.1",
76
+ "version": "9.6.1-beta.3",
77
77
  "license": "UNLICENSED"
78
78
  }
@@ -99,10 +99,18 @@ class ContextHierarchy {
99
99
  this.contexts.pop()
100
100
  }
101
101
 
102
- under(marker) {
103
- for (let i = this.contexts.length - 1; i >= 0; --i) {
104
- if (this.contexts[i].marker == marker) {
105
- return true
102
+ under(markers) {
103
+ if (!markers || markers.length == 0) {
104
+ return this.contexts.length == 0
105
+ }
106
+ if (!Array.isArray(markers)) {
107
+ markers = [markers]
108
+ }
109
+ for (const marker of markers) {
110
+ for (let i = this.contexts.length - 1; i >= 0; --i) {
111
+ if (this.contexts[i].marker == marker) {
112
+ return true
113
+ }
106
114
  }
107
115
  }
108
116
  }
@@ -578,5 +586,6 @@ module.exports = {
578
586
  gs,
579
587
  processContextsB,
580
588
  loadInstance,
581
- isA
589
+ isA,
590
+ ContextHierarchy,
582
591
  }