hdoc-tools 0.34.2 → 0.34.3
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/hdoc-build.js +2 -2
- package/hdoc-module.js +1 -1
- package/package.json +1 -1
package/hdoc-build.js
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
let prods_supported = [];
|
73
73
|
let doc_id = "";
|
74
74
|
let git_token =
|
75
|
-
"
|
75
|
+
"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"; // Github fine-grained personal access token that has minimum read-only access to Hornbill Docs metadata
|
76
76
|
let hdocbook_config = {};
|
77
77
|
let hdocbook_project;
|
78
78
|
let includes_found = 0;
|
@@ -1201,7 +1201,7 @@
|
|
1201
1201
|
|
1202
1202
|
// Get github repo details
|
1203
1203
|
github_repo_details = await hdoc.get_github_repo_details( api_path, git_token );
|
1204
|
-
if (github_repo_details.success) {
|
1204
|
+
if (!github_repo_details.success) {
|
1205
1205
|
console.warn(`Unable to retrieve GitHub Repository details: ${github_repo_details.error}`);
|
1206
1206
|
}
|
1207
1207
|
}
|
package/hdoc-module.js
CHANGED
@@ -483,7 +483,7 @@
|
|
483
483
|
response.private = github_response.data.private;
|
484
484
|
} else {
|
485
485
|
// Is it a 404 or 403?
|
486
|
-
response.error = `${github_response.status} : ${data.message}`;
|
486
|
+
response.error = `${github_response.status} : ${github_response.data.message}`;
|
487
487
|
}
|
488
488
|
return response;
|
489
489
|
};
|