@nmshd/connector-tui 1.2.0 → 1.2.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.
@@ -46,10 +46,13 @@ export class ConnectorTUI extends ConnectorTUIBaseWithMixins {
46
46
  async showStartupMessage(connectorVersionInfo) {
47
47
  const jsonString = (await readFile(new URL("../package.json", import.meta.url))).toString();
48
48
  const packageJson = JSON.parse(jsonString);
49
+ const support = await this.connectorClient.monitoring.getSupport();
50
+ const baseUrl = support.configuration.transportLibrary?.baseUrl;
49
51
  console.log(`Welcome to the ${chalk.blue("Enmeshed V2 TUI")}!`);
50
52
  console.log(`TUI Version: ${chalk.yellow(packageJson.version)}`);
51
53
  console.log(`Connector version: ${chalk.yellow(connectorVersionInfo.version)}`);
52
54
  console.log(`Connector Address: ${chalk.yellow(this.connectorAddress)}`);
55
+ console.log(`Connector Backbone BaseURL: ${chalk.yellow(baseUrl)}`);
53
56
  console.log("");
54
57
  }
55
58
  }
@@ -74,10 +74,8 @@ export function AddShareRequestByTemplate(Base) {
74
74
  if (response.result.length > 0) {
75
75
  return response.result[0];
76
76
  }
77
- const createAttributeResponse = await this.connectorClient.attributes.createAttribute({
77
+ const createAttributeResponse = await this.connectorClient.attributes.createRepositoryAttribute({
78
78
  content: {
79
- "@type": "IdentityAttribute",
80
- owner: this.connectorAddress,
81
79
  value: {
82
80
  "@type": "DisplayName",
83
81
  value: displayName,
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@nmshd/connector-tui",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "repository": "github:nmshd/connector-tui",
5
5
  "license": "MIT",
6
6
  "author": "j&s-soft GmbH",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "bin": {
10
- "connector_tui": "dist/index.js"
10
+ "connector-tui": "dist/index.js",
11
+ "connector_tui": "dist/index.js",
12
+ "ctui": "dist/index.js"
11
13
  },
12
14
  "files": [
13
15
  "index.js",
@@ -21,36 +23,36 @@
21
23
  "lint:eslint": "eslint --ext .ts ./src",
22
24
  "lint:prettier": "prettier --check ./src",
23
25
  "start": "node --loader ts-node/esm src/index.ts",
24
- "watch": "node --watch --loader ts-node/esm src/index.ts",
25
- "test": "echo 'no test specified'"
26
+ "test": "echo 'no test specified'",
27
+ "watch": "node --watch --loader ts-node/esm src/index.ts"
26
28
  },
27
29
  "dependencies": {
28
- "@nmshd/connector-sdk": "^2.2.5",
30
+ "@nmshd/connector-sdk": "^4.1.0",
29
31
  "chalk": "^5.3.0",
30
- "dotenv": "^16.3.1",
32
+ "dotenv": "^16.4.5",
31
33
  "luxon": "^3.4.4",
32
34
  "prompts": "^2.4.2",
33
35
  "qrcode-terminal": "^0.12.0",
34
36
  "yargs": "^17.7.2"
35
37
  },
36
38
  "devDependencies": {
37
- "@js-soft/eslint-config-ts": "^1.6.5",
38
- "@js-soft/license-check": "^1.0.8",
39
- "@types/luxon": "^3.3.6",
40
- "@types/node": "^20.10.1",
39
+ "@js-soft/eslint-config-ts": "^1.6.6",
40
+ "@js-soft/license-check": "^1.0.9",
41
+ "@types/luxon": "^3.4.2",
42
+ "@types/node": "^20.11.25",
41
43
  "@types/prompts": "^2.4.9",
42
44
  "@types/qrcode-terminal": "^0.12.2",
43
45
  "@types/yargs": "^17.0.32",
44
- "eslint": "^8.54.0",
45
- "prettier": "^3.1.0",
46
- "ts-node": "^10.9.1",
47
- "typescript": "^5.3.2"
46
+ "eslint": "^8.57.0",
47
+ "prettier": "^3.2.5",
48
+ "ts-node": "^10.9.2",
49
+ "typescript": "^5.4.2"
50
+ },
51
+ "engines": {
52
+ "node": ">=19.0.0"
48
53
  },
49
54
  "publishConfig": {
50
55
  "access": "public",
51
56
  "provenance": true
52
- },
53
- "engines": {
54
- "node": ">=19.0.0"
55
57
  }
56
58
  }