@diplodoc/cli 5.11.3-debug-vcs-2 → 5.11.3-debug-vcs-4
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/build/github-vcs.js +3 -3
- package/build/github-vcs.js.map +2 -2
- package/build/index.js +3 -3
- package/build/index.mjs +3 -3
- package/package.json +1 -1
package/build/github-vcs.js
CHANGED
|
@@ -16386,7 +16386,7 @@ var GithubClient = class {
|
|
|
16386
16386
|
this.config = config;
|
|
16387
16387
|
this.octokit = new import_core.Octokit({
|
|
16388
16388
|
auth: this.config.vcs.token,
|
|
16389
|
-
baseUrl:
|
|
16389
|
+
baseUrl: this.config.vcs.endpoint
|
|
16390
16390
|
});
|
|
16391
16391
|
}
|
|
16392
16392
|
async getRepoUser(username) {
|
|
@@ -16659,7 +16659,7 @@ var Extension = class {
|
|
|
16659
16659
|
if (!config.vcs.enabled) {
|
|
16660
16660
|
return config;
|
|
16661
16661
|
}
|
|
16662
|
-
config.vcs.endpoint = args.vcsEndpoint || config.vcs.endpoint
|
|
16662
|
+
config.vcs.endpoint = args.vcsEndpoint || config.vcs.endpoint;
|
|
16663
16663
|
config.vcs.owner = args.vcsOwner || config.vcs.owner || remote.owner || "";
|
|
16664
16664
|
config.vcs.repo = args.vcsRepo || config.vcs.repo || remote.repo || "";
|
|
16665
16665
|
config.vcs.branch = args.vcsBranch || config.vcs.branch;
|
|
@@ -16672,7 +16672,7 @@ var Extension = class {
|
|
|
16672
16672
|
};
|
|
16673
16673
|
async function resolveRemote(gitOptions) {
|
|
16674
16674
|
try {
|
|
16675
|
-
const remote = await esm_default(gitOptions).raw("remote", "get-url", "origin");
|
|
16675
|
+
const remote = (await esm_default(gitOptions).raw("remote", "get-url", "origin")).trim();
|
|
16676
16676
|
if (!remote) {
|
|
16677
16677
|
return {};
|
|
16678
16678
|
}
|