attlaz-client 1.46.0 → 1.46.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.
@@ -11,4 +11,5 @@ export declare class Adapter extends MetaDataWithIconAware {
11
11
  docs: string | null;
12
12
  website: string | null;
13
13
  static parse(rawAdapter: ApiRecord): Adapter;
14
+ static parseIcon(icon: any): string;
14
15
  }
@@ -18,11 +18,17 @@ export class Adapter extends MetaDataWithIconAware {
18
18
  adapter.longDescription = rawAdapter.long_description;
19
19
  adapter.capabilities = rawAdapter.capabilities;
20
20
  // adapter.icon = rawAdapter.icon as string;
21
- adapter.logo = rawAdapter.logo;
21
+ adapter.logo = Adapter.parseIcon(rawAdapter.logo);
22
22
  adapter.type = rawAdapter.type;
23
23
  adapter.categoryIds = rawAdapter.categories;
24
24
  adapter.docs = rawAdapter.docs;
25
25
  adapter.website = rawAdapter.website;
26
26
  return adapter;
27
27
  }
28
+ static parseIcon(icon) {
29
+ if (typeof icon === 'object' && 'url' in icon) {
30
+ return icon.url;
31
+ }
32
+ return icon;
33
+ }
28
34
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.46.0";
1
+ export declare const VERSION = "1.46.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.46.0";
1
+ export const VERSION = "1.46.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.46.0",
3
+ "version": "1.46.1",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -49,24 +49,24 @@
49
49
  "registry": "https://registry.npmjs.org"
50
50
  },
51
51
  "dependencies": {
52
- "axios": "^1.13.2",
52
+ "axios": "^1.13.6",
53
53
  "axios-oauth-client": "^2.2.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/jest": "^30.0.0",
57
- "@types/node": "^24.10.9",
57
+ "@types/node": "^24.10.15",
58
58
  "@typescript-eslint/eslint-plugin": "^8.1.0",
59
59
  "@typescript-eslint/parser": "^8.1.0",
60
- "dotenv": "^17.2.3",
61
- "eslint": "^9.39.2",
62
- "eslint-config-attlaz-base": "^1.5.1",
60
+ "dotenv": "^17.3.1",
61
+ "eslint": "^9.39.3",
62
+ "eslint-config-attlaz-base": "^1.5.2",
63
63
  "eslint-import-resolver-typescript": "^4.4.4",
64
64
  "eslint-plugin-import": "^2.32.0",
65
65
  "eslint-plugin-jsdoc": "^51.4.1",
66
66
  "eslint-plugin-prefer-arrow": "^1.2.3",
67
67
  "eslint-plugin-promise": "^7.2.1",
68
68
  "jest": "^30.2.0",
69
- "rimraf": "^6.1.2",
69
+ "rimraf": "^6.1.3",
70
70
  "rollup-plugin-commonjs": "^10.1.0",
71
71
  "rollup-plugin-node-resolve": "^5.2.0",
72
72
  "rollup-plugin-typescript": "^1.0.1",