@hahnpro/hpc-api 3.4.1 → 3.4.2

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.
@@ -2,7 +2,7 @@ import { AxiosRequestConfig } from 'axios';
2
2
  import EventSource from 'eventsource';
3
3
  export declare class HttpClient {
4
4
  private readonly baseURL;
5
- private readonly authbaseURL;
5
+ private readonly authBaseURL;
6
6
  private readonly realm;
7
7
  private readonly clientId;
8
8
  private readonly clientSecret;
@@ -15,7 +15,7 @@ export declare class HttpClient {
15
15
  listener: (event: MessageEvent) => void;
16
16
  errListener: (event: MessageEvent) => void;
17
17
  }>;
18
- constructor(baseURL: string, authbaseURL: string, realm: string, clientId: string, clientSecret: string);
18
+ constructor(baseURL: string, authBaseURL: string, realm: string, clientId: string, clientSecret: string);
19
19
  getQueueStats: () => {
20
20
  peak: number;
21
21
  pending: number;
@@ -9,9 +9,9 @@ const Queue_1 = require("./Queue");
9
9
  const crypto_1 = require("crypto");
10
10
  const TOKEN_EXPIRATION_BUFFER = 30;
11
11
  class HttpClient {
12
- constructor(baseURL, authbaseURL, realm, clientId, clientSecret) {
12
+ constructor(baseURL, authBaseURL, realm, clientId, clientSecret) {
13
13
  this.baseURL = baseURL;
14
- this.authbaseURL = authbaseURL;
14
+ this.authBaseURL = authBaseURL;
15
15
  this.realm = realm;
16
16
  this.clientId = clientId;
17
17
  this.clientSecret = clientSecret;
@@ -35,7 +35,7 @@ class HttpClient {
35
35
  this.getAccessToken = async () => {
36
36
  var _a;
37
37
  if (!((_a = this.client) === null || _a === void 0 ? void 0 : _a.issuer)) {
38
- const authIssuer = await openid_client_1.Issuer.discover(`${this.authbaseURL}/auth/realms/${this.realm}/`);
38
+ const authIssuer = await openid_client_1.Issuer.discover(`${this.authBaseURL}/realms/${this.realm}/`);
39
39
  this.client = await new authIssuer.Client({
40
40
  client_id: this.clientId,
41
41
  client_secret: this.clientSecret,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/hpc-api",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Module for easy access to the HahnPRO API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/eventsource": "^1.1.9",
37
- "axios-mock-adapter": "^1.21.1",
37
+ "axios-mock-adapter": "^1.21.2",
38
38
  "nock": "^13.2.9"
39
39
  },
40
40
  "engines": {