@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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @backstage/integration
2
2
 
3
+ ## 1.9.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/errors@1.2.4-next.0
9
+ - @backstage/config@1.1.2-next.0
10
+
11
+ ## 1.9.0
12
+
13
+ ### Minor Changes
14
+
15
+ - e27b7f3: Fix rate limit detection by looking for HTTP status code 429 and updating the header `x-ratelimit-remaining` to look for in case of a 403 code is returned
16
+
17
+ ### Patch Changes
18
+
19
+ - 6d898f7: All single-line secrets read from config will now have both leading and trailing whitespace trimmed. This is done to ensure that the secrets are always valid HTTP header values, since many fetch implementations will include the header value itself when an error is thrown due to invalid header values.
20
+ - 1cae748: Updated dependency `git-url-parse` to `^14.0.0`.
21
+ - 2d0e7cd: Validate if the `baseUrl` is a valid URL
22
+ - Updated dependencies
23
+ - @backstage/config@1.1.1
24
+ - @backstage/errors@1.2.3
25
+
3
26
  ## 1.9.0-next.1
4
27
 
5
28
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -1412,6 +1412,10 @@ function readGiteaConfig(config) {
1412
1412
  throw new Error(
1413
1413
  `Invalid Gitea integration config, '${host}' is not a valid host`
1414
1414
  );
1415
+ } else if (baseUrl && !isValidUrl(baseUrl)) {
1416
+ throw new Error(
1417
+ `Invalid Gitea integration config, '${baseUrl}' is not a valid baseUrl`
1418
+ );
1415
1419
  }
1416
1420
  if (baseUrl) {
1417
1421
  baseUrl = lodash.trimEnd(baseUrl, "/");