theprogrammablemind_4wp 8.0.0-beta.51 → 8.0.0-beta.53
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 +13 -2
- package/src/project.js +1 -1
package/client.js
CHANGED
@@ -936,7 +936,7 @@ const rebuildTemplate = async ({ config, target, previousResultss, startOfChange
|
|
936
936
|
} else if (results.paraphrases[0] != query.query) {
|
937
937
|
console.log(`query "${query.query}". The paraphrase is different from the query "${results.paraphrases[0]}".${prMessage}`)
|
938
938
|
} else {
|
939
|
-
console.log(`query "${query.query}".${prMessage}`)
|
939
|
+
console.log(`query ${isFragment ? 'fragment' : ''}"${query.query}".${prMessage}`)
|
940
940
|
}
|
941
941
|
global.transitoryMode = transitoryMode
|
942
942
|
config.config.skipSemantics = null
|
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -1201,8 +1201,19 @@ class Config {
|
|
1201
1201
|
let startOfChanges
|
1202
1202
|
for (let iq = 0; iq < templateQueries.length; ++iq) {
|
1203
1203
|
if (!helpers.safeEquals(templateQueries[iq], instanceQueries[iq])) {
|
1204
|
-
|
1205
|
-
|
1204
|
+
// if the current and rest are not queries or fragments then treat as not needing rebuild
|
1205
|
+
let hasQueryOrFragment = false
|
1206
|
+
for (let rest = iq; rest < templateQueries.length; ++rest) {
|
1207
|
+
const value = templateQueries[rest]
|
1208
|
+
if (typeof value == 'string' || (value.query && value.isFragment)) {
|
1209
|
+
hasQueryOrFragment = true
|
1210
|
+
break
|
1211
|
+
}
|
1212
|
+
}
|
1213
|
+
if (hasQueryOrFragment) {
|
1214
|
+
sameQueries = false
|
1215
|
+
startOfChanges = iq
|
1216
|
+
}
|
1206
1217
|
break;
|
1207
1218
|
}
|
1208
1219
|
}
|
package/src/project.js
CHANGED
@@ -49,7 +49,7 @@ const project = (object, filter) => {
|
|
49
49
|
const property = properties.property
|
50
50
|
if (properties.isPropertyList) {
|
51
51
|
if (!Array.isArray(object[property])) {
|
52
|
-
|
52
|
+
continue
|
53
53
|
}
|
54
54
|
for (const propertyRef of object[property]) {
|
55
55
|
const old = object[propertyRef]
|