theprogrammablemind 7.10.0-beta.1 → 7.10.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client.js CHANGED
@@ -667,7 +667,11 @@ const loadInstance = (config, instance) => {
667
667
  global.transitoryMode = transitoryMode
668
668
  }
669
669
 
670
- const _process = async (config, query, { initializer, commandLineArgs, credentials, writeTests, isTest, saveDeveloper, rebuildingTemplate, testConfig, testsFN, errorHandler = defaultErrorHandler } = {}) => {
670
+ const throwErrorHandler = (error) => {
671
+ throw error
672
+ }
673
+
674
+ const _process = async (config, query, { initializer, commandLineArgs, credentials, writeTests, isTest, saveDeveloper, rebuildingTemplate, testConfig, testsFN, errorHandler = throwErrorHandler } = {}) => {
671
675
  if (credentials) {
672
676
  config.server(credentials.server, credentials.key)
673
677
  }
package/package.json CHANGED
@@ -65,6 +65,6 @@
65
65
  "json-stable-stringify": "^1.0.1",
66
66
  "node-fetch": "^2.6.1"
67
67
  },
68
- "version": "7.10.0-beta.1",
68
+ "version": "7.10.0-beta.3",
69
69
  "license": "ISC"
70
70
  }
package/src/config.js CHANGED
@@ -1103,7 +1103,8 @@ class Config {
1103
1103
  }
1104
1104
  }
1105
1105
 
1106
- if (startOfChanges) {
1106
+ const debug = true
1107
+ if (debug && startOfChanges) {
1107
1108
  console.log('templateQueries[startOfChanges]', templateQueries[startOfChanges]);
1108
1109
  console.log('instanceQueries[startOfChanges]', instanceQueries[startOfChanges]);
1109
1110
  }
@@ -1114,7 +1115,6 @@ class Config {
1114
1115
  }
1115
1116
  // const sameQueries = helpers.safeEquals(toCanonicalQueries(template.queries || []).map(helpers.updateQueries), toCanonicalQueries(instance.queries || []))
1116
1117
 
1117
- const debug = false
1118
1118
  if (debug) {
1119
1119
  if (!(instance && sameQueries && sameFragments)) {
1120
1120
  if (!sameQueries) {