theprogrammablemind 9.3.0-beta.2 → 9.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +3 -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.3.0-beta.2",
72
+ "version": "9.3.0-beta.3",
73
73
  "license": "UNLICENSED"
74
74
  }
package/src/config.js CHANGED
@@ -2113,6 +2113,9 @@ class Config {
2113
2113
  if (this.name == name) {
2114
2114
  return this._api.constructor
2115
2115
  } else {
2116
+ if (!this.getConfig(name)) {
2117
+ throw new Error(`Config.apiBase: The requested KM '${name}' has not been loaded`)
2118
+ }
2116
2119
  return this.getConfig(name)._api.constructor
2117
2120
  }
2118
2121
  } else {