@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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @backstage/integration
2
2
 
3
+ ## 1.4.5-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - b026275bcc8: Fixed a bug where the wrong credentials would be selected when using multiple GitHub app integrations.
8
+ - Updated dependencies
9
+ - @backstage/config@1.0.7
10
+ - @backstage/errors@1.1.5
11
+
3
12
  ## 1.4.4
4
13
 
5
14
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -1356,12 +1356,17 @@ class GithubAppCredentialsMux {
1356
1356
  )
1357
1357
  )
1358
1358
  );
1359
- const result = results.find((resultItem) => resultItem.credentials);
1359
+ const result = results.find(
1360
+ (resultItem) => {
1361
+ var _a;
1362
+ return (_a = resultItem.credentials) == null ? void 0 : _a.accessToken;
1363
+ }
1364
+ );
1360
1365
  if (result) {
1361
1366
  return result.credentials.accessToken;
1362
1367
  }
1363
1368
  const errors = results.map((r) => r.error);
1364
- const notNotFoundError = errors.find((err) => err.name !== "NotFoundError");
1369
+ const notNotFoundError = errors.find((err) => (err == null ? void 0 : err.name) !== "NotFoundError");
1365
1370
  if (notNotFoundError) {
1366
1371
  throw notNotFoundError;
1367
1372
  }