@@ -2454,7 +2454,6 @@ const iota_1 = __webpack_require__(586);
24542454 * @returns The config as non partial.
24552455 */
24562456function sanitizeInput(config) {
2457- var _a, _b, _c;
24582457 if (!config.githubToken) {
24592458 throw new Error("You must provide the GitHub token option");
24602459 }
@@ -2476,15 +2475,15 @@ function sanitizeInput(config) {
24762475 if (config.seed.length !== 81) {
24772476 throw new Error(`The seed option must be 81 trytes [A-Z9], it is ${config.seed.length}`);
24782477 }
2479- config.transactionTag = (_a = config.transactionTag) !== null && _a !== void 0 ? _a : "GITHUB9RELEASE";
2478+ config.transactionTag = config.transactionTag || "GITHUB9RELEASE";
24802479 if (!/[9A-Z]/.test(config.transactionTag)) {
24812480 throw new Error("The transaction tag option must be 27 trytes [A-Z9] or less");
24822481 }
24832482 if (config.transactionTag.length >= 27) {
24842483 throw new Error(`The transaction tag option must be 27 trytes [A-Z9] or less, it is ${config.transactionTag.length}`);
24852484 }
2486- config.explorerUrl = (_b = config.explorerUrl) !== null && _b !== void 0 ? _b : "https://utils.iota.org/transaction/:hash";
2487- config.node = (_c = config.node) !== null && _c !== void 0 ? _c : "https://nodes.iota.cafe:443";
2485+ config.explorerUrl = config.explorerUrl || "https://utils.iota.org/transaction/:hash";
2486+ config.node = config.node || "https://nodes.iota.cafe:443";
24882487 let addressIndex;
24892488 let depth;
24902489 let mwm;
@@ -2538,7 +2537,6 @@ exports.sanitizeInput = sanitizeInput;
25382537 * @returns The hash of the transaction and an explorer url.
25392538 */
25402539function tangleRelease(config, progress) {
2541- var _a, _b;
25422540 return __awaiter(this, void 0, void 0, function* () {
25432541 progress("Connecting to GitHub");
25442542 let release;
@@ -2567,8 +2565,8 @@ function tangleRelease(config, progress) {
25672565 const zipBallHash = yield crypto_1.downloadAndHash(release.data.zipball_url);
25682566 progress("Constructing payload");
25692567 const payload = {
2570- owner: (_a = config.owner) !== null && _a !== void 0 ? _a : "",
2571- repo: (_b = config.repository) !== null && _b !== void 0 ? _b : "",
2568+ owner: config.owner || "",
2569+ repo: config.repository || "",
25722570 tag_name: release.data.tag_name,
25732571 name: release.data.name,
25742572 comment: config.comment,
0 commit comments