npm package diff

Package: @forge/jira-bridge

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

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

Index: package/out/modal/issue-view.js
===================================================================
--- package/out/modal/issue-view.js
+++ package/out/modal/issue-view.js
@@ -1,8 +1,7 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.ViewIssueModal = 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)();
@@ -14,24 +13,22 @@
         }
         this.onClose = onClose;
         this.context = context;
     }
-    open() {
-        return tslib_1.__awaiter(this, void 0, void 0, function* () {
-            try {
-                const success = yield callBridge('openIssueViewModal', {
-                    data: {
-                        onClose: this.onClose,
-                        context: this.context
-                    }
-                });
-                if (success === false) {
-                    throw new errors_1.BridgeAPIError('Unable to open issue view modal.');
+    async open() {
+        try {
+            const success = await callBridge('openIssueViewModal', {
+                data: {
+                    onClose: this.onClose,
+                    context: this.context
                 }
-            }
-            catch (err) {
+            });
+            if (success === false) {
                 throw new errors_1.BridgeAPIError('Unable to open issue view modal.');
             }
-        });
+        }
+        catch (err) {
+            throw new errors_1.BridgeAPIError('Unable to open issue view modal.');
+        }
     }
 }
 exports.ViewIssueModal = ViewIssueModal;