@nmshd/connector-tui 0.1.0 → 0.1.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.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > A terminal user interface for Demos.
4
4
  >
5
- > Showcase how to integrate Enmeshed and use the SDK.
5
+ > Showcase how to integrate Enmeshed and use the TypeScript Connector SDK.
6
6
  >
7
7
  > This TUI only works with Enmeshed v2 (Connector version 3.0.0+)
8
8
 
@@ -34,6 +34,9 @@ export class ConnectorTUI extends ConnectorTUIBaseWithMixins {
34
34
  }
35
35
  async checkConnectorVersion() {
36
36
  const connectorVersionInfo = await this.connectorClient.monitoring.getVersion();
37
+ // allow connector in debugging mode to be used
38
+ if (connectorVersionInfo.version === "{{version}}")
39
+ return connectorVersionInfo;
37
40
  if (!connectorVersionInfo.version.startsWith("3.")) {
38
41
  console.log(`This TUI is made for Enmeshed V2 connectors (starting with version 3.0.0 of the connector). Current version: ${connectorVersionInfo.version}`);
39
42
  return;
@@ -19,7 +19,7 @@ export function AddShareRequestByTemplate(Base) {
19
19
  {
20
20
  "@type": "ShareAttributeRequestItem",
21
21
  mustBeAccepted: true,
22
- attribute: { ...displayName.content, owner: "" },
22
+ attribute: displayName.content,
23
23
  sourceAttributeId: displayName.id,
24
24
  },
25
25
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nmshd/connector-tui",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "repository": "github:nmshd/connector-tui",
5
5
  "license": "MIT",
6
6
  "author": "j&s-soft GmbH",
@@ -24,26 +24,26 @@
24
24
  "test": "echo 'no test specified'"
25
25
  },
26
26
  "dependencies": {
27
- "@nmshd/connector-sdk": "^2.1.1",
28
- "chalk": "^5.1.2",
27
+ "@nmshd/connector-sdk": "^2.1.4",
28
+ "chalk": "^5.2.0",
29
29
  "dotenv": "^16.0.3",
30
- "luxon": "^3.1.1",
30
+ "luxon": "^3.2.1",
31
31
  "prompts": "^2.4.2",
32
32
  "qrcode-terminal": "^0.12.0",
33
33
  "yargs": "^17.6.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@js-soft/eslint-config-ts": "^1.6.1",
36
+ "@js-soft/eslint-config-ts": "^1.6.2",
37
37
  "@js-soft/license-check": "^1.0.6",
38
- "@types/luxon": "^3.1.0",
39
- "@types/node": "^18.11.10",
40
- "@types/prompts": "^2.4.1",
38
+ "@types/luxon": "^3.2.0",
39
+ "@types/node": "^18.11.18",
40
+ "@types/prompts": "^2.4.2",
41
41
  "@types/qrcode-terminal": "^0.12.0",
42
- "@types/yargs": "^17.0.15",
43
- "eslint": "^8.29.0",
44
- "prettier": "^2.8.0",
42
+ "@types/yargs": "^17.0.20",
43
+ "eslint": "^8.33.0",
44
+ "prettier": "^2.8.3",
45
45
  "ts-node": "^10.9.1",
46
- "typescript": "^4.9.3"
46
+ "typescript": "^4.9.4"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"