theprogrammablemind_4wp 7.5.8-beta.53 → 7.5.8-beta.55
Sign up to get free protection for your applications and to get access to all the features.
- package/client.js +1 -1
- package/package.json +1 -1
- package/src/config.js +3 -1
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, {
|
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
package/src/config.js
CHANGED
@@ -919,7 +919,8 @@ class Config {
|
|
919
919
|
}
|
920
920
|
}
|
921
921
|
|
922
|
-
|
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 || []))
|