diff --git a/.github/.eslintrc.js b/.github/.eslintrc.js index 41fc57fb98298..b0f10f4b7c9ab 100644 --- a/.github/.eslintrc.js +++ b/.github/.eslintrc.js @@ -7,6 +7,16 @@ module.exports = { 'no-await-in-loop': 'off', 'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'], 'no-continue': 'off', - 'no-restricted-imports': 'off', + 'no-restricted-imports': [ + 'error', + { + patterns: [ + { + group: ['@src/**'], + message: 'Do not import files from src/ directory as they can break the GH Actions build script.', + }, + ], + }, + ], }, }; diff --git a/.github/actions/javascript/authorChecklist/index.js b/.github/actions/javascript/authorChecklist/index.js index b21bed27e7e3b..f74a4e9e0de7e 100644 --- a/.github/actions/javascript/authorChecklist/index.js +++ b/.github/actions/javascript/authorChecklist/index.js @@ -15622,9 +15622,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -15815,7 +15815,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -15845,7 +15845,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -16127,38 +16127,25 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 8534: +/***/ 7532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); /** - * Like _.some but for promises. It short-circuts after a promise fulfills with a value that passes the test implemented by provided function. - * It does not wait for the other promises to complete once it finds one. - * If no promise passes the provided test, it rejects. + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. */ -function promiseSome(promises, callbackFn) { - return new Promise((resolve, reject) => { - for (const p of promises) { - Promise.resolve(p) - .then((res) => { - if (!callbackFn(res)) { - return; - } - resolve(true); - }) - .catch(() => { }); - } - Promise.allSettled(promises).then(() => reject()); - }); +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports["default"] = promiseSome; +exports["default"] = arrayDifference; /***/ }), -/***/ 8227: +/***/ 6497: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -16173,20 +16160,33 @@ exports.isEmptyObject = isEmptyObject; /***/ }), -/***/ 7034: +/***/ 8534: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); /** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. + * Like _.some but for promises. It short-circuts after a promise fulfills with a value that passes the test implemented by provided function. + * It does not wait for the other promises to complete once it finds one. + * If no promise passes the provided test, it rejects. */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +function promiseSome(promises, callbackFn) { + return new Promise((resolve, reject) => { + for (const p of promises) { + Promise.resolve(p) + .then((res) => { + if (!callbackFn(res)) { + return; + } + resolve(true); + }) + .catch(() => { }); + } + Promise.allSettled(promises).then(() => reject()); + }); } -exports["default"] = arrayDifference; +exports["default"] = promiseSome; /***/ }), diff --git a/.github/actions/javascript/awaitStagingDeploys/index.js b/.github/actions/javascript/awaitStagingDeploys/index.js index cced1428f8159..7c9fb9111acdf 100644 --- a/.github/actions/javascript/awaitStagingDeploys/index.js +++ b/.github/actions/javascript/awaitStagingDeploys/index.js @@ -12396,9 +12396,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -12589,7 +12589,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -12619,7 +12619,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12899,6 +12899,39 @@ class GithubUtils { exports["default"] = GithubUtils; +/***/ }), + +/***/ 7532: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +} +exports["default"] = arrayDifference; + + +/***/ }), + +/***/ 6497: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; +} +exports.isEmptyObject = isEmptyObject; + + /***/ }), /***/ 9438: @@ -12954,39 +12987,6 @@ function promiseDoWhile(condition, action) { exports.promiseDoWhile = promiseDoWhile; -/***/ }), - -/***/ 8227: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; -} -exports.isEmptyObject = isEmptyObject; - - -/***/ }), - -/***/ 7034: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); -} -exports["default"] = arrayDifference; - - /***/ }), /***/ 9491: diff --git a/.github/actions/javascript/checkAndroidStatus/index.js b/.github/actions/javascript/checkAndroidStatus/index.js index 8441be818a793..f02994a5428c8 100644 --- a/.github/actions/javascript/checkAndroidStatus/index.js +++ b/.github/actions/javascript/checkAndroidStatus/index.js @@ -737115,9 +737115,9 @@ const utils_1 = __nccwpck_require__(73030); const plugin_paginate_rest_1 = __nccwpck_require__(64193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(10537); -const EmptyObject_1 = __nccwpck_require__(58227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(97034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(17532)); const CONST_1 = __importDefault(__nccwpck_require__(29873)); +const isEmptyObject_1 = __nccwpck_require__(86497); class GithubUtils { static internalOctokit; /** @@ -737308,7 +737308,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -737338,7 +737338,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -737620,35 +737620,35 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 58227: +/***/ 17532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports.isEmptyObject = isEmptyObject; +exports["default"] = arrayDifference; /***/ }), -/***/ 97034: +/***/ 86497: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; } -exports["default"] = arrayDifference; +exports.isEmptyObject = isEmptyObject; /***/ }), diff --git a/.github/actions/javascript/checkDeployBlockers/checkDeployBlockers.ts b/.github/actions/javascript/checkDeployBlockers/checkDeployBlockers.ts index d51d687960702..a961c819e1b37 100644 --- a/.github/actions/javascript/checkDeployBlockers/checkDeployBlockers.ts +++ b/.github/actions/javascript/checkDeployBlockers/checkDeployBlockers.ts @@ -2,7 +2,7 @@ import * as core from '@actions/core'; import CONST from '@github/libs/CONST'; import GithubUtils from '@github/libs/GithubUtils'; -import {isEmptyObject} from '@src/types/utils/EmptyObject'; +import {isEmptyObject} from '@github/libs/isEmptyObject'; const run = function (): Promise { const issueNumber = Number(core.getInput('ISSUE_NUMBER', {required: true})); diff --git a/.github/actions/javascript/checkDeployBlockers/index.js b/.github/actions/javascript/checkDeployBlockers/index.js index 3c066552b7f90..6c430c0e16450 100644 --- a/.github/actions/javascript/checkDeployBlockers/index.js +++ b/.github/actions/javascript/checkDeployBlockers/index.js @@ -11530,7 +11530,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); const core = __importStar(__nccwpck_require__(2186)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); const GithubUtils_1 = __importDefault(__nccwpck_require__(9296)); -const EmptyObject_1 = __nccwpck_require__(8227); +const isEmptyObject_1 = __nccwpck_require__(6497); const run = function () { const issueNumber = Number(core.getInput('ISSUE_NUMBER', { required: true })); console.log(`Fetching issue number ${issueNumber}`); @@ -11564,7 +11564,7 @@ const run = function () { return; } // If there are no comments, then we have not yet gotten the :shipit: seal of approval. - if ((0, EmptyObject_1.isEmptyObject)(comments.data)) { + if ((0, isEmptyObject_1.isEmptyObject)(comments.data)) { console.log('No comments found on issue'); core.setOutput('HAS_DEPLOY_BLOCKERS', true); return; @@ -11679,9 +11679,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -11872,7 +11872,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -11902,7 +11902,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12184,35 +12184,35 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 8227: +/***/ 7532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports.isEmptyObject = isEmptyObject; +exports["default"] = arrayDifference; /***/ }), -/***/ 7034: +/***/ 6497: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; } -exports["default"] = arrayDifference; +exports.isEmptyObject = isEmptyObject; /***/ }), diff --git a/.github/actions/javascript/createOrUpdateStagingDeploy/index.js b/.github/actions/javascript/createOrUpdateStagingDeploy/index.js index 4a91f265e5ec3..d27c099a1b48c 100644 --- a/.github/actions/javascript/createOrUpdateStagingDeploy/index.js +++ b/.github/actions/javascript/createOrUpdateStagingDeploy/index.js @@ -11983,9 +11983,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -12176,7 +12176,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -12206,7 +12206,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12486,6 +12486,39 @@ class GithubUtils { exports["default"] = GithubUtils; +/***/ }), + +/***/ 7532: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +} +exports["default"] = arrayDifference; + + +/***/ }), + +/***/ 6497: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; +} +exports.isEmptyObject = isEmptyObject; + + /***/ }), /***/ 3902: @@ -12624,39 +12657,6 @@ function getPreviousVersion(currentVersion, level) { exports.getPreviousVersion = getPreviousVersion; -/***/ }), - -/***/ 8227: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; -} -exports.isEmptyObject = isEmptyObject; - - -/***/ }), - -/***/ 7034: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); -} -exports["default"] = arrayDifference; - - /***/ }), /***/ 9491: diff --git a/.github/actions/javascript/getArtifactInfo/index.js b/.github/actions/javascript/getArtifactInfo/index.js index 7b060965099bd..4fc9dd12c996f 100644 --- a/.github/actions/javascript/getArtifactInfo/index.js +++ b/.github/actions/javascript/getArtifactInfo/index.js @@ -11640,9 +11640,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -11833,7 +11833,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -11863,7 +11863,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12145,35 +12145,35 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 8227: +/***/ 7532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports.isEmptyObject = isEmptyObject; +exports["default"] = arrayDifference; /***/ }), -/***/ 7034: +/***/ 6497: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; } -exports["default"] = arrayDifference; +exports.isEmptyObject = isEmptyObject; /***/ }), diff --git a/.github/actions/javascript/getDeployPullRequestList/index.js b/.github/actions/javascript/getDeployPullRequestList/index.js index 606c299062579..3ba97e2e53a0e 100644 --- a/.github/actions/javascript/getDeployPullRequestList/index.js +++ b/.github/actions/javascript/getDeployPullRequestList/index.js @@ -12020,9 +12020,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -12213,7 +12213,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -12243,7 +12243,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12523,6 +12523,39 @@ class GithubUtils { exports["default"] = GithubUtils; +/***/ }), + +/***/ 7532: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +} +exports["default"] = arrayDifference; + + +/***/ }), + +/***/ 6497: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; +} +exports.isEmptyObject = isEmptyObject; + + /***/ }), /***/ 3902: @@ -12661,39 +12694,6 @@ function getPreviousVersion(currentVersion, level) { exports.getPreviousVersion = getPreviousVersion; -/***/ }), - -/***/ 8227: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; -} -exports.isEmptyObject = isEmptyObject; - - -/***/ }), - -/***/ 7034: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); -} -exports["default"] = arrayDifference; - - /***/ }), /***/ 9491: diff --git a/.github/actions/javascript/getPreviousVersion/index.js b/.github/actions/javascript/getPreviousVersion/index.js index fd865d2e5cfe7..be3d91f6f61c0 100644 --- a/.github/actions/javascript/getPreviousVersion/index.js +++ b/.github/actions/javascript/getPreviousVersion/index.js @@ -11875,9 +11875,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -12068,7 +12068,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -12098,7 +12098,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12378,6 +12378,39 @@ class GithubUtils { exports["default"] = GithubUtils; +/***/ }), + +/***/ 7532: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +} +exports["default"] = arrayDifference; + + +/***/ }), + +/***/ 6497: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; +} +exports.isEmptyObject = isEmptyObject; + + /***/ }), /***/ 3902: @@ -12516,39 +12549,6 @@ function getPreviousVersion(currentVersion, level) { exports.getPreviousVersion = getPreviousVersion; -/***/ }), - -/***/ 8227: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; -} -exports.isEmptyObject = isEmptyObject; - - -/***/ }), - -/***/ 7034: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); -} -exports["default"] = arrayDifference; - - /***/ }), /***/ 9491: diff --git a/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.ts b/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.ts index 8e285389e3f7e..ae2871fd96698 100644 --- a/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.ts +++ b/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.ts @@ -2,7 +2,7 @@ import * as core from '@actions/core'; import {getJSONInput} from '@github/libs/ActionUtils'; import CONST from '@github/libs/CONST'; import GithubUtils from '@github/libs/GithubUtils'; -import {isEmptyObject} from '@src/types/utils/EmptyObject'; +import {isEmptyObject} from '@github/libs/isEmptyObject'; type PullRequest = Awaited>['data']; diff --git a/.github/actions/javascript/getPullRequestDetails/index.js b/.github/actions/javascript/getPullRequestDetails/index.js index 8a3040210cd22..070e7f85f5dad 100644 --- a/.github/actions/javascript/getPullRequestDetails/index.js +++ b/.github/actions/javascript/getPullRequestDetails/index.js @@ -11530,7 +11530,7 @@ const core = __importStar(__nccwpck_require__(2186)); const ActionUtils_1 = __nccwpck_require__(6981); const CONST_1 = __importDefault(__nccwpck_require__(9873)); const GithubUtils_1 = __importDefault(__nccwpck_require__(9296)); -const EmptyObject_1 = __nccwpck_require__(8227); +const isEmptyObject_1 = __nccwpck_require__(6497); const DEFAULT_PAYLOAD = { owner: CONST_1.default.GITHUB_OWNER, repo: CONST_1.default.APP_REPO, @@ -11573,7 +11573,7 @@ GithubUtils_1.default.octokit.pulls pull_number: pullRequestNumber, }) .then(({ data: PR }) => { - if (!(0, EmptyObject_1.isEmptyObject)(PR)) { + if (!(0, isEmptyObject_1.isEmptyObject)(PR)) { console.log(`Found matching pull request: ${PR.html_url}`); console.log(`Pull request details: ${JSON.stringify(PR)}}`); core.setOutput('MERGE_COMMIT_SHA', PR.merge_commit_sha); @@ -11743,9 +11743,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -11936,7 +11936,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -11966,7 +11966,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12248,35 +12248,35 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 8227: +/***/ 7532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports.isEmptyObject = isEmptyObject; +exports["default"] = arrayDifference; /***/ }), -/***/ 7034: +/***/ 6497: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; } -exports["default"] = arrayDifference; +exports.isEmptyObject = isEmptyObject; /***/ }), diff --git a/.github/actions/javascript/isStagingDeployLocked/index.js b/.github/actions/javascript/isStagingDeployLocked/index.js index b78a120495c55..27e091bc2ca2b 100644 --- a/.github/actions/javascript/isStagingDeployLocked/index.js +++ b/.github/actions/javascript/isStagingDeployLocked/index.js @@ -11640,9 +11640,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -11833,7 +11833,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -11863,7 +11863,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12145,35 +12145,35 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 8227: +/***/ 7532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports.isEmptyObject = isEmptyObject; +exports["default"] = arrayDifference; /***/ }), -/***/ 7034: +/***/ 6497: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; } -exports["default"] = arrayDifference; +exports.isEmptyObject = isEmptyObject; /***/ }), diff --git a/.github/actions/javascript/markPullRequestsAsDeployed/index.js b/.github/actions/javascript/markPullRequestsAsDeployed/index.js index bde2438bbb804..9f3e316793ece 100644 --- a/.github/actions/javascript/markPullRequestsAsDeployed/index.js +++ b/.github/actions/javascript/markPullRequestsAsDeployed/index.js @@ -13037,9 +13037,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -13230,7 +13230,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -13260,7 +13260,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -13542,35 +13542,35 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 8227: +/***/ 7532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports.isEmptyObject = isEmptyObject; +exports["default"] = arrayDifference; /***/ }), -/***/ 7034: +/***/ 6497: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; } -exports["default"] = arrayDifference; +exports.isEmptyObject = isEmptyObject; /***/ }), diff --git a/.github/actions/javascript/postTestBuildComment/index.js b/.github/actions/javascript/postTestBuildComment/index.js index 30b0a8f1521b0..b311954900b59 100644 --- a/.github/actions/javascript/postTestBuildComment/index.js +++ b/.github/actions/javascript/postTestBuildComment/index.js @@ -11770,9 +11770,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -11963,7 +11963,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -11993,7 +11993,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12275,35 +12275,35 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 8227: +/***/ 7532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports.isEmptyObject = isEmptyObject; +exports["default"] = arrayDifference; /***/ }), -/***/ 7034: +/***/ 6497: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; } -exports["default"] = arrayDifference; +exports.isEmptyObject = isEmptyObject; /***/ }), diff --git a/.github/actions/javascript/proposalPoliceComment/index.js b/.github/actions/javascript/proposalPoliceComment/index.js index 3ed98f90c97e8..a6b8db1d71498 100644 --- a/.github/actions/javascript/proposalPoliceComment/index.js +++ b/.github/actions/javascript/proposalPoliceComment/index.js @@ -11727,9 +11727,9 @@ const utils_1 = __nccwpck_require__(73030); const plugin_paginate_rest_1 = __nccwpck_require__(64193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(10537); -const EmptyObject_1 = __nccwpck_require__(58227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(97034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(17532)); const CONST_1 = __importDefault(__nccwpck_require__(29873)); +const isEmptyObject_1 = __nccwpck_require__(86497); class GithubUtils { static internalOctokit; /** @@ -11920,7 +11920,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -11950,7 +11950,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12230,6 +12230,39 @@ class GithubUtils { exports["default"] = GithubUtils; +/***/ }), + +/***/ 17532: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +} +exports["default"] = arrayDifference; + + +/***/ }), + +/***/ 86497: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; +} +exports.isEmptyObject = isEmptyObject; + + /***/ }), /***/ 40136: @@ -12449,39 +12482,6 @@ async function retryWithBackoff(fn, { maxRetries = 5, initialDelayMs = 1000, fac exports["default"] = retryWithBackoff; -/***/ }), - -/***/ 58227: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; -} -exports.isEmptyObject = isEmptyObject; - - -/***/ }), - -/***/ 97034: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); -} -exports["default"] = arrayDifference; - - /***/ }), /***/ 39491: diff --git a/.github/actions/javascript/reopenIssueWithComment/index.js b/.github/actions/javascript/reopenIssueWithComment/index.js index 63a8f457c2591..b41c5b816e402 100644 --- a/.github/actions/javascript/reopenIssueWithComment/index.js +++ b/.github/actions/javascript/reopenIssueWithComment/index.js @@ -11650,9 +11650,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -11843,7 +11843,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -11873,7 +11873,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12155,35 +12155,35 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 8227: +/***/ 7532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports.isEmptyObject = isEmptyObject; +exports["default"] = arrayDifference; /***/ }), -/***/ 7034: +/***/ 6497: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; } -exports["default"] = arrayDifference; +exports.isEmptyObject = isEmptyObject; /***/ }), diff --git a/.github/actions/javascript/reviewerChecklist/index.js b/.github/actions/javascript/reviewerChecklist/index.js index 66cf4eccfd8b2..013610194bd03 100644 --- a/.github/actions/javascript/reviewerChecklist/index.js +++ b/.github/actions/javascript/reviewerChecklist/index.js @@ -11742,9 +11742,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -11935,7 +11935,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -11965,7 +11965,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12247,35 +12247,35 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 8227: +/***/ 7532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports.isEmptyObject = isEmptyObject; +exports["default"] = arrayDifference; /***/ }), -/***/ 7034: +/***/ 6497: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; } -exports["default"] = arrayDifference; +exports.isEmptyObject = isEmptyObject; /***/ }), diff --git a/.github/actions/javascript/verifySignedCommits/index.js b/.github/actions/javascript/verifySignedCommits/index.js index 0e90a96fc5fe8..78d668e7a2887 100644 --- a/.github/actions/javascript/verifySignedCommits/index.js +++ b/.github/actions/javascript/verifySignedCommits/index.js @@ -11682,9 +11682,9 @@ const utils_1 = __nccwpck_require__(3030); const plugin_paginate_rest_1 = __nccwpck_require__(4193); const plugin_throttling_1 = __nccwpck_require__(9968); const request_error_1 = __nccwpck_require__(537); -const EmptyObject_1 = __nccwpck_require__(8227); -const arrayDifference_1 = __importDefault(__nccwpck_require__(7034)); +const arrayDifference_1 = __importDefault(__nccwpck_require__(7532)); const CONST_1 = __importDefault(__nccwpck_require__(9873)); +const isEmptyObject_1 = __nccwpck_require__(6497); class GithubUtils { static internalOctokit; /** @@ -11875,7 +11875,7 @@ class GithubUtils { static generateStagingDeployCashBodyAndAssignees(tag, PRList, verifiedPRList = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) { return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr))) .then((data) => { - const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, EmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; + const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : []; return Promise.all(internalQAPRs.map((pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({ url: pr.html_url, mergerLogin })))).then((results) => { // The format of this map is following: // { @@ -11905,7 +11905,7 @@ class GithubUtils { issueBody += '\r\n\r\n'; } // Internal QA PR list - if (!(0, EmptyObject_1.isEmptyObject)(internalQAPRMap)) { + if (!(0, isEmptyObject_1.isEmptyObject)(internalQAPRMap)) { console.log('Found the following verified Internal QA PRs:', resolvedInternalQAPRs); issueBody += '**Internal QA:**\r\n'; Object.keys(internalQAPRMap).forEach((URL) => { @@ -12187,35 +12187,35 @@ exports["default"] = GithubUtils; /***/ }), -/***/ 8227: +/***/ 7532: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isEmptyObject = void 0; -function isEmptyObject(obj) { - return Object.keys(obj ?? {}).length === 0; +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1, array2) { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); } -exports.isEmptyObject = isEmptyObject; +exports["default"] = arrayDifference; /***/ }), -/***/ 7034: +/***/ 6497: /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. - * It returns an array of items that are in the first array but not in the second array. - */ -function arrayDifference(array1, array2) { - return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +exports.isEmptyObject = void 0; +function isEmptyObject(obj) { + return Object.keys(obj ?? {}).length === 0; } -exports["default"] = arrayDifference; +exports.isEmptyObject = isEmptyObject; /***/ }), diff --git a/.github/libs/GithubUtils.ts b/.github/libs/GithubUtils.ts index 11bbacecca4a3..0787bf008c05c 100644 --- a/.github/libs/GithubUtils.ts +++ b/.github/libs/GithubUtils.ts @@ -11,9 +11,9 @@ import type {RestEndpointMethods} from '@octokit/plugin-rest-endpoint-methods/di import type {Api} from '@octokit/plugin-rest-endpoint-methods/dist-types/types'; import {throttling} from '@octokit/plugin-throttling'; import {RequestError} from '@octokit/request-error'; -import {isEmptyObject} from '@src/types/utils/EmptyObject'; -import arrayDifference from '@src/utils/arrayDifference'; +import arrayDifference from './arrayDifference'; import CONST from './CONST'; +import {isEmptyObject} from './isEmptyObject'; type OctokitOptions = {method: string; url: string; request: {retryCount: number}}; diff --git a/.github/libs/arrayDifference.ts b/.github/libs/arrayDifference.ts new file mode 100644 index 0000000000000..d011f8d5067b8 --- /dev/null +++ b/.github/libs/arrayDifference.ts @@ -0,0 +1,9 @@ +/** + * This function is an equivalent of _.difference, it takes two arrays and returns the difference between them. + * It returns an array of items that are in the first array but not in the second array. + */ +function arrayDifference(array1: TItem[], array2: TItem[]): TItem[] { + return [array1, array2].reduce((a, b) => a.filter((c) => !b.includes(c))); +} + +export default arrayDifference; diff --git a/.github/libs/isEmptyObject.ts b/.github/libs/isEmptyObject.ts new file mode 100644 index 0000000000000..1d2a2ed6baecc --- /dev/null +++ b/.github/libs/isEmptyObject.ts @@ -0,0 +1,10 @@ +type EmptyObject = Record; + +type EmptyValue = EmptyObject | null | undefined; + +function isEmptyObject(obj: T | EmptyValue): obj is EmptyValue { + return Object.keys(obj ?? {}).length === 0; +} + +export {isEmptyObject}; +export type {EmptyObject};