lupine.api 1.1.53 → 1.1.55
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
CHANGED
|
@@ -421,6 +421,11 @@ export class AdminRelease implements IApiBase {
|
|
|
421
421
|
ApiHelper.sendJson(req, res, result);
|
|
422
422
|
return true;
|
|
423
423
|
}
|
|
424
|
+
const result2 = await this.updateSendFile(data, 'app-loader');
|
|
425
|
+
if (!result2 || result2.status !== 'ok') {
|
|
426
|
+
ApiHelper.sendJson(req, res, result2);
|
|
427
|
+
return true;
|
|
428
|
+
}
|
|
424
429
|
}
|
|
425
430
|
|
|
426
431
|
const response = {
|
|
@@ -442,6 +447,8 @@ export class AdminRelease implements IApiBase {
|
|
|
442
447
|
let sendFile = '';
|
|
443
448
|
if (chkOption === 'server') {
|
|
444
449
|
sendFile = path.join(appData.apiPath, '..', 'server', 'index.js');
|
|
450
|
+
} else if (chkOption === 'app-loader') {
|
|
451
|
+
sendFile = path.join(appData.apiPath, '..', 'server', 'app-loader.js');
|
|
445
452
|
} else if (chkOption === 'api') {
|
|
446
453
|
sendFile = path.join(appData.apiPath, '..', fromList + '_api', 'index.js');
|
|
447
454
|
} else if (chkOption === 'web') {
|
|
@@ -546,6 +553,8 @@ export class AdminRelease implements IApiBase {
|
|
|
546
553
|
let saveFile = '';
|
|
547
554
|
if (chkOption === 'server') {
|
|
548
555
|
saveFile = path.join(appData.apiPath, '..', 'server', 'index.js');
|
|
556
|
+
} else if (chkOption === 'app-loader') {
|
|
557
|
+
saveFile = path.join(appData.apiPath, '..', 'server', 'app-loader.js');
|
|
549
558
|
} else if (chkOption === 'api') {
|
|
550
559
|
saveFile = path.join(appData.apiPath, '..', toList + '_api', 'index.js');
|
|
551
560
|
} else if (chkOption === 'web') {
|