theprogrammablemind_4wp 7.5.8-beta.86 → 7.5.8-beta.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/client.js +1 -1
  2. package/package.json +1 -1
  3. package/src/config.js +13 -13
package/client.js CHANGED
@@ -434,7 +434,7 @@ const processContextsB = ({ config, hierarchy, semantics, generators, json, isTe
434
434
  if (isInstance) {
435
435
  console.log('error', e.error)
436
436
  }
437
- contextPrime = semantics.apply(args, { marker: 'error', context, reason: e.reason, error: e.stack })
437
+ contextPrime = semantics.apply(args, { marker: 'error', context, text: e ? e.toString() : 'not available', reason: e.reason, error: e.stack })
438
438
  }
439
439
  }
440
440
  if (contextPrime.controlRemove) {
package/package.json CHANGED
@@ -64,6 +64,6 @@
64
64
  "json-stable-stringify": "^1.0.1",
65
65
  "node-fetch": "^2.6.1"
66
66
  },
67
- "version": "7.5.8-beta.86",
67
+ "version": "7.5.8-beta.88",
68
68
  "license": "ISC"
69
69
  }
package/src/config.js CHANGED
@@ -988,35 +988,35 @@ class Config {
988
988
  delete config.where
989
989
  if (options.isModule) {
990
990
  // things like webpack rewrite the functions if there are constants so this compare does not work
991
- delete config.generators
992
- delete config.semantics
991
+ delete config.generators;
992
+ delete config.semantics;
993
993
  (config.bridges || []).forEach((bridge) => {
994
994
  delete bridge.generatorp
995
995
  delete bridge.generatorr
996
996
  delete bridge.generatorpr
997
997
  delete bridge.evaluator
998
998
  delete bridge.semantic
999
- })
999
+ });
1000
1000
  } else {
1001
1001
  config.generators = (config.generators || []).map((generator) => {
1002
1002
  generator = {...generator}
1003
1003
  delete generator.where
1004
- generator.match = generator.match.toString().replace(/(\r\n|\n|\r| )/gm, "");
1005
- generator.apply = generator.apply.toString().replace(/(\r\n|\n|\r| )/gm, "");
1004
+ generator.match = generator.match.toString()
1005
+ generator.apply = generator.apply.toString()
1006
1006
  return generator
1007
1007
  })
1008
1008
  config.semantics = (config.semantics || []).map((semantic) => {
1009
1009
  semantic = {...semantic}
1010
1010
  delete semantic.where
1011
- semantic.match = semantic.match.toString().replace(/(\r\n|\n|\r| )/gm, "");
1012
- semantic.apply = semantic.apply.toString().replace(/(\r\n|\n|\r| )/gm, "");
1011
+ semantic.match = semantic.match.toString()
1012
+ semantic.apply = semantic.apply.toString()
1013
1013
  return semantic
1014
1014
  })
1015
1015
  config.bridges = (config.bridges || []).map((bridge) => {
1016
1016
  bridge = {...bridge}
1017
1017
  delete bridge.where
1018
1018
  if (bridge.generatorp) {
1019
- bridge.generatorp = bridge.generatorp.toString().replace(/(\r\n|\n|\r| )/gm, "");
1019
+ bridge.generatorp = bridge.generatorp.toString()
1020
1020
  }
1021
1021
  if (bridge.generatorr) {
1022
1022
  bridge.generatorr = bridge.generatorr.toString()
@@ -1041,13 +1041,13 @@ class Config {
1041
1041
  }
1042
1042
 
1043
1043
  const sameQueries = helpers.safeEquals(toCanonicalQueries(template.queries || []).map(helpers.updateQueries), toCanonicalQueries(instance.queries || []))
1044
- if (!sameQueries) {
1045
- debugger
1046
- debugger
1047
- }
1048
1044
 
1049
- const debug = true
1045
+ const debug = false
1050
1046
  if (debug) {
1047
+ if (!sameQueries) {
1048
+ debugger
1049
+ debugger
1050
+ }
1051
1051
  console.log("instance", instance)
1052
1052
  console.log("sameQueries", sameQueries)
1053
1053
  console.log("sameFragments", sameFragments)