@@ -58316,6 +58316,7 @@ exports.XcodeProject = XcodeProject;
5831658316
5831758317Object.defineProperty(exports, "__esModule", ({ value: true }));
5831858318exports.log = log;
58319+ exports.DeepEqual = DeepEqual;
5831958320const core = __nccwpck_require__(2186);
5832058321function log(message, type = 'info') {
5832158322 if (type == 'info' && !core.isDebug()) {
@@ -58345,6 +58346,36 @@ function log(message, type = 'info') {
5834558346 }
5834658347 }
5834758348}
58349+ function DeepEqual(a, b) {
58350+ if (a === b)
58351+ return true;
58352+ if (typeof a !== typeof b)
58353+ return false;
58354+ if (typeof a !== 'object' || a === null || b === null)
58355+ return false;
58356+ if (Array.isArray(a) !== Array.isArray(b))
58357+ return false;
58358+ if (Array.isArray(a)) {
58359+ if (a.length !== b.length)
58360+ return false;
58361+ for (let i = 0; i < a.length; i++) {
58362+ if (!DeepEqual(a[i], b[i]))
58363+ return false;
58364+ }
58365+ return true;
58366+ }
58367+ const keysA = Object.keys(a);
58368+ const keysB = Object.keys(b);
58369+ if (keysA.length !== keysB.length)
58370+ return false;
58371+ for (const key of keysA) {
58372+ if (!keysB.includes(key))
58373+ return false;
58374+ if (!DeepEqual(a[key], b[key]))
58375+ return false;
58376+ }
58377+ return true;
58378+ }
5834858379
5834958380
5835058381/***/ }),
@@ -58966,7 +58997,7 @@ async function signMacOSAppBundle(projectRef) {
5896658997 const expectedEntitlementsContent = await fs.promises.readFile(projectRef.entitlementsPath, 'utf8');
5896758998 const expectedEntitlements = plist.parse(expectedEntitlementsContent);
5896858999 const signedEntitlements = plist.parse(entitlementsOutput);
58969- if (JSON.stringify(expectedEntitlements) !== JSON.stringify( signedEntitlements)) {
59000+ if (!(0, utilities_1.DeepEqual)(expectedEntitlements, signedEntitlements)) {
5897059001 throw new Error('Signed entitlements do not match the expected entitlements!');
5897159002 }
5897259003 }
0 commit comments