@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 +9 -0
- package/dist/index.cjs.js +7 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1347,12 +1347,17 @@ class GithubAppCredentialsMux {
|
|
|
1347
1347
|
)
|
|
1348
1348
|
)
|
|
1349
1349
|
);
|
|
1350
|
-
const result = results.find(
|
|
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
|
}
|