npm package diff

Package: @forge/jira-bridge

Versions: 0.34.1-next.0 - 0.34.1-next.1

File: package/out/modal/issue-create.js

Index: package/out/modal/issue-create.js
===================================================================
--- package/out/modal/issue-create.js
+++ package/out/modal/issue-create.js
@@ -1,8 +1,7 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.CreateIssueModal = void 0;
-const tslib_1 = require("tslib");
 const bridge_1 = require("../bridge");
 const errors_1 = require("../errors");
 const noop = () => { };
 const callBridge = (0, bridge_1.getCallBridge)();
@@ -10,24 +9,22 @@
     constructor(opts) {
         this.onClose = (opts === null || opts === void 0 ? void 0 : opts.onClose) || noop;
         this.context = (opts === null || opts === void 0 ? void 0 : opts.context) || {};
     }
-    open() {
-        return tslib_1.__awaiter(this, void 0, void 0, function* () {
-            try {
-                const success = yield callBridge('openIssueCreateModal', {
-                    data: {
-                        onClose: this.onClose,
-                        context: this.context
-                    }
-                });
-                if (success === false) {
-                    throw new errors_1.BridgeAPIError('Unable to open issue create modal.');
+    async open() {
+        try {
+            const success = await callBridge('openIssueCreateModal', {
+                data: {
+                    onClose: this.onClose,
+                    context: this.context
                 }
-            }
-            catch (err) {
+            });
+            if (success === false) {
                 throw new errors_1.BridgeAPIError('Unable to open issue create modal.');
             }
-        });
+        }
+        catch (err) {
+            throw new errors_1.BridgeAPIError('Unable to open issue create modal.');
+        }
     }
 }
 exports.CreateIssueModal = CreateIssueModal;