daveappserver 0.6.5 → 0.6.7

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.
Files changed (2) hide show
  1. package/appserver.js +10 -3
  2. package/package.json +1 -1
package/appserver.js CHANGED
@@ -1,4 +1,4 @@
1
- var myVersion = "0.6.5", myProductName = "daveAppServer";
1
+ var myVersion = "0.6.7", myProductName = "daveAppServer";
2
2
 
3
3
  exports.start = startup;
4
4
  exports.notifySocketSubscribers = notifySocketSubscribers;
@@ -1077,6 +1077,9 @@ function startup (options, callback) {
1077
1077
  config.twitter.twitterConsumerKey = config.twitterConsumerKey;
1078
1078
  config.twitter.twitterConsumerSecret = config.twitterConsumerSecret;
1079
1079
  config.twitter.userLogonCallback = userLogonCallback; //8/14/22 by DW
1080
+ if (config.urlFavicon !== undefined) { //1/26/23 by DW
1081
+ config.twitter.urlFavicon = config.urlFavicon;
1082
+ }
1080
1083
  davetwitter.start (config.twitter);
1081
1084
  }
1082
1085
  function startDavemail () { //1/23/23 by DW
@@ -1525,8 +1528,12 @@ function startup (options, callback) {
1525
1528
  console.log ("startup: can't start the server because config.myDomain is not defined.");
1526
1529
  }
1527
1530
  else {
1528
- config.urlServerForClient = "http://" + config.myDomain + "/";
1529
- config.urlWebsocketServerForClient = "ws://" + utils.stringNthField (config.myDomain, ":", 1) + ":" + config.websocketPort + "/";
1531
+ if (config.urlServerForClient === undefined) { //1/30/23 by DW
1532
+ config.urlServerForClient = "http://" + config.myDomain + "/";
1533
+ }
1534
+ if (config.urlWebsocketServerForClient === undefined) { //1/30/23 by DW
1535
+ config.urlWebsocketServerForClient = "ws://" + utils.stringNthField (config.myDomain, ":", 1) + ":" + config.websocketPort + "/";
1536
+ }
1530
1537
  webSocketStartup ();
1531
1538
  setInterval (everySecond, 1000);
1532
1539
  utils.runEveryMinute (everyMinute);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "daveappserver",
3
3
  "description": "Factored code that was appearing in all my servers.",
4
- "version": "0.6.5",
4
+ "version": "0.6.7",
5
5
  "main": "appserver.js",
6
6
  "repository": {
7
7
  "type" : "git",