theprogrammablemind_4wp 7.5.8-beta.56 → 7.5.8-beta.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +1 -7
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.56",
66
+ "version": "7.5.8-beta.57",
67
67
  "license": "ISC"
68
68
  }
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