theprogrammablemind 7.5.8-beta.42 → 7.5.8-beta.43
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/package.json +1 -1
- package/src/config.js +7 -6
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -933,13 +933,14 @@ class Config {
|
|
933
933
|
const instanceFragments = (instance.fragments || []).map((fragment) => fragment.key || fragment.query).map( toCanonical )
|
934
934
|
const templateFragments = (template.fragments || []).concat(this.dynamicFragments).map( toCanonical )
|
935
935
|
const sameFragments = helpers.safeEquals(templateFragments, instanceFragments)
|
936
|
-
const
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
936
|
+
const cleanupWhere = (query) => {
|
937
|
+
if (typeof query == 'string') {
|
938
|
+
return query
|
939
|
+
} else {
|
940
|
+
return { ...query, where: undefined }
|
941
|
+
}
|
942
942
|
}
|
943
|
+
const sameQueries = helpers.safeEquals((cleanupWhere(template.queries) || []).map(helpers.updateQueries), (cleanupWhere(instance.queries) || []))
|
943
944
|
return !(instance && sameQueries && sameFragments)
|
944
945
|
}
|
945
946
|
|