Skip to content

Commit

Permalink
Merge branch 'master' into esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
relu91 authored Dec 4, 2024
2 parents 5594957 + f7a7610 commit b161984
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 14 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
8 changes: 5 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
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
4 changes: 2 additions & 2 deletions packages/core/src/wot-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -101,7 +101,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 b161984

Please sign in to comment.