theprogrammablemind 9.1.1-beta.19 → 9.1.1-beta.20
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/package.json +1 -1
- package/src/config.js +6 -2
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -2091,11 +2091,15 @@ class Config {
|
|
2091
2091
|
}
|
2092
2092
|
|
2093
2093
|
// use this to set the api if you only want to partially override the KM api
|
2094
|
-
|
2094
|
+
apiBase (name) {
|
2095
2095
|
if (this._api && this._api.multiApi) {
|
2096
2096
|
throw new Error('This is intended to be used to instantiate a new class based on the existing API.')
|
2097
2097
|
} else {
|
2098
|
-
|
2098
|
+
if (name) {
|
2099
|
+
return this.getConfig(name)._api
|
2100
|
+
} else {
|
2101
|
+
return this._api.constructor
|
2102
|
+
}
|
2099
2103
|
}
|
2100
2104
|
}
|
2101
2105
|
|