@backstage/integration 1.9.0-next.1 → 1.9.1-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
@@ -1403,6 +1403,10 @@ function readGiteaConfig(config) {
1403
1403
  throw new Error(
1404
1404
  `Invalid Gitea integration config, '${host}' is not a valid host`
1405
1405
  );
1406
+ } else if (baseUrl && !isValidUrl(baseUrl)) {
1407
+ throw new Error(
1408
+ `Invalid Gitea integration config, '${baseUrl}' is not a valid baseUrl`
1409
+ );
1406
1410
  }
1407
1411
  if (baseUrl) {
1408
1412
  baseUrl = trimEnd(baseUrl, "/");