@nmshd/connector-tui 2.13.2 → 2.13.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.
@@ -89,20 +89,10 @@ export function AddShareRequestByTemplate(Base) {
89
89
  await this.createQRCodeForRelationshipTemplate(onNewRelationship, onExistingRelationship, name, passwordProtection);
90
90
  }
91
91
  async getOrCreateConnectorDisplayName(displayName) {
92
- const response = await this.connectorClient.attributes.getValidAttributes({
93
- content: {
94
- owner: this.connectorAddress,
95
- value: {
96
- "@type": "DisplayName",
97
- },
98
- },
99
- shareInfo: {
100
- peer: "!",
101
- },
102
- });
103
- if (response.result.length > 0) {
104
- return response.result[0];
105
- }
92
+ const response = await this.connectorClient.attributes.getOwnRepositoryAttributes({ "content.value.@type": "DisplayName" });
93
+ const displayNameWithValue = response.result.find((attr) => attr.content.value["@type"] === "DisplayName" && attr.content.value.value === displayName);
94
+ if (displayNameWithValue)
95
+ return displayNameWithValue;
106
96
  const createAttributeResponse = await this.connectorClient.attributes.createRepositoryAttribute({
107
97
  content: {
108
98
  value: {
package/package.json CHANGED
@@ -28,34 +28,34 @@
28
28
  "watch": "node --watch --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\"));' src/run.ts"
29
29
  },
30
30
  "dependencies": {
31
- "@nmshd/connector-sdk": "^6.35.0",
32
- "axios": "^1.10.0",
33
- "chalk": "^5.4.1",
34
- "dotenv": "^17.2.0",
31
+ "@nmshd/connector-sdk": "^6.36.2",
32
+ "axios": "^1.11.0",
33
+ "chalk": "^5.5.0",
34
+ "dotenv": "^17.2.1",
35
35
  "luxon": "^3.7.1",
36
36
  "prompts": "^2.4.2",
37
37
  "qrcode-terminal": "^0.12.0",
38
38
  "yargs": "^18.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@js-soft/eslint-config-ts": "^2.0.1",
41
+ "@js-soft/eslint-config-ts": "^2.0.3",
42
42
  "@js-soft/license-check": "^1.0.9",
43
- "@types/luxon": "^3.6.2",
44
- "@types/node": "^22.16.4",
43
+ "@types/luxon": "^3.7.1",
44
+ "@types/node": "^24.2.0",
45
45
  "@types/prompts": "^2.4.9",
46
46
  "@types/qrcode-terminal": "^0.12.2",
47
47
  "@types/yargs": "^17.0.33",
48
- "eslint": "^9.31.0",
48
+ "eslint": "^9.32.0",
49
49
  "prettier": "^3.6.2",
50
50
  "ts-node": "^10.9.2",
51
- "typescript": "^5.8.3"
51
+ "typescript": "^5.9.2"
52
52
  },
53
53
  "engines": {
54
- "node": ">=22.17.1"
54
+ "node": ">=22.18.0"
55
55
  },
56
56
  "publishConfig": {
57
57
  "access": "public",
58
58
  "provenance": true
59
59
  },
60
- "version": "2.13.2"
60
+ "version": "2.13.3"
61
61
  }