theprogrammablemind_4wp 7.5.8-beta.55 → 7.5.8-beta.57
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/config.js +1 -7
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -940,12 +940,12 @@ class Config {
|
|
940
940
|
return query
|
941
941
|
} else {
|
942
942
|
const config = { ...queryOrConfig }
|
943
|
+
delete config.where
|
943
944
|
if (options.isModule) {
|
944
945
|
// things like webpack rewrite the functions if there are constants so this compare does not work
|
945
946
|
delete config.generators
|
946
947
|
delete config.semantics
|
947
948
|
} else {
|
948
|
-
delete config.where
|
949
949
|
config.generators = (config.generators || []).map((generator) => {
|
950
950
|
generator = {...generator}
|
951
951
|
delete generator.where
|
@@ -969,12 +969,6 @@ class Config {
|
|
969
969
|
}
|
970
970
|
|
971
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
|
-
}
|
978
972
|
return !(instance && sameQueries && sameFragments)
|
979
973
|
}
|
980
974
|
|