daveappserver 0.5.48 → 0.5.51
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/appserver.js +8 -4
- package/package.json +1 -1
package/appserver.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var myVersion = "0.5.
|
|
1
|
+
var myVersion = "0.5.51", myProductName = "daveAppServer";
|
|
2
2
|
|
|
3
3
|
exports.start = startup;
|
|
4
4
|
exports.notifySocketSubscribers = notifySocketSubscribers;
|
|
@@ -48,7 +48,9 @@ var config = {
|
|
|
48
48
|
|
|
49
49
|
defaultContentType: "text/plain", //8/3/21 by DW
|
|
50
50
|
|
|
51
|
-
userAgent: myProductName + " v" + myVersion //11/8/21 by DW
|
|
51
|
+
userAgent: myProductName + " v" + myVersion, //11/8/21 by DW
|
|
52
|
+
|
|
53
|
+
whitelist: undefined //7/21/22 by DW
|
|
52
54
|
};
|
|
53
55
|
const fnameConfig = "config.json";
|
|
54
56
|
|
|
@@ -625,7 +627,8 @@ function cleanFileStats (stats) { //4/19/21 by DW
|
|
|
625
627
|
}
|
|
626
628
|
else {
|
|
627
629
|
if (config.publishFile !== undefined) { //3/18/22 by DW
|
|
628
|
-
|
|
630
|
+
const url = (flprivate) ? undefined : config.urlServerForClient + screenname + "/" + relpath;
|
|
631
|
+
const type = utils.httpExt2MIME (utils.stringLastField (f, ".")); //7/3/22 by DW
|
|
629
632
|
config.publishFile (f, screenname, relpath, type, flprivate, filetext, url);
|
|
630
633
|
}
|
|
631
634
|
callback (undefined);
|
|
@@ -1018,7 +1021,8 @@ function startup (options, callback) {
|
|
|
1018
1021
|
flEnableLogin: config.flEnableLogin,
|
|
1019
1022
|
prefsPath: config.prefsPath,
|
|
1020
1023
|
docsPath: config.docsPath,
|
|
1021
|
-
idGitHubClient: config.githubClientId //11/9/21 by DW
|
|
1024
|
+
idGitHubClient: config.githubClientId, //11/9/21 by DW
|
|
1025
|
+
whitelist: config.whitelist //7/21/22 by DW
|
|
1022
1026
|
};
|
|
1023
1027
|
if (theRequest.addToPagetable !== undefined) { //3/9/21 by DW
|
|
1024
1028
|
for (var x in theRequest.addToPagetable) {
|