diff --git a/README.md b/README.md index 9634c7495..324d4454c 100644 --- a/README.md +++ b/README.md @@ -90,12 +90,6 @@ npm i @node-wot/core @node-wot/binding-http --save #### Browser To use node-wot as a browser-side JavaScript Library, the browser needs to support ECMAScript 2015. -Supported browsers include: - -- Microsoft Edge 15 and later -- Firefox 54 and later -- Chrome 58 and later -- Safari 10 and later Using a browser with only ES5 support (e.g., IE 11) might be possible if you add polyfills. If you want to use node-wot as a library in your browser application, you can install the `@node-wot/browser-bundle` as following: 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-http/README.md b/packages/binding-http/README.md index 750a20168..b87a274d8 100644 --- a/packages/binding-http/README.md +++ b/packages/binding-http/README.md @@ -356,11 +356,11 @@ servient.start().then(async (WoT) => { | subscribeevent | Y | Y | | unsubscribeevent | ? | ? | -| SubProtocols | HTTP Producer | HTTP Consumer | -| :----------- | :-----------: | :-----------: | -| longpoll | Y | Y | -| sse | Y | Y | -| websub | N | N | +| SubProtocols | HTTP Producer | HTTP Consumer | +| :----------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----------: | :-----------: | +| longpoll | Y | Y | +| sse
DetailsNote: `contentType` should target payload in the data field (e.g., `application/json` if sending JSON etc.)
| N | Y | +| websub | N | N | | Sec. Schemes | HTTP Producer | HTTP Consumer | | :----------- | :-----------: | :-----------: | 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": { diff --git a/packages/core/src/wot-impl.ts b/packages/core/src/wot-impl.ts index c27bb96ce..bd0af3ac8 100644 --- a/packages/core/src/wot-impl.ts +++ b/packages/core/src/wot-impl.ts @@ -28,6 +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 @@ -104,7 +105,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);