npm package diff
Package: @forge/jira-bridge
Versions: 0.34.1-next.0 - 0.34.1-next.1
File: package/out/workflow/onConfigure.js
Index: package/out/workflow/onConfigure.js
===================================================================
--- package/out/workflow/onConfigure.js
+++ package/out/workflow/onConfigure.js
@@ -1,25 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.onConfigure = void 0;
-const tslib_1 = require("tslib");
const bridge_1 = require("../bridge");
const errors_1 = require("../errors");
const callBridge = (0, bridge_1.getCallBridge)();
-function onConfigure(onConfigureFn) {
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
- try {
- const success = yield callBridge('setWorkflowRuleConfigurationCallback', {
- data: {
- onConfigure: onConfigureFn
- }
- });
- if (success === false) {
- throw new errors_1.BridgeAPIError('Unable to add workflow rule configuration callback.');
+async function onConfigure(onConfigureFn) {
+ try {
+ const success = await callBridge('setWorkflowRuleConfigurationCallback', {
+ data: {
+ onConfigure: onConfigureFn
}
- }
- catch (err) {
+ });
+ if (success === false) {
throw new errors_1.BridgeAPIError('Unable to add workflow rule configuration callback.');
}
- });
+ }
+ catch (err) {
+ throw new errors_1.BridgeAPIError('Unable to add workflow rule configuration callback.');
+ }
}
exports.onConfigure = onConfigure;