@hahnpro/hpc-api 4.0.0 → 4.0.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.
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const axios_1 = tslib_1.__importDefault(require("axios"));
6
6
  const eventsource_1 = tslib_1.__importDefault(require("eventsource"));
7
7
  const jose_1 = require("jose");
8
- const node_querystring_1 = require("node:querystring");
8
+ const querystring_1 = require("querystring");
9
9
  const uuid_1 = require("uuid");
10
10
  const Queue_1 = require("./Queue");
11
11
  const token_set_1 = require("./token-set");
@@ -117,7 +117,7 @@ class HttpClient {
117
117
  client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
118
118
  grant_type: 'client_credentials',
119
119
  };
120
- const authResponse = await this.authAxiosInstance.post(issuer.token_endpoint, (0, node_querystring_1.stringify)(opts), {
120
+ const authResponse = await this.authAxiosInstance.post(issuer.token_endpoint, (0, querystring_1.stringify)(opts), {
121
121
  headers: { Accept: 'application/json', 'Content-Type': 'application/x-www-form-urlencoded' },
122
122
  });
123
123
  if (((_b = authResponse === null || authResponse === void 0 ? void 0 : authResponse.data) === null || _b === void 0 ? void 0 : _b.access_token) && authResponse.data.expires_in) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/hpc-api",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Module for easy access to the HahnPRO API",
5
5
  "license": "MIT",
6
6
  "author": {