daveappserver 0.5.30 → 0.5.31

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 CHANGED
@@ -1,4 +1,4 @@
1
- var myVersion = "0.5.30", myProductName = "daveAppServer";
1
+ var myVersion = "0.5.31", myProductName = "daveAppServer";
2
2
 
3
3
  exports.start = startup;
4
4
  exports.notifySocketSubscribers = notifySocketSubscribers;
@@ -536,13 +536,15 @@ function cleanFileStats (stats) { //4/19/21 by DW
536
536
  }
537
537
  function writethefile (flprivate) {
538
538
  var f = getFilePath (screenname, relpath, flprivate);
539
- fs.writeFile (f, filetext, function (err) {
540
- if (err) {
541
- callback (err);
542
- }
543
- else {
544
- callback (undefined);
545
- }
539
+ utils.sureFilePath (f, function () { //9/15/21 by DW
540
+ fs.writeFile (f, filetext, function (err) {
541
+ if (err) {
542
+ callback (err);
543
+ }
544
+ else {
545
+ callback (undefined);
546
+ }
547
+ });
546
548
  });
547
549
  }
548
550
  readone (false, function (err, data) {
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.5.30",
4
+ "version": "0.5.31",
5
5
  "main": "appserver.js",
6
6
  "repository": {
7
7
  "type" : "git",
package/readme.md CHANGED
@@ -50,3 +50,9 @@ The second section configures the HTTP server and the connection to Twitter for
50
50
 
51
51
  4. twitterConsumerKey and twitterConsumerSecret are the values that identify the app for Twitter, as assigned on developer.twitter.com.
52
52
 
53
+ ### Updates
54
+
55
+ v0.5.31 -- 9/15/21 by DW
56
+
57
+ writeWholeFile was meant to be sure the path to the file exists before writing the file. It wasn't doing it, now it does.
58
+
package/readme.opml CHANGED
@@ -44,5 +44,10 @@
44
44
  <outline text="4. twitterConsumerKey and twitterConsumerSecret are the values that identify the app for Twitter, as assigned on developer.twitter.com. "></outline>
45
45
  </outline>
46
46
  </outline>
47
+ <outline created="Wed, 15 Sep 2021 14:19:02 GMT" text="### Updates">
48
+ <outline created="Wed, 15 Sep 2021 14:19:10 GMT" text="v0.5.31 -- 9/15/21 by DW">
49
+ <outline created="Wed, 15 Sep 2021 14:19:12 GMT" text="writeWholeFile was meant to be sure the path to the file exists before writing the file. It wasn't doing it, now it does. "></outline>
50
+ </outline>
51
+ </outline>
47
52
  </body>
48
53
  </opml>