attlaz-client 1.17.1 → 1.17.3

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.
@@ -43,6 +43,9 @@ export class QueryString {
43
43
  }
44
44
  output.push(parameter.parameter + '=' + value);
45
45
  }
46
+ if (this.command.includes('?')) {
47
+ return this.command + '&' + output.join('&');
48
+ }
46
49
  return this.command + '?' + output.join('&');
47
50
  }
48
51
  }
@@ -23,7 +23,7 @@ export declare class OAuthClient {
23
23
  enableDebug(): void;
24
24
  disableDebug(): void;
25
25
  isDebugEnabled(): boolean;
26
- getTokenFlowUrl(options?: QueryString | null): string;
26
+ getAuthorizationUrl(options?: QueryString | null): string;
27
27
  getDefaultHeaders(): Headers;
28
28
  private isNodeEnvironment;
29
29
  private tokenToOauthClientToken;
@@ -171,11 +171,11 @@ export class OAuthClient {
171
171
  isDebugEnabled() {
172
172
  return this.debug;
173
173
  }
174
- getTokenFlowUrl(options = null) {
174
+ getAuthorizationUrl(options = null) {
175
175
  if (options === null) {
176
176
  options = new QueryString();
177
177
  }
178
- options.setCommand(this.getApiEndpointUrl(this.options.accessTokenUri));
178
+ options.setCommand(this.getApiEndpointUrl(this.options.authorizationUri));
179
179
  return options.build();
180
180
  }
181
181
  getDefaultHeaders() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.17.1",
3
+ "version": "1.17.3",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",