aiplang 2.5.0 → 2.5.1
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/bin/aiplang.js +1 -1
- package/package.json +1 -1
- package/server/server.js +2 -2
package/bin/aiplang.js
CHANGED
|
@@ -5,7 +5,7 @@ const fs = require('fs')
|
|
|
5
5
|
const path = require('path')
|
|
6
6
|
const http = require('http')
|
|
7
7
|
|
|
8
|
-
const VERSION = '2.5.
|
|
8
|
+
const VERSION = '2.5.1'
|
|
9
9
|
const RUNTIME_DIR = path.join(__dirname, '..', 'runtime')
|
|
10
10
|
const cmd = process.argv[2]
|
|
11
11
|
const args = process.argv.slice(3)
|
package/package.json
CHANGED
package/server/server.js
CHANGED
|
@@ -103,7 +103,7 @@ async function sendMail(opts) {
|
|
|
103
103
|
return { messageId: 'mock-' + uuid() }
|
|
104
104
|
}
|
|
105
105
|
return MAIL_TRANSPORTER.sendMail({
|
|
106
|
-
from: MAIL_CONFIG?.from || 'noreply@
|
|
106
|
+
from: MAIL_CONFIG?.from || process.env.MAIL_FROM || 'noreply@localhost',
|
|
107
107
|
...opts
|
|
108
108
|
})
|
|
109
109
|
}
|
|
@@ -1372,7 +1372,7 @@ async function startServer(aipFile, port = 3000) {
|
|
|
1372
1372
|
|
|
1373
1373
|
// Health
|
|
1374
1374
|
srv.addRoute('GET', '/health', (req, res) => res.json(200, {
|
|
1375
|
-
status:'ok', version:'2.
|
|
1375
|
+
status:'ok', version:'2.5.0',
|
|
1376
1376
|
models: app.models.map(m=>m.name),
|
|
1377
1377
|
routes: app.apis.length, pages: app.pages.length,
|
|
1378
1378
|
admin: app.admin?.prefix || null,
|