@hahnpro/hpc-api 5.2.3 → 5.2.5

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.
@@ -33,7 +33,7 @@ class HttpClient {
33
33
  .catch(reject);
34
34
  }));
35
35
  };
36
- this.getAccessToken = (forceRefresh = false) => tslib_1.__awaiter(this, void 0, void 0, function* () {
36
+ this.getAccessToken = (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (forceRefresh = false) {
37
37
  if (forceRefresh || !this.tokenSet || this.tokenSet.isExpired()) {
38
38
  return this.requestAccessToken();
39
39
  }
@@ -95,8 +95,8 @@ class HttpClient {
95
95
  });
96
96
  }
97
97
  requestAccessToken() {
98
- var _a, _b;
99
98
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
99
+ var _a, _b;
100
100
  const issuer = yield this.discoverIssuer(`${this.authBaseURL}/realms/${this.realm}`);
101
101
  const timestamp = Date.now() / 1000;
102
102
  const audience = [...new Set([issuer.issuer, issuer.token_endpoint].filter(Boolean))];
@@ -38,9 +38,9 @@ class DataMockService extends data_service_1.DataService {
38
38
  };
39
39
  return Promise.resolve(page);
40
40
  }
41
- getManyFiltered(filter, params = {}) {
42
- var _a;
43
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
41
+ getManyFiltered(filter_1) {
42
+ return tslib_1.__awaiter(this, arguments, void 0, function* (filter, params = {}) {
43
+ var _a;
44
44
  const paginated = yield this.getMany(params);
45
45
  const newData = paginated.docs.filter((doc) => Object.entries(filter).every(([filterKey, filterValue]) => {
46
46
  const docValue = doc[filterKey];
@@ -40,8 +40,8 @@ class FlowDeploymentMockService extends BaseService {
40
40
  });
41
41
  }
42
42
  resolveReferences(id, recursive, types) {
43
- var _a;
44
43
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
44
+ var _a;
45
45
  const depl = yield this.getOne(id);
46
46
  return (_a = depl.refs) !== null && _a !== void 0 ? _a : [];
47
47
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/hpc-api",
3
- "version": "5.2.3",
3
+ "version": "5.2.5",
4
4
  "description": "Module for easy access to the HahnPRO API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -24,18 +24,18 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "~1.6.2",
28
- "eventsource": "^2.0.2",
29
- "form-data": "^4.0.0",
30
- "jose": "^5.1.3",
31
- "jwt-decode": "^4.0.0",
32
- "p-queue": "^6.6.2",
33
- "ts-mixer": "^6.0.3",
34
- "uuid": "^9.0.1"
27
+ "axios": "1.6.8",
28
+ "eventsource": "2.0.2",
29
+ "form-data": "4.0.0",
30
+ "jose": "5.2.3",
31
+ "jwt-decode": "4.0.0",
32
+ "p-queue": "6.6.2",
33
+ "ts-mixer": "6.0.4",
34
+ "uuid": "9.0.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/eventsource": "1.1.15",
38
- "axios-mock-adapter": "^1.22.0"
38
+ "axios-mock-adapter": "1.22.0"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=v18"