@backstage/integration 1.4.4 → 1.4.5-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1347,12 +1347,17 @@ class GithubAppCredentialsMux {
1347
1347
  )
1348
1348
  )
1349
1349
  );
1350
- const result = results.find((resultItem) => resultItem.credentials);
1350
+ const result = results.find(
1351
+ (resultItem) => {
1352
+ var _a;
1353
+ return (_a = resultItem.credentials) == null ? void 0 : _a.accessToken;
1354
+ }
1355
+ );
1351
1356
  if (result) {
1352
1357
  return result.credentials.accessToken;
1353
1358
  }
1354
1359
  const errors = results.map((r) => r.error);
1355
- const notNotFoundError = errors.find((err) => err.name !== "NotFoundError");
1360
+ const notNotFoundError = errors.find((err) => (err == null ? void 0 : err.name) !== "NotFoundError");
1356
1361
  if (notNotFoundError) {
1357
1362
  throw notNotFoundError;
1358
1363
  }