Skip to content

Commit

Permalink
Merge branch 'master' into fix-prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
relu91 authored Dec 13, 2024
2 parents eb55f44 + 07f764c commit c81ee88
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 18 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/binding-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions packages/binding-http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <details><summary>Details</summary>Note: `contentType` should target payload in the data field (e.g., `application/json` if sending JSON etc.)</details> | N | Y |
| websub | N | N |

| Sec. Schemes | HTTP Producer | HTTP Consumer |
| :----------- | :-----------: | :-----------: |
Expand Down
2 changes: 1 addition & 1 deletion packages/binding-mbus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/binding-netconf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/wot-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -104,7 +105,7 @@ export default class WoTImpl {
}

/** @inheritDoc */
async consume(td: WoT.ThingDescription): Promise<ConsumedThing> {
async consume(td: WoT.ThingDescription): Promise<WoT.ConsumedThing> {
try {
const thing = parseTD(JSON.stringify(td), true);
const newThing: ConsumedThing = new ConsumedThing(this.srv, thing as ThingModel);
Expand Down

0 comments on commit c81ee88

Please sign in to comment.