davegithub
Advanced tools
+13
-1
@@ -1,2 +0,2 @@ | ||
| var myVersion = "0.5.4", myProductName = "davegithub"; | ||
| var myVersion = "0.5.5", myProductName = "davegithub"; | ||
@@ -14,2 +14,13 @@ const utils = require ("daveutils"); | ||
| function addAuthToRequest (options, theRequest) { | ||
| if ((options.username !== undefined) && (options.password !== undefined)) { //10/2/22 by DW | ||
| theRequest.auth = { | ||
| user: options.username, | ||
| pass: options.password, | ||
| sendImmediately: true | ||
| }; | ||
| } | ||
| } | ||
| function getFile (options, callback) { | ||
@@ -163,2 +174,3 @@ var url = "https://api.github.com/repos/" + options.username + "/" + options.repo + "/contents/" + options.repoPath; | ||
| }; | ||
| addAuthToRequest (options, theRequest); //10/19/23 by DW | ||
| console.log ("getDirectory: path == " + path); | ||
@@ -165,0 +177,0 @@ request (theRequest, function (err, response, body) { |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "author": "Dave Winer <dave@scripting.com>", | ||
| "version": "0.5.4", | ||
| "version": "0.5.5", | ||
| "main": "davegithub.js", | ||
@@ -8,0 +8,0 @@ "scripts": { |
+5
-1
@@ -7,4 +7,8 @@ # github | ||
| #### 10/2/22 by DW | ||
| #### 10/19/23; 1:29:41 PM by DW | ||
| Authenticating getDirectory calls. | ||
| #### 10/2/22 by DW | ||
| When I integrated the new queued github writer with the big app I'm working on it failed to upload the files. After much debugging this is what the problem was: | ||
@@ -11,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
11192
5.7%192
5.49%47
9.3%