repowise 0.1.45 → 0.1.47
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/bin/repowise.js +7 -3
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -2646,7 +2646,7 @@ async function startListener() {
|
|
|
2646
2646
|
process.on("SIGINT", () => void shutdown());
|
|
2647
2647
|
while (running) {
|
|
2648
2648
|
const freshCredentials = await getValidCredentials2();
|
|
2649
|
-
const authToken = freshCredentials?.
|
|
2649
|
+
const authToken = freshCredentials?.accessToken;
|
|
2650
2650
|
let anyAuthError = null;
|
|
2651
2651
|
let minPollInterval = pollIntervalMs;
|
|
2652
2652
|
let connectionLostNotified = false;
|
|
@@ -3025,8 +3025,12 @@ program.command("config").description("Manage configuration").action(async () =>
|
|
|
3025
3025
|
await config2();
|
|
3026
3026
|
});
|
|
3027
3027
|
if (process.argv[2] === "__listener") {
|
|
3028
|
-
|
|
3029
|
-
|
|
3028
|
+
Promise.resolve().then(() => (init_main(), main_exports)).then(
|
|
3029
|
+
({ startListener: startListener2 }) => startListener2().catch((err) => {
|
|
3030
|
+
console.error("Listener fatal error:", err);
|
|
3031
|
+
process.exitCode = 1;
|
|
3032
|
+
})
|
|
3033
|
+
);
|
|
3030
3034
|
} else {
|
|
3031
3035
|
program.parse();
|
|
3032
3036
|
}
|