@backstage/integration 1.6.0 → 1.6.1
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 +6 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -1038,9 +1038,12 @@ function getAuthenticationPrefix(config) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
function getGitilesAuthenticationUrl(config) {
|
|
1040
1040
|
const parsedUrl = new URL(config.gitilesBaseUrl);
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1041
|
+
parsedUrl.pathname = parsedUrl.pathname.replace(/\/?$/, "");
|
|
1042
|
+
parsedUrl.pathname = parsedUrl.pathname.replace(
|
|
1043
|
+
/\/([^\/]*)$/,
|
|
1044
|
+
`${getAuthenticationPrefix(config)}$1`
|
|
1045
|
+
);
|
|
1046
|
+
return parsedUrl.toString();
|
|
1044
1047
|
}
|
|
1045
1048
|
function getGerritBranchApiUrl(config, url) {
|
|
1046
1049
|
const { branch, project } = parseGerritGitilesUrl(config, url);
|