theprogrammablemind_4wp 7.5.4-beta.7 → 7.5.4-beta.9

Sign up to get free protection for your applications and to get access to all the features.
package/client.js CHANGED
@@ -515,10 +515,13 @@ const processInstance = (config, instance) => {
515
515
  const transitoryMode = global.transitoryMode
516
516
  global.transitoryMode = false
517
517
  const { /* data, generators, semantics, */ hierarchy } = setupProcessB({ config })
518
- for (const results of (instance.resultss || [])) {
518
+ // for (const results of (instance.resultss || [])) {
519
+ for (const i in (instance.resultss || [])) {
520
+ const results = instance.resultss[i]
519
521
  if (results.extraConfig) {
520
522
  // config.addInternal(results, useOldVersion = true, skipObjects = false, includeNamespaces = true, allowNameToBeNull = false)
521
- config.addInternal(results, { handleCalculatedProps: true } )
523
+ // config.addInternal(config.template.queries[i], { handleCalculatedProps: true } )
524
+ config.addInternal(instance.template.queries[i], { handleCalculatedProps: true } )
522
525
  } else {
523
526
  processContextsB({ config, hierarchy, json: results/*, generators, semantics */ })
524
527
  }
package/package.json CHANGED
@@ -62,6 +62,6 @@
62
62
  "json-stable-stringify": "^1.0.1",
63
63
  "node-fetch": "^2.6.1"
64
64
  },
65
- "version": "7.5.4-beta.7",
65
+ "version": "7.5.4-beta.9",
66
66
  "license": "ISC"
67
67
  }
package/src/config.js CHANGED
@@ -114,7 +114,7 @@ const handleBridgeProps = (config, bridge) => {
114
114
  const handleCalculatedProps = (baseConfig, moreConfig) => {
115
115
  for (let bridge of moreConfig.bridges) {
116
116
  const valid = [ 'before', 'bridge', 'development', 'evaluator', 'generatorp', 'generatorr', 'generators', 'id', 'convolution', 'inverted', 'isA', 'children', 'parents',
117
- 'level', 'optional', 'selector', 'semantic', 'words', /Bridge$/, 'localHierarchy', 'where' ]
117
+ 'level', 'optional', 'selector', 'semantic', 'words', /Bridge$/, 'localHierarchy', 'levelSpecificHierarchy', 'where' ]
118
118
  helpers.validProps(valid, bridge, 'bridge')
119
119
  handleBridgeProps(baseConfig, bridge)
120
120
  }
@@ -677,7 +677,7 @@ class Config {
677
677
  }
678
678
 
679
679
  load (template, instance, options = { rebuild: false } ) {
680
- this.template = template
680
+ instance.template = template
681
681
  this.logs.push(`loading template for ${this.name}`)
682
682
  if (instance && instance.associations && !options.rebuild) {
683
683
  this.addAssociations(instance.associations)