mobbdev 1.0.84 → 1.0.85

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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -8631,9 +8631,6 @@ var GQLClient = class {
8631
8631
  }
8632
8632
  const { organization: org } = organizationToOrganizationRole;
8633
8633
  const project = projectName ? org?.projects.find((project2) => project2.name === projectName) ?? null : org?.projects[0];
8634
- if (!project?.id) {
8635
- throw new Error("Project not found");
8636
- }
8637
8634
  let projectId = project?.id;
8638
8635
  if (!projectId) {
8639
8636
  const createdProject = await this._clientSdk.CreateProject({
@@ -8642,6 +8639,9 @@ var GQLClient = class {
8642
8639
  });
8643
8640
  projectId = createdProject.createProject.projectId;
8644
8641
  }
8642
+ if (!project?.id) {
8643
+ throw new Error("Project not found");
8644
+ }
8645
8645
  return {
8646
8646
  organizationId: org.id,
8647
8647
  projectId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "git+https://github.com/mobb-dev/bugsy.git",
6
6
  "main": "dist/index.js",