theprogrammablemind 7.5.8-beta.53 → 7.5.8-beta.55

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
@@ -1491,7 +1491,7 @@ const knowledgeModule = async ({
1491
1491
 
1492
1492
  if (!isProcess) {
1493
1493
  if (template) {
1494
- if (config.needsRebuild(template.template, template.instance, { isTemplate: !isProcess })) {
1494
+ if (config.needsRebuild(template.template, template.instance, { isModule: !isProcess })) {
1495
1495
  const error = `This module "${config.name}" cannot be used because the instance file needs rebuilding. Run on the command line with no arguments or the -rt argument to rebuild.`
1496
1496
  throw new Error(error)
1497
1497
  }
package/package.json CHANGED
@@ -63,6 +63,6 @@
63
63
  "json-stable-stringify": "^1.0.1",
64
64
  "node-fetch": "^2.6.1"
65
65
  },
66
- "version": "7.5.8-beta.53",
66
+ "version": "7.5.8-beta.55",
67
67
  "license": "ISC"
68
68
  }
package/src/config.js CHANGED
@@ -919,7 +919,8 @@ class Config {
919
919
  }
920
920
  }
921
921
 
922
- needsRebuild(template, instance, options = { rebuild: false, isModule: false }) {
922
+ // { rebuild: false, isModule: false }
923
+ needsRebuild(template, instance, options) {
923
924
  if (options.rebuild) {
924
925
  return true
925
926
  }
@@ -969,6 +970,7 @@ class Config {
969
970
 
970
971
  const sameQueries = helpers.safeEquals(toCanonicalQueries(template.queries || []).map(helpers.updateQueries), toCanonicalQueries(instance.queries || []))
971
972
  if (!(instance && sameQueries && sameFragments)) {
973
+ console.log('options.isModule', options.isModule)
972
974
  console.log('sameQueries', sameQueries)
973
975
  console.log('template.queries', toCanonicalQueries(template.queries || []).map(helpers.updateQueries))
974
976
  console.log('instance.queries', toCanonicalQueries(instance.queries || []))