theprogrammablemind 7.5.8-beta.52 → 7.5.8-beta.54

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +8 -1
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.52",
66
+ "version": "7.5.8-beta.54",
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
  }
@@ -968,6 +969,12 @@ class Config {
968
969
  }
969
970
 
970
971
  const sameQueries = helpers.safeEquals(toCanonicalQueries(template.queries || []).map(helpers.updateQueries), toCanonicalQueries(instance.queries || []))
972
+ if (!(instance && sameQueries && sameFragments)) {
973
+ console.log('options.isModule', options.isModule)
974
+ console.log('sameQueries', sameQueries)
975
+ console.log('template.queries', toCanonicalQueries(template.queries || []).map(helpers.updateQueries))
976
+ console.log('instance.queries', toCanonicalQueries(instance.queries || []))
977
+ }
971
978
  return !(instance && sameQueries && sameFragments)
972
979
  }
973
980