@mittwald/cli 1.11.1 → 1.11.2

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.
@@ -32,9 +32,10 @@ export function configureAxiosRetry(axios) {
32
32
  return true;
33
33
  }
34
34
  const isSafeRequest = error.config?.method?.toLowerCase() === "get";
35
+ const isConditionalRequest = !!error.config?.headers?.["if-event-reached"];
35
36
  const isPreconditionFailed = error.response?.status === 412;
36
37
  const isAccessDenied = error.response?.status === 403;
37
- if (isPreconditionFailed) {
38
+ if (isPreconditionFailed && isConditionalRequest) {
38
39
  return true;
39
40
  }
40
41
  return isSafeRequest && isAccessDenied && shouldRetryAccessDenied;
@@ -52,6 +52,7 @@ export class RenderBaseCommand extends ExtendedBaseCommand {
52
52
  useIncreaseInkStdoutColumns();
53
53
  return this.render();
54
54
  } }) }) }) }) }));
55
+ await handle.waitUntilExit();
55
56
  }
56
57
  useAppInstallationId(command) {
57
58
  return usePromise(() => this.withAppInstallationId(command), []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/cli",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "Hand-crafted CLI for the mittwald API",
5
5
  "license": "MIT",
6
6
  "author": {