@backstage/integration 1.3.1-next.0 → 1.3.1-next.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/dist/index.esm.js CHANGED
@@ -807,8 +807,7 @@ function getBitbucketServerRequestOptions(config) {
807
807
  const headers = {};
808
808
  if (config.token) {
809
809
  headers.Authorization = `Bearer ${config.token}`;
810
- }
811
- if (config.username && config.password) {
810
+ } else if (config.username && config.password) {
812
811
  const buffer = Buffer.from(`${config.username}:${config.password}`, "utf8");
813
812
  headers.Authorization = `Basic ${buffer.toString("base64")}`;
814
813
  }