theprogrammablemind 7.5.4-beta.7 → 7.5.4-beta.8
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 +5 -2
- package/package.json +1 -1
- package/src/config.js +1 -1
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(
|
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
package/src/config.js
CHANGED
@@ -677,7 +677,7 @@ class Config {
|
|
677
677
|
}
|
678
678
|
|
679
679
|
load (template, instance, options = { rebuild: false } ) {
|
680
|
-
|
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)
|