javascript-ampache 1.1.7 → 1.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-ampache",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "A JS library for the Ampache API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.m.js",
package/src/base.ts CHANGED
@@ -96,7 +96,7 @@ export abstract class Base {
96
96
 
97
97
  if (this.debug) {
98
98
  console.debug(
99
- "javascript-ampache query URL %c" + url + authString,
99
+ "javascript-ampache query URL %c" + url + this.useBearerToken ? "&auth=" + this.sessionKey : "",
100
100
  "color: black; font-style: italic; background-color: orange;padding: 2px",
101
101
  );
102
102
  }
@@ -133,7 +133,7 @@ export abstract class Base {
133
133
 
134
134
  if (this.debug) {
135
135
  console.debug(
136
- "javascript-ampache query URL %c" + url + "&auth=" + this.sessionKey,
136
+ "javascript-ampache query URL %c" + url + this.useBearerToken ? "&auth=" + this.sessionKey : "",
137
137
  "color: black; font-style: italic; background-color: orange;padding: 2px",
138
138
  );
139
139
  }