bamboo-agents 0.1.6-dev.84.826188a → 0.1.7-dev.85.44cc015
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/dist/VERSION +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.7-dev.85.44cc015
|
package/dist/index.js
CHANGED
|
@@ -3037,7 +3037,7 @@ var VERSION;
|
|
|
3037
3037
|
var init_version = __esm({
|
|
3038
3038
|
"src/version.ts"() {
|
|
3039
3039
|
"use strict";
|
|
3040
|
-
VERSION = "0.1.
|
|
3040
|
+
VERSION = "0.1.7-dev.85.44cc015";
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
3043
3043
|
|
|
@@ -7799,8 +7799,18 @@ function bambooDir() {
|
|
|
7799
7799
|
function configPath() {
|
|
7800
7800
|
return join(bambooDir(), "config.json");
|
|
7801
7801
|
}
|
|
7802
|
+
function credentialsFileName(version = VERSION, baseUrl = process.env.BAMBOO_BASE_URL) {
|
|
7803
|
+
if (baseUrl) {
|
|
7804
|
+
try {
|
|
7805
|
+
return new URL(baseUrl).hostname === "dev.withbamboo.com" ? "credentials.dev.json" : "credentials.json";
|
|
7806
|
+
} catch {
|
|
7807
|
+
return "credentials.json";
|
|
7808
|
+
}
|
|
7809
|
+
}
|
|
7810
|
+
return version.includes("-dev.") ? "credentials.dev.json" : "credentials.json";
|
|
7811
|
+
}
|
|
7802
7812
|
function credentialsPath() {
|
|
7803
|
-
return join(bambooDir(),
|
|
7813
|
+
return join(bambooDir(), credentialsFileName());
|
|
7804
7814
|
}
|
|
7805
7815
|
function bambooStateDir() {
|
|
7806
7816
|
if (process.env.BAMBOO_STATE_HOME) return process.env.BAMBOO_STATE_HOME;
|
|
@@ -7814,6 +7824,7 @@ function statePath() {
|
|
|
7814
7824
|
var init_paths = __esm({
|
|
7815
7825
|
"src/lib/paths.ts"() {
|
|
7816
7826
|
"use strict";
|
|
7827
|
+
init_version();
|
|
7817
7828
|
}
|
|
7818
7829
|
});
|
|
7819
7830
|
|