theprogrammablemind_4wp 7.5.8-beta.93 → 7.5.8-beta.94
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 +32 -12
package/client.js
CHANGED
@@ -838,7 +838,7 @@ const runTest = async (config, expected, { args, verbose, testConfig, debug }) =
|
|
838
838
|
}
|
839
839
|
return expected.objects.namespaced[expected.objects.nameToUUID[name]] || {}
|
840
840
|
}
|
841
|
-
const expected_checked = sortJson(pickObjects(testConfig, expectedGetObjects()), { depth: 25 })
|
841
|
+
const expected_checked = sortJson(pickObjects(testConfig, expectedGetObjects(testConfigName)), { depth: 25 })
|
842
842
|
const actualGetObjects = (name) => {
|
843
843
|
if (!name) {
|
844
844
|
name = config.name
|
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -986,16 +986,34 @@ class Config {
|
|
986
986
|
} else {
|
987
987
|
const config = { ...queryOrConfig }
|
988
988
|
delete config.where
|
989
|
+
config.operators = (config.operators || []).map( (operator) => {
|
990
|
+
if (typeof operator == 'string') {
|
991
|
+
return { pattern: operator }
|
992
|
+
} else {
|
993
|
+
operator = { ...operator }
|
994
|
+
delete operator.uuid
|
995
|
+
return operator
|
996
|
+
}
|
997
|
+
})
|
998
|
+
config.bridges = (config.bridges || []).map( (bridge) => {
|
999
|
+
bridge = { ...bridge },
|
1000
|
+
bridge.level = bridge.level || 0
|
1001
|
+
delete bridge.uuid
|
1002
|
+
return bridge
|
1003
|
+
})
|
989
1004
|
if (options.isModule) {
|
990
1005
|
// things like webpack rewrite the functions if there are constants so this compare does not work
|
991
1006
|
delete config.generators;
|
992
1007
|
delete config.semantics;
|
993
|
-
(config.bridges || []).
|
1008
|
+
config.bridges = (config.bridges || []).map((bridge) => {
|
1009
|
+
bridge = {...bridge}
|
1010
|
+
delete bridge.where
|
994
1011
|
delete bridge.generatorp
|
995
1012
|
delete bridge.generatorr
|
996
1013
|
delete bridge.generatorpr
|
997
1014
|
delete bridge.evaluator
|
998
1015
|
delete bridge.semantic
|
1016
|
+
return bridge
|
999
1017
|
});
|
1000
1018
|
} else {
|
1001
1019
|
config.generators = (config.generators || []).map((generator) => {
|
@@ -1044,17 +1062,19 @@ class Config {
|
|
1044
1062
|
|
1045
1063
|
const debug = false
|
1046
1064
|
if (debug) {
|
1047
|
-
if (!sameQueries) {
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1065
|
+
if (!(instance && sameQueries && sameFragments)) {
|
1066
|
+
if (!sameQueries) {
|
1067
|
+
debugger
|
1068
|
+
debugger
|
1069
|
+
}
|
1070
|
+
console.log("instance", instance)
|
1071
|
+
console.log("sameQueries", sameQueries)
|
1072
|
+
console.log("sameFragments", sameFragments)
|
1073
|
+
console.log("templateFragments", templateFragments)
|
1074
|
+
console.log("instanceFragments", instanceFragments)
|
1075
|
+
console.log('template.queries', JSON.stringify(toCanonicalQueries(template.queries || []).map(helpers.updateQueries), null, 2))
|
1076
|
+
console.log("instance.queries", JSON.stringify(toCanonicalQueries(instance.queries || []), null, 2))
|
1077
|
+
}
|
1058
1078
|
}
|
1059
1079
|
return !(instance && sameQueries && sameFragments)
|
1060
1080
|
}
|