From 2c88b9c7207dc2b8217a38912ad8bb8e792809ea Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Fri, 8 Nov 2024 11:26:29 +0100 Subject: [PATCH 1/2] refactor: Use interface for consume --- packages/core/src/wot-impl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/wot-impl.ts b/packages/core/src/wot-impl.ts index 2228bad35..7d8782b42 100644 --- a/packages/core/src/wot-impl.ts +++ b/packages/core/src/wot-impl.ts @@ -28,7 +28,7 @@ import { inspect } from "util"; const { debug } = createLoggers("core", "wot-impl"); class ThingDiscoveryProcess implements WoT.ThingDiscoveryProcess { - constructor(private directory: ConsumedThing, public filter?: WoT.ThingFilter) { + constructor(private directory: WoT.ConsumedThing, public filter?: WoT.ThingFilter) { this.filter = filter; this.done = false; } @@ -101,7 +101,7 @@ export default class WoTImpl { } /** @inheritDoc */ - async consume(td: WoT.ThingDescription): Promise { + async consume(td: WoT.ThingDescription): Promise { try { const thing = parseTD(JSON.stringify(td), true); const newThing: ConsumedThing = new ConsumedThing(this.srv, thing as ThingModel); From bf9084cd4b2e1122411cab7919a2e39fef48b0aa Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Fri, 8 Nov 2024 11:41:46 +0100 Subject: [PATCH 2/2] chore: fix version consistency --- package-lock.json | 7 ++++--- packages/binding-file/package.json | 2 +- packages/binding-mbus/package.json | 2 +- packages/binding-netconf/package.json | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index f0eb81123..28dee3f05 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9972,6 +9972,7 @@ "version": "5.5.11", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.11.tgz", "integrity": "sha512-3bjO7UwWfA2CV7lmwYMBzj4fQ6Cq+ftHc2MvUe+WMS7wcdJ1LosDWmdjPQanYp2dBRj572p7PeU81JUxHKOcBA==", + "license": "Apache-2.0", "dependencies": { "symbol-observable": "1.0.1" }, @@ -12183,7 +12184,7 @@ "license": "EPL-2.0 OR W3C-20150513", "dependencies": { "@node-wot/core": "0.8.17", - "rxjs": "^5.5.11" + "rxjs": "5.5.11" } }, "packages/binding-http": { @@ -12243,7 +12244,7 @@ "dependencies": { "@node-wot/core": "0.8.17", "node-mbus": "^2.2.4", - "rxjs": "^5.5.11" + "rxjs": "5.5.11" } }, "packages/binding-modbus": { @@ -12276,7 +12277,7 @@ "@node-wot/core": "0.8.17", "case-1.5.3": "npm:case@^1.5.3", "node-netconf": "^1.1.2", - "rxjs": "^5.5.11", + "rxjs": "5.5.11", "url-parse": "^1.5.8" }, "devDependencies": { diff --git a/packages/binding-file/package.json b/packages/binding-file/package.json index f5d2d74ef..418ecb180 100644 --- a/packages/binding-file/package.json +++ b/packages/binding-file/package.json @@ -15,7 +15,7 @@ "types": "dist/file.d.ts", "dependencies": { "@node-wot/core": "0.8.17", - "rxjs": "^5.5.11" + "rxjs": "5.5.11" }, "scripts": { "build": "tsc -b", diff --git a/packages/binding-mbus/package.json b/packages/binding-mbus/package.json index caf3b10f2..390d7757d 100644 --- a/packages/binding-mbus/package.json +++ b/packages/binding-mbus/package.json @@ -16,7 +16,7 @@ "dependencies": { "@node-wot/core": "0.8.17", "node-mbus": "^2.2.4", - "rxjs": "^5.5.11" + "rxjs": "5.5.11" }, "scripts": { "build": "tsc -b", diff --git a/packages/binding-netconf/package.json b/packages/binding-netconf/package.json index d5ee0f01f..a7f73b2e7 100644 --- a/packages/binding-netconf/package.json +++ b/packages/binding-netconf/package.json @@ -17,7 +17,7 @@ "@node-wot/core": "0.8.17", "case-1.5.3": "npm:case@^1.5.3", "node-netconf": "^1.1.2", - "rxjs": "^5.5.11", + "rxjs": "5.5.11", "url-parse": "^1.5.8" }, "scripts": {