bamboo-agents 0.1.5-dev.13 → 0.1.5-dev.14
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 +8 -9
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.5-dev.
|
|
1
|
+
0.1.5-dev.14
|
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.5-dev.
|
|
3040
|
+
VERSION = "0.1.5-dev.14";
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
3043
3043
|
|
|
@@ -11363,6 +11363,7 @@ var init_auth_token = __esm({
|
|
|
11363
11363
|
error: external_exports.enum([
|
|
11364
11364
|
"unauthorized",
|
|
11365
11365
|
"no_github_token",
|
|
11366
|
+
"no_active_install",
|
|
11366
11367
|
"expired",
|
|
11367
11368
|
"lookup_failed"
|
|
11368
11369
|
]),
|
|
@@ -11617,12 +11618,6 @@ async function handleMissingGithubToken(bambooSession) {
|
|
|
11617
11618
|
);
|
|
11618
11619
|
return null;
|
|
11619
11620
|
}
|
|
11620
|
-
if (err.status === 410) {
|
|
11621
|
-
spinner.fail(
|
|
11622
|
-
"Your GitHub token expired. Sign in to Bamboo with GitHub again, then re-run."
|
|
11623
|
-
);
|
|
11624
|
-
return null;
|
|
11625
|
-
}
|
|
11626
11621
|
}
|
|
11627
11622
|
continue;
|
|
11628
11623
|
}
|
|
@@ -11747,8 +11742,12 @@ async function runLogin() {
|
|
|
11747
11742
|
if (!polled) process.exit(1);
|
|
11748
11743
|
tokenResp = polled;
|
|
11749
11744
|
} else if (err instanceof ApiError && err.status === 410) {
|
|
11750
|
-
tokenSpinner.
|
|
11751
|
-
|
|
11745
|
+
tokenSpinner.warn(
|
|
11746
|
+
"Your GitHub token expired \u2014 opening browser to refresh authorization\u2026"
|
|
11747
|
+
);
|
|
11748
|
+
const polled = await handleMissingGithubToken(bambooSession);
|
|
11749
|
+
if (!polled) process.exit(1);
|
|
11750
|
+
tokenResp = polled;
|
|
11752
11751
|
} else {
|
|
11753
11752
|
tokenSpinner.fail(`Couldn't fetch GitHub token: ${err.message}`);
|
|
11754
11753
|
process.exit(1);
|