theprogrammablemind 9.1.1-beta.14 → 9.1.1-beta.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +8 -0
package/package.json CHANGED
@@ -69,6 +69,6 @@
69
69
  "sort-json": "^2.0.0",
70
70
  "uuid": "^8.3.2"
71
71
  },
72
- "version": "9.1.1-beta.14",
72
+ "version": "9.1.1-beta.15",
73
73
  "license": "UNLICENSED"
74
74
  }
package/src/config.js CHANGED
@@ -2090,6 +2090,14 @@ class Config {
2090
2090
  this.resetDelta(cacheKey)
2091
2091
  }
2092
2092
 
2093
+ base_api () {
2094
+ if (this._api && this._api.multiApi) {
2095
+ throw new Error('This is intended to be used to instantiate a new class based on the existing API.')
2096
+ } else {
2097
+ return this._api
2098
+ }
2099
+ }
2100
+
2093
2101
  get api () {
2094
2102
  if (this._stop_auto_rebuild) {
2095
2103
  throw new Error('The API cannot be accessed until the auto rebuild is restarted')