@@ -15622,9 +15622,9 @@ const utils_1 = __nccwpck_require__(3030);
1562215622const plugin_paginate_rest_1 = __nccwpck_require__(4193);
1562315623const plugin_throttling_1 = __nccwpck_require__(9968);
1562415624const request_error_1 = __nccwpck_require__(537);
15625- const EmptyObject_1 = __nccwpck_require__(8227);
15626- const arrayDifference_1 = __importDefault(__nccwpck_require__(7034));
15625+ const arrayDifference_1 = __importDefault(__nccwpck_require__(7532));
1562715626const CONST_1 = __importDefault(__nccwpck_require__(9873));
15627+ const isEmptyObject_1 = __nccwpck_require__(6497);
1562815628class GithubUtils {
1562915629 static internalOctokit;
1563015630 /**
@@ -15815,7 +15815,7 @@ class GithubUtils {
1581515815 static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) {
1581615816 return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr)))
1581715817 .then((data) => {
15818- const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1 .isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : [];
15818+ const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1 .isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : [];
1581915819 return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => {
1582015820 // The format of this map is following:
1582115821 // {
@@ -15845,7 +15845,7 @@ class GithubUtils {
1584515845 issueBody += '\r\n\r\n';
1584615846 }
1584715847 // Internal QA PR list
15848- if (!(0, EmptyObject_1 .isEmptyObject)(internalQAPRMap)) {
15848+ if (!(0, isEmptyObject_1 .isEmptyObject)(internalQAPRMap)) {
1584915849 console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs);
1585015850 issueBody += '**Internal QA:**\r\n';
1585115851 Object.keys(internalQAPRMap).forEach((URL) => {
@@ -16127,38 +16127,25 @@ exports["default"] = GithubUtils;
1612716127
1612816128/***/ }),
1612916129
16130- /***/ 8534 :
16130+ /***/ 7532 :
1613116131/***/ ((__unused_webpack_module, exports) => {
1613216132
1613316133"use strict";
1613416134
1613516135Object.defineProperty(exports, "__esModule", ({ value: true }));
1613616136/**
16137- * Like _.some but for promises. It short-circuts after a promise fulfills with a value that passes the test implemented by provided function.
16138- * It does not wait for the other promises to complete once it finds one.
16139- * If no promise passes the provided test, it rejects.
16137+ * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them.
16138+ * It returns an array of items that are in the first array but not in the second array.
1614016139 */
16141- function promiseSome(promises, callbackFn) {
16142- return new Promise((resolve, reject) => {
16143- for (const p of promises) {
16144- Promise.resolve(p)
16145- .then((res) => {
16146- if (!callbackFn(res)) {
16147- return;
16148- }
16149- resolve(true);
16150- })
16151- .catch(() => { });
16152- }
16153- Promise.allSettled(promises).then(() => reject());
16154- });
16140+ function arrayDifference(array1, array2) {
16141+ return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c)));
1615516142}
16156- exports["default"] = promiseSome ;
16143+ exports["default"] = arrayDifference ;
1615716144
1615816145
1615916146/***/ }),
1616016147
16161- /***/ 8227 :
16148+ /***/ 6497 :
1616216149/***/ ((__unused_webpack_module, exports) => {
1616316150
1616416151"use strict";
@@ -16173,20 +16160,33 @@ exports.isEmptyObject = isEmptyObject;
1617316160
1617416161/***/ }),
1617516162
16176- /***/ 7034 :
16163+ /***/ 8534 :
1617716164/***/ ((__unused_webpack_module, exports) => {
1617816165
1617916166"use strict";
1618016167
1618116168Object.defineProperty(exports, "__esModule", ({ value: true }));
1618216169/**
16183- * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them.
16184- * It returns an array of items that are in the first array but not in the second array.
16170+ * Like _.some but for promises. It short-circuts after a promise fulfills with a value that passes the test implemented by provided function.
16171+ * It does not wait for the other promises to complete once it finds one.
16172+ * If no promise passes the provided test, it rejects.
1618516173 */
16186- function arrayDifference(array1, array2) {
16187- return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c)));
16174+ function promiseSome(promises, callbackFn) {
16175+ return new Promise((resolve, reject) => {
16176+ for (const p of promises) {
16177+ Promise.resolve(p)
16178+ .then((res) => {
16179+ if (!callbackFn(res)) {
16180+ return;
16181+ }
16182+ resolve(true);
16183+ })
16184+ .catch(() => { });
16185+ }
16186+ Promise.allSettled(promises).then(() => reject());
16187+ });
1618816188}
16189- exports["default"] = arrayDifference ;
16189+ exports["default"] = promiseSome ;
1619016190
1619116191
1619216192/***/ }),
0 commit comments