@realiizlabs/admin 0.15.7 → 0.15.9

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.
@@ -500,11 +500,10 @@ async function createBranch(ctx, branch) {
500
500
  return { branch, baseSha };
501
501
  }
502
502
  async function deleteBranch(ctx, branch) {
503
- await ghFetchOrThrow(
504
- ctx,
505
- "DELETE",
506
- `${repoPath(ctx)}/git/refs/heads/${encodeURIComponent(branch)}`
507
- );
503
+ const path = `${repoPath(ctx)}/git/refs/heads/${encodeURIComponent(branch)}`;
504
+ const res = await ghFetch(ctx, "DELETE", path);
505
+ if (res.ok || res.status === 404 || res.status === 422) return;
506
+ throw toError(res, path);
508
507
  }
509
508
 
510
509
  // src/git/files.ts
@@ -1104,7 +1103,7 @@ function makeHandlers(ctx) {
1104
1103
  }
1105
1104
 
1106
1105
  // src/version.ts
1107
- var ADMIN_VERSION = "0.15.7" ;
1106
+ var ADMIN_VERSION = "0.15.9" ;
1108
1107
 
1109
1108
  // src/studio/update.ts
1110
1109
  var PACKAGE_NAME = "@realiizlabs/admin";