@diplodoc/cli 5.36.3 → 5.36.5
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/arcadia-vcs.js +6 -1
- package/build/arcadia-vcs.js.map +2 -2
- package/build/core/markdown/utils.d.ts +1 -0
- package/build/index.js +3 -3
- package/build/index.mjs +3 -3
- package/lib/markdown/index.js +27 -1
- package/lib/markdown/index.js.map +2 -2
- package/lib/markdown/index.mjs +27 -1
- package/lib/markdown/index.mjs.map +2 -2
- package/lib/markdown/utils.d.ts +1 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/index.js.map +2 -2
- package/lib/utils/index.mjs +1 -1
- package/lib/utils/index.mjs.map +2 -2
- package/package.json +1 -1
package/build/arcadia-vcs.js
CHANGED
|
@@ -14622,6 +14622,7 @@ var ArcadiaVcsConnector = class {
|
|
|
14622
14622
|
this.config = void 0;
|
|
14623
14623
|
this.arc = void 0;
|
|
14624
14624
|
this.run = void 0;
|
|
14625
|
+
this.arcAvailable = false;
|
|
14625
14626
|
this.run = run;
|
|
14626
14627
|
this.config = run.config;
|
|
14627
14628
|
this.arc = new ArcClient(run.config, (0, import_node_path7.dirname)(run.config[import_config.configPath]));
|
|
@@ -14636,6 +14637,7 @@ var ArcadiaVcsConnector = class {
|
|
|
14636
14637
|
contributors.enabled && this.fillContributors()
|
|
14637
14638
|
].filter(Boolean)
|
|
14638
14639
|
);
|
|
14640
|
+
this.arcAvailable = true;
|
|
14639
14641
|
} catch (error) {
|
|
14640
14642
|
if (error && typeof error === "object" && "code" in error && error.code === "ENOENT") {
|
|
14641
14643
|
this.run.logger.warn(
|
|
@@ -14659,7 +14661,10 @@ var ArcadiaVcsConnector = class {
|
|
|
14659
14661
|
this.authorByPath = data.authors;
|
|
14660
14662
|
this.contributorsByPath = data.contributors;
|
|
14661
14663
|
}
|
|
14662
|
-
getBase() {
|
|
14664
|
+
async getBase() {
|
|
14665
|
+
if (!this.arcAvailable) {
|
|
14666
|
+
return ".";
|
|
14667
|
+
}
|
|
14663
14668
|
return this.arc.getBase();
|
|
14664
14669
|
}
|
|
14665
14670
|
async getUserByLogin(login) {
|