theprogrammablemind_4wp 8.0.0-beta.45 → 8.0.0-beta.47

Sign up to get free protection for your applications and to get access to all the features.
package/client.js CHANGED
@@ -1103,7 +1103,7 @@ const knowledgeModuleImpl = async ({
1103
1103
  }
1104
1104
 
1105
1105
  const createConfig = async () => {
1106
- const config = new Config(configStruct, moduleFromJSFile)
1106
+ const config = new Config(configStruct, moduleFromJSFile, _process)
1107
1107
  config.stop_auto_rebuild()
1108
1108
  await config.add(...(includes || []))
1109
1109
  if (api) {
package/package.json CHANGED
@@ -65,6 +65,6 @@
65
65
  "sort-json": "^2.0.0",
66
66
  "uuid": "^8.3.2"
67
67
  },
68
- "version": "8.0.0-beta.45",
68
+ "version": "8.0.0-beta.47",
69
69
  "license": "UNLICENSED"
70
70
  }
package/src/config.js CHANGED
@@ -857,6 +857,7 @@ class Config {
857
857
  addArgs: (...args) => this.addArgs(...args),
858
858
  getBridge: (...args) => this.getBridge(...args),
859
859
  fragment: (...args) => this.fragment(...args),
860
+ server: (...args) => this.server(...args),
860
861
  exists: (...args) => this.exists(...args),
861
862
  addAPI: (...args) => this.addAPI(...args)
862
863
  }
@@ -1634,6 +1635,10 @@ class Config {
1634
1635
  return await configHelpers.processContext(context, this.getParams())
1635
1636
  }
1636
1637
 
1638
+ process (query, options) {
1639
+ return this.clientProcess(this, query, options)
1640
+ }
1641
+
1637
1642
  query (query, options) {
1638
1643
  return this.process(query, options)
1639
1644
  }
@@ -1772,7 +1777,7 @@ class Config {
1772
1777
  }
1773
1778
 
1774
1779
  // configs = [ { config, namespace } ... ]
1775
- constructor (config, module) {
1780
+ constructor (config, module, clientProcess) {
1776
1781
  if (config instanceof Config) {
1777
1782
  throw new Error('Excepted the config argument to be a hash not a Config object')
1778
1783
  }
@@ -1790,6 +1795,7 @@ class Config {
1790
1795
  config.priorities = config.priorities || []
1791
1796
  }
1792
1797
 
1798
+ this.clientProcess = clientProcess
1793
1799
  this.maxDepth = 20 // for generators and semantics
1794
1800
  this.debugLoops = false // for generators and semantics
1795
1801