theprogrammablemind 9.1.1-beta.12 → 9.1.1-beta.13
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 +5 -1
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -1951,7 +1951,7 @@ class Config {
|
|
1951
1951
|
this.resetDelta()
|
1952
1952
|
|
1953
1953
|
this.addedArgss = []
|
1954
|
-
|
1954
|
+
let isProcess = require.main === module
|
1955
1955
|
if (global.theprogrammablemind && config) {
|
1956
1956
|
if (global.theprogrammablemind.loadForTesting[config.name]) {
|
1957
1957
|
isProcess = true
|
@@ -2090,6 +2090,10 @@ class Config {
|
|
2090
2090
|
}
|
2091
2091
|
|
2092
2092
|
get api () {
|
2093
|
+
if (this._stop_auto_rebuild) {
|
2094
|
+
throw new Error("The API cannot be accessed until the auto rebuild is restarted")
|
2095
|
+
}
|
2096
|
+
|
2093
2097
|
if (this._api && this._api.multiApi) {
|
2094
2098
|
return this._api.api(this._api)
|
2095
2099
|
} else {
|