daveappserver 0.6.41 → 0.7.0

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 +12 -1
  2. package/package.json +3 -2
package/appserver.js CHANGED
@@ -1,4 +1,4 @@
1
- var myVersion = "0.6.41", myProductName = "daveAppServer";
1
+ var myVersion = "0.7.0", myProductName = "daveAppServer";
2
2
 
3
3
  exports.start = startup;
4
4
  exports.notifySocketSubscribers = notifySocketSubscribers;
@@ -26,6 +26,7 @@ const qs = require ("querystring");
26
26
  const mail = require ("davemail");
27
27
  const requireFromString = require ("require-from-string"); //2/10/23 by DW
28
28
  const davesql = require ("davesql"); //8/14/23 by DW
29
+ const wordpress = require ("wpidentity"); //9/10/23 by DW
29
30
 
30
31
  const whenStart = new Date ();
31
32
 
@@ -1528,6 +1529,11 @@ function startup (options, callback) {
1528
1529
  return (true);
1529
1530
  }
1530
1531
  }
1532
+
1533
+ if (wordpress.handleHttpRequest (theRequest)) { //9/10/23 by DW
1534
+ return (true);
1535
+ }
1536
+
1531
1537
  switch (theRequest.lowermethod) {
1532
1538
  case "post":
1533
1539
  switch (theRequest.lowerpath) {
@@ -1793,6 +1799,11 @@ function startup (options, callback) {
1793
1799
  console.log ("config == " + utils.jsonStringify (config));
1794
1800
  startDavetwitter (handleHttpRequest);
1795
1801
  startDavemail (); //1/23/23 by DW
1802
+
1803
+ if (config.wordpress !== undefined) { //9/10/23 by DW
1804
+ wordpress.start (config.wordpress);
1805
+ }
1806
+
1796
1807
  if (config.myDomain === undefined) {
1797
1808
  console.log ("startup: can't start the server because config.myDomain is not defined.");
1798
1809
  }
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.41",
4
+ "version": "0.7.0",
5
5
  "main": "appserver.js",
6
6
  "repository": {
7
7
  "type" : "git",
@@ -24,6 +24,7 @@
24
24
  "davesql": "*",
25
25
  "daves3": "*",
26
26
  "davehttp": "*",
27
- "davemail": "*"
27
+ "davemail": "*",
28
+ "wpidentity": "*"
28
29
  }
29
30
  }