theprogrammablemind 9.6.0-beta.20 → 9.6.0-beta.22

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 CHANGED
@@ -73,6 +73,6 @@
73
73
  "scriptjs": "^2.5.9",
74
74
  "uuid": "^8.3.2"
75
75
  },
76
- "version": "9.6.0-beta.20",
76
+ "version": "9.6.0-beta.22",
77
77
  "license": "UNLICENSED"
78
78
  }
package/src/config.js CHANGED
@@ -338,6 +338,7 @@ const handleBridgeProps = (config, bridge, { addFirst, uuid } = {}) => {
338
338
 
339
339
  // done in setTestConfig
340
340
  if (bridge.check) {
341
+ /*
341
342
  if (!config.testConfig) {
342
343
  config.testConfig = {}
343
344
  }
@@ -347,6 +348,7 @@ const handleBridgeProps = (config, bridge, { addFirst, uuid } = {}) => {
347
348
  if (!config.testConfig?.checks?.context) {
348
349
  config.testConfig.checks.context = []
349
350
  }
351
+ */
350
352
  config.contextChecksFromBridges.push({
351
353
  'bridge.id': bridge.id,
352
354
  'bridge.check': bridge.check,
@@ -1101,19 +1103,6 @@ class Config {
1101
1103
  this.testConfig.checks.context = []
1102
1104
  }
1103
1105
  this.testConfig.checks.context = this.contextChecksFromBridges.concat(this.testConfig.checks.context)
1104
- /*
1105
- const currentTestConfig = testConfig // add bridge has added check.context's
1106
-
1107
- if (!this.testConfig.checks) {
1108
- debugger
1109
- // this.testConfig.checks =
1110
- }
1111
-
1112
- // set during bridge setup
1113
- if (currentTestConfig.checks?.context) {
1114
- this.testConfig.checks.context = currentTestConfig.checks.context.concat(this.testConfig.checks.context)
1115
- }
1116
- */
1117
1106
  }
1118
1107
 
1119
1108
  getTestConfig () {
@@ -2874,7 +2863,11 @@ class Config {
2874
2863
  let defaults = () => []
2875
2864
  if (this.loadOrdering) {
2876
2865
  for (const name of this.loadOrdering) {
2877
- const checks = this.kms[name].testConfig?.checks?.context || []
2866
+ const config = this.kms[name]
2867
+ let checks = config.testConfig?.checks?.context || []
2868
+ if (config.contextChecksFromBridges) {
2869
+ checks = config.contextChecksFromBridges.concat(checks)
2870
+ }
2878
2871
  const oldDefaults = defaults
2879
2872
  for (const check of checks) {
2880
2873
  if (!check.match) {
package/src/debug.js CHANGED
@@ -51,6 +51,7 @@ const counter = (name, { breakAt = [], debugBreak = true, tag = '' } = {}) => {
51
51
  hit(name)
52
52
  return true
53
53
  }
54
+ return counters[name]
54
55
  }
55
56
 
56
57
  const get = (name) => {